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

Describes a media element embedded in an outgoing rich message. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InputRichMessageMedia>

Public Attributes

std::string id { }
 Unique identifier of the media used in a tg://photo?id=, tg://video?id=, or tg://audio?id= link. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.
std::variant< std::shared_ptr< InputMediaAnimation >, std::shared_ptr< InputMediaAudio >, std::shared_ptr< InputMediaPhoto >, std::shared_ptr< InputMediaVideo >, std::shared_ptr< InputMediaVoiceNote > > media { }
 The media to be sent. Everything except the media itself and its properties is ignored.

Detailed Description

Describes a media element embedded in an outgoing rich message.

Definition at line 7953 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 7954 of file Types.h.

Member Data Documentation

◆ id

std::string TgBot::InputRichMessageMedia::id { }

Unique identifier of the media used in a tg://photo?id=, tg://video?id=, or tg://audio?id= link. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.

Definition at line 7960 of file Types.h.

◆ media

std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaAudio>, std::shared_ptr<InputMediaPhoto>, std::shared_ptr<InputMediaVideo>, std::shared_ptr<InputMediaVoiceNote> > TgBot::InputRichMessageMedia::media { }

The media to be sent. Everything except the media itself and its properties is ignored.

Definition at line 7968 of file Types.h.


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