tgbot-cpp
Loading...
Searching...
No Matches
API

API methods and objects defined by the Telegram Bot API. More...

Classes

class  TgBot::Api
 Executes methods from the Telegram Bot API. More...
class  TgBot::InputFile
 This object represents the contents of a file to be uploaded. More...
struct  TgBot::AcceptedGiftTypes
 This object describes the types of gifts that can be gifted to a user or a chat. More...
struct  TgBot::AffiliateInfo
 Contains information about the affiliate that received a commission via this transaction. More...
struct  TgBot::Animation
 This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound). More...
struct  TgBot::Audio
 This object represents an audio file to be treated as music by the Telegram clients. More...
struct  TgBot::BackgroundFill
 This object describes the way a background is filled based on the selected colors. Currently, it can be one of BackgroundFillSolid BackgroundFillGradient BackgroundFillFreeformGradient. More...
struct  TgBot::BackgroundFillFreeformGradient
 The background is a freeform gradient that rotates after every message in the chat. More...
struct  TgBot::BackgroundFillGradient
 The background is a gradient fill. More...
struct  TgBot::BackgroundFillSolid
 The background is filled using the selected color. More...
struct  TgBot::BackgroundType
 This object describes the type of a background. Currently, it can be one of BackgroundTypeFill BackgroundTypeWallpaper BackgroundTypePattern BackgroundTypeChatTheme. More...
struct  TgBot::BackgroundTypeChatTheme
 The background is taken directly from a built-in chat theme. More...
struct  TgBot::BackgroundTypeFill
 The background is automatically filled based on the selected colors. More...
struct  TgBot::BackgroundTypePattern
 The background is a .PNG or .TGV (gzipped subset of SVG with MIME type “application/x-tgwallpattern”) pattern to be combined with the background fill chosen by the user. More...
struct  TgBot::BackgroundTypeWallpaper
 The background is a wallpaper in the JPEG format. More...
struct  TgBot::Birthdate
 Describes the birthdate of a user. More...
struct  TgBot::BotAccessSettings
 This object describes the access settings of a bot. More...
struct  TgBot::BotCommand
 This object represents a bot command. More...
struct  TgBot::BotCommandScope
 This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported: BotCommandScopeDefault BotCommandScopeAllPrivateChats BotCommandScopeAllGroupChats BotCommandScopeAllChatAdministrators BotCommandScopeChat BotCommandScopeChatAdministrators BotCommandScopeChatMember. More...
struct  TgBot::BotCommandScopeAllChatAdministrators
 Represents the scope of bot commands, covering all group and supergroup chat administrators. More...
struct  TgBot::BotCommandScopeAllGroupChats
 Represents the scope of bot commands, covering all group and supergroup chats. More...
struct  TgBot::BotCommandScopeAllPrivateChats
 Represents the scope of bot commands, covering all private chats. More...
struct  TgBot::BotCommandScopeChat
 Represents the scope of bot commands, covering a specific chat. More...
struct  TgBot::BotCommandScopeChatAdministrators
 Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat. More...
struct  TgBot::BotCommandScopeChatMember
 Represents the scope of bot commands, covering a specific member of a group or supergroup chat. More...
struct  TgBot::BotCommandScopeDefault
 Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user. More...
struct  TgBot::BotDescription
 This object represents the bot's description. More...
struct  TgBot::BotName
 This object represents the bot's name. More...
struct  TgBot::BotShortDescription
 This object represents the bot's short description. More...
struct  TgBot::BotSubscriptionUpdated
 This object contains information about changes to a user payment subscription toward the current bot. More...
struct  TgBot::BusinessBotRights
 Represents the rights of a business bot. More...
struct  TgBot::BusinessConnection
 Describes the connection of the bot with a business account. More...
struct  TgBot::BusinessIntro
 Contains information about the start page settings of a Telegram Business account. More...
struct  TgBot::BusinessLocation
 Contains information about the location of a Telegram Business account. More...
struct  TgBot::BusinessMessagesDeleted
 This object is received when messages are deleted from a connected business account. More...
struct  TgBot::BusinessOpeningHours
 Describes the opening hours of a business. More...
struct  TgBot::BusinessOpeningHoursInterval
 Describes an interval of time during which a business is open. More...
struct  TgBot::CallbackGame
 A placeholder, currently holds no information. Use BotFather to set up your game. More...
struct  TgBot::CallbackQuery
 This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present. More...
struct  TgBot::Chat
 This object represents a chat. More...
struct  TgBot::ChatAdministratorRights
 Represents the rights of an administrator in a chat. More...
struct  TgBot::ChatBackground
 This object represents a chat background. More...
struct  TgBot::ChatBoost
 This object contains information about a chat boost. More...
struct  TgBot::ChatBoostAdded
 This object represents a service message about a user boosting a chat. More...
struct  TgBot::ChatBoostRemoved
 This object represents a boost removed from a chat. More...
struct  TgBot::ChatBoostSource
 This object describes the source of a chat boost. It can be one of ChatBoostSourcePremium ChatBoostSourceGiftCode ChatBoostSourceGiveaway. More...
struct  TgBot::ChatBoostSourceGiftCode
 The boost was obtained by the creation of Telegram Premium gift codes to boost a chat. Each such code boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription. More...
struct  TgBot::ChatBoostSourceGiveaway
 The boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription for Telegram Premium giveaways and prize_star_count / 500 times for one year for Telegram Star giveaways. More...
struct  TgBot::ChatBoostSourcePremium
 The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user. More...
