tgbot-cpp
Loading...
Searching...
No Matches
TgBot::PaidMediaPreview Struct Reference

The paid media isn't available before the payment. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<PaidMediaPreview>

Public Attributes

std::string type { TYPE }
 Type of the paid media, always “preview”
std::optional< std::int32_t > width { }
 Optional. Media width as defined by the sender.
std::optional< std::int32_t > height { }
 Optional. Media height as defined by the sender.
std::optional< std::int32_t > duration { }
 Optional. Duration of the media in seconds as defined by the sender.

Static Public Attributes

static TGBOT_API const std::string TYPE

Detailed Description

The paid media isn't available before the payment.

Definition at line 10249 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 10250 of file Types.h.

Member Data Documentation

◆ duration

std::optional<std::int32_t> TgBot::PaidMediaPreview::duration { }

Optional. Duration of the media in seconds as defined by the sender.

Definition at line 10272 of file Types.h.

◆ height

std::optional<std::int32_t> TgBot::PaidMediaPreview::height { }

Optional. Media height as defined by the sender.

Definition at line 10267 of file Types.h.

◆ TYPE

TGBOT_API const std::string TgBot::PaidMediaPreview::TYPE
static

Definition at line 10252 of file Types.h.

◆ type

std::string TgBot::PaidMediaPreview::type { TYPE }

Type of the paid media, always “preview”

Definition at line 10257 of file Types.h.

◆ width

std::optional<std::int32_t> TgBot::PaidMediaPreview::width { }

Optional. Media width as defined by the sender.

Definition at line 10262 of file Types.h.


The documentation for this struct was generated from the following file: