tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::InlineQueryResultMpeg4Gif Struct Reference

Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 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#inlinequeryresultmpeg4gif. More...

#include <InlineQueryResult.hpp>

Inheritance diagram for tgbotxx::InlineQueryResultMpeg4Gif:
tgbotxx::InlineQueryResult

Public Member Functions

 InlineQueryResultMpeg4Gif ()
 
 InlineQueryResultMpeg4Gif (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)
 

Public Attributes

std::string mpeg4Url
 A valid URL for the MPEG4 file. File size must not exceed 1MB. More...
 
std::int32_t mpeg4Width {}
 Optional. Video width. More...
 
std::int32_t mpeg4Height {}
 Optional. Video height. More...
 
std::int32_t mpeg4Duration {}
 Optional. Video duration in seconds. More...
 
std::string thumbnailUrl
 URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result. More...
 
std::string thumbnailMimeType
 Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg” More...
 
std::string title
 Optional. Title for the result. More...
 
std::string caption
 Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing. More...
 
std::string parseMode
 Optional. Mode for parsing entities in the caption. See formatting options for more details. More...
 
std::vector< Ptr< MessageEntity > > captionEntities
 Optional. List of special entities that appear in the caption, which can be specified instead of parseMode. More...
 
Ptr< InputMessageContentinputMessageContent
 Optional. Content of the message to be sent instead of the video animation. More...
 
- Public Attributes inherited from tgbotxx::InlineQueryResult
std::string type
 Type of the result. More...
 
std::string id
 Unique identifier for this result, 1-64 bytes. More...
 
Ptr< InlineKeyboardMarkupreplyMarkup
 Optional. Inline keyboard attached to the message. More...
 

Detailed Description

Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 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#inlinequeryresultmpeg4gif.

Definition at line 279 of file InlineQueryResult.hpp.

Constructor & Destructor Documentation

◆ InlineQueryResultMpeg4Gif() [1/2]

tgbotxx::InlineQueryResultMpeg4Gif::InlineQueryResultMpeg4Gif ( )
inline

Definition at line 280 of file InlineQueryResult.hpp.

◆ InlineQueryResultMpeg4Gif() [2/2]

tgbotxx::InlineQueryResultMpeg4Gif::InlineQueryResultMpeg4Gif ( const nl::json &  json)
inlineexplicit

Definition at line 283 of file InlineQueryResult.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::InlineQueryResultMpeg4Gif::fromJson ( const nl::json &  json)
inlineoverridevirtual

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 336 of file InlineQueryResult.hpp.

◆ toJson()

nl::json tgbotxx::InlineQueryResultMpeg4Gif::toJson ( ) const
inlineoverridevirtual

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 320 of file InlineQueryResult.hpp.

Member Data Documentation

◆ caption

std::string tgbotxx::InlineQueryResultMpeg4Gif::caption

Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing.

Definition at line 309 of file InlineQueryResult.hpp.

◆ captionEntities

std::vector<Ptr<MessageEntity> > tgbotxx::InlineQueryResultMpeg4Gif::captionEntities

Optional. List of special entities that appear in the caption, which can be specified instead of parseMode.

Definition at line 315 of file InlineQueryResult.hpp.

◆ inputMessageContent

Ptr<InputMessageContent> tgbotxx::InlineQueryResultMpeg4Gif::inputMessageContent

Optional. Content of the message to be sent instead of the video animation.

Definition at line 318 of file InlineQueryResult.hpp.

◆ mpeg4Duration

std::int32_t tgbotxx::InlineQueryResultMpeg4Gif::mpeg4Duration {}

Optional. Video duration in seconds.

Definition at line 297 of file InlineQueryResult.hpp.

◆ mpeg4Height

std::int32_t tgbotxx::InlineQueryResultMpeg4Gif::mpeg4Height {}

Optional. Video height.

Definition at line 294 of file InlineQueryResult.hpp.

◆ mpeg4Url

std::string tgbotxx::InlineQueryResultMpeg4Gif::mpeg4Url

A valid URL for the MPEG4 file. File size must not exceed 1MB.

Definition at line 288 of file InlineQueryResult.hpp.

◆ mpeg4Width

std::int32_t tgbotxx::InlineQueryResultMpeg4Gif::mpeg4Width {}

Optional. Video width.

Definition at line 291 of file InlineQueryResult.hpp.

◆ parseMode

std::string tgbotxx::InlineQueryResultMpeg4Gif::parseMode

Optional. Mode for parsing entities in the caption. See formatting options for more details.

Definition at line 312 of file InlineQueryResult.hpp.

◆ thumbnailMimeType

std::string tgbotxx::InlineQueryResultMpeg4Gif::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 303 of file InlineQueryResult.hpp.

◆ thumbnailUrl

std::string tgbotxx::InlineQueryResultMpeg4Gif::thumbnailUrl

URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.

Definition at line 300 of file InlineQueryResult.hpp.

◆ title

std::string tgbotxx::InlineQueryResultMpeg4Gif::title

Optional. Title for the result.

Definition at line 306 of file InlineQueryResult.hpp.


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