struct  TgBot::ChatBoostUpdated
 This object represents a boost added to a chat or changed. More...
struct  TgBot::ChatFullInfo
 This object contains full information about a chat. More...
 Represents an invite link for a chat. More...
struct  TgBot::ChatJoinRequest
 Represents a join request sent to a chat. More...
struct  TgBot::ChatLocation
 Represents a location to which a chat is connected. More...
struct  TgBot::ChatMember
 This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported: ChatMemberOwner ChatMemberAdministrator ChatMemberMember ChatMemberRestricted ChatMemberLeft ChatMemberBanned. More...
struct  TgBot::ChatMemberAdministrator
 Represents a chat member that has some additional privileges. More...
struct  TgBot::ChatMemberBanned
 Represents a chat member that was banned in the chat and can't return to the chat or view chat messages. More...
struct  TgBot::ChatMemberLeft
 Represents a chat member that isn't currently a member of the chat, but may join it themselves. More...
struct  TgBot::ChatMemberMember
 Represents a chat member that has no additional privileges or restrictions. More...
struct  TgBot::ChatMemberOwner
 Represents a chat member that owns the chat and has all administrator privileges. More...
struct  TgBot::ChatMemberRestricted
 Represents a chat member that is under certain restrictions in the chat. Supergroups only. More...
struct  TgBot::ChatMemberUpdated
 This object represents changes in the status of a chat member. More...
struct  TgBot::ChatOwnerChanged
 Describes a service message about an ownership change in the chat. More...
struct  TgBot::ChatOwnerLeft
 Describes a service message about the chat owner leaving the chat. More...
struct  TgBot::ChatPermissions
 Describes actions that a non-administrator user is allowed to take in a chat. More...
struct  TgBot::ChatPhoto
 This object represents a chat photo. More...
struct  TgBot::ChatShared
 This object contains information about a chat that was shared with the bot using a KeyboardButtonRequestChat button. More...
struct  TgBot::Checklist
 Describes a checklist. More...
struct  TgBot::ChecklistTask
 Describes a task in a checklist. More...
struct  TgBot::ChecklistTasksAdded
 Describes a service message about tasks added to a checklist. More...
struct  TgBot::ChecklistTasksDone
 Describes a service message about checklist tasks marked as done or not done. More...
struct  TgBot::ChosenInlineResult
 Represents a result of an inline query that was chosen by the user and sent to their chat partner. More...
struct  TgBot::Community
 Represents a community (a group of chats). More...
struct  TgBot::CommunityChatAdded
 Describes a service message about a chat being added to a community. More...
struct  TgBot::CommunityChatRemoved
 Describes a service message about a chat being removed from a community. Currently holds no information. More...
struct  TgBot::Contact
 This object represents a phone contact. More...
struct  TgBot::CopyTextButton
 This object represents an inline keyboard button that copies specified text to the clipboard. More...
struct  TgBot::Dice
 This object represents an animated emoji that displays a random value. More...
struct  TgBot::DirectMessagePriceChanged
 Describes a service message about a change in the price of direct messages sent to a channel chat. More...
struct  TgBot::DirectMessagesTopic
 Describes a topic of a direct messages chat. More...
struct  TgBot::Document
 This object represents a general file (as opposed to photos, voice messages and audio files). More...
struct  TgBot::EncryptedCredentials
 Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes. More...
struct  TgBot::EncryptedPassportElement
 Describes documents or other Telegram Passport elements shared with the bot by the user. More...
struct  TgBot::ExternalReplyInfo
 This object contains information about a message that is being replied to, which may come from another chat or forum topic. More...
struct  TgBot::File
 This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile. More...
struct  TgBot::ForceReply
 Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode. Not supported in channels and for messages sent on behalf of a user account. More...
struct  TgBot::ForumTopic
 This object represents a forum topic. More...
struct  TgBot::ForumTopicClosed
 This object represents a service message about a forum topic closed in the chat. Currently holds no information. More...
struct  TgBot::ForumTopicCreated
 This object represents a service message about a new forum topic created in the chat. More...
struct  TgBot::ForumTopicEdited
 This object represents a service message about an edited forum topic. More...
struct  TgBot::ForumTopicReopened
 This object represents a service message about a forum topic reopened in the chat. Currently holds no information. More...
struct  TgBot::Game
 This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers. More...
struct  TgBot::GameHighScore
 This object represents one row of the high scores table for a game. More...
struct  TgBot::GeneralForumTopicHidden
 This object represents a service message about General forum topic hidden in the chat. Currently holds no information. More...
struct  TgBot::GeneralForumTopicUnhidden
 This object represents a service message about General forum topic unhidden in the chat. Currently holds no information. More...
struct  TgBot::Gift
 This object represents a gift that can be sent by the bot. More...
struct  TgBot::GiftBackground
 This object describes the background of a gift. More...
struct  TgBot::GiftInfo
 Describes a service message about a regular gift that was sent or received. More...
struct  TgBot::Gifts
 This object represent a list of gifts. More...
struct  TgBot::Giveaway
 This object represents a message about a scheduled giveaway. More...
struct  TgBot::GiveawayCompleted
 This object represents a service message about the completion of a giveaway without public winners. More...
struct  TgBot::GiveawayCreated
 This object represents a service message about the creation of a scheduled giveaway. More...
struct  TgBot::GiveawayWinners
 This object represents a message about the completion of a giveaway with public winners. More...
struct  TgBot::InaccessibleMessage
 This object describes a message that was deleted or is otherwise inaccessible to the bot. More...
