|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the animation. https://core.telegram.org/bots/api#inlinequeryresultgif. More...
#include <InlineQueryResult.hpp>
Public Member Functions | |
| InlineQueryResultGif () | |
| InlineQueryResultGif (const nl::json &json) | |
| nl::json | toJson () const override |
| void | fromJson (const nl::json &json) override |
Public Member Functions inherited from tgbotxx::InlineQueryResult | |
| InlineQueryResult ()=default | |
| InlineQueryResult (const nl::json &json) | |
| virtual | ~InlineQueryResult ()=default |
Public Attributes | |
| std::string | gifUrl |
| A valid URL for the GIF file. File size must not exceed 1MB. | |
| std::int32_t | gifWidth {} |
| Optional. Width of the GIF. | |
| std::int32_t | gifHeight {} |
| Optional. Height of the GIF. | |
| std::int32_t | gifDuration {} |
| Optional. Duration of the GIF in seconds. | |
| std::string | thumbnailUrl |
| URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result. | |
| std::string | thumbnailMimeType |
| Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg” | |
| std::string | title |
| Optional. Title for the result. | |
| std::string | caption |
| Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing. | |
| std::string | parseMode |
| Optional. Mode for parsing entities in the caption. See 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. | |
| Ptr< InputMessageContent > | inputMessageContent |
| Optional. Content of the message to be sent instead of the GIF animation. | |
Public Attributes inherited from tgbotxx::InlineQueryResult | |
| std::string | type |
| Type of the result. | |
| std::string | id |
| Unique identifier for this result, 1-64 bytes. | |
| Ptr< InlineKeyboardMarkup > | replyMarkup |
| Optional. Inline keyboard attached to the message. | |
Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the animation. https://core.telegram.org/bots/api#inlinequeryresultgif.
Definition at line 203 of file InlineQueryResult.hpp.
|
inline |
Definition at line 204 of file InlineQueryResult.hpp.
|
inlineexplicit |
Definition at line 207 of file InlineQueryResult.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::InlineQueryResult.
Definition at line 260 of file InlineQueryResult.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::InlineQueryResult.
Definition at line 244 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultGif::caption |
Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
Definition at line 233 of file InlineQueryResult.hpp.
| std::vector<Ptr<MessageEntity> > tgbotxx::InlineQueryResultGif::captionEntities |
Optional. List of special entities that appear in the caption, which can be specified instead of parseMode.
Definition at line 239 of file InlineQueryResult.hpp.
| std::int32_t tgbotxx::InlineQueryResultGif::gifDuration {} |
Optional. Duration of the GIF in seconds.
Definition at line 221 of file InlineQueryResult.hpp.
| std::int32_t tgbotxx::InlineQueryResultGif::gifHeight {} |
Optional. Height of the GIF.
Definition at line 218 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultGif::gifUrl |
A valid URL for the GIF file. File size must not exceed 1MB.
Definition at line 212 of file InlineQueryResult.hpp.
| std::int32_t tgbotxx::InlineQueryResultGif::gifWidth {} |
Optional. Width of the GIF.
Definition at line 215 of file InlineQueryResult.hpp.
| Ptr<InputMessageContent> tgbotxx::InlineQueryResultGif::inputMessageContent |
Optional. Content of the message to be sent instead of the GIF animation.
Definition at line 242 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultGif::parseMode |
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Definition at line 236 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultGif::thumbnailMimeType |
Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”
Definition at line 227 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultGif::thumbnailUrl |
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
Definition at line 224 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultGif::title |
Optional. Title for the result.
Definition at line 230 of file InlineQueryResult.hpp.