|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Represents a general file to be sent. https://core.telegram.org/bots/api#inputmediadocument. More...
#include <InputMedia.hpp>
Public Member Functions | |
| InputMediaDocument () | |
| InputMediaDocument (const nl::json &json) | |
| nl::json | toJson () const override |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) override |
| Deserializes this object from JSON. | |
Public Member Functions inherited from tgbotxx::InputMedia | |
| InputMedia ()=default | |
| InputMedia (const nl::json &json) | |
| virtual | ~InputMedia ()=default |
Public Attributes | |
| std::string | thumbnail |
| Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files » https://core.telegram.org/bots/api#sending-files. | |
| bool | disableContentTypeDetection {} |
| Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always True, if the document is sent as part of an album. | |
Public Attributes inherited from tgbotxx::InputMedia | |
| std::string | type |
| Type of the result. | |
| std::variant< cpr::File, std::string > | media {""} |
| File to send. | |
| std::string | caption |
| Optional. Caption of the media to be sent, 0-1024 characters after entities parsing. | |
| std::string | parseMode |
| Optional. Mode for parsing entities in the media caption. See https://core.telegram.org/bots/api#formatting-options for more details. | |
| std::vector< Ptr< MessageEntity > > | captionEntities |
| Optional. List of special entities that appear in the caption, which can be specified instead of parseMode. | |
Represents a general file to be sent. https://core.telegram.org/bots/api#inputmediadocument.
Definition at line 127 of file InputMedia.hpp.
|
inline |
Definition at line 128 of file InputMedia.hpp.
|
inlineexplicit |
Definition at line 131 of file InputMedia.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::InputMedia.
Definition at line 153 of file InputMedia.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::InputMedia.
Definition at line 147 of file InputMedia.hpp.
| bool tgbotxx::InputMediaDocument::disableContentTypeDetection {} |
Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always True, if the document is sent as part of an album.
Definition at line 144 of file InputMedia.hpp.
| std::string tgbotxx::InputMediaDocument::thumbnail |
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files » https://core.telegram.org/bots/api#sending-files.
Definition at line 140 of file InputMedia.hpp.