struct  TgBot::InlineKeyboardButton
 This object represents one button of an inline keyboard. Exactly one of the fields other than text, icon_custom_emoji_id, and style must be used to specify the type of the button. More...
struct  TgBot::InlineKeyboardMarkup
 This object represents an inline keyboard that appears right next to the message it belongs to. More...
struct  TgBot::InlineQuery
 This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results. More...
struct  TgBot::InlineQueryResult
 This object represents one result of an inline query. Telegram clients currently support results of the following 20 types: InlineQueryResultCachedAudio InlineQueryResultCachedDocument InlineQueryResultCachedGif InlineQueryResultCachedMpeg4Gif InlineQueryResultCachedPhoto InlineQueryResultCachedSticker InlineQueryResultCachedVideo InlineQueryResultCachedVoice InlineQueryResultArticle InlineQueryResultAudio InlineQueryResultContact InlineQueryResultGame InlineQueryResultDocument InlineQueryResultGif InlineQueryResultLocation InlineQueryResultMpeg4Gif InlineQueryResultPhoto InlineQueryResultVenue InlineQueryResultVideo InlineQueryResultVoice Note: All URLs passed in inline query results will be available to end users and therefore must be assumed to be public. More...
struct  TgBot::InlineQueryResultArticle
 Represents a link to an article or web page. More...
struct  TgBot::InlineQueryResultAudio
 Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio. More...
struct  TgBot::InlineQueryResultCachedAudio
 Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio. More...
struct  TgBot::InlineQueryResultCachedDocument
 Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. More...
struct  TgBot::InlineQueryResultCachedGif
 Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation. More...
struct  TgBot::InlineQueryResultCachedMpeg4Gif
 Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation. More...
struct  TgBot::InlineQueryResultCachedPhoto
 Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo. More...
struct  TgBot::InlineQueryResultCachedSticker
 Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker. More...
struct  TgBot::InlineQueryResultCachedVideo
 Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video. More...
struct  TgBot::InlineQueryResultCachedVoice
 Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message. More...
struct  TgBot::InlineQueryResultContact
 Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact. More...
struct  TgBot::InlineQueryResultDocument
 Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method. More...
struct  TgBot::InlineQueryResultGame
 Represents a Game. More...
struct  TgBot::InlineQueryResultGif
 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 input_message_content to send a message with the specified content instead of the animation. More...
struct  TgBot::InlineQueryResultLocation
 Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location. More...
struct  TgBot::InlineQueryResultMpeg4Gif
 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 input_message_content to send a message with the specified content instead of the animation. More...
struct  TgBot::InlineQueryResultPhoto
 Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo. More...
struct  TgBot::InlineQueryResultVenue
 Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue. More...
struct  TgBot::InlineQueryResultVideo
 Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video. More...
struct  TgBot::InlineQueryResultVoice
 Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message. More...
struct  TgBot::InlineQueryResultsButton
 This object represents a button to be shown above inline query results. You must use exactly one of the optional fields. More...
struct  TgBot::InputChecklist
 Describes a checklist to create. More...
struct  TgBot::InputChecklistTask
 Describes a task to add to a checklist. More...
struct  TgBot::InputContactMessageContent
 Represents the content of a contact message to be sent as the result of an inline query. More...
struct  TgBot::InputInvoiceMessageContent
 Represents the content of an invoice message to be sent as the result of an inline query. More...
struct  TgBot::InputLocationMessageContent
 Represents the content of a location message to be sent as the result of an inline query. More...
struct  TgBot::InputMedia
 This object represents the content of a media message to be sent. It should be one of InputMediaAnimation InputMediaAudio InputMediaDocument InputMediaLivePhoto InputMediaPhoto InputMediaVideo. More...
struct  TgBot::InputMediaAnimation
 Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent. More...
struct  TgBot::InputMediaAudio
 Represents an audio file to be treated as music to be sent. More...
struct  TgBot::InputMediaDocument
 Represents a general file to be sent. More...
 Represents an HTTP link to be sent. More...
struct  TgBot::InputMediaLivePhoto
 Represents a live photo to be sent. More...
struct  TgBot::InputMediaLocation
 Represents a location to be sent. More...
struct  TgBot::InputMediaPhoto
 Represents a photo to be sent. More...
struct  TgBot::InputMediaSticker
 Represents a sticker file to be sent. More...
struct  TgBot::InputMediaVenue
 Represents a venue to be sent. More...
struct  TgBot::InputMediaVideo
 Represents a video to be sent. More...
struct  TgBot::InputMediaVoiceNote
 Represents a voice message file to be sent. More...
struct  TgBot::InputMessageContent
 This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following types: InputTextMessageContent InputRichMessageContent InputLocationMessageContent InputVenueMessageContent InputContactMessageContent InputInvoiceMessageContent. More...
struct  TgBot::InputPaidMedia
 This object describes the paid media to be sent. Currently, it can be one of InputPaidMediaLivePhoto InputPaidMediaPhoto InputPaidMediaVideo. More...
struct  TgBot::InputPaidMediaLivePhoto
 The paid media to send is a live photo. More...
struct  TgBot::InputPaidMediaPhoto
 The paid media to send is a photo. More...
struct  TgBot::InputPaidMediaVideo
 The paid media to send is a video. More...
struct  TgBot::InputPollMedia
 This object represents the content of a poll description or a quiz explanation to be sent. It should be one of InputMediaAnimation InputMediaAudio InputMediaDocument InputMediaLivePhoto InputMediaLocation InputMediaPhoto InputMediaVenue InputMediaVideo. More...
struct  TgBot::InputPollOption
 This object contains information about one answer option in a poll to be sent. More...
struct  TgBot::InputPollOptionMedia
 This object represents the content of a poll option to be sent. It should be one of InputMediaAnimation InputMediaLink InputMediaLivePhoto InputMediaLocation InputMediaPhoto InputMediaSticker InputMediaVenue InputMediaVideo. More...
struct  TgBot::InputProfilePhoto
 This object describes a profile photo to set. Currently, it can be one of InputProfilePhotoStatic InputProfilePhotoAnimated. More...
struct  TgBot::InputProfilePhotoAnimated
 An animated profile photo in the MPEG4 format. More...
struct  TgBot::InputProfilePhotoStatic
 A static profile photo in the .JPG format. More...
struct  TgBot::InputRichBlock
 This object represents a block in a rich formatted message to be sent. Currently, it can be any of the following types: InputRichBlockParagraph InputRichBlockSectionHeading InputRichBlockPreformatted InputRichBlockFooter InputRichBlockDivider InputRichBlockMathematicalExpression InputRichBlockAnchor InputRichBlockList InputRichBlockBlockQuotation InputRichBlockPullQuotation InputRichBlockCollage InputRichBlockSlideshow InputRichBlockTable InputRichBlockDetails InputRichBlockMap InputRichBlockAnimation InputRichBlockAudio InputRichBlockPhoto InputRichBlockVideo InputRichBlockVoiceNote InputRichBlockThinking. More...
struct  TgBot::InputRichBlockAnchor
 A block with an anchor, corresponding to the HTML tag with the attribute name. More...
struct  TgBot::InputRichBlockAnimation
 A block with an animation, corresponding to the HTML tag <video>. More...
struct  TgBot::InputRichBlockAudio
 A block with a music file, corresponding to the HTML tag <audio>. More...
struct  TgBot::InputRichBlockBlockQuotation
 A block quotation, corresponding to the HTML tag. More...
struct  TgBot::InputRichBlockCollage
 A collage, corresponding to the custom HTML tag <tg-collage>. More...
struct  TgBot::InputRichBlockDetails
 An expandable block for details disclosure, corresponding to the HTML tag. More...
struct  TgBot::InputRichBlockDivider
 A divider, corresponding to the HTML tag


. More...

struct  TgBot::InputRichBlockFooter
 A footer, corresponding to the HTML tag <footer>. More...
struct  TgBot::InputRichBlockList
 A list of blocks, corresponding to the HTML tag. More...
struct  TgBot::InputRichBlockListItem
 An item of a list to be sent. More...
struct  TgBot::InputRichBlockMap
 A block with a map, corresponding to the custom HTML tag <tg-map>. The map's width and height must not exceed 10000 in total. The width and height ratio must be at most 20. More...
struct  TgBot::InputRichBlockMathematicalExpression
 A block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag <tg-math-block>. More...
struct  TgBot::InputRichBlockParagraph
 A text paragraph, corresponding to the HTML tag. More...
struct  TgBot::InputRichBlockPhoto
 A block with a photo, corresponding to the HTML tag. More...
struct  TgBot::InputRichBlockPreformatted
 A preformatted text block, corresponding to the nested HTML tags. More...
struct  TgBot::InputRichBlockPullQuotation
 A quotation with centered text, loosely corresponding to the HTML tag <aside>. More...
struct  TgBot::InputRichBlockSectionHeading
 A section heading, corresponding to the HTML tags. More...
struct  TgBot::InputRichBlockSlideshow
 A slideshow, corresponding to the custom HTML tag <tg-slideshow>. More...
struct  TgBot::InputRichBlockTable
 A table, corresponding to the HTML tag. More...
struct  TgBot::InputRichBlockThinking
 A block with a “Thinking…” placeholder, corresponding to the custom HTML tag <tg-thinking>. The block may be used only in sendRichMessageDraft, therefore it can't be received in messages. See https://t.me/addemoji/AIActions for examples of custom emoji that are recommended for usage in the block. More...
struct  TgBot::InputRichBlockVideo
 A block with a video, corresponding to the HTML tag <video>. More...
struct  TgBot::InputRichBlockVoiceNote
 A block with a voice note, corresponding to the HTML tag <audio>. More...
struct  TgBot::InputRichMessage
 Describes a rich message to be sent. Exactly one of the fields html, markdown, or blocks must be used. More...
struct  TgBot::InputRichMessageContent
 Represents the content of a rich message to be sent as the result of an inline query. More...
struct  TgBot::InputRichMessageMedia
 Describes a media element embedded in an outgoing rich message. More...
struct  TgBot::InputSticker
 This object describes a sticker to be added to a sticker set. More...
struct  TgBot::InputStoryContent
 This object describes the content of a story to post. Currently, it can be one of InputStoryContentPhoto InputStoryContentVideo. More...
struct  TgBot::InputStoryContentPhoto
 Describes a photo to post as a story. More...
struct  TgBot::InputStoryContentVideo
 Describes a video to post as a story. More...
struct  TgBot::InputTextMessageContent
 Represents the content of a text message to be sent as the result of an inline query. More...
struct  TgBot::InputVenueMessageContent
 Represents the content of a venue message to be sent as the result of an inline query. More...
struct  TgBot::Invoice
 This object contains basic information about an invoice. More...
struct  TgBot::KeyboardButton
 This object represents one button of the reply keyboard. At most one of the fields other than text, icon_custom_emoji_id, and style must be used to specify the type of the button. For simple text buttons, String can be used instead of this object to specify the button text. More...
struct  TgBot::KeyboardButtonPollType
 This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed. More...
struct  TgBot::KeyboardButtonRequestChat
 This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the chat if appropriate. More about requesting chats ». More...
struct  TgBot::KeyboardButtonRequestManagedBot
 This object defines the parameters for the creation of a managed bot. Information about the created bot will be shared with the bot using the update managed_bot and a Message with the field managed_bot_created. More...
struct  TgBot::KeyboardButtonRequestUsers
 This object defines the criteria used to request suitable users. Information about the selected users will be shared with the bot when the corresponding button is pressed. More about requesting users » More...
struct  TgBot::LabeledPrice
 This object represents a portion of the price for goods or services. More...
 Represents an HTTP link. More...
struct  TgBot::LinkPreviewOptions
 Describes the options used for link preview generation. More...
struct  TgBot::LivePhoto
 This object represents a live photo. More...
struct  TgBot::Location
 This object represents a point on the map. More...
struct  TgBot::LocationAddress
 Describes the physical address of a location. More...
struct  TgBot::LoginUrl
 This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in: Telegram apps support these buttons as of version 5.7. More...
struct  TgBot::ManagedBotCreated
 This object contains information about the bot that was created to be managed by the current bot. More...
struct  TgBot::ManagedBotUpdated
 This object contains information about the creation, token update, or owner update of a bot that is managed by the current bot. More...
struct  TgBot::MaskPosition
 This object describes the position on faces where a mask should be placed by default. More...
struct  TgBot::MaybeInaccessibleMessage
 This object describes a message that can be inaccessible to the bot. It can be one of Message InaccessibleMessage. More...
struct  TgBot::MenuButton
 This object describes the bot's menu button in a private chat. It should be one of MenuButtonCommands MenuButtonWebApp MenuButtonDefault If a menu button other than MenuButtonDefault is set for a private chat, then it is applied in the chat. Otherwise the default menu button is applied. By default, the menu button opens the list of bot commands. More...
struct  TgBot::MenuButtonCommands
 Represents a menu button, which opens the bot's list of commands. More...
struct  TgBot::MenuButtonDefault
 Describes that no specific value for the menu button was set. More...
struct  TgBot::MenuButtonWebApp
 Represents a menu button, which launches a Web App. More...
struct  TgBot::Message
 This object represents a message. More...
struct  TgBot::MessageAutoDeleteTimerChanged
 This object represents a service message about a change in auto-delete timer settings. More...
struct  TgBot::MessageEntity
 This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc. More...
struct  TgBot::MessageId
 This object represents a unique message identifier. More...
struct  TgBot::MessageOrigin
 This object describes the origin of a message. It can be one of MessageOriginUser MessageOriginHiddenUser MessageOriginChat MessageOriginChannel. More...
struct  TgBot::MessageOriginChannel
 The message was originally sent to a channel chat. More...
struct  TgBot::MessageOriginChat
 The message was originally sent on behalf of a chat to a group chat. More...
struct  TgBot::MessageOriginHiddenUser
 The message was originally sent by an unknown user. More...
struct  TgBot::MessageOriginUser
 The message was originally sent by a known user. More...
struct  TgBot::MessageReactionCountUpdated
 This object represents reaction changes on a message with anonymous reactions. More...
struct  TgBot::MessageReactionUpdated
 This object represents a change of a reaction on a message performed by a user. More...
struct  TgBot::OrderInfo
 This object represents information about an order. More...
struct  TgBot::OwnedGift
 This object describes a gift received and owned by a user or a chat. Currently, it can be one of OwnedGiftRegular OwnedGiftUnique. More...
struct  TgBot::OwnedGiftRegular
 Describes a regular gift owned by a user or a chat. More...
struct  TgBot::OwnedGiftUnique
 Describes a unique gift received and owned by a user or a chat. More...
struct  TgBot::OwnedGifts
 Contains the list of gifts received and owned by a user or a chat. More...
struct  TgBot::PaidMedia
 This object describes paid media. Currently, it can be one of PaidMediaLivePhoto PaidMediaPhoto PaidMediaPreview PaidMediaVideo. More...
struct  TgBot::PaidMediaInfo
 Describes the paid media added to a message. More...
struct  TgBot::PaidMediaLivePhoto
 The paid media is a live photo. More...
struct  TgBot::PaidMediaPhoto
 The paid media is a photo. More...
struct  TgBot::PaidMediaPreview
 The paid media isn't available before the payment. More...
struct  TgBot::PaidMediaPurchased
 This object contains information about a paid media purchase. More...
struct  TgBot::PaidMediaVideo
 The paid media is a video. More...
struct  TgBot::PaidMessagePriceChanged
 Describes a service message about a change in the price of paid messages within a chat. More...
struct  TgBot::PassportData
 Describes Telegram Passport data shared with the bot by the user. More...
struct  TgBot::PassportElementError
 This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of: PassportElementErrorDataField PassportElementErrorFrontSide PassportElementErrorReverseSide PassportElementErrorSelfie PassportElementErrorFile PassportElementErrorFiles PassportElementErrorTranslationFile PassportElementErrorTranslationFiles PassportElementErrorUnspecified. More...
struct  TgBot::PassportElementErrorDataField
 Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes. More...
struct  TgBot::PassportElementErrorFile
 Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes. More...
struct  TgBot::PassportElementErrorFiles
 Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes. More...
struct  TgBot::PassportElementErrorFrontSide
 Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes. More...
struct  TgBot::PassportElementErrorReverseSide
 Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes. More...
struct  TgBot::PassportElementErrorSelfie
 Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes. More...
struct  TgBot::PassportElementErrorTranslationFile
 Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes. More...
struct  TgBot::PassportElementErrorTranslationFiles
 Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change. More...
struct  TgBot::PassportElementErrorUnspecified
 Represents an issue in an unspecified place. The error is considered resolved when new data is added. More...
struct  TgBot::PassportFile
 This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB. More...
struct  TgBot::PhotoSize
 This object represents one size of a photo or a file / sticker thumbnail. More...
struct  TgBot::Poll
 This object contains information about a poll. More...
struct  TgBot::PollAnswer
 This object represents an answer of a user in a non-anonymous poll. More...
struct  TgBot::PollMedia
 At most one of the optional fields can be present in any given object. More...
struct  TgBot::PollOption
 This object contains information about one answer option in a poll. More...
struct  TgBot::PollOptionAdded
 Describes a service message about an option added to a poll. More...
struct  TgBot::PollOptionDeleted
 Describes a service message about an option deleted from a poll. More...
struct  TgBot::PreCheckoutQuery
 This object contains information about an incoming pre-checkout query. More...
struct  TgBot::PreparedInlineMessage
 Describes an inline message to be sent by a user of a Mini App. More...
struct  TgBot::PreparedKeyboardButton
 Describes a keyboard button to be used by a user of a Mini App. More...
struct  TgBot::ProximityAlertTriggered
 This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user. More...
struct  TgBot::ReactionCount
 Represents a reaction added to a message along with the number of times it was added. More...
struct  TgBot::ReactionType
 This object describes the type of a reaction. Currently, it can be one of ReactionTypeEmoji ReactionTypeCustomEmoji ReactionTypePaid. More...
struct  TgBot::ReactionTypeCustomEmoji
 The reaction is based on a custom emoji. More...
struct  TgBot::ReactionTypeEmoji
 The reaction is based on an emoji. More...
struct  TgBot::ReactionTypePaid
 The reaction is paid. More...
struct  TgBot::RefundedPayment
 This object contains basic information about a refunded payment. More...
struct  TgBot::ReplyKeyboardMarkup
 This object represents a custom keyboard with reply options (see Introduction to bots for details and examples). Not supported in channels and for messages sent on behalf of a business account. More...
struct  TgBot::ReplyKeyboardRemove
 Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup). Not supported in channels and for messages sent on behalf of a business account. More...
struct  TgBot::ReplyParameters
 Describes reply parameters for the message that is being sent. More...
struct  TgBot::ResponseParameters
 Describes why a request was unsuccessful. More...
struct  TgBot::RevenueWithdrawalState
 This object describes the state of a revenue withdrawal operation. Currently, it can be one of RevenueWithdrawalStatePending RevenueWithdrawalStateSucceeded RevenueWithdrawalStateFailed. More...
struct  TgBot::RevenueWithdrawalStateFailed
 The withdrawal failed and the transaction was refunded. More...
struct  TgBot::RevenueWithdrawalStatePending
 The withdrawal is in progress. More...
struct  TgBot::RevenueWithdrawalStateSucceeded
 The withdrawal succeeded. More...
struct  TgBot::RichBlock
 This object represents a block in a rich formatted message. Currently, it can be any of the following types: RichBlockParagraph RichBlockSectionHeading RichBlockPreformatted RichBlockFooter RichBlockDivider RichBlockMathematicalExpression RichBlockAnchor RichBlockList RichBlockBlockQuotation RichBlockPullQuotation RichBlockCollage RichBlockSlideshow RichBlockTable RichBlockDetails RichBlockMap RichBlockAnimation RichBlockAudio RichBlockPhoto RichBlockVideo RichBlockVoiceNote RichBlockThinking. More...
struct  TgBot::RichBlockAnchor
 A block with an anchor, corresponding to the HTML tag with the attribute name. More...
struct  TgBot::RichBlockAnimation
 A block with an animation, corresponding to the HTML tag <video>. More...
struct  TgBot::RichBlockAudio
 A block with a music file, corresponding to the HTML tag <audio>. More...
struct  TgBot::RichBlockBlockQuotation
 A block quotation, corresponding to the HTML tag. More...
struct  TgBot::RichBlockCaption
 Caption of a rich formatted block. More...
struct  TgBot::RichBlockCollage
 A collage, corresponding to the custom HTML tag <tg-collage>. More...
struct  TgBot::RichBlockDetails
 An expandable block for details disclosure, corresponding to the HTML tag. More...
struct  TgBot::RichBlockDivider
 A divider, corresponding to the HTML tag


. More...

struct  TgBot::RichBlockFooter
 A footer, corresponding to the HTML tag <footer>. More...
struct  TgBot::RichBlockList
 A list of blocks, corresponding to the HTML tag. More...
struct  TgBot::RichBlockListItem
 An item of a list. More...
struct  TgBot::RichBlockMap
 A block with a map, corresponding to the custom HTML tag <tg-map>. More...
struct  TgBot::RichBlockMathematicalExpression
 A block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag <tg-math-block>. More...
struct  TgBot::RichBlockParagraph
 A text paragraph, corresponding to the HTML tag. More...
struct  TgBot::RichBlockPhoto
 A block with a photo, corresponding to the HTML tag. More...
struct  TgBot::RichBlockPreformatted
 A preformatted text block, corresponding to the nested HTML tags. More...
struct  TgBot::RichBlockPullQuotation
 A quotation with centered text, loosely corresponding to the HTML tag <aside>. More...
struct  TgBot::RichBlockSectionHeading
 A section heading, corresponding to the HTML tags. More...
struct  TgBot::RichBlockSlideshow
 A slideshow, corresponding to the custom HTML tag <tg-slideshow>. More...
struct  TgBot::RichBlockTable
 A table, corresponding to the HTML tag. More...
struct  TgBot::RichBlockTableCell
 Cell in a table. More...
struct  TgBot::RichBlockThinking
 A block with a “Thinking…” placeholder, corresponding to the custom HTML tag <tg-thinking>. The block may be used only in sendRichMessageDraft, therefore it can't be received in messages. See https://t.me/addemoji/AIActions for examples of custom emoji that are recommended for usage in the block. More...
struct  TgBot::RichBlockVideo
 A block with a video, corresponding to the HTML tag <video>. More...
struct  TgBot::RichBlockVoiceNote
 A block with a voice note, corresponding to the HTML tag <audio>. More...
struct  TgBot::RichMessage
 Rich formatted message. More...
struct  TgBot::RichText
 This object represents a rich formatted text. Currently, it can be either a String for plain text, an Array of RichText, or any of the following types: RichTextBold RichTextItalic RichTextUnderline RichTextStrikethrough RichTextSpoiler RichTextDateTime RichTextTextMention RichTextSubscript RichTextSuperscript RichTextMarked RichTextCode RichTextCustomEmoji RichTextMathematicalExpression RichTextUrl RichTextEmailAddress RichTextPhoneNumber RichTextBankCardNumber RichTextMention RichTextHashtag RichTextCashtag RichTextBotCommand RichTextAnchor RichTextAnchorLink RichTextReference RichTextReferenceLink. More...
struct  TgBot::RichTextAnchor
 An anchor. More...
 A link to an anchor. More...
struct  TgBot::RichTextBankCardNumber
 A text with a bank card number. More...
struct  TgBot::RichTextBold
 A bold text. More...
struct  TgBot::RichTextBotCommand
 A bot command. More...
struct  TgBot::RichTextCashtag
 A cashtag. More...
struct  TgBot::RichTextCode
 A monowidth text. More...
struct  TgBot::RichTextCustomEmoji
 A custom emoji. More...
struct  TgBot::RichTextDateTime
 Formatted date and time. More...
struct  TgBot::RichTextEmailAddress
 A text with an email address. More...
struct  TgBot::RichTextHashtag
 A hashtag. More...
struct  TgBot::RichTextItalic
 An italicized text. More...
struct  TgBot::RichTextMarked
 A marked text. More...
struct  TgBot::RichTextMathematicalExpression
 A mathematical expression. More...
struct  TgBot::RichTextMention
 A mention by a username. More...
struct  TgBot::RichTextPhoneNumber
 A text with a phone number. More...
struct  TgBot::RichTextReference
 A reference. More...
 A link to a reference. More...
struct  TgBot::RichTextSpoiler
 A text covered by a spoiler. More...
struct  TgBot::RichTextStrikethrough
 A strikethrough text. More...
struct  TgBot::RichTextSubscript
 A subscript text. More...
struct  TgBot::RichTextSuperscript
 A superscript text. More...
struct  TgBot::RichTextTextMention
 A mention of a Telegram user by their identifier. More...
struct  TgBot::RichTextUnderline
 An underlined text. More...
struct  TgBot::RichTextUrl
 A text with a link. More...
struct  TgBot::SentGuestMessage
 Describes an inline message sent by a guest bot. More...
struct  TgBot::SentWebAppMessage
 Describes an inline message sent by a Web App on behalf of a user. More...
struct  TgBot::SharedUser
 This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUsers button. More...
struct  TgBot::ShippingAddress
 This object represents a shipping address. More...
struct  TgBot::ShippingOption
 This object represents one shipping option. More...
struct  TgBot::ShippingQuery
 This object contains information about an incoming shipping query. More...
struct  TgBot::StarAmount
 Describes an amount of Telegram Stars. More...
struct  TgBot::StarTransaction
 Describes a Telegram Star transaction. Note that if the buyer initiates a chargeback with the payment provider from whom they acquired Stars (e.g., Apple, Google) following this transaction, the refunded Stars will be deducted from the bot's balance. This is outside of Telegram's control. More...
struct  TgBot::StarTransactions
 Contains a list of Telegram Star transactions. More...
struct  TgBot::Sticker
 This object represents a sticker. More...
struct  TgBot::StickerSet
 This object represents a sticker set. More...
struct  TgBot::Story
 This object represents a story. More...
struct  TgBot::StoryArea
 Describes a clickable area on a story media. More...
struct  TgBot::StoryAreaPosition
 Describes the position of a clickable area within a story. More...
struct  TgBot::StoryAreaType
 Describes the type of a clickable area on a story. Currently, it can be one of StoryAreaTypeLocation StoryAreaTypeSuggestedReaction StoryAreaTypeLink StoryAreaTypeWeather StoryAreaTypeUniqueGift. More...
 Describes a story area pointing to an HTTP or tg:// link. Currently, a story can have up to 3 link areas. More...
struct  TgBot::StoryAreaTypeLocation
 Describes a story area pointing to a location. Currently, a story can have up to 10 location areas. More...
struct  TgBot::StoryAreaTypeSuggestedReaction
 Describes a story area pointing to a suggested reaction. Currently, a story can have up to 5 suggested reaction areas. More...
struct  TgBot::StoryAreaTypeUniqueGift
 Describes a story area pointing to a unique gift. Currently, a story can have at most 1 unique gift area. More...
struct  TgBot::StoryAreaTypeWeather
 Describes a story area containing weather information. Currently, a story can have up to 3 weather areas. More...
struct  TgBot::SuccessfulPayment
 This object contains basic information about a successful payment. Note that if the buyer initiates a chargeback with the relevant payment provider following this transaction, the funds may be debited from your balance. This is outside of Telegram's control. More...
struct  TgBot::SuggestedPostApprovalFailed
 Describes a service message about the failed approval of a suggested post. Currently, only caused by insufficient user funds at the time of approval. More...
struct  TgBot::SuggestedPostApproved
 Describes a service message about the approval of a suggested post. More...
struct  TgBot::SuggestedPostDeclined
 Describes a service message about the rejection of a suggested post. More...
struct  TgBot::SuggestedPostInfo
 Contains information about a suggested post. More...
struct  TgBot::SuggestedPostPaid
 Describes a service message about a successful payment for a suggested post. More...
struct  TgBot::SuggestedPostParameters
 Contains parameters of a post that is being suggested by the bot. More...
struct  TgBot::SuggestedPostPrice
 Describes the price of a suggested post. More...
struct  TgBot::SuggestedPostRefunded
 Describes a service message about a payment refund for a suggested post. More...
struct  TgBot::SwitchInlineQueryChosenChat
 This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query. More...
struct  TgBot::TextQuote
 This object contains information about the quoted part of a message that is replied to by the given message. More...
struct  TgBot::TransactionPartner
 This object describes the source of a transaction, or its recipient for outgoing transactions. Currently, it can be one of TransactionPartnerUser TransactionPartnerChat TransactionPartnerAffiliateProgram TransactionPartnerFragment TransactionPartnerTelegramAds TransactionPartnerTelegramApi TransactionPartnerOther. More...
struct  TgBot::TransactionPartnerAffiliateProgram
 Describes the affiliate program that issued the affiliate commission received via this transaction. More...
struct  TgBot::TransactionPartnerChat
 Describes a transaction with a chat. More...
struct  TgBot::TransactionPartnerFragment
 Describes a withdrawal transaction with Fragment. More...
struct  TgBot::TransactionPartnerOther
 Describes a transaction with an unknown source or recipient. More...
struct  TgBot::TransactionPartnerTelegramAds
 Describes a withdrawal transaction to the Telegram Ads platform. More...
struct  TgBot::TransactionPartnerTelegramApi
 Describes a transaction with payment for paid broadcasting. More...
struct  TgBot::TransactionPartnerUser
 Describes a transaction with a user. More...
struct  TgBot::UniqueGift
 This object describes a unique gift that was upgraded from a regular gift. More...
struct  TgBot::UniqueGiftBackdrop
 This object describes the backdrop of a unique gift. More...
struct  TgBot::UniqueGiftBackdropColors
 This object describes the colors of the backdrop of a unique gift. More...
struct  TgBot::UniqueGiftColors
 This object contains information about the color scheme for a user's name, message replies and link previews based on a unique gift. More...
struct  TgBot::UniqueGiftInfo
 Describes a service message about a unique gift that was sent or received. More...
struct  TgBot::UniqueGiftModel
 This object describes the model of a unique gift. More...
struct  TgBot::UniqueGiftSymbol
 This object describes the symbol shown on the pattern of a unique gift. More...
struct  TgBot::Update
 This object represents an incoming update.At most one of the optional fields can be present in any given update. More...
struct  TgBot::User
 This object represents a Telegram user or bot. More...
struct  TgBot::UserChatBoosts
 This object represents a list of boosts added to a chat by a user. More...
struct  TgBot::UserProfileAudios
 This object represents the audios displayed on a user's profile. More...
struct  TgBot::UserProfilePhotos
 This object represent a user's profile pictures. More...
struct  TgBot::UserRating
 This object describes the rating of a user based on their Telegram Star spendings. More...
struct  TgBot::UsersShared
 This object contains information about the users whose identifiers were shared with the bot using a KeyboardButtonRequestUsers button. More...
struct  TgBot::Venue
 This object represents a venue. More...
struct  TgBot::Video
 This object represents a video file. More...
struct  TgBot::VideoChatEnded
 This object represents a service message about a video chat ended in the chat. More...
struct  TgBot::VideoChatParticipantsInvited
 This object represents a service message about new members invited to a video chat. More...
struct  TgBot::VideoChatScheduled
 This object represents a service message about a video chat scheduled in the chat. More...
struct  TgBot::VideoChatStarted
 This object represents a service message about a video chat started in the chat. Currently holds no information. More...
struct  TgBot::VideoNote
 This object represents a video message (available in Telegram apps as of v.4.0). More...
struct  TgBot::VideoQuality
 This object represents a video file of a specific quality. More...
struct  TgBot::Voice
 This object represents a voice note. More...
struct  TgBot::WebAppData
 Describes data sent from a Web App to the bot. More...
struct  TgBot::WebAppInfo
 Describes a Web App. More...
struct  TgBot::WebhookInfo
 Describes the current status of a webhook. More...
struct  TgBot::WriteAccessAllowed
 This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess. More...

Detailed Description

API methods and objects defined by the Telegram Bot API.