8#include <nlohmann/json_fwd.hpp>
451 using Ptr = std::shared_ptr<AcceptedGiftTypes>;
483 using Ptr = std::shared_ptr<AffiliateInfo>;
519 using Ptr = std::shared_ptr<Animation>;
571 using Ptr = std::shared_ptr<AreaPosition>;
608 using Ptr = std::shared_ptr<Audio>;
630 std::optional<std::string>
title { };
662 using Ptr = std::shared_ptr<BackgroundFill>;
664 std::variant<std::shared_ptr<BackgroundFillSolid>, std::shared_ptr<BackgroundFillGradient>,
665 std::shared_ptr<BackgroundFillFreeformGradient>>
677 using Ptr = std::shared_ptr<BackgroundFillFreeformGradient>;
700 using Ptr = std::shared_ptr<BackgroundFillGradient>;
730 using Ptr = std::shared_ptr<BackgroundFillSolid>;
753 using Ptr = std::shared_ptr<BackgroundType>;
755 std::variant<std::shared_ptr<BackgroundTypeFill>, std::shared_ptr<BackgroundTypeWallpaper>,
756 std::shared_ptr<BackgroundTypePattern>, std::shared_ptr<BackgroundTypeChatTheme>>
768 using Ptr = std::shared_ptr<BackgroundTypeChatTheme>;
790 using Ptr = std::shared_ptr<BackgroundTypeFill>;
801 std::shared_ptr<BackgroundFill>
fill { };
818 using Ptr = std::shared_ptr<BackgroundTypePattern>;
833 std::shared_ptr<BackgroundFill>
fill { };
857 using Ptr = std::shared_ptr<BackgroundTypeWallpaper>;
892 using Ptr = std::shared_ptr<Birthdate>;
905 std::optional<std::uint32_t>
year { };
916 using Ptr = std::shared_ptr<BotAccessSettings>;
925 std::optional<std::vector<std::shared_ptr<User>>>
addedUsers { };
936 using Ptr = std::shared_ptr<BotCommand>;
965 using Ptr = std::shared_ptr<BotCommandScope>;
967 std::variant<std::shared_ptr<BotCommandScopeDefault>, std::shared_ptr<BotCommandScopeAllPrivateChats>,
968 std::shared_ptr<BotCommandScopeAllGroupChats>, std::shared_ptr<BotCommandScopeAllChatAdministrators>,
969 std::shared_ptr<BotCommandScopeChat>, std::shared_ptr<BotCommandScopeChatAdministrators>,
970 std::shared_ptr<BotCommandScopeChatMember>>
982 using Ptr = std::shared_ptr<BotCommandScopeAllChatAdministrators>;
1000 using Ptr = std::shared_ptr<BotCommandScopeAllGroupChats>;
1018 using Ptr = std::shared_ptr<BotCommandScopeAllPrivateChats>;
1036 using Ptr = std::shared_ptr<BotCommandScopeChat>;
1048 std::variant<std::int64_t, std::string>
chatId { };
1060 using Ptr = std::shared_ptr<BotCommandScopeChatAdministrators>;
1072 std::variant<std::int64_t, std::string>
chatId { };
1084 using Ptr = std::shared_ptr<BotCommandScopeChatMember>;
1096 std::variant<std::int64_t, std::string>
chatId { };
1112 using Ptr = std::shared_ptr<BotCommandScopeDefault>;
1130 using Ptr = std::shared_ptr<BotDescription>;
1146 using Ptr = std::shared_ptr<BotName>;
1162 using Ptr = std::shared_ptr<BotShortDescription>;
1179 using Ptr = std::shared_ptr<BotSubscriptionUpdated>;
1205 using Ptr = std::shared_ptr<BusinessBotRights>;
1279 using Ptr = std::shared_ptr<BusinessConnection>;
1303 std::shared_ptr<BusinessBotRights>
rights { };
1318 using Ptr = std::shared_ptr<BusinessIntro>;
1342 using Ptr = std::shared_ptr<BusinessLocation>;
1362 using Ptr = std::shared_ptr<BusinessMessagesDeleted>;
1387 using Ptr = std::shared_ptr<BusinessOpeningHours>;
1396 std::vector<std::shared_ptr<BusinessOpeningHoursInterval>>
openingHours { };
1407 using Ptr = std::shared_ptr<BusinessOpeningHoursInterval>;
1429 using Ptr = std::shared_ptr<CallbackGame>;
1444 using Ptr = std::shared_ptr<CallbackQuery>;
1457 std::shared_ptr<MaybeInaccessibleMessage>
message { };
1472 std::optional<std::string>
data { };
1488 using Ptr = std::shared_ptr<Chat>;
1490 enum class Type { Private, Group, Supergroup, Channel };
1498 std::int64_t
id { };
1540 using Ptr = std::shared_ptr<ChatAdministratorRights>;
1637 using Ptr = std::shared_ptr<ChatBackground>;
1642 std::shared_ptr<BackgroundType>
type { };
1653 using Ptr = std::shared_ptr<ChatBoost>;
1682 using Ptr = std::shared_ptr<ChatBoostAdded>;
1698 using Ptr = std::shared_ptr<ChatBoostRemoved>;
1727 using Ptr = std::shared_ptr<ChatBoostSource>;
1729 std::variant<std::shared_ptr<ChatBoostSourcePremium>, std::shared_ptr<ChatBoostSourceGiftCode>,
1730 std::shared_ptr<ChatBoostSourceGiveaway>>
1744 using Ptr = std::shared_ptr<ChatBoostSourceGiftCode>;
1769 using Ptr = std::shared_ptr<ChatBoostSourceGiveaway>;
1807 using Ptr = std::shared_ptr<ChatBoostSourcePremium>;
1829 using Ptr = std::shared_ptr<ChatBoostUpdated>;
1849 using Ptr = std::shared_ptr<ChatFullInfo>;
1857 std::int64_t
id { };
1962 std::optional<std::string>
bio { };
2114 using Ptr = std::shared_ptr<ChatInviteLink>;
2140 std::optional<std::string>
name { };
2174 using Ptr = std::shared_ptr<ChatJoinRequest>;
2200 std::optional<std::string>
bio { };
2221 using Ptr = std::shared_ptr<ChatLocation>;
2243 using Ptr = std::shared_ptr<ChatMember>;
2245 std::variant<std::shared_ptr<ChatMemberOwner>, std::shared_ptr<ChatMemberAdministrator>,
2246 std::shared_ptr<ChatMemberMember>, std::shared_ptr<ChatMemberRestricted>,
2247 std::shared_ptr<ChatMemberLeft>, std::shared_ptr<ChatMemberBanned>>
2259 using Ptr = std::shared_ptr<ChatMemberAdministrator>;
2375 using Ptr = std::shared_ptr<ChatMemberBanned>;
2403 using Ptr = std::shared_ptr<ChatMemberLeft>;
2425 using Ptr = std::shared_ptr<ChatMemberMember>;
2436 std::optional<std::string>
tag { };
2455 using Ptr = std::shared_ptr<ChatMemberOwner>;
2485 using Ptr = std::shared_ptr<ChatMemberRestricted>;
2496 std::optional<std::string>
tag { };
2586 using Ptr = std::shared_ptr<ChatMemberUpdated>;
2632 using Ptr = std::shared_ptr<ChatOwnerChanged>;
2648 using Ptr = std::shared_ptr<ChatOwnerLeft>;
2665 using Ptr = std::shared_ptr<ChatPermissions>;
2747 using Ptr = std::shared_ptr<ChatPhoto>;
2780 using Ptr = std::shared_ptr<ChatShareTheme>;
2782 std::variant<std::shared_ptr<ChatShareThemeEmoji>, std::shared_ptr<ChatShareThemeUniqueGift>>
value;
2794 using Ptr = std::shared_ptr<ChatShareThemeBackdrop>;
2799 std::int32_t
id { };
2807 std::shared_ptr<UniqueGiftBackdropColors>
colors { };
2819 using Ptr = std::shared_ptr<ChatShareThemeBackdrops>;
2824 std::vector<std::shared_ptr<ChatShareThemeBackdrop>>
backdrops { };
2835 using Ptr = std::shared_ptr<ChatShareThemeEmoji>;
2846 std::vector<std::shared_ptr<EmojiType>>
emojis { };
2862 using Ptr = std::shared_ptr<ChatShareThemeUniqueGift>;
2873 std::shared_ptr<UniqueGift>
gift { };
2885 using Ptr = std::shared_ptr<ChatShared>;
2911 std::optional<std::vector<std::shared_ptr<PhotoSize>>>
photo { };
2922 using Ptr = std::shared_ptr<Checklist>;
2935 std::vector<std::shared_ptr<ChecklistTask>>
tasks { };
2955 using Ptr = std::shared_ptr<ChecklistTask>;
2960 std::uint32_t
id { };
2968 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
textEntities { };
2992 using Ptr = std::shared_ptr<ChecklistTasksAdded>;
3003 std::vector<std::shared_ptr<ChecklistTask>>
tasks { };
3014 using Ptr = std::shared_ptr<ChecklistTasksDone>;
3041 using Ptr = std::shared_ptr<ChosenInlineResult>;
3075 using Ptr = std::shared_ptr<Community>;
3083 std::uint64_t
id { };
3098 using Ptr = std::shared_ptr<CommunityChatAdded>;
3114 using Ptr = std::shared_ptr<CommunityChatJoined>;
3131 using Ptr = std::shared_ptr<CommunityChatRemoved>;
3142 using Ptr = std::shared_ptr<Contact>;
3178 using Ptr = std::shared_ptr<CopyTextButton>;
3194 using Ptr = std::shared_ptr<Dice>;
3216 using Ptr = std::shared_ptr<DirectMessagePriceChanged>;
3238 using Ptr = std::shared_ptr<DirectMessagesTopic>;
3262 using Ptr = std::shared_ptr<DisabledButton>;
3274 using Ptr = std::shared_ptr<Document>;
3315 using Ptr = std::shared_ptr<EmojiType>;
3317 std::variant<std::shared_ptr<EmojiTypeEmoji>, std::shared_ptr<EmojiTypeCustomEmoji>>
value;
3328 using Ptr = std::shared_ptr<EmojiTypeCustomEmoji>;
3351 using Ptr = std::shared_ptr<EmojiTypeEmoji>;
3375 using Ptr = std::shared_ptr<EncryptedCredentials>;
3401 using Ptr = std::shared_ptr<EncryptedPassportElement>;
3415 std::optional<std::string>
data { };
3430 std::optional<std::vector<std::shared_ptr<PassportFile>>>
files { };
3458 std::optional<std::vector<std::shared_ptr<PassportFile>>>
translation { };
3473 using Ptr = std::shared_ptr<EphemeralMessageParameters>;
3510 using Ptr = std::shared_ptr<ExternalReplyInfo>;
3554 std::optional<std::vector<std::shared_ptr<PhotoSize>>>
photo { };
3637 using Ptr = std::shared_ptr<File>;
3674 using Ptr = std::shared_ptr<ForceReply>;
3703 using Ptr = std::shared_ptr<ForumTopic>;
3737 using Ptr = std::shared_ptr<ForumTopicClosed>;
3748 using Ptr = std::shared_ptr<ForumTopicCreated>;
3777 using Ptr = std::shared_ptr<ForumTopicEdited>;
3782 std::optional<std::string>
name { };
3799 using Ptr = std::shared_ptr<ForumTopicReopened>;
3811 using Ptr = std::shared_ptr<Game>;
3824 std::vector<std::shared_ptr<PhotoSize>>
photo { };
3830 std::optional<std::string>
text { };
3835 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
textEntities { };
3851 using Ptr = std::shared_ptr<GameHighScore>;
3876 using Ptr = std::shared_ptr<GeneralForumTopicHidden>;
3888 using Ptr = std::shared_ptr<GeneralForumTopicUnhidden>;
3899 using Ptr = std::shared_ptr<Gift>;
3970 using Ptr = std::shared_ptr<GiftBackground>;
3994 using Ptr = std::shared_ptr<GiftInfo>;
4025 std::optional<std::string>
text { };
4029 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
entities { };
4050 using Ptr = std::shared_ptr<Gifts>;
4055 std::vector<std::shared_ptr<Gift>>
gifts { };
4066 using Ptr = std::shared_ptr<Giveaway>;
4071 std::vector<std::shared_ptr<Chat>>
chats { };
4121 using Ptr = std::shared_ptr<GiveawayCompleted>;
4150 using Ptr = std::shared_ptr<GiveawayCreated>;
4167 using Ptr = std::shared_ptr<GiveawayWinners>;
4231 using Ptr = std::shared_ptr<InaccessibleMessage>;
4256 using Ptr = std::shared_ptr<InlineKeyboardButton>;
4279 std::optional<std::string>
url { };
4352 using Ptr = std::shared_ptr<InlineKeyboardMarkup>;
4375 using Ptr = std::shared_ptr<InlineQuery>;
4423 using Ptr = std::shared_ptr<InlineQueryResult>;
4425 std::variant<std::shared_ptr<InlineQueryResultCachedAudio>, std::shared_ptr<InlineQueryResultCachedDocument>,
4426 std::shared_ptr<InlineQueryResultCachedGif>, std::shared_ptr<InlineQueryResultCachedMpeg4Gif>,
4427 std::shared_ptr<InlineQueryResultCachedPhoto>, std::shared_ptr<InlineQueryResultCachedSticker>,
4428 std::shared_ptr<InlineQueryResultCachedVideo>, std::shared_ptr<InlineQueryResultCachedVoice>,
4429 std::shared_ptr<InlineQueryResultArticle>, std::shared_ptr<InlineQueryResultAudio>,
4430 std::shared_ptr<InlineQueryResultContact>, std::shared_ptr<InlineQueryResultGame>,
4431 std::shared_ptr<InlineQueryResultDocument>, std::shared_ptr<InlineQueryResultGif>,
4432 std::shared_ptr<InlineQueryResultLocation>, std::shared_ptr<InlineQueryResultMpeg4Gif>,
4433 std::shared_ptr<InlineQueryResultPhoto>, std::shared_ptr<InlineQueryResultVenue>,
4434 std::shared_ptr<InlineQueryResultVideo>, std::shared_ptr<InlineQueryResultVoice>>
4446 using Ptr = std::shared_ptr<InlineQueryResultArticle>;
4473 std::optional<std::string>
url { };
4502 using Ptr = std::shared_ptr<InlineQueryResultAudio>;
4564 using Ptr = std::shared_ptr<InlineQueryResultCachedAudio>;
4614 using Ptr = std::shared_ptr<InlineQueryResultCachedDocument>;
4672 using Ptr = std::shared_ptr<InlineQueryResultCachedGif>;
4731 using Ptr = std::shared_ptr<InlineQueryResultCachedMpeg4Gif>;
4790 using Ptr = std::shared_ptr<InlineQueryResultCachedPhoto>;
4852 using Ptr = std::shared_ptr<InlineQueryResultCachedSticker>;
4888 using Ptr = std::shared_ptr<InlineQueryResultCachedVideo>;
4950 using Ptr = std::shared_ptr<InlineQueryResultCachedVoice>;
5004 using Ptr = std::shared_ptr<InlineQueryResultContact>;
5065 using Ptr = std::shared_ptr<InlineQueryResultDocument>;
5137 using Ptr = std::shared_ptr<InlineQueryResultGame>;
5169 using Ptr = std::shared_ptr<InlineQueryResultGif>;
5248 using Ptr = std::shared_ptr<InlineQueryResultLocation>;
5324 using Ptr = std::shared_ptr<InlineQueryResultMpeg4Gif>;
5404 using Ptr = std::shared_ptr<InlineQueryResultPhoto>;
5477 using Ptr = std::shared_ptr<InlineQueryResultVenue>;
5554 using Ptr = std::shared_ptr<InlineQueryResultVideo>;
5639 using Ptr = std::shared_ptr<InlineQueryResultVoice>;
5696 using Ptr = std::shared_ptr<InlineQueryResultsButton>;
5730 using Ptr = std::shared_ptr<InputChecklist>;
5750 std::vector<std::shared_ptr<InputChecklistTask>>
tasks { };
5769 using Ptr = std::shared_ptr<InputChecklistTask>;
5775 std::uint32_t
id { };
5790 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
textEntities { };
5801 using Ptr = std::shared_ptr<InputContactMessageContent>;
5829 using Ptr = std::shared_ptr<InputInvoiceMessageContent>;
5859 std::vector<std::shared_ptr<LabeledPrice>>
prices { };
5943 using Ptr = std::shared_ptr<InputLocationMessageContent>;
5984 using Ptr = std::shared_ptr<InputMedia>;
5986 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaAudio>,
5987 std::shared_ptr<InputMediaDocument>, std::shared_ptr<InputMediaLivePhoto>,
5988 std::shared_ptr<InputMediaPhoto>, std::shared_ptr<InputMediaVideo>>
6000 using Ptr = std::shared_ptr<InputMediaAnimation>;
6069 using Ptr = std::shared_ptr<InputMediaAudio>;
6130 using Ptr = std::shared_ptr<InputMediaDocument>;
6184 using Ptr = std::shared_ptr<InputMediaLink>;
6206 using Ptr = std::shared_ptr<InputMediaLivePhoto>;
6260 using Ptr = std::shared_ptr<InputMediaLocation>;
6290 using Ptr = std::shared_ptr<InputMediaPhoto>;
6337 using Ptr = std::shared_ptr<InputMediaSticker>;
6367 using Ptr = std::shared_ptr<InputMediaVenue>;
6418 using Ptr = std::shared_ptr<InputMediaVideo>;
6502 using Ptr = std::shared_ptr<InputMediaVoiceNote>;
6550 using Ptr = std::shared_ptr<InputMessageContent>;
6552 std::variant<std::shared_ptr<InputTextMessageContent>, std::shared_ptr<InputRichMessageContent>,
6553 std::shared_ptr<InputLocationMessageContent>, std::shared_ptr<InputVenueMessageContent>,
6554 std::shared_ptr<InputContactMessageContent>, std::shared_ptr<InputInvoiceMessageContent>,
6555 std::shared_ptr<InputWidgetMessageContent>, std::shared_ptr<InputSharedWidgetMessageContent>>
6568 using Ptr = std::shared_ptr<InputPaidMedia>;
6570 std::variant<std::shared_ptr<InputPaidMediaLivePhoto>, std::shared_ptr<InputPaidMediaPhoto>,
6571 std::shared_ptr<InputPaidMediaVideo>>
6583 using Ptr = std::shared_ptr<InputPaidMediaLivePhoto>;
6615 using Ptr = std::shared_ptr<InputPaidMediaPhoto>;
6640 using Ptr = std::shared_ptr<InputPaidMediaVideo>;
6704 using Ptr = std::shared_ptr<InputPollMedia>;
6706 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaAudio>,
6707 std::shared_ptr<InputMediaDocument>, std::shared_ptr<InputMediaLivePhoto>,
6708 std::shared_ptr<InputMediaLocation>, std::shared_ptr<InputMediaPhoto>,
6709 std::shared_ptr<InputMediaVenue>, std::shared_ptr<InputMediaVideo>>
6721 using Ptr = std::shared_ptr<InputPollOption>;
6736 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
textEntities { };
6740 std::shared_ptr<InputPollOptionMedia>
media { };
6753 using Ptr = std::shared_ptr<InputPollOptionMedia>;
6755 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaLink>,
6756 std::shared_ptr<InputMediaLivePhoto>, std::shared_ptr<InputMediaLocation>,
6757 std::shared_ptr<InputMediaPhoto>, std::shared_ptr<InputMediaSticker>, std::shared_ptr<InputMediaVenue>,
6758 std::shared_ptr<InputMediaVideo>>
6771 using Ptr = std::shared_ptr<InputProfilePhoto>;
6773 std::variant<std::shared_ptr<InputProfilePhotoStatic>, std::shared_ptr<InputProfilePhotoAnimated>>
value;
6784 using Ptr = std::shared_ptr<InputProfilePhotoAnimated>;
6813 using Ptr = std::shared_ptr<InputProfilePhotoStatic>;
6845 using Ptr = std::shared_ptr<InputRichBlock>;
6847 std::variant<std::shared_ptr<InputRichBlockParagraph>, std::shared_ptr<InputRichBlockSectionHeading>,
6848 std::shared_ptr<InputRichBlockPreformatted>, std::shared_ptr<InputRichBlockFooter>,
6849 std::shared_ptr<InputRichBlockDivider>, std::shared_ptr<InputRichBlockMathematicalExpression>,
6850 std::shared_ptr<InputRichBlockAnchor>, std::shared_ptr<InputRichBlockList>,
6851 std::shared_ptr<InputRichBlockBlockQuotation>, std::shared_ptr<InputRichBlockExpandableBlockQuotation>,
6852 std::shared_ptr<InputRichBlockPullQuotation>, std::shared_ptr<InputRichBlockCollage>,
6853 std::shared_ptr<InputRichBlockSlideshow>, std::shared_ptr<InputRichBlockTable>,
6854 std::shared_ptr<InputRichBlockDetails>, std::shared_ptr<InputRichBlockMap>,
6855 std::shared_ptr<InputRichBlockButtons>, std::shared_ptr<InputRichBlockAnimation>,
6856 std::shared_ptr<InputRichBlockAudio>, std::shared_ptr<InputRichBlockDocument>,
6857 std::shared_ptr<InputRichBlockPhoto>, std::shared_ptr<InputRichBlockVideo>,
6858 std::shared_ptr<InputRichBlockVoiceNote>, std::shared_ptr<InputRichBlockThinking>>
6870 using Ptr = std::shared_ptr<InputRichBlockAnchor>;
6892 using Ptr = std::shared_ptr<InputRichBlockAnimation>;
6918 using Ptr = std::shared_ptr<InputRichBlockAudio>;
6929 std::shared_ptr<InputMediaAudio>
audio { };
6944 using Ptr = std::shared_ptr<InputRichBlockBlockQuotation>;
6955 std::vector<std::shared_ptr<InputRichBlock>>
blocks { };
6971 using Ptr = std::shared_ptr<InputRichBlockButtons>;
6982 std::vector<std::shared_ptr<RichMessageButton>>
buttons { };
6998 using Ptr = std::shared_ptr<InputRichBlockCollage>;
7009 std::vector<std::shared_ptr<InputRichBlock>>
blocks { };
7024 using Ptr = std::shared_ptr<InputRichBlockDetails>;
7039 std::vector<std::shared_ptr<InputRichBlock>>
blocks { };
7054 using Ptr = std::shared_ptr<InputRichBlockDivider>;
7072 using Ptr = std::shared_ptr<InputRichBlockDocument>;
7099 using Ptr = std::shared_ptr<InputRichBlockExpandableBlockQuotation>;
7110 std::shared_ptr<RichText>
text { };
7125 using Ptr = std::shared_ptr<InputRichBlockFooter>;
7136 std::shared_ptr<RichText>
text { };
7147 using Ptr = std::shared_ptr<InputRichBlockList>;
7158 std::vector<std::shared_ptr<InputRichBlockListItem>>
items { };
7169 using Ptr = std::shared_ptr<InputRichBlockListItem>;
7174 std::vector<std::shared_ptr<InputRichBlock>>
blocks { };
7192 std::optional<std::string>
type { };
7204 using Ptr = std::shared_ptr<InputRichBlockMap>;
7219 std::optional<std::uint32_t>
zoom { };
7243 using Ptr = std::shared_ptr<InputRichBlockMathematicalExpression>;
7265 using Ptr = std::shared_ptr<InputRichBlockParagraph>;
7276 std::shared_ptr<RichText>
text { };
7287 using Ptr = std::shared_ptr<InputRichBlockPhoto>;
7298 std::shared_ptr<InputMediaPhoto>
photo { };
7313 using Ptr = std::shared_ptr<InputRichBlockPreformatted>;
7324 std::shared_ptr<RichText>
text { };
7339 using Ptr = std::shared_ptr<InputRichBlockPullQuotation>;
7350 std::shared_ptr<RichText>
text { };
7365 using Ptr = std::shared_ptr<InputRichBlockSectionHeading>;
7376 std::shared_ptr<RichText>
text { };
7391 using Ptr = std::shared_ptr<InputRichBlockSlideshow>;
7402 std::vector<std::shared_ptr<InputRichBlock>>
blocks { };
7417 using Ptr = std::shared_ptr<InputRichBlockTable>;
7428 std::vector<std::vector<std::shared_ptr<RichBlockTableCell>>>
cells { };
7458 using Ptr = std::shared_ptr<InputRichBlockThinking>;
7470 std::shared_ptr<RichText>
text { };
7481 using Ptr = std::shared_ptr<InputRichBlockVideo>;
7492 std::shared_ptr<InputMediaVideo>
video { };
7507 using Ptr = std::shared_ptr<InputRichBlockVoiceNote>;
7534 using Ptr = std::shared_ptr<InputRichMessage>;
7539 std::optional<std::vector<std::shared_ptr<InputRichBlock>>>
blocks { };
7545 std::optional<std::string>
html { };
7556 std::optional<std::vector<std::shared_ptr<InputRichMessageMedia>>>
media { };
7577 using Ptr = std::shared_ptr<InputRichMessageContent>;
7593 using Ptr = std::shared_ptr<InputRichMessageMedia>;
7604 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaAudio>,
7605 std::shared_ptr<InputMediaDocument>, std::shared_ptr<InputMediaPhoto>,
7606 std::shared_ptr<InputMediaVideo>, std::shared_ptr<InputMediaVoiceNote>>
7620 using Ptr = std::shared_ptr<InputSharedWidgetMessageContent>;
7658 using Ptr = std::shared_ptr<InputSticker>;
7697 using Ptr = std::shared_ptr<InputStoryContent>;
7699 std::variant<std::shared_ptr<InputStoryContentPhoto>, std::shared_ptr<InputStoryContentVideo>>
value;
7710 using Ptr = std::shared_ptr<InputStoryContentPhoto>;
7735 using Ptr = std::shared_ptr<InputStoryContentVideo>;
7774 using Ptr = std::shared_ptr<InputTextMessageContent>;
7789 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
entities { };
7804 using Ptr = std::shared_ptr<InputVenueMessageContent>;
7851 using Ptr = std::shared_ptr<InputWidgetMessageContent>;
7918 using Ptr = std::shared_ptr<Invoice>;
7956 using Ptr = std::shared_ptr<KeyboardButton>;
8025 using Ptr = std::shared_ptr<KeyboardButtonPollType>;
8032 std::optional<std::string>
type { };
8045 using Ptr = std::shared_ptr<KeyboardButtonRequestChat>;
8113 using Ptr = std::shared_ptr<KeyboardButtonRequestManagedBot>;
8143 using Ptr = std::shared_ptr<KeyboardButtonRequestUsers>;
8186 using Ptr = std::shared_ptr<LabeledPrice>;
8209 using Ptr = std::shared_ptr<Link>;
8225 using Ptr = std::shared_ptr<LinkPreviewOptions>;
8235 std::optional<std::string>
url { };
8261 using Ptr = std::shared_ptr<LivePhoto>;
8266 std::optional<std::vector<std::shared_ptr<PhotoSize>>>
photo { };
8309 using Ptr = std::shared_ptr<Location>;
8348 using Ptr = std::shared_ptr<LocationAddress>;
8362 std::optional<std::string>
city { };
8380 using Ptr = std::shared_ptr<LoginUrl>;
8417 using Ptr = std::shared_ptr<ManagedBotCreated>;
8423 std::shared_ptr<User>
bot { };
8435 using Ptr = std::shared_ptr<ManagedBotUpdated>;
8445 std::shared_ptr<User>
bot { };
8456 using Ptr = std::shared_ptr<MaskPosition>;
8489 using Ptr = std::shared_ptr<MaybeInaccessibleMessage>;
8491 std::variant<std::shared_ptr<Message>, std::shared_ptr<InaccessibleMessage>>
value;
8505 using Ptr = std::shared_ptr<MenuButton>;
8507 std::variant<std::shared_ptr<MenuButtonCommands>, std::shared_ptr<MenuButtonWebApp>,
8508 std::shared_ptr<MenuButtonDefault>>
8520 using Ptr = std::shared_ptr<MenuButtonCommands>;
8538 using Ptr = std::shared_ptr<MenuButtonDefault>;
8556 using Ptr = std::shared_ptr<MenuButtonWebApp>;
8586 using Ptr = std::shared_ptr<Message>;
8758 std::optional<std::string>
text { };
8763 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
entities { };
8808 std::optional<std::vector<std::shared_ptr<PhotoSize>>>
photo { };
8979 std::shared_ptr<GiftInfo>
gift { };
9161 using Ptr = std::shared_ptr<MessageAutoDeleteTimerChanged>;
9178 using Ptr = std::shared_ptr<MessageEntity>;
9194 ExpandableBlockquote,
9229 std::optional<std::string>
url { };
9265 using Ptr = std::shared_ptr<MessageGenerationStopped>;
9289 using Ptr = std::shared_ptr<MessageId>;
9309 using Ptr = std::shared_ptr<MessageOrigin>;
9311 std::variant<std::shared_ptr<MessageOriginUser>, std::shared_ptr<MessageOriginHiddenUser>,
9312 std::shared_ptr<MessageOriginChat>, std::shared_ptr<MessageOriginChannel>>
9324 using Ptr = std::shared_ptr<MessageOriginChannel>;
9358 using Ptr = std::shared_ptr<MessageOriginChat>;
9389 using Ptr = std::shared_ptr<MessageOriginHiddenUser>;
9415 using Ptr = std::shared_ptr<MessageOriginUser>;
9441 using Ptr = std::shared_ptr<MessageReactionCountUpdated>;
9469 using Ptr = std::shared_ptr<MessageReactionUpdated>;
9509 using Ptr = std::shared_ptr<OrderInfo>;
9514 std::optional<std::string>
name { };
9538 using Ptr = std::shared_ptr<OwnedGift>;
9540 std::variant<std::shared_ptr<OwnedGiftRegular>, std::shared_ptr<OwnedGiftUnique>>
value;
9551 using Ptr = std::shared_ptr<OwnedGiftRegular>;
9579 std::optional<std::string>
text { };
9583 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
entities { };
9633 using Ptr = std::shared_ptr<OwnedGiftUnique>;
9644 std::shared_ptr<UniqueGift>
gift { };
9688 using Ptr = std::shared_ptr<OwnedGifts>;
9697 std::vector<std::shared_ptr<OwnedGift>>
gifts { };
9713 using Ptr = std::shared_ptr<PaidMedia>;
9715 std::variant<std::shared_ptr<PaidMediaLivePhoto>, std::shared_ptr<PaidMediaPhoto>,
9716 std::shared_ptr<PaidMediaPreview>, std::shared_ptr<PaidMediaVideo>>
9728 using Ptr = std::shared_ptr<PaidMediaInfo>;
9748 using Ptr = std::shared_ptr<PaidMediaLivePhoto>;
9770 using Ptr = std::shared_ptr<PaidMediaPhoto>;
9781 std::vector<std::shared_ptr<PhotoSize>>
photo { };
9792 using Ptr = std::shared_ptr<PaidMediaPreview>;
9822 using Ptr = std::shared_ptr<PaidMediaPurchased>;
9842 using Ptr = std::shared_ptr<PaidMediaVideo>;
9864 using Ptr = std::shared_ptr<PaidMessagePriceChanged>;
9883 using Ptr = std::shared_ptr<PaidMessagesWaived>;
9894 using Ptr = std::shared_ptr<PassportData>;
9900 std::vector<std::shared_ptr<EncryptedPassportElement>>
data { };
9919 using Ptr = std::shared_ptr<PassportElementError>;
9921 std::variant<std::shared_ptr<PassportElementErrorDataField>, std::shared_ptr<PassportElementErrorFrontSide>,
9922 std::shared_ptr<PassportElementErrorReverseSide>, std::shared_ptr<PassportElementErrorSelfie>,
9923 std::shared_ptr<PassportElementErrorFile>, std::shared_ptr<PassportElementErrorFiles>,
9924 std::shared_ptr<PassportElementErrorTranslationFile>,
9925 std::shared_ptr<PassportElementErrorTranslationFiles>,
9926 std::shared_ptr<PassportElementErrorUnspecified>>
9939 using Ptr = std::shared_ptr<PassportElementErrorDataField>;
9976 using Ptr = std::shared_ptr<PassportElementErrorFile>;
10008 using Ptr = std::shared_ptr<PassportElementErrorFiles>;
10040 using Ptr = std::shared_ptr<PassportElementErrorFrontSide>;
10072 using Ptr = std::shared_ptr<PassportElementErrorReverseSide>;
10104 using Ptr = std::shared_ptr<PassportElementErrorSelfie>;
10136 using Ptr = std::shared_ptr<PassportElementErrorTranslationFile>;
10169 using Ptr = std::shared_ptr<PassportElementErrorTranslationFiles>;
10202 using Ptr = std::shared_ptr<PassportElementErrorUnspecified>;
10233 using Ptr = std::shared_ptr<PassportFile>;
10262 using Ptr = std::shared_ptr<PhotoSize>;
10295 using Ptr = std::shared_ptr<Poll>;
10300 std::string
id { };
10400 using Ptr = std::shared_ptr<PollAnswer>;
10433 using Ptr = std::shared_ptr<PollMedia>;
10464 std::optional<std::vector<std::shared_ptr<PhotoSize>>>
photo { };
10488 using Ptr = std::shared_ptr<PollOption>;
10536 using Ptr = std::shared_ptr<PollOptionAdded>;
10566 using Ptr = std::shared_ptr<PollOptionDeleted>;
10596 using Ptr = std::shared_ptr<PreCheckoutQuery>;
10601 std::string
id { };
10639 using Ptr = std::shared_ptr<PreparedInlineMessage>;
10644 std::string
id { };
10660 using Ptr = std::shared_ptr<PreparedKeyboardButton>;
10665 std::string
id { };
10677 using Ptr = std::shared_ptr<ProximityAlertTriggered>;
10701 using Ptr = std::shared_ptr<ReactionCount>;
10706 std::shared_ptr<ReactionType>
type { };
10722 using Ptr = std::shared_ptr<ReactionType>;
10724 std::variant<std::shared_ptr<ReactionTypeEmoji>, std::shared_ptr<ReactionTypeCustomEmoji>,
10725 std::shared_ptr<ReactionTypePaid>>
10737 using Ptr = std::shared_ptr<ReactionTypeCustomEmoji>;
10759 using Ptr = std::shared_ptr<ReactionTypeEmoji>;
10784 using Ptr = std::shared_ptr<ReactionTypePaid>;
10802 using Ptr = std::shared_ptr<RefundedPayment>;
10840 using Ptr = std::shared_ptr<ReplyKeyboardMarkup>;
10845 std::vector<std::vector<std::shared_ptr<KeyboardButton>>>
keyboard { };
10898 using Ptr = std::shared_ptr<ReplyKeyboardRemove>;
10925 using Ptr = std::shared_ptr<ReplyParameters>;
10938 std::optional<std::variant<std::int64_t, std::string>>
chatId { };
11015 using Ptr = std::shared_ptr<ResponseParameters>;
11042 using Ptr = std::shared_ptr<RevenueWithdrawalState>;
11044 std::variant<std::shared_ptr<RevenueWithdrawalStatePending>, std::shared_ptr<RevenueWithdrawalStateSucceeded>,
11045 std::shared_ptr<RevenueWithdrawalStateFailed>>
11057 using Ptr = std::shared_ptr<RevenueWithdrawalStateFailed>;
11075 using Ptr = std::shared_ptr<RevenueWithdrawalStatePending>;
11093 using Ptr = std::shared_ptr<RevenueWithdrawalStateSucceeded>;
11125 using Ptr = std::shared_ptr<RichBlock>;
11127 std::variant<std::shared_ptr<RichBlockParagraph>, std::shared_ptr<RichBlockSectionHeading>,
11128 std::shared_ptr<RichBlockPreformatted>, std::shared_ptr<RichBlockFooter>,
11129 std::shared_ptr<RichBlockDivider>, std::shared_ptr<RichBlockMathematicalExpression>,
11130 std::shared_ptr<RichBlockAnchor>, std::shared_ptr<RichBlockList>,
11131 std::shared_ptr<RichBlockBlockQuotation>, std::shared_ptr<RichBlockExpandableBlockQuotation>,
11132 std::shared_ptr<RichBlockPullQuotation>, std::shared_ptr<RichBlockCollage>,
11133 std::shared_ptr<RichBlockSlideshow>, std::shared_ptr<RichBlockTable>,
11134 std::shared_ptr<RichBlockDetails>, std::shared_ptr<RichBlockMap>, std::shared_ptr<RichBlockButtons>,
11135 std::shared_ptr<RichBlockAnimation>, std::shared_ptr<RichBlockAudio>,
11136 std::shared_ptr<RichBlockDocument>, std::shared_ptr<RichBlockPhoto>, std::shared_ptr<RichBlockVideo>,
11137 std::shared_ptr<RichBlockVoiceNote>, std::shared_ptr<RichBlockThinking>>
11149 using Ptr = std::shared_ptr<RichBlockAnchor>;
11171 using Ptr = std::shared_ptr<RichBlockAnimation>;
11201 using Ptr = std::shared_ptr<RichBlockAudio>;
11227 using Ptr = std::shared_ptr<RichBlockBlockQuotation>;
11238 std::vector<std::shared_ptr<RichBlock>>
blocks { };
11254 using Ptr = std::shared_ptr<RichBlockButtons>;
11265 std::vector<std::shared_ptr<RichMessageButton>>
buttons { };
11281 using Ptr = std::shared_ptr<RichBlockCaption>;
11301 using Ptr = std::shared_ptr<RichBlockCollage>;
11312 std::vector<std::shared_ptr<RichBlock>>
blocks { };
11327 using Ptr = std::shared_ptr<RichBlockDetails>;
11342 std::vector<std::shared_ptr<RichBlock>>
blocks { };
11357 using Ptr = std::shared_ptr<RichBlockDivider>;
11375 using Ptr = std::shared_ptr<RichBlockDocument>;
11402 using Ptr = std::shared_ptr<RichBlockExpandableBlockQuotation>;
11428 using Ptr = std::shared_ptr<RichBlockFooter>;
11450 using Ptr = std::shared_ptr<RichBlockList>;
11461 std::vector<std::shared_ptr<RichBlockListItem>>
items { };
11472 using Ptr = std::shared_ptr<RichBlockListItem>;
11481 std::vector<std::shared_ptr<RichBlock>>
blocks { };
11510 using Ptr = std::shared_ptr<RichBlockMap>;
11549 using Ptr = std::shared_ptr<RichBlockMathematicalExpression>;
11571 using Ptr = std::shared_ptr<RichBlockParagraph>;
11593 using Ptr = std::shared_ptr<RichBlockPhoto>;
11604 std::vector<std::shared_ptr<PhotoSize>>
photo { };
11623 using Ptr = std::shared_ptr<RichBlockPreformatted>;
11649 using Ptr = std::shared_ptr<RichBlockPullQuotation>;
11675 using Ptr = std::shared_ptr<RichBlockSectionHeading>;
11701 using Ptr = std::shared_ptr<RichBlockSlideshow>;
11712 std::vector<std::shared_ptr<RichBlock>>
blocks { };
11727 using Ptr = std::shared_ptr<RichBlockTable>;
11738 std::vector<std::vector<std::shared_ptr<RichBlockTableCell>>>
cells { };
11765 using Ptr = std::shared_ptr<RichBlockTableCell>;
11805 using Ptr = std::shared_ptr<RichBlockThinking>;
11828 using Ptr = std::shared_ptr<RichBlockVideo>;
11858 using Ptr = std::shared_ptr<RichBlockVoiceNote>;
11884 using Ptr = std::shared_ptr<RichMessage>;
11889 std::vector<std::shared_ptr<RichBlock>>
blocks { };
11905 using Ptr = std::shared_ptr<RichMessageButton>;
11924 std::optional<std::string>
url { };
11989 using Ptr = std::shared_ptr<RichText>;
11992 std::shared_ptr<RichTextBold>, std::shared_ptr<RichTextItalic>, std::shared_ptr<RichTextUnderline>,
11993 std::shared_ptr<RichTextStrikethrough>, std::shared_ptr<RichTextSpoiler>, std::shared_ptr<RichTextDateTime>,
11994 std::shared_ptr<RichTextTextMention>, std::shared_ptr<RichTextSubscript>, std::shared_ptr<RichTextSuperscript>,
11995 std::shared_ptr<RichTextMarked>, std::shared_ptr<RichTextCode>, std::shared_ptr<RichTextCustomEmoji>,
11996 std::shared_ptr<RichTextMathematicalExpression>, std::shared_ptr<RichTextUrl>,
11997 std::shared_ptr<RichTextEmailAddress>, std::shared_ptr<RichTextPhoneNumber>,
11998 std::shared_ptr<RichTextBankCardNumber>, std::shared_ptr<RichTextMention>, std::shared_ptr<RichTextHashtag>,
11999 std::shared_ptr<RichTextCashtag>, std::shared_ptr<RichTextBotCommand>, std::shared_ptr<RichTextButton>,
12000 std::shared_ptr<RichTextAnchor>, std::shared_ptr<RichTextAnchorLink>, std::shared_ptr<RichTextReference>,
12001 std::shared_ptr<RichTextReferenceLink>, std::string, std::vector<std::shared_ptr<RichText>>,
12002 std::shared_ptr<RichTextTonAddress>>
12014 using Ptr = std::shared_ptr<RichTextAnchor>;
12036 using Ptr = std::shared_ptr<RichTextAnchorLink>;
12063 using Ptr = std::shared_ptr<RichTextBankCardNumber>;
12089 using Ptr = std::shared_ptr<RichTextBold>;
12111 using Ptr = std::shared_ptr<RichTextBotCommand>;
12137 using Ptr = std::shared_ptr<RichTextButton>;
12159 using Ptr = std::shared_ptr<RichTextCashtag>;
12185 using Ptr = std::shared_ptr<RichTextCode>;
12207 using Ptr = std::shared_ptr<RichTextCustomEmoji>;
12234 using Ptr = std::shared_ptr<RichTextDateTime>;
12265 using Ptr = std::shared_ptr<RichTextEmailAddress>;
12291 using Ptr = std::shared_ptr<RichTextHashtag>;
12317 using Ptr = std::shared_ptr<RichTextItalic>;
12339 using Ptr = std::shared_ptr<RichTextMarked>;
12361 using Ptr = std::shared_ptr<RichTextMathematicalExpression>;
12383 using Ptr = std::shared_ptr<RichTextMention>;
12409 using Ptr = std::shared_ptr<RichTextPhoneNumber>;
12435 using Ptr = std::shared_ptr<RichTextReference>;
12461 using Ptr = std::shared_ptr<RichTextReferenceLink>;
12487 using Ptr = std::shared_ptr<RichTextSpoiler>;
12509 using Ptr = std::shared_ptr<RichTextStrikethrough>;
12531 using Ptr = std::shared_ptr<RichTextSubscript>;
12553 using Ptr = std::shared_ptr<RichTextSuperscript>;
12575 using Ptr = std::shared_ptr<RichTextTextMention>;
12601 using Ptr = std::shared_ptr<RichTextTonAddress>;
12627 using Ptr = std::shared_ptr<RichTextUnderline>;
12649 using Ptr = std::shared_ptr<RichTextUrl>;
12675 using Ptr = std::shared_ptr<SentGuestMessage>;
12691 using Ptr = std::shared_ptr<SentWebAppMessage>;
12709 using Ptr = std::shared_ptr<SharedUser>;
12735 std::optional<std::vector<std::shared_ptr<PhotoSize>>>
photo { };
12748 using Ptr = std::shared_ptr<SharedWidgetQuery>;
12753 std::string
id { };
12761 std::shared_ptr<WidgetQueryType>
type { };
12780 using Ptr = std::shared_ptr<ShippingAddress>;
12816 using Ptr = std::shared_ptr<ShippingOption>;
12821 std::string
id { };
12829 std::vector<std::shared_ptr<LabeledPrice>>
prices { };
12840 using Ptr = std::shared_ptr<ShippingQuery>;
12845 std::string
id { };
12868 using Ptr = std::shared_ptr<StarAmount>;
12892 using Ptr = std::shared_ptr<StarTransaction>;
12900 std::string
id { };
12934 using Ptr = std::shared_ptr<StarTransactions>;
12950 using Ptr = std::shared_ptr<Sticker>;
12952 enum class Type { Regular, Mask, CustomEmoji };
13032 using Ptr = std::shared_ptr<StickerSet>;
13034 enum class Type { Regular, Mask, CustomEmoji };
13069 using Ptr = std::shared_ptr<Story>;
13078 std::uint32_t
id { };
13089 using Ptr = std::shared_ptr<StoryArea>;
13098 std::shared_ptr<StoryAreaType>
type { };
13111 using Ptr = std::shared_ptr<StoryAreaType>;
13113 std::variant<std::shared_ptr<StoryAreaTypeLocation>, std::shared_ptr<StoryAreaTypeSuggestedReaction>,
13114 std::shared_ptr<StoryAreaTypeLink>, std::shared_ptr<StoryAreaTypeWeather>,
13115 std::shared_ptr<StoryAreaTypeUniqueGift>>
13128 using Ptr = std::shared_ptr<StoryAreaTypeLink>;
13151 using Ptr = std::shared_ptr<StoryAreaTypeLocation>;
13182 using Ptr = std::shared_ptr<StoryAreaTypeSuggestedReaction>;
13213 using Ptr = std::shared_ptr<StoryAreaTypeUniqueGift>;
13236 using Ptr = std::shared_ptr<StoryAreaTypeWeather>;
13268 using Ptr = std::shared_ptr<SuccessfulPayment>;
13324 using Ptr = std::shared_ptr<SuggestedPostApprovalFailed>;
13335 std::shared_ptr<SuggestedPostPrice>
price { };
13346 using Ptr = std::shared_ptr<SuggestedPostApproved>;
13356 std::shared_ptr<SuggestedPostPrice>
price { };
13371 using Ptr = std::shared_ptr<SuggestedPostDeclined>;
13392 using Ptr = std::shared_ptr<SuggestedPostInfo>;
13402 std::shared_ptr<SuggestedPostPrice>
price { };
13419 using Ptr = std::shared_ptr<SuggestedPostPaid>;
13451 using Ptr = std::shared_ptr<SuggestedPostParameters>;
13456 std::shared_ptr<SuggestedPostPrice>
price { };
13474 using Ptr = std::shared_ptr<SuggestedPostPrice>;
13498 using Ptr = std::shared_ptr<SuggestedPostRefunded>;
13522 using Ptr = std::shared_ptr<SwitchInlineQueryChosenChat>;
13556 using Ptr = std::shared_ptr<TextQuote>;
13568 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
entities { };
13575 std::optional<std::vector<std::shared_ptr<RichText>>>
richTexts { };
13597 using Ptr = std::shared_ptr<TonNft>;
13622 std::optional<std::vector<std::shared_ptr<TonNftAttribute>>>
attributes { };
13637 using Ptr = std::shared_ptr<TonNftAttribute>;
13658 using Ptr = std::shared_ptr<TonWalletCard>;
13671 std::vector<std::shared_ptr<TonWalletCardSticker>>
stickers { };
13687 using Ptr = std::shared_ptr<TonWalletCardSticker>;
13707 using Ptr = std::shared_ptr<TonWalletTransfer>;
13739 using Ptr = std::shared_ptr<TransactionPartner>;
13741 std::variant<std::shared_ptr<TransactionPartnerUser>, std::shared_ptr<TransactionPartnerChat>,
13742 std::shared_ptr<TransactionPartnerAffiliateProgram>, std::shared_ptr<TransactionPartnerFragment>,
13743 std::shared_ptr<TransactionPartnerTelegramAds>, std::shared_ptr<TransactionPartnerTelegramApi>,
13744 std::shared_ptr<TransactionPartnerOther>>
13757 using Ptr = std::shared_ptr<TransactionPartnerAffiliateProgram>;
13784 using Ptr = std::shared_ptr<TransactionPartnerChat>;
13810 using Ptr = std::shared_ptr<TransactionPartnerFragment>;
13832 using Ptr = std::shared_ptr<TransactionPartnerOther>;
13850 using Ptr = std::shared_ptr<TransactionPartnerTelegramAds>;
13868 using Ptr = std::shared_ptr<TransactionPartnerTelegramApi>;
13890 using Ptr = std::shared_ptr<TransactionPartnerUser>;
13929 std::optional<std::vector<std::shared_ptr<PaidMedia>>>
paidMedia { };
13954 using Ptr = std::shared_ptr<UniqueGift>;
14019 using Ptr = std::shared_ptr<UniqueGiftBackdrop>;
14028 std::shared_ptr<UniqueGiftBackdropColors>
colors { };
14043 using Ptr = std::shared_ptr<UniqueGiftBackdropColors>;
14072 using Ptr = std::shared_ptr<UniqueGiftColors>;
14108 using Ptr = std::shared_ptr<UniqueGiftInfo>;
14128 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
entities { };
14169 using Ptr = std::shared_ptr<UniqueGiftModel>;
14199 using Ptr = std::shared_ptr<UniqueGiftSymbol>;
14224 using Ptr = std::shared_ptr<Update>;
14385 using Ptr = std::shared_ptr<User>;
14393 std::uint64_t
id { };
14478 using Ptr = std::shared_ptr<UserChatBoosts>;
14483 std::vector<std::shared_ptr<ChatBoost>>
boosts { };
14494 using Ptr = std::shared_ptr<UserProfileAudios>;
14514 using Ptr = std::shared_ptr<UserProfilePhotos>;
14523 std::vector<std::vector<std::shared_ptr<PhotoSize>>>
photos { };
14534 using Ptr = std::shared_ptr<UserRating>;
14566 using Ptr = std::shared_ptr<UsersShared>;
14575 std::vector<std::shared_ptr<SharedUser>>
users { };
14586 using Ptr = std::shared_ptr<Venue>;
14627 using Ptr = std::shared_ptr<Video>;
14657 std::optional<std::vector<std::shared_ptr<PhotoSize>>>
cover { };
14665 std::optional<std::vector<std::shared_ptr<VideoQuality>>>
qualities { };
14691 using Ptr = std::shared_ptr<VideoChatEnded>;
14707 using Ptr = std::shared_ptr<VideoChatParticipantsInvited>;
14712 std::vector<std::shared_ptr<User>>
users { };
14723 using Ptr = std::shared_ptr<VideoChatScheduled>;
14741 using Ptr = std::shared_ptr<VideoChatStarted>;
14752 using Ptr = std::shared_ptr<VideoNote>;
14789 using Ptr = std::shared_ptr<VideoQuality>;
14829 using Ptr = std::shared_ptr<Voice>;
14865 using Ptr = std::shared_ptr<WebAppData>;
14886 using Ptr = std::shared_ptr<WebAppInfo>;
14903 using Ptr = std::shared_ptr<WebhookInfo>;
14956 using Ptr = std::shared_ptr<Widget>;
14962 std::optional<std::string>
id { };
14998 using Ptr = std::shared_ptr<WidgetQuery>;
15003 std::string
id { };
15036 std::shared_ptr<WidgetQueryType>
type { };
15057 using Ptr = std::shared_ptr<WidgetQueryType>;
15059 std::variant<std::shared_ptr<WidgetQueryTypeData>, std::shared_ptr<WidgetQueryTypeSignData>,
15060 std::shared_ptr<WidgetQueryTypeSentTransaction>>
15072 using Ptr = std::shared_ptr<WidgetQueryTypeData>;
15096 using Ptr = std::shared_ptr<WidgetQueryTypeSentTransaction>;
15123 using Ptr = std::shared_ptr<WidgetQueryTypeSignData>;
15149 using Ptr = std::shared_ptr<WidgetQueryWallet>;
15180 using Ptr = std::shared_ptr<WriteAccessAllowed>;
15317 std::vector<std::shared_ptr<InlineQueryResult>>
results { };
15344 std::shared_ptr<InlineQueryResultsButton>
button =
nullptr;
15448 std::variant<std::int64_t, std::string>
chatId { };
15464 std::variant<std::int64_t, std::string>
chatId { };
15489 std::variant<std::int64_t, std::string>
chatId { };
15522 std::variant<std::int64_t, std::string>
chatId { };
15539 std::variant<std::int64_t, std::string>
chatId { };
15556 std::variant<std::int64_t, std::string>
chatId { };
15585 std::variant<std::int64_t, std::string>
chatId { };
15633 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
15634 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
15697 std::variant<std::int64_t, std::string>
chatId { };
15752 std::variant<std::int64_t, std::string>
chatId { };
15786 std::variant<std::int64_t, std::string>
chatId { };
15815 std::variant<std::int64_t, std::string>
chatId { };
15874 std::vector<std::shared_ptr<LabeledPrice>>
prices { };
16043 std::variant<std::int64_t, std::string>
chatId { };
16059 std::variant<std::int64_t, std::string>
chatId { };
16081 std::variant<std::int64_t, std::string>
chatId { };
16140 std::variant<std::int64_t, std::string>
chatId { };
16152 std::variant<std::int64_t, std::string>
chatId { };
16164 std::variant<std::int64_t, std::string>
chatId { };
16186 std::variant<std::int64_t, std::string>
chatId { };
16203 std::variant<std::int64_t, std::string>
chatId { };
16220 std::variant<std::int64_t, std::string>
chatId { };
16249 std::variant<std::int64_t, std::string>
chatId { };
16267 std::shared_ptr<BotCommandScope>
scope =
nullptr;
16335 std::variant<std::int64_t, std::string>
chatId { };
16374 std::variant<std::int64_t, std::string>
chatId { };
16396 std::variant<std::int64_t, std::string>
chatId { };
16446 std::variant<std::int64_t, std::string>
chatId { };
16485 std::variant<std::int64_t, std::string>
chatId { };
16512 std::variant<std::int64_t, std::string>
chatId { };
16534 std::vector<std::shared_ptr<MessageEntity>>
entities = { };
16567 std::variant<std::int64_t, std::string>
chatId { };
16598 std::variant<std::int64_t, std::string>
chatId { };
16616 std::variant<std::int64_t, std::string>
chatId = { };
16674 std::variant<std::int64_t, std::string>
chatId { };
16718 std::variant<std::int64_t, std::string>
chatId = { };
16786 std::variant<std::int64_t, std::string>
chatId = { };
16829 std::variant<std::int64_t, std::string>
chatId = { };
16871 std::variant<std::int64_t, std::string>
chatId = { };
16905 std::vector<std::shared_ptr<MessageEntity>>
entities = { };
16945 std::variant<std::int64_t, std::string>
chatId = { };
17013 std::vector<std::shared_ptr<StoryArea>>
areas = { };
17073 std::variant<std::int64_t, std::string>
chatId { };
17085 std::variant<std::int64_t, std::string>
chatId { };
17152 std::variant<std::int64_t, std::string>
chatId { };
17294 std::variant<std::int64_t, std::string>
chatId { };
17306 std::variant<std::int64_t, std::string>
chatId { };
17324 std::variant<std::int64_t, std::string>
chatId { };
17396 std::variant<std::int64_t, std::string>
chatId { };
17413 std::variant<std::int64_t, std::string>
chatId { };
17425 std::variant<std::uint64_t, std::string>
chatId = { };
17465 std::variant<std::int64_t, std::string>
chatId = { };
17512 std::shared_ptr<BotCommandScope>
scope =
nullptr;
17657 std::variant<std::int64_t, std::string>
chatId { };
17838 std::variant<std::int64_t, std::string>
chatId { };
17851 std::variant<std::int64_t, std::string>
chatId { };
17863 std::variant<std::int64_t, std::string>
chatId { };
17908 std::vector<std::shared_ptr<StoryArea>>
areas = { };
17955 std::variant<std::int64_t, std::string>
chatId { };
18079 std::variant<std::int64_t, std::string>
chatId { };
18137 std::variant<std::int64_t, std::string>
chatId { };
18160 std::variant<std::int64_t, std::string>
chatId { };
18177 std::variant<std::int64_t, std::string>
chatId { };
18274 std::variant<std::int64_t, std::string>
chatId { };
18313 std::variant<std::int64_t, std::string>
chatId { };
18384 std::variant<std::int64_t, std::string>
chatId { };
18393 std::variant<std::shared_ptr<InputFile>, std::string>
animation { };
18420 std::variant<std::shared_ptr<InputFile>, std::string>
thumbnail = { };
18438 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18439 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18542 std::variant<std::int64_t, std::string>
chatId { };
18550 std::variant<std::shared_ptr<InputFile>, std::string>
audio { };
18582 std::variant<std::shared_ptr<InputFile>, std::string>
thumbnail = { };
18594 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18595 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18688 std::variant<std::int64_t, std::string>
chatId { };
18739 std::variant<std::int64_t, std::string>
chatId { };
18789 std::variant<std::int64_t, std::string>
chatId { };
18827 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18828 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18902 std::variant<std::int64_t, std::string>
chatId { };
18920 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18921 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18987 std::variant<std::int64_t, std::string>
chatId { };
18995 std::variant<std::shared_ptr<InputFile>, std::string>
document { };
19007 std::variant<std::shared_ptr<InputFile>, std::string>
thumbnail = { };
19025 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19026 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19125 std::variant<std::int64_t, std::string>
chatId { };
19198 std::variant<std::int64_t, std::string>
chatId = { };
19242 std::variant<std::int64_t, std::string>
chatId { };
19277 std::vector<std::shared_ptr<LabeledPrice>>
prices { };
19447 std::variant<std::int64_t, std::string>
chatId { };
19456 std::variant<std::shared_ptr<InputFile>, std::string>
livePhoto { };
19464 std::variant<std::shared_ptr<InputFile>, std::string>
photo { };
19547 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19548 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19586 std::variant<std::int64_t, std::string>
chatId { };
19616 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19617 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19715 std::variant<std::int64_t, std::string>
chatId { };
19721 std::vector<std::variant<std::shared_ptr<InputMediaAudio>, std::shared_ptr<InputMediaDocument>,
19722 std::shared_ptr<InputMediaLivePhoto>, std::shared_ptr<InputMediaPhoto>,
19723 std::shared_ptr<InputMediaVideo>>>
19792 std::variant<std::int64_t, std::string>
chatId { };
19814 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19815 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19834 std::vector<std::shared_ptr<MessageEntity>>
entities = { };
19906 std::variant<std::uint64_t, std::string>
chatId { };
19919 std::vector<std::shared_ptr<MessageEntity>>
entities = { };
19966 std::variant<std::int64_t, std::string>
chatId { };
19971 std::vector<std::shared_ptr<InputPaidMedia>>
media { };
20044 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20045 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20084 std::variant<std::int64_t, std::string>
chatId { };
20094 std::variant<std::shared_ptr<InputFile>, std::string>
photo { };
20112 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20113 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20216 std::variant<std::int64_t, std::string>
chatId { };
20226 std::vector<std::shared_ptr<InputPollOption>>
options { };
20244 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20245 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20384 std::shared_ptr<InputPollMedia>
media =
nullptr;
20427 std::variant<std::int64_t, std::string>
chatId { };
20483 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20484 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20522 std::variant<std::uint64_t, std::string>
chatId { };
20567 std::variant<std::int64_t, std::string>
chatId { };
20632 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20633 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20657 std::variant<std::int64_t, std::string>
chatId { };
20667 std::variant<std::shared_ptr<InputFile>, std::string>
sticker { };
20679 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20680 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20766 std::variant<std::int64_t, std::string>
chatId { };
20816 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20817 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20902 std::variant<std::int64_t, std::string>
chatId { };
20910 std::variant<std::shared_ptr<InputFile>, std::string>
video { };
20942 std::variant<std::shared_ptr<InputFile>, std::string>
thumbnail = { };
20960 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20961 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
21024 std::variant<std::shared_ptr<InputFile>, std::string>
cover = { };
21078 std::variant<std::int64_t, std::string>
chatId { };
21086 std::variant<std::shared_ptr<InputFile>, std::string>
videoNote { };
21119 std::variant<std::shared_ptr<InputFile>, std::string>
thumbnail = { };
21126 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
21127 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
21202 std::variant<std::int64_t, std::string>
chatId { };
21210 std::variant<std::shared_ptr<InputFile>, std::string>
voice { };
21232 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
21233 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
21325 std::variant<std::int64_t, std::string>
chatId { };
21415 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
21416 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
21510 std::shared_ptr<InputProfilePhoto>
photo { };
21552 std::variant<std::int64_t, std::string>
chatId { };
21575 std::variant<std::int64_t, std::string>
chatId { };
21592 std::variant<std::int64_t, std::string>
chatId { };
21614 std::variant<std::uint64_t, std::string>
chatId = { };
21632 std::variant<std::int64_t, std::string>
chatId { };
21659 std::variant<std::int64_t, std::string>
chatId { };
21664 std::variant<std::shared_ptr<InputFile>, std::string>
photo { };
21676 std::variant<std::int64_t, std::string>
chatId { };
21693 std::variant<std::int64_t, std::string>
chatId { };
21749 std::variant<std::int64_t, std::string>
chatId = { };
21797 std::variant<std::int64_t, std::string>
chatId { };
21836 std::shared_ptr<BotCommandScope>
scope =
nullptr;
21855 std::shared_ptr<ChatAdministratorRights>
rights =
nullptr;
21910 std::shared_ptr<InputProfilePhoto>
photo { };
21952 std::vector<std::shared_ptr<PassportElementError>>
errors { };
22057 std::variant<std::shared_ptr<InputFile>, std::string>
thumbnail = { };
22166 std::variant<std::int64_t, std::string>
chatId = { };
22201 std::variant<std::int64_t, std::string>
chatId { };
22274 std::variant<std::int64_t, std::string>
chatId { };
22296 std::variant<std::int64_t, std::string>
chatId { };
22313 std::variant<std::int64_t, std::string>
chatId { };
22325 std::variant<std::int64_t, std::string>
chatId { };
22337 std::variant<std::int64_t, std::string>
chatId { };
22354 std::variant<std::int64_t, std::string>
chatId { };
22366 std::variant<std::int64_t, std::string>
chatId { };
22428 std::variant<std::shared_ptr<InputFile>, std::string>
sticker { };
22446 std::variant<std::int64_t, std::string>
chatId { };
TGBOT_API void to_json(nlohmann::json &json, const AcceptedGiftTypes &value)
AreaPosition StoryAreaPosition
TGBOT_API void from_json(const nlohmann::json &json, AcceptedGiftTypes &value)
This object describes the types of gifts that can be gifted to a user or a chat.
bool unlimitedGifts
True, if unlimited regular gifts are accepted.
bool giftsFromChannels
True, if transfers of unique gifts from channels are accepted.
std::shared_ptr< AcceptedGiftTypes > Ptr
bool limitedGifts
True, if limited regular gifts are accepted.
bool uniqueGifts
True, if unique gifts or gifts that can be upgraded to unique for free are accepted.
bool premiumSubscription
True, if a Telegram Premium subscription is accepted.
Arguments for Api::addStickerToSet.
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
std::string name
Sticker set name.
std::shared_ptr< InputSticker > sticker
A JSON-serialized object with information about the added sticker. If exactly the same sticker had al...
std::uint64_t userId
User identifier of sticker set owner.
Contains information about the affiliate that received a commission via this transaction.
std::shared_ptr< Chat > affiliateChat
Optional. The chat that received an affiliate commission if it was received by a chat.
std::shared_ptr< AffiliateInfo > Ptr
std::int64_t amount
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be...
std::optional< std::int32_t > nanostarAmount
Optional. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999...
std::shared_ptr< User > affiliateUser
Optional. The bot or the user that received an affiliate commission if it was received by a bot or a ...
std::uint32_t commissionPerMille
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the b...
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
std::optional< std::string > fileName
Optional. Original animation filename as defined by the sender.
std::uint32_t height
Video height as defined by the sender.
std::shared_ptr< Animation > Ptr
std::shared_ptr< PhotoSize > thumbnail
Optional. Animation thumbnail as defined by the sender.
std::uint32_t duration
Duration of the video in seconds as defined by the sender.
std::uint32_t width
Video width as defined by the sender.
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Arguments for Api::answerCallbackQuery.
std::uint32_t cacheTime
The maximum amount of time in seconds that the result of the callback query may be cached client-side...
std::string text
Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters.
std::string url
URL that will be opened by the user's client. If you have created a Game and accepted the conditions ...
std::string callbackQueryId
Unique identifier for the query to be answered.
bool showAlert
If True, an alert will be shown by the client instead of a notification at the top of the chat screen...
Arguments for Api::answerChatJoinRequestQuery.
std::string result
Result of the query. Must be either “approve” to allow the user to join the chat, “decline” to disall...
std::string chatJoinRequestQueryId
Unique identifier of the join request query.
Arguments for Api::answerGuestQuery.
std::shared_ptr< InlineQueryResult > result
A JSON-serialized object describing the message to be sent.
std::string guestQueryId
Unique identifier for the query to be answered.
Arguments for Api::answerInlineQuery.
std::vector< std::shared_ptr< InlineQueryResult > > results
A JSON-serialized Array of results for the inline query.
std::uint32_t cacheTime
The maximum amount of time in seconds that the result of the inline query may be cached on the server...
std::string inlineQueryId
Unique identifier for the answered query.
std::string nextOffset
Pass the offset that a client should send in the next query with the same text to receive more result...
bool isPersonal
Pass True if results may be cached on the server side only for the user that sent the query....
std::shared_ptr< InlineQueryResultsButton > button
A JSON-serialized object describing a button to be shown above inline query results.
Arguments for Api::answerPreCheckoutQuery.
std::string errorMessage
Required if ok is False. Error message in human readable form that explains the reason for failure to...
std::string preCheckoutQueryId
Unique identifier for the query to be answered.
bool ok
Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed wit...
Arguments for Api::answerShippingQuery.
std::vector< std::shared_ptr< ShippingOption > > shippingOptions
Required if ok is True. A JSON-serialized Array of available shipping options.
std::string shippingQueryId
Unique identifier for the query to be answered.
std::string errorMessage
Required if ok is False. Error message in human readable form that explains why it is impossible to c...
bool ok
Pass True if delivery to the specified address is possible and False if there are any problems (for e...
Arguments for Api::answerWebAppQuery.
std::string webAppQueryId
Unique identifier for the query to be answered.
std::shared_ptr< InlineQueryResult > result
A JSON-serialized object describing the message to be sent.
Arguments for Api::approveChatJoinRequest.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
std::uint64_t userId
Unique identifier of the target user.
Arguments for Api::approveSuggestedPost.
std::uint32_t messageId
Identifier of a suggested post message to approve.
std::int32_t sendDate
Point in time (Unix timestamp) when the post is expected to be published; omit if the date has alread...
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target direct messages chat.
Describes the position of a rectangle area on a story media or a TON wallet card.
double widthPercentage
The width of the area's rectangle, as a percentage of the media or the card width.
double cornerRadiusPercentage
The radius of the rectangle corner rounding, as a percentage of the media or the card width.
double yPercentage
The ordinate of the area's center, as a percentage of the media or the card height.
double rotationAngle
The clockwise rotation angle of the rectangle, in degrees; 0-360.
double heightPercentage
The height of the area's rectangle, as a percentage of the media or the card height.
std::shared_ptr< AreaPosition > Ptr
double xPercentage
The abscissa of the area's center, as a percentage of the media or the card width.
This object represents an audio file to be treated as music by the Telegram clients.
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
std::optional< std::string > performer
Optional. Performer of the audio as defined by the sender or by audio tags.
std::optional< std::string > title
Optional. Title of the audio as defined by the sender or by audio tags.
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
std::shared_ptr< Audio > Ptr
std::optional< std::string > fileName
Optional. Original filename as defined by the sender.
std::shared_ptr< PhotoSize > thumbnail
Optional. Thumbnail of the album cover to which the music file belongs.
std::uint32_t duration
Duration of the audio in seconds as defined by the sender.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
The background is a gradient fill.
static TGBOT_API const std::string TYPE
std::string type
Type of the background fill, always “gradient”
std::uint32_t bottomColor
Bottom color of the gradient in the RGB24 format.
std::uint32_t rotationAngle
Clockwise rotation angle of the background fill in degrees; 0-359.
std::uint32_t topColor
Top color of the gradient in the RGB24 format.
std::shared_ptr< BackgroundFillGradient > Ptr
This object describes the way a background is filled based on the selected colors....
std::shared_ptr< BackgroundFill > Ptr
std::variant< std::shared_ptr< BackgroundFillSolid >, std::shared_ptr< BackgroundFillGradient >, std::shared_ptr< BackgroundFillFreeformGradient > > value
The background is filled using the selected color.
static TGBOT_API const std::string TYPE
std::uint32_t color
The color of the background fill in the RGB24 format.
std::shared_ptr< BackgroundFillSolid > Ptr
std::string type
Type of the background fill, always “solid”
The background is taken directly from a built-in chat theme.
std::string themeName
Name of the chat theme, which is usually an emoji.
static TGBOT_API const std::string TYPE
std::string type
Type of the background, always “chat_theme”
std::shared_ptr< BackgroundTypeChatTheme > Ptr
The background is automatically filled based on the selected colors.
std::shared_ptr< BackgroundTypeFill > Ptr
std::shared_ptr< BackgroundFill > fill
The background fill.
std::string type
Type of the background, always “fill”
std::uint32_t darkThemeDimming
Dimming of the background in dark themes, as a percentage; 0-100.
static TGBOT_API const std::string TYPE
This object describes the type of a background. Currently, it can be one of BackgroundTypeFill Backgr...
std::variant< std::shared_ptr< BackgroundTypeFill >, std::shared_ptr< BackgroundTypeWallpaper >, std::shared_ptr< BackgroundTypePattern >, std::shared_ptr< BackgroundTypeChatTheme > > value
std::shared_ptr< BackgroundType > Ptr
The background is a .PNG or .TGV (gzipped subset of SVG with MIME type “application/x-tgwallpattern”)...
std::shared_ptr< BackgroundTypePattern > Ptr
std::shared_ptr< BackgroundFill > fill
The background fill that is combined with the pattern.
std::shared_ptr< Document > document
Document with the pattern.
std::uint32_t intensity
Intensity of the pattern when it is shown above the filled background; 0-100.
std::optional< bool > isInverted
Optional. True, if the background fill must be applied only to the pattern itself....
static TGBOT_API const std::string TYPE
std::string type
Type of the background, always “pattern”
std::optional< bool > isMoving
Optional. True, if the background moves slightly when the device is tilted.
The background is a wallpaper in the JPEG format.
std::optional< bool > isBlurred
Optional. True, if the wallpaper is downscaled to fit in a 450x450 square and then box- blurred with ...
std::optional< bool > isMoving
Optional. True, if the background moves slightly when the device is tilted.
std::string type
Type of the background, always “wallpaper”
std::shared_ptr< BackgroundTypeWallpaper > Ptr
std::shared_ptr< Document > document
Document with the wallpaper.
static TGBOT_API const std::string TYPE
std::uint32_t darkThemeDimming
Dimming of the background in dark themes, as a percentage; 0-100.
Arguments for Api::banChatMember.
bool revokeMessages
Pass True to delete all messages from the chat for the user that is being removed....
std::uint64_t userId
Unique identifier of the target user.
std::int32_t untilDate
Date when the user will be unbanned; Unix time. If user is banned for more than 366 days or less than...
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target group or username of the target supergroup or channel in the format ...
Arguments for Api::banChatSenderChat.
std::int64_t senderChatId
Unique identifier of the target sender chat.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Describes the birthdate of a user.
std::uint32_t month
Month of the user's birth; 1-12.
std::optional< std::uint32_t > year
Optional. Year of the user's birth.
std::uint32_t day
Day of the user's birth; 1-31.
std::shared_ptr< Birthdate > Ptr
This object describes the access settings of a bot.
std::shared_ptr< BotAccessSettings > Ptr
bool isAccessRestricted
True, if only selected users can access the bot. The bot's owner can always access it.
std::optional< std::vector< std::shared_ptr< User > > > addedUsers
Optional. The list of other users who have access to the bot if the access is restricted.
This object represents a bot command.
std::string command
Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and undersco...
std::shared_ptr< BotCommand > Ptr
std::string description
Description of the command; 1-256 characters.
std::optional< bool > isEphemeral
Optional. True, if the command sends an ephemeral message, which can be seen only by the sender of th...
Represents the scope of bot commands, covering all group and supergroup chat administrators.
std::shared_ptr< BotCommandScopeAllChatAdministrators > Ptr
std::string type
Scope type, must be all_chat_administrators.
static TGBOT_API const std::string TYPE
Represents the scope of bot commands, covering all group and supergroup chats.
std::shared_ptr< BotCommandScopeAllGroupChats > Ptr
static TGBOT_API const std::string TYPE
std::string type
Scope type, must be all_group_chats.
Represents the scope of bot commands, covering all private chats.
std::shared_ptr< BotCommandScopeAllPrivateChats > Ptr
static TGBOT_API const std::string TYPE
std::string type
Scope type, must be all_private_chats.
Represents the scope of bot commands, covering all administrators of a specific group or supergroup c...
static TGBOT_API const std::string TYPE
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username....
std::string type
Scope type, must be chat_administrators.
std::shared_ptr< BotCommandScopeChatAdministrators > Ptr
Represents the scope of bot commands, covering a specific chat.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username....
static TGBOT_API const std::string TYPE
std::shared_ptr< BotCommandScopeChat > Ptr
std::string type
Scope type, must be chat.
Represents the scope of bot commands, covering a specific member of a group or supergroup chat.
std::shared_ptr< BotCommandScopeChatMember > Ptr
static TGBOT_API const std::string TYPE
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username....
std::uint64_t userId
Unique identifier of the target user.
std::string type
Scope type, must be chat_member.
Represents the default scope of bot commands. Default commands are used if no commands with a narrowe...
std::shared_ptr< BotCommandScopeDefault > Ptr
std::string type
Scope type, must be default.
static TGBOT_API const std::string TYPE
This object represents the scope to which bot commands are applied. Currently, the following 7 scopes...
std::shared_ptr< BotCommandScope > Ptr
std::variant< std::shared_ptr< BotCommandScopeDefault >, std::shared_ptr< BotCommandScopeAllPrivateChats >, std::shared_ptr< BotCommandScopeAllGroupChats >, std::shared_ptr< BotCommandScopeAllChatAdministrators >, std::shared_ptr< BotCommandScopeChat >, std::shared_ptr< BotCommandScopeChatAdministrators >, std::shared_ptr< BotCommandScopeChatMember > > value
This object represents the bot's description.
std::string description
The bot's description.
std::shared_ptr< BotDescription > Ptr
This object represents the bot's name.
std::string name
The bot's name.
std::shared_ptr< BotName > Ptr
This object represents the bot's short description.
std::shared_ptr< BotShortDescription > Ptr
std::string shortDescription
The bot's short description.
This object contains information about changes to a user payment subscription toward the current bot.
std::string invoicePayload
Bot-specified invoice payload.
std::string state
The new state of the subscription. Currently, it can be one of “canceled” if the user canceled the su...
std::shared_ptr< User > user
User who subscribed for payments toward the bot.
std::shared_ptr< BotSubscriptionUpdated > Ptr
Represents the rights of a business bot.
std::optional< bool > canViewGiftsAndStars
Optional. True, if the bot can view gifts and the amount of Telegram Stars owned by the business acco...
std::shared_ptr< BusinessBotRights > Ptr
std::optional< bool > canEditUsername
Optional. True, if the bot can edit the username of the business account.
std::optional< bool > canDeleteAllMessages
Optional. True, if the bot can delete all private messages in managed chats.
std::optional< bool > canManageStories
Optional. True, if the bot can post, edit and delete stories on behalf of the business account.
std::optional< bool > canEditProfilePhoto
Optional. True, if the bot can edit the profile photo of the business account.
std::optional< bool > canEditName
Optional. True, if the bot can edit the first and last name of the business account.
std::optional< bool > canTransferAndUpgradeGifts
Optional. True, if the bot can transfer and upgrade gifts owned by the business account.
std::optional< bool > canChangeGiftSettings
Optional. True, if the bot can change the privacy settings pertaining to gifts for the business accou...
std::optional< bool > canTransferStars
Optional. True, if the bot can transfer Telegram Stars received by the business account to its own ac...
std::optional< bool > canDeleteSentMessages
Optional. True, if the bot can delete messages sent by the bot.
std::optional< bool > canReply
Optional. True, if the bot can send and edit messages in the private chats that had incoming messages...
std::optional< bool > canConvertGiftsToStars
Optional. True, if the bot can convert regular gifts owned by the business account to Telegram Stars.
std::optional< bool > canReadMessages
Optional. True, if the bot can mark incoming private messages as read.
std::optional< bool > canEditBio
Optional. True, if the bot can edit the bio of the business account.
Describes the connection of the bot with a business account.
std::shared_ptr< User > user
Business account user that created the business connection.
bool isEnabled
True, if the connection is active.
std::int32_t date
Date the connection was established in Unix time.
std::shared_ptr< BusinessBotRights > rights
Optional. Rights of the business bot.
std::shared_ptr< BusinessConnection > Ptr
std::uint64_t userChatId
Identifier of a private chat with the user who created the business connection. This number may have ...
Contains information about the start page settings of a Telegram Business account.
std::shared_ptr< BusinessIntro > Ptr
std::optional< std::string > message
Optional. Message text of the business intro.
std::optional< std::string > title
Optional. Title text of the business intro.
std::shared_ptr< Sticker > sticker
Optional. Sticker of the business intro.
Contains information about the location of a Telegram Business account.
std::shared_ptr< BusinessLocation > Ptr
std::shared_ptr< Location > location
Optional. Location of the business.
std::string address
Address of the business.
This object is received when messages are deleted from a connected business account.
std::string businessConnectionId
Unique identifier of the business connection.
std::shared_ptr< BusinessMessagesDeleted > Ptr
std::shared_ptr< Chat > chat
Information about a chat in the business account. The bot may not have access to the chat or the corr...
std::vector< std::uint32_t > messageIds
The list of identifiers of deleted messages in the chat of the business account.
Describes the opening hours of a business.
std::string timeZoneName
Unique name of the time zone for which the opening hours are defined.
std::shared_ptr< BusinessOpeningHours > Ptr
std::vector< std::shared_ptr< BusinessOpeningHoursInterval > > openingHours
List of time intervals describing business opening hours.
Describes an interval of time during which a business is open.
std::uint32_t openingMinute
The minute's sequence number in a week, starting on Monday, marking the start of the time interval du...
std::uint32_t closingMinute
The minute's sequence number in a week, starting on Monday, marking the end of the time interval duri...
std::shared_ptr< BusinessOpeningHoursInterval > Ptr
A placeholder, currently holds no information. Use BotFather to set up your game.
std::shared_ptr< CallbackGame > Ptr
This object represents an incoming callback query from a callback button in an inline keyboard....
std::string chatInstance
Global identifier, uniquely corresponding to the chat to which the message with the callback button w...
std::shared_ptr< CallbackQuery > Ptr
std::shared_ptr< MaybeInaccessibleMessage > message
Optional. Message sent by the bot with the callback button that originated the query.
std::shared_ptr< User > from
Sender.
std::optional< std::string > data
Optional. Data associated with the callback button. Be aware that the message originated the query ca...
std::optional< std::string > inlineMessageId
Optional. Identifier of the message sent via the bot in inline mode, that originated the query.
std::optional< std::string > gameShortName
Optional. Short name of a Game to be returned, serves as the unique identifier for the game.
Represents the rights of an administrator in a chat.
std::optional< bool > canPinMessages
Optional. True, if the user is allowed to pin messages; for groups and supergroups only.
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
bool canManageVideoChats
True, if the administrator can manage video chats.
bool canEditStories
True, if the administrator can edit stories posted by other users, post stories to the chat page,...
std::optional< bool > canManageTopics
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergr...
std::optional< bool > canManageDirectMessages
Optional. True, if the administrator can manage direct messages of the channel and decline suggested ...
bool canDeleteStories
True, if the administrator can delete stories posted by other users.
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
std::optional< bool > canEditMessages
Optional. True, if the administrator can edit messages of other users and can pin messages; for chann...
bool canSendWelcomeMessages
True, if the administrator can manage chat welcome messages or directly send them in the case of bots...
bool canPromoteMembers
True, if the administrator can add new administrators with a subset of their own privileges or demote...
bool canDeleteMessages
True, if the administrator can delete messages of other users.
bool canManageChat
True, if the administrator can access the chat event log, get boost list, see hidden supergroup and c...
std::optional< bool > canPostMessages
Optional. True, if the administrator can post messages in the channel, approve suggested posts,...
std::optional< bool > canManageTags
Optional. True, if the administrator can edit the tags of regular members; for groups and supergroups...
bool isAnonymous
True, if the user's presence in the chat is hidden.
bool canRestrictMembers
True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics.
std::shared_ptr< ChatAdministratorRights > Ptr
bool canPostStories
True, if the administrator can post stories to the chat.
This object represents a chat background.
std::shared_ptr< BackgroundType > type
Type of the background.
std::shared_ptr< ChatBackground > Ptr
This object represents a service message about a user boosting a chat.
std::uint32_t boostCount
Number of boosts added by the user.
std::shared_ptr< ChatBoostAdded > Ptr
This object contains information about a chat boost.
std::int32_t expirationDate
Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegra...
std::string boostId
Unique identifier of the boost.
std::shared_ptr< ChatBoostSource > source
Source of the added boost.
std::int32_t addDate
Point in time (Unix timestamp) when the chat was boosted.
std::shared_ptr< ChatBoost > Ptr
This object represents a boost removed from a chat.
std::shared_ptr< ChatBoostRemoved > Ptr
std::shared_ptr< Chat > chat
Chat which was boosted.
std::shared_ptr< ChatBoostSource > source
Source of the removed boost.
std::string boostId
Unique identifier of the boost.
std::int32_t removeDate
Point in time (Unix timestamp) when the boost was removed.
The boost was obtained by the creation of Telegram Premium gift codes to boost a chat....
std::shared_ptr< ChatBoostSourceGiftCode > Ptr
std::shared_ptr< User > user
User for which the gift code was created.
std::string source
Source of the boost, always “gift_code”
static TGBOT_API const std::string SOURCE
The boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway....
std::shared_ptr< User > user
Optional. User that won the prize in the giveaway if any; for Telegram Premium giveaways only.
std::uint32_t giveawayMessageId
Identifier of a message in the chat with the giveaway; the message could have been deleted already....
std::optional< bool > isUnclaimed
Optional. True, if the giveaway was completed, but there was no user to win the prize.
std::shared_ptr< ChatBoostSourceGiveaway > Ptr
static TGBOT_API const std::string SOURCE
std::optional< std::uint32_t > prizeStarCount
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaw...
std::string source
Source of the boost, always “giveaway”
This object describes the source of a chat boost. It can be one of ChatBoostSourcePremium ChatBoostSo...
std::shared_ptr< ChatBoostSource > Ptr
std::variant< std::shared_ptr< ChatBoostSourcePremium >, std::shared_ptr< ChatBoostSourceGiftCode >, std::shared_ptr< ChatBoostSourceGiveaway > > value
The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscripti...
std::shared_ptr< User > user
User that boosted the chat.
std::shared_ptr< ChatBoostSourcePremium > Ptr
std::string source
Source of the boost, always “premium”
static TGBOT_API const std::string SOURCE
This object represents a boost added to a chat or changed.
std::shared_ptr< ChatBoostUpdated > Ptr
std::shared_ptr< ChatBoost > boost
Information about the chat boost.
std::shared_ptr< Chat > chat
Chat which was boosted.
This object contains full information about a chat.
std::optional< std::uint32_t > unrestrictBoostCount
Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in...
std::shared_ptr< Message > pinnedMessage
Optional. The most recent pinned message (by sending date).
std::string type
Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
std::shared_ptr< Audio > firstProfileAudio
Optional. For private chats, the first audio added to the profile of the user.
std::shared_ptr< UserRating > rating
Optional. For private chats, the rating of the user if any.
std::optional< std::int64_t > linkedChatId
Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel a...
std::optional< bool > hasRestrictedVoiceAndVideoMessages
Optional. True, if the privacy settings of the other party restrict sending voice and video note mess...
std::shared_ptr< Chat > personalChat
Optional. For private chats, the personal channel of the user.
std::optional< std::string > backgroundCustomEmojiId
Optional. Custom emoji identifier of the emoji chosen by the chat for the reply header and link previ...
std::optional< std::string > inviteLink
Optional. Primary invite link, for groups, supergroups and channel chats.
std::shared_ptr< ChatFullInfo > Ptr
std::optional< std::string > description
Optional. Description, for groups, supergroups and channel chats.
std::shared_ptr< User > guardBot
Optional. The bot that processes join request queries in the chat. The field is only available to cha...
std::optional< std::int32_t > emojiStatusExpirationDate
Optional. Expiration date of the emoji status of the chat or the other party in a private chat,...
std::optional< bool > hasVisibleHistory
Optional. True, if new chat members will have access to old messages; available only to chat administ...
std::optional< std::vector< std::shared_ptr< ReactionType > > > availableReactions
Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are a...
std::optional< std::string > customEmojiStickerSetName
Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this s...
std::optional< std::uint32_t > messageAutoDeleteTime
Optional. The time after which all messages sent to the chat will be automatically deleted; in second...
std::optional< std::uint32_t > paidMessageStarCount
Optional. The number of Telegram Stars a general user has to pay to send a message to the chat.
std::optional< std::string > bio
Optional. Bio of the other party in a private chat.
std::optional< std::string > profileBackgroundCustomEmojiId
Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background.
std::optional< std::string > username
Optional. Username, for private chats, supergroups and channels if available.
std::optional< std::string > title
Optional. Title, for supergroups, channels and group chats.
std::shared_ptr< ChatLocation > location
Optional. For supergroups, the location to which the supergroup is connected.
std::shared_ptr< AcceptedGiftTypes > acceptedGiftTypes
Information about types of gifts that are accepted by the chat or by the corresponding user for priva...
std::shared_ptr< ChatPermissions > permissions
Optional. Default chat member permissions, for groups and supergroups.
std::shared_ptr< Community > community
Optional. The Community to which the chat belongs.
std::shared_ptr< TonWalletCard > tonWalletCard
Optional. For private chats, the TON wallet card of the user, which is shown on their profile page.
std::optional< bool > hasHiddenMembers
Optional. True, if non-administrators can only get the list of bots and administrators in the chat.
std::shared_ptr< BusinessLocation > businessLocation
Optional. For private chats with business accounts, the location of the business.
std::shared_ptr< Chat > parentChat
Optional. Information about the corresponding channel chat; for direct messages chats only.
std::shared_ptr< UniqueGiftColors > uniqueGiftColors
Optional. The color scheme based on a unique gift that must be used for the chat's name,...
std::optional< std::string > firstName
Optional. First name of the other party in a private chat.
std::optional< bool > hasProtectedContent
Optional. True, if messages from the chat can't be forwarded to other chats.
std::optional< std::uint32_t > slowModeDelay
Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriv...
std::shared_ptr< BusinessIntro > businessIntro
Optional. For private chats with business accounts, the intro of the business.
std::optional< bool > hasAggressiveAntiSpamEnabled
Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only avail...
std::optional< std::string > lastName
Optional. Last name of the other party in a private chat.
std::uint32_t accentColorId
Identifier of the accent color for the chat name and backgrounds of the chat photo,...
std::shared_ptr< ChatPhoto > photo
Optional. Chat photo.
std::optional< bool > isDirectMessages
Optional. True, if the chat is the direct messages chat of a channel.
std::optional< bool > isForum
Optional. True, if the supergroup chat is a forum (has topics enabled).
std::optional< std::string > emojiStatusCustomEmojiId
Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private cha...
std::optional< bool > joinByRequest
Optional. True, if all users directly joining the supergroup without using an invite link need to be ...
std::uint32_t maxReactionCount
The maximum number of reactions that can be set on a message in the chat.
std::optional< std::vector< std::string > > activeUsernames
Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and cha...
std::optional< bool > canSetStickerSet
Optional. True, if the bot can change the group sticker set.
std::optional< std::string > stickerSetName
Optional. For supergroups, name of the group sticker set.
std::optional< std::uint32_t > profileAccentColorId
Optional. Identifier of the accent color for the chat's profile background. See profile accent colors...
std::shared_ptr< Birthdate > birthdate
Optional. For private chats, the date of birth of the user.
std::shared_ptr< BusinessOpeningHours > businessOpeningHours
Optional. For private chats with business accounts, the opening hours of the business.
std::optional< bool > hasPrivateForwards
Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?...
std::optional< bool > canSendPaidMedia
Optional. True, if paid media messages can be sent or forwarded to the channel chat....
std::optional< bool > joinToSendMessages
Optional. True, if users need to join the supergroup before they can send messages.
std::shared_ptr< ChatShareTheme > shareTheme
Optional. For private chats, supergroups and channels, the theme of the screen for sharing a link to ...
This object represents a chat.
std::optional< std::string > firstName
Optional. First name of the other party in a private chat.
std::optional< std::string > lastName
Optional. Last name of the other party in a private chat.
std::optional< bool > isForum
Optional. True, if the supergroup chat is a forum (has topics enabled).
std::optional< bool > isDirectMessages
Optional. True, if the chat is the direct messages chat of a channel.
Type type
Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
std::optional< std::string > title
Optional. Title, for supergroups, channels and group chats.
std::shared_ptr< Chat > Ptr
std::optional< std::string > username
Optional. Username, for private chats, supergroups and channels if available.
Represents an invite link for a chat.
std::optional< std::uint32_t > memberLimit
Optional. The maximum number of users that can be members of the chat simultaneously after joining th...
std::optional< std::int32_t > expireDate
Optional. Point in time (Unix timestamp) when the link will expire or has been expired.
std::optional< std::string > name
Optional. Invite link name.
bool isRevoked
True, if the link is revoked.
bool createsJoinRequest
True, if users joining the chat via the link need to be approved by chat administrators.
bool isPrimary
True, if the link is primary.
std::optional< std::uint32_t > pendingJoinRequestCount
Optional. Number of pending join requests created using this link.
std::shared_ptr< User > creator
Creator of the link.
std::string inviteLink
The invite link. If the link was created by another chat administrator, then the second part of the l...
std::shared_ptr< ChatInviteLink > Ptr
std::optional< std::uint32_t > subscriptionPeriod
Optional. The number of seconds the subscription will be active for before the next payment.
std::optional< std::uint32_t > subscriptionPrice
Optional. The amount of Telegram Stars a user must pay initially and after each subsequent subscripti...
Represents a join request sent to a chat.
std::shared_ptr< Chat > chat
Chat to which the request was sent.
std::int32_t date
Date the request was sent in Unix time.
std::optional< std::string > queryId
Optional. Identifier of the join request query; for bots assigned to process join requests only....
std::optional< std::string > bio
Optional. Bio of the user.
std::shared_ptr< User > from
User that sent the join request.
std::uint64_t userChatId
Identifier of a private chat with the user who sent the join request. This number may have more than ...
std::shared_ptr< ChatJoinRequest > Ptr
std::shared_ptr< ChatInviteLink > inviteLink
Optional. Chat invite link that was used by the user to send the join request.
Represents a location to which a chat is connected.
std::shared_ptr< ChatLocation > Ptr
std::shared_ptr< Location > location
The location to which the supergroup is connected. Can't be a live location.
std::string address
Location address; 1-64 characters, as defined by the chat owner.
Represents a chat member that has some additional privileges.
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
bool canManageVideoChats
True, if the administrator can manage video chats.
bool canPromoteMembers
True, if the administrator can add new administrators with a subset of their own privileges or demote...
std::shared_ptr< User > user
Information about the user.
std::shared_ptr< ChatMemberAdministrator > Ptr
bool canSendWelcomeMessages
True, if the administrator can manage chat welcome messages or directly send them in the case of bots...
std::optional< bool > canManageDirectMessages
Optional. True, if the administrator can manage direct messages of the channel and decline suggested ...
std::optional< std::string > customTitle
Optional. Custom title for this user.
std::string status
The member's status in the chat, always “administrator”
bool isAnonymous
True, if the user's presence in the chat is hidden.
static TGBOT_API const std::string STATUS
std::optional< bool > canManageTags
Optional. True, if the administrator can edit the tags of regular members; for groups and supergroups...
std::optional< bool > canManageTopics
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergr...
bool canEditStories
True, if the administrator can edit stories posted by other users, post stories to the chat page,...
bool canManageChat
True, if the administrator can access the chat event log, get boost list, see hidden supergroup and c...
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
bool canPostStories
True, if the administrator can post stories to the chat.
std::optional< bool > canEditMessages
Optional. True, if the administrator can edit messages of other users and can pin messages; for chann...
bool canBeEdited
True, if the bot is allowed to edit administrator privileges of that user.
bool canRestrictMembers
True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics.
std::optional< bool > canPinMessages
Optional. True, if the user is allowed to pin messages; for groups and supergroups only.
bool canDeleteStories
True, if the administrator can delete stories posted by other users.
bool canDeleteMessages
True, if the administrator can delete messages of other users.
std::optional< bool > canPostMessages
Optional. True, if the administrator can post messages in the channel, approve suggested posts,...
Represents a chat member that was banned in the chat and can't return to the chat or view chat messag...
std::shared_ptr< ChatMemberBanned > Ptr
std::int32_t untilDate
Date when restrictions will be lifted for this user; Unix time. If 0, then the user is banned forever...
std::shared_ptr< User > user
Information about the user.
std::string status
The member's status in the chat, always “kicked”
static TGBOT_API const std::string STATUS
This object contains information about one member of a chat. Currently, the following 6 types of chat...
std::variant< std::shared_ptr< ChatMemberOwner >, std::shared_ptr< ChatMemberAdministrator >, std::shared_ptr< ChatMemberMember >, std::shared_ptr< ChatMemberRestricted >, std::shared_ptr< ChatMemberLeft >, std::shared_ptr< ChatMemberBanned > > value
std::shared_ptr< ChatMember > Ptr
Represents a chat member that isn't currently a member of the chat, but may join it themselves.
std::shared_ptr< ChatMemberLeft > Ptr
std::shared_ptr< User > user
Information about the user.
static TGBOT_API const std::string STATUS
std::string status
The member's status in the chat, always “left”
Represents a chat member that has no additional privileges or restrictions.
std::shared_ptr< ChatMemberMember > Ptr
std::string status
The member's status in the chat, always “member”
static TGBOT_API const std::string STATUS
std::optional< std::int32_t > untilDate
Optional. Date when the user's subscription will expire; Unix time.
std::optional< std::string > tag
Optional. Tag of the member.
std::shared_ptr< User > user
Information about the user.
Represents a chat member that owns the chat and has all administrator privileges.
std::shared_ptr< User > user
Information about the user.
bool isAnonymous
True, if the user's presence in the chat is hidden.
std::optional< std::string > customTitle
Optional. Custom title for this user.
std::shared_ptr< ChatMemberOwner > Ptr
std::string status
The member's status in the chat, always “creator”
static TGBOT_API const std::string STATUS
Represents a chat member that is under certain restrictions in the chat. Supergroups only.
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
bool canSendVideoNotes
True, if the user is allowed to send video notes.
bool canSendDocuments
True, if the user is allowed to send documents.
bool canSendPolls
True, if the user is allowed to send polls and checklists.
std::shared_ptr< User > user
Information about the user.
std::string status
The member's status in the chat, always “restricted”
bool canPinMessages
True, if the user is allowed to pin messages.
bool canSendVideos
True, if the user is allowed to send videos.
bool canSendPhotos
True, if the user is allowed to send photos.
bool canSendVoiceNotes
True, if the user is allowed to send voice notes.
bool canAddWebPagePreviews
True, if the user is allowed to add web page previews to their messages.
bool isMember
True, if the user is a member of the chat at the moment of the request.
std::shared_ptr< ChatMemberRestricted > Ptr
bool canManageTopics
True, if the user is allowed to create forum topics.
bool canSendOtherMessages
True, if the user is allowed to send animations, games, stickers, widgets and use inline bots.
bool canSendMessages
True, if the user is allowed to send text messages, rich messages, contacts, giveaways,...
bool canEditTag
True, if the user is allowed to edit their own tag.
bool canSendAudios
True, if the user is allowed to send audios.
static TGBOT_API const std::string STATUS
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
std::int32_t untilDate
Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted for...
std::optional< std::string > tag
Optional. Tag of the member.
bool canReactToMessages
True, if the user is allowed to react to messages.
This object represents changes in the status of a chat member.
std::int32_t date
Date the change was done in Unix time.
std::shared_ptr< Chat > chat
Chat the user belongs to.
std::optional< bool > viaChatFolderInviteLink
Optional. True, if the user joined the chat via a chat folder invite link.
std::shared_ptr< ChatMemberUpdated > Ptr
std::optional< bool > viaJoinRequest
Optional. True, if the user joined the chat after sending a direct join request without using an invi...
std::shared_ptr< User > from
Performer of the action, which resulted in the change.
std::shared_ptr< ChatInviteLink > inviteLink
Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link e...
std::shared_ptr< ChatMember > newChatMember
New information about the chat member.
std::shared_ptr< ChatMember > oldChatMember
Previous information about the chat member.
Describes a service message about an ownership change in the chat.
std::shared_ptr< User > newOwner
The new owner of the chat.
std::shared_ptr< ChatOwnerChanged > Ptr
Describes a service message about the chat owner leaving the chat.
std::shared_ptr< User > newOwner
Optional. The user who will become the new owner of the chat if the previous owner does not return to...
std::shared_ptr< ChatOwnerLeft > Ptr
Describes actions that a non-administrator user is allowed to take in a chat.
std::optional< bool > canSendAudios
Optional. True, if the user is allowed to send audios.
std::optional< bool > canSendDocuments
Optional. True, if the user is allowed to send documents.
std::optional< bool > canInviteUsers
Optional. True, if the user is allowed to invite new users to the chat.
std::optional< bool > canSendOtherMessages
Optional. True, if the user is allowed to send animations, games, stickers, widgets and use inline bo...
std::optional< bool > canAddWebPagePreviews
Optional. True, if the user is allowed to add web page previews to their messages.
std::optional< bool > canEditTag
Optional. True, if the user is allowed to edit their own tag. If omitted, defaults to the value of ca...
std::optional< bool > canSendPolls
Optional. True, if the user is allowed to send polls and checklists.
std::optional< bool > canReactToMessages
Optional. True, if the user is allowed to react to messages. If omitted, defaults to the value of can...
std::optional< bool > canChangeInfo
Optional. True, if the user is allowed to change the chat title, photo and other settings....
std::optional< bool > canSendMessages
Optional. True, if the user is allowed to send text messages, rich messages, contacts,...
std::optional< bool > canPinMessages
Optional. True, if the user is allowed to pin messages. Ignored in public supergroups.
std::optional< bool > canManageTopics
Optional. True, if the user is allowed to create forum topics. If omitted, defaults to the value of c...
std::shared_ptr< ChatPermissions > Ptr
std::optional< bool > canSendVideos
Optional. True, if the user is allowed to send videos.
std::optional< bool > canSendVoiceNotes
Optional. True, if the user is allowed to send voice notes.
std::optional< bool > canSendPhotos
Optional. True, if the user is allowed to send photos.
std::optional< bool > canSendVideoNotes
Optional. True, if the user is allowed to send video notes.
This object represents a chat photo.
std::string smallFileUniqueId
Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and ...
std::string smallFileId
File identifier of small (160x160) chat photo. This file_id can be used only for photo download and o...
std::string bigFileUniqueId
Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and fo...
std::string bigFileId
File identifier of big (640x640) chat photo. This file_id can be used only for photo download and onl...
std::shared_ptr< ChatPhoto > Ptr
This object describes a backdrop, which can be used as the background of a theme of the screen for sh...
std::shared_ptr< ChatShareThemeBackdrop > Ptr
std::shared_ptr< UniqueGiftBackdropColors > colors
Colors of the backdrop.
std::string name
Name of the backdrop.
This object contains a list of backdrops, which can be used as the background of a theme of the scree...
std::vector< std::shared_ptr< ChatShareThemeBackdrop > > backdrops
The list of backdrops.
std::shared_ptr< ChatShareThemeBackdrops > Ptr
The theme with emoji placed on a background.
std::shared_ptr< ChatShareThemeEmoji > Ptr
std::vector< std::shared_ptr< EmojiType > > emojis
The emoji; 0-6 regular or custom emoji.
static TGBOT_API const std::string TYPE
std::optional< std::int32_t > backgroundBackdropId
Optional. Identifier of the backdrop used as the background; omitted if the default background is use...
std::string type
Type of the theme, always “emoji”
This object describes the theme of the screen for sharing a link to a user or a chat....
std::shared_ptr< ChatShareTheme > Ptr
std::variant< std::shared_ptr< ChatShareThemeEmoji >, std::shared_ptr< ChatShareThemeUniqueGift > > value
The theme based on a unique gift owned by the user or the chat.
std::shared_ptr< ChatShareThemeUniqueGift > Ptr
static TGBOT_API const std::string TYPE
std::shared_ptr< UniqueGift > gift
The gift.
std::string type
Type of the theme, always “unique_gift”
This object contains information about a chat that was shared with the bot using a KeyboardButtonRequ...
std::optional< std::string > username
Optional. Username of the chat, if the username was requested by the bot and available.
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Available sizes of the chat photo, if the photo was requested by the bot.
std::int32_t requestId
Identifier of the request.
std::optional< std::string > title
Optional. Title of the chat, if the title was requested by the bot.
std::int64_t chatId
Identifier of the shared chat. This number may have more than 32 significant bits and some programmin...
std::shared_ptr< ChatShared > Ptr
std::shared_ptr< Checklist > Ptr
std::string title
Title of the checklist.
std::optional< bool > othersCanAddTasks
Optional. True, if users other than the creator of the list can add tasks to the list.
std::optional< bool > othersCanMarkTasksAsDone
Optional. True, if users other than the creator of the list can mark tasks as done or not done.
std::vector< std::shared_ptr< ChecklistTask > > tasks
List of tasks in the checklist.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > titleEntities
Optional. Special entities that appear in the checklist title.
Describes a task in a checklist.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > textEntities
Optional. Special entities that appear in the task text.
std::shared_ptr< User > completedByUser
Optional. User that completed the task; omitted if the task wasn't completed by a user.
std::optional< std::int32_t > completionDate
Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed.
std::shared_ptr< ChecklistTask > Ptr
std::shared_ptr< Chat > completedByChat
Optional. Chat that completed the task; omitted if the task wasn't completed by a chat.
std::string text
Text of the task.
Describes a service message about tasks added to a checklist.
std::shared_ptr< ChecklistTasksAdded > Ptr
std::vector< std::shared_ptr< ChecklistTask > > tasks
List of tasks added to the checklist.
std::shared_ptr< Message > checklistMessage
Optional. Message containing the checklist to which the tasks were added. Note that the Message objec...
Describes a service message about checklist tasks marked as done or not done.
std::optional< std::vector< std::uint32_t > > markedAsDoneTaskIds
Optional. Identifiers of the tasks that were marked as done.
std::shared_ptr< ChecklistTasksDone > Ptr
std::optional< std::vector< std::uint32_t > > markedAsNotDoneTaskIds
Optional. Identifiers of the tasks that were marked as not done.
std::shared_ptr< Message > checklistMessage
Optional. Message containing the checklist whose tasks were marked as done or not done....
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
std::string query
The query that was used to obtain the result.
std::optional< std::string > inlineMessageId
Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attach...
std::shared_ptr< Location > location
Optional. Sender location, only for bots that require user location.
std::string resultId
The unique identifier for the result that was chosen.
std::shared_ptr< ChosenInlineResult > Ptr
std::shared_ptr< User > from
The user that chose the result.
Arguments for Api::closeForumTopic.
std::uint32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Arguments for Api::closeGeneralForumTopic.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Arguments for Api::convertGiftToStars.
std::string businessConnectionId
Unique identifier of the business connection.
std::string ownedGiftId
Unique identifier of the regular gift that should be converted to Telegram Stars.
Arguments for Api::copyMessage.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the new caption, which can be specified ins...
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::variant< std::int64_t, std::string > fromChatId
Unique identifier for the chat where the original message was sent (or username of the target bot,...
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::string parseMode
Mode for parsing entities in the new caption. See formatting options for more details.
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media. Ignored if a new caption isn't specif...
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::string messageEffectId
Unique identifier of the message effect to be added to the message; only available when copying to pr...
std::uint32_t messageId
Message identifier in the chat specified in from_chat_id.
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::uint32_t videoStartTimestamp
New start timestamp for the copied video in the message.
std::string caption
New caption for media, 0-1024 characters after entities parsing. If not specified,...
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Arguments for Api::copyMessages.
std::vector< std::uint32_t > messageIds
A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to copy....
std::variant< std::int64_t, std::string > fromChatId
Unique identifier for the chat where the original messages were sent (or username of the target bot,...
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the messages will be sent; required if the messages ...
bool disableNotification
Sends the messages silently. Users will receive a notification with no sound.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
bool removeCaption
Pass True to copy the messages without their captions.
bool protectContent
Protects the contents of the sent messages from forwarding and saving.
This object represents an inline keyboard button that copies specified text to the clipboard.
std::shared_ptr< CopyTextButton > Ptr
std::string text
The text to be copied to the clipboard; 1-256 characters.
Arguments for Api::createChatInviteLink.
std::int32_t expireDate
Point in time (Unix timestamp) when the link will expire.
std::string name
Invite link name; 0-32 characters.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
std::uint32_t memberLimit
The maximum number of users that can be members of the chat simultaneously after joining the chat via...
bool createsJoinRequest
True, if users joining the chat via the link need to be approved by chat administrators....
Arguments for Api::createChatSubscriptionInviteLink.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target channel chat or username of the target channel in the format @userna...
std::uint32_t subscriptionPrice
The amount of Telegram Stars a user must pay initially and after each subsequent subscription period ...
std::uint32_t subscriptionPeriod
The number of seconds the subscription will be active for before the next payment....
std::string name
Invite link name; 0-32 characters.
Arguments for Api::createForumTopic.
std::uint32_t iconColor
Color of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0),...
std::string iconCustomEmojiId
Unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get a...
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
std::string name
Topic name, 1-128 characters.
Arguments for Api::createInvoiceLink.
std::uint64_t maxTipAmount
The maximum accepted amount for tips in the smallest units of the currency (integer,...
std::string providerData
JSON-serialized data about the invoice, which will be shared with the payment provider....
bool needPhoneNumber
Pass True if you require the user's phone number to complete the order. Ignored for payments in Teleg...
std::vector< std::shared_ptr< LabeledPrice > > prices
Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount,...
bool sendPhoneNumberToProvider
Pass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram...
std::string description
Product description, 1-255 characters.
bool needShippingAddress
Pass True if you require the user's shipping address to complete the order. Ignored for payments in T...
std::string currency
Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Star...
std::string payload
Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your int...
bool sendEmailToProvider
Pass True if the user's email address should be sent to the provider. Ignored for payments in Telegra...
bool needName
Pass True if you require the user's full name to complete the order. Ignored for payments in Telegram...
std::string photoUrl
URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a serv...
bool needEmail
Pass True if you require the user's email address to complete the order. Ignored for payments in Tele...
std::string providerToken
Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars.
std::uint32_t photoHeight
Photo height.
std::uint32_t photoSize
Photo size in bytes.
std::vector< std::uint64_t > suggestedTipAmounts
A JSON-serialized Array of suggested amounts of tips in the smallest units of the currency (integer,...
std::uint32_t subscriptionPeriod
The number of seconds the subscription will be active for before the next payment....
std::string title
Product name, 1-32 characters.
bool isFlexible
Pass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the link will be created....
std::uint32_t photoWidth
Photo width.
Arguments for Api::createNewStickerSet.
bool needsRepainting
Pass True if stickers in the sticker set must be repainted to the color of text when used in messages...
std::vector< std::shared_ptr< InputSticker > > stickers
A JSON-serialized list of 1-50 initial stickers to be added to the sticker set.
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
std::string name
Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only Eng...
std::string title
Sticker set title, 1-64 characters.
Sticker::Type stickerType
Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default,...
std::uint64_t userId
User identifier of created sticker set owner.
Arguments for Api::declineChatJoinRequest.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
std::uint64_t userId
Unique identifier of the target user.
Arguments for Api::declineSuggestedPost.
std::uint32_t messageId
Identifier of a suggested post message to decline.
std::string comment
Comment for the creator of the suggested post; 0-128 characters.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target direct messages chat.
Arguments for Api::deleteAllMessageReactions.
std::int64_t actorChatId
Identifier of the chat whose reactions will be removed, if the reactions were added by a chat.
std::uint64_t userId
Identifier of the user whose reactions will be removed, if the reactions were added by a user.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Arguments for Api::deleteBusinessAccountGift.
std::string ownedGiftId
Unique identifier of the regular gift that should be deleted.
std::string businessConnectionId
Unique identifier of the business connection.
Arguments for Api::deleteBusinessMessages.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which to delete the messages.
std::vector< std::uint32_t > messageIds
A JSON-serialized list of 1-100 identifiers of messages to delete. All messages must be from the same...
Arguments for Api::deleteChatPhoto.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Arguments for Api::deleteChatStickerSet.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Arguments for Api::deleteEphemeralMessage.
std::uint32_t ephemeralMessageId
Identifier of the ephemeral message to delete.
std::uint64_t receiverUserId
Identifier of the user who received the message.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Arguments for Api::deleteForumTopic.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
std::uint32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
Arguments for Api::deleteMessage.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::uint32_t messageId
Identifier of the message to delete.
Arguments for Api::deleteMessageReaction.
std::int64_t actorChatId
Identifier of the chat whose reaction will be removed, if the reaction was added by a chat.
std::uint32_t messageId
Identifier of the target message.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
std::uint64_t userId
Identifier of the user whose reaction will be removed, if the reaction was added by a user.
Arguments for Api::deleteMessages.
std::vector< std::uint32_t > messageIds
A JSON-serialized list of 1-100 identifiers of messages to delete. See deleteMessage for limitations ...
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Arguments for Api::deleteMyCommands.
std::shared_ptr< BotCommandScope > scope
A JSON-serialized object, describing scope of users for which the commands are relevant....
std::string languageCode
A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given ...
Arguments for Api::deleteStickerFromSet.
std::string sticker
File identifier of the sticker.
Arguments for Api::deleteStickerSet.
std::string name
Sticker set name.
Arguments for Api::deleteStory.
std::string businessConnectionId
Unique identifier of the business connection.
std::uint32_t storyId
Unique identifier of the story to delete.
Arguments for Api::deleteWebhook.
bool dropPendingUpdates
Pass True to drop all pending updates.
This object represents an animated emoji that displays a random value.
std::uint32_t value
Value of the dice, 1-6 for “”, “” and “” base emoji, 1-5 for “” and “” base emoji,...
std::shared_ptr< Dice > Ptr
std::string emoji
Emoji on which the dice throw animation is based.
Describes a service message about a change in the price of direct messages sent to a channel chat.
std::optional< std::uint32_t > directMessageStarCount
Optional. The new number of Telegram Stars that must be paid by users for each direct message sent to...
bool areDirectMessagesEnabled
True, if direct messages are enabled for the channel chat; False otherwise.
std::shared_ptr< DirectMessagePriceChanged > Ptr
Describes a topic of a direct messages chat.
std::shared_ptr< DirectMessagesTopic > Ptr
std::uint64_t topicId
Unique identifier of the topic. This number may have more than 32 significant bits and some programmi...
std::shared_ptr< User > user
Optional. Information about the user that created the topic. Currently, it is always present.
This object represents a general file (as opposed to photos, voice messages and audio files).
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
std::shared_ptr< PhotoSize > thumbnail
Optional. Document thumbnail as defined by the sender.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
std::shared_ptr< Document > Ptr
std::optional< std::string > fileName
Optional. Original filename as defined by the sender.
Arguments for Api::editChatInviteLink.
std::string name
Invite link name; 0-32 characters.
std::string inviteLink
The invite link to edit.
bool createsJoinRequest
True, if users joining the chat via the link need to be approved by chat administrators....
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
std::uint32_t memberLimit
The maximum number of users that can be members of the chat simultaneously after joining the chat via...
std::int32_t expireDate
Point in time (Unix timestamp) when the link will expire.
Arguments for Api::editChatSubscriptionInviteLink.
std::string name
Invite link name; 0-32 characters.
std::string inviteLink
The invite link to edit.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Arguments for Api::editEphemeralMessageCaption.
std::uint32_t ephemeralMessageId
Identifier of the ephemeral message to edit.
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media. Supported only for animation,...
std::string parseMode
Mode for parsing entities in the message caption. See formatting options for more details.
std::uint64_t receiverUserId
Identifier of the user who received the message.
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
std::string caption
New caption of the message, 0-1024 characters after entities parsing.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Arguments for Api::editEphemeralMessageReplyMarkup.
std::uint32_t ephemeralMessageId
Identifier of the ephemeral message to edit.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
std::uint64_t receiverUserId
Identifier of the user who received the message.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Arguments for Api::editEphemeralMessageText.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
std::shared_ptr< InputRichMessage > richMessage
New rich content of the message; required if text isn't specified.
std::uint64_t receiverUserId
Identifier of the user who received the message.
std::string text
New text of the message, 1-4096 characters after entity parsing; required if rich_message isn't speci...
std::vector< std::shared_ptr< MessageEntity > > entities
A JSON-serialized list of special entities that appear in message text, which can be specified instea...
std::uint32_t ephemeralMessageId
Identifier of the ephemeral message to edit.
std::string parseMode
Mode for parsing entities in the message text. See formatting options for more details.
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Link preview generation options for the message.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Arguments for Api::editForumTopic.
std::string iconCustomEmojiId
New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to g...
std::uint32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
std::string name
New topic name, 0-128 characters. If not specified or empty, the current name of the topic will be ke...
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Arguments for Api::editGeneralForumTopic.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
std::string name
New topic name, 1-128 characters.
Arguments for Api::editMessageCaption.
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
std::string parseMode
Mode for parsing entities in the message caption. See formatting options for more details.
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat or username of ...
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
std::string caption
New caption of the message, 0-1024 characters after entities parsing.
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media. Supported only for animation,...
Arguments for Api::editMessageChecklist.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for the new inline keyboard for the message.
std::uint32_t messageId
Unique identifier for the target message.
std::shared_ptr< InputChecklist > checklist
A JSON-serialized object for the new checklist.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot in the format @username.
Arguments for Api::editMessageLiveLocation.
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
double horizontalAccuracy
The radius of uncertainty for the location, measured in meters; 0-1500.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
double latitude
Latitude of new location.
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat or username of ...
std::uint32_t heading
Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for a new inline keyboard.
double longitude
Longitude of new location.
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
std::uint32_t livePeriod
New period in seconds during which the location can be updated, starting from the message send date....
std::uint32_t proximityAlertRadius
The maximum distance for proximity alerts about approaching another chat member, in meters....
Arguments for Api::editMessageReplyMarkup.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat or username of ...
Arguments for Api::editMessageText.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
std::shared_ptr< InputRichMessage > richMessage
New rich content of the message; required if text isn't specified. Direct upload of new files and exp...
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
std::string text
New text of the message, 1-4096 characters after entity parsing; required if rich_message isn't speci...
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Link preview generation options for the message.
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat or username of ...
std::vector< std::shared_ptr< MessageEntity > > entities
A JSON-serialized list of special entities that appear in message text, which can be specified instea...
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
std::string parseMode
Mode for parsing entities in the message text. See formatting options for more details.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Arguments for Api::editStory.
std::string caption
Caption of the story, 0-2048 characters after entities parsing.
std::string parseMode
Mode for parsing entities in the story caption. See formatting options for more details.
std::string businessConnectionId
Unique identifier of the business connection.
std::uint32_t storyId
Unique identifier of the story to edit.
std::vector< std::shared_ptr< StoryArea > > areas
A JSON-serialized list of clickable areas to be shown on the story.
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
std::shared_ptr< InputStoryContent > content
Content of the story.
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Arguments for Api::editUserStarSubscription.
std::uint64_t userId
Identifier of the user whose subscription will be edited.
std::string telegramPaymentChargeId
Telegram payment identifier for the subscription.
bool isCanceled
Pass True to cancel extension of the user subscription; the subscription must be active up to the end...
std::string customEmojiId
Identifier of the custom emoji. Use getCustomEmojiStickers to get full information about the sticker.
static TGBOT_API const std::string TYPE
std::string type
Type of the emoji, always “custom_emoji”
std::shared_ptr< EmojiTypeCustomEmoji > Ptr
static TGBOT_API const std::string TYPE
std::string type
Type of the emoji, always “emoji”
std::string emoji
The emoji.
std::shared_ptr< EmojiTypeEmoji > Ptr
This object describes an emoji. Currently, it can be one of EmojiTypeEmoji EmojiTypeCustomEmoji.
std::shared_ptr< EmojiType > Ptr
std::variant< std::shared_ptr< EmojiTypeEmoji >, std::shared_ptr< EmojiTypeCustomEmoji > > value
Describes data required for decrypting and authenticating EncryptedPassportElement....
std::string data
Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets req...
std::string hash
Base64-encoded data hash for data authentication.
std::shared_ptr< EncryptedCredentials > Ptr
std::string secret
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption.
Describes documents or other Telegram Passport elements shared with the bot by the user.
std::optional< std::vector< std::shared_ptr< PassportFile > > > translation
Optional. Array of encrypted files with translated versions of documents provided by the user; availa...
std::shared_ptr< PassportFile > frontSide
Optional. Encrypted file with the front side of the document, provided by the user; available only fo...
std::optional< std::string > email
Optional. User's verified email address; available only for “email” type.
std::optional< std::vector< std::shared_ptr< PassportFile > > > files
Optional. Array of encrypted files with documents provided by the user; available only for “utility_b...
std::optional< std::string > phoneNumber
Optional. User's verified phone number; available only for “phone_number” type.
std::string type
Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”,...
std::shared_ptr< PassportFile > reverseSide
Optional. Encrypted file with the reverse side of the document, provided by the user; available only ...
std::shared_ptr< EncryptedPassportElement > Ptr
std::shared_ptr< PassportFile > selfie
Optional. Encrypted file with the selfie of the user holding a document, provided by the user; availa...
std::optional< std::string > data
Optional. Base64-encoded encrypted Telegram Passport element data provided by the user; available onl...
std::string hash
Base64-encoded element hash for using in PassportElementErrorUnspecified.
std::shared_ptr< EphemeralMessageParameters > Ptr
std::optional< bool > replaceCallbackQueryMessage
Optional. Pass True if the ephemeral message must be shown in place of the original message....
std::optional< std::uint64_t > receiverUserId
Optional. Identifier of the user who will receive the message; required unless the message is sent as...
std::optional< std::string > callbackQueryId
Optional. Identifier of the callback query which triggered the message, if any. If specified and rece...
Arguments for Api::exportChatInviteLink.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
This object contains information about a message that is being replied to, which may come from anothe...
std::optional< bool > hasMediaSpoiler
Optional. True, if the message media is covered by a spoiler animation.
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Optional. Options used for link preview generation for the original message, if it is a text message.
std::shared_ptr< Poll > poll
Optional. Message is a native poll, information about the poll.
std::shared_ptr< Widget > widget
Optional. Message is an HTML widget, information about the widget.
std::shared_ptr< Location > location
Optional. Message is a shared location, information about the location.
std::shared_ptr< PaidMediaInfo > paidMedia
Optional. Message contains paid media; information about the paid media.
std::shared_ptr< Checklist > checklist
Optional. Message is a checklist.
std::optional< std::uint32_t > messageId
Optional. Unique message identifier inside the original chat. Available only if the original chat is ...
std::shared_ptr< Audio > audio
Optional. Message is an audio file, information about the file.
std::shared_ptr< VideoNote > videoNote
Optional. Message is a video note, information about the video message.
std::shared_ptr< Giveaway > giveaway
Optional. Message is a scheduled giveaway, information about the giveaway.
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Message is a photo, available sizes of the photo.
std::shared_ptr< ExternalReplyInfo > Ptr
std::shared_ptr< Voice > voice
Optional. Message is a voice message, information about the file.
std::shared_ptr< Video > video
Optional. Message is a video, information about the video.
std::shared_ptr< Sticker > sticker
Optional. Message is a sticker, information about the sticker.
std::shared_ptr< Venue > venue
Optional. Message is a venue, information about the venue.
std::shared_ptr< Dice > dice
Optional. Message is a dice with random value.
std::shared_ptr< Story > story
Optional. Message is a forwarded story.
std::shared_ptr< LivePhoto > livePhoto
Optional. Message is a live photo, information about the live photo.
std::shared_ptr< Chat > chat
Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a chann...
std::shared_ptr< Game > game
Optional. Message is a game, information about the game. More about games »
std::shared_ptr< GiveawayWinners > giveawayWinners
Optional. A giveaway with public winners was completed.
std::shared_ptr< Animation > animation
Optional. Message is an animation, information about the animation.
std::shared_ptr< Invoice > invoice
Optional. Message is an invoice for a payment, information about the invoice. More about payments »
std::shared_ptr< MessageOrigin > origin
Origin of the message replied to by the given message.
std::shared_ptr< Contact > contact
Optional. Message is a shared contact, information about the contact.
std::shared_ptr< Document > document
Optional. Message is a general file, information about the file.
This object represents a file ready to be downloaded. The file can be downloaded via the link https:/...
std::optional< std::string > filePath
Optional. File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
std::shared_ptr< File > Ptr
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
Upon receiving a message with this object, Telegram clients will display a reply interface to the use...
std::shared_ptr< ForceReply > Ptr
bool forceReply
Shows reply interface to the user, as if they had manually selected the bot's message and tapped 'Rep...
std::optional< bool > selective
Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users t...
std::optional< std::string > inputFieldPlaceholder
Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters.
This object represents a service message about a forum topic closed in the chat. Currently holds no i...
std::shared_ptr< ForumTopicClosed > Ptr
This object represents a service message about a new forum topic created in the chat.
std::string name
Name of the topic.
std::uint32_t iconColor
Color of the topic icon in RGB format.
std::optional< std::string > iconCustomEmojiId
Optional. Unique identifier of the custom emoji shown as the topic icon.
std::shared_ptr< ForumTopicCreated > Ptr
std::optional< bool > isNameImplicit
Optional. True, if the name of the topic wasn't specified explicitly by its creator and likely needs ...
This object represents a service message about an edited forum topic.
std::optional< std::string > iconCustomEmojiId
Optional. New identifier of the custom emoji shown as the topic icon, if it was edited; an empty stri...
std::shared_ptr< ForumTopicEdited > Ptr
std::optional< std::string > name
Optional. New name of the topic, if it was edited.
This object represents a forum topic.
std::string name
Name of the topic.
std::uint32_t messageThreadId
Unique identifier of the forum topic.
std::optional< std::string > iconCustomEmojiId
Optional. Unique identifier of the custom emoji shown as the topic icon.
std::uint32_t iconColor
Color of the topic icon in RGB format.
std::optional< bool > isNameImplicit
Optional. True, if the name of the topic wasn't specified explicitly by its creator and likely needs ...
std::shared_ptr< ForumTopic > Ptr
This object represents a service message about a forum topic reopened in the chat....
std::shared_ptr< ForumTopicReopened > Ptr
Arguments for Api::forwardMessage.
std::uint32_t videoStartTimestamp
New start timestamp for the forwarded video in the message.
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be forwarded; required if the messa...
bool protectContent
Protects the contents of the forwarded message from forwarding and saving.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::string messageEffectId
Unique identifier of the message effect to be added to the message; only available when forwarding to...
std::uint32_t messageId
Message identifier in the chat specified in from_chat_id.
std::variant< std::int64_t, std::string > fromChatId
Unique identifier for the chat where the original message was sent (or username of the target bot,...
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Arguments for Api::forwardMessages.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
bool disableNotification
Sends the messages silently. Users will receive a notification with no sound.
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the messages will be forwarded; required if the mess...
std::vector< std::uint32_t > messageIds
A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to forward....
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
bool protectContent
Protects the contents of the forwarded messages from forwarding and saving.
std::variant< std::int64_t, std::string > fromChatId
Unique identifier for the chat where the original messages were sent (or username of the target bot,...
This object represents one row of the high scores table for a game.
std::shared_ptr< GameHighScore > Ptr
std::shared_ptr< User > user
User.
std::uint32_t score
Score.
std::uint32_t position
Position in high score table for the game.
This object represents a game. Use BotFather to create and edit games, their short names will act as ...
std::optional< std::vector< std::shared_ptr< MessageEntity > > > textEntities
Optional. Special entities that appear in text, such as usernames, URLs, bot commands,...
std::shared_ptr< Animation > animation
Optional. Animation that will be displayed in the game message in chats. Upload via BotFather.
std::shared_ptr< Game > Ptr
std::string title
Title of the game.
std::string description
Description of the game.
std::optional< std::string > text
Optional. Brief description of the game or high scores included in the game message....
std::vector< std::shared_ptr< PhotoSize > > photo
Photo that will be displayed in the game message in chats.
This object represents a service message about General forum topic hidden in the chat....
std::shared_ptr< GeneralForumTopicHidden > Ptr
This object represents a service message about General forum topic unhidden in the chat....
std::shared_ptr< GeneralForumTopicUnhidden > Ptr
Arguments for Api::getBusinessAccountGifts.
bool sortByPrice
Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.
bool excludeUnlimited
Pass True to exclude gifts that can be purchased an unlimited number of times.
bool excludeLimitedUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to uni...
std::string offset
Offset of the first entry to return as received from the previous request; use empty string to get th...
bool excludeUnique
Pass True to exclude unique gifts.
bool excludeSaved
Pass True to exclude gifts that are saved to the account's profile page.
bool excludeFromBlockchain
Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transfer...
bool excludeUnsaved
Pass True to exclude gifts that aren't saved to the account's profile page.
std::uint32_t limit
The maximum number of gifts to be returned; 1-100. Defaults to 100.
bool excludeLimitedNonUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to u...
std::string businessConnectionId
Unique identifier of the business connection.
Arguments for Api::getBusinessAccountStarBalance.
std::string businessConnectionId
Unique identifier of the business connection.
Arguments for Api::getBusinessConnection.
std::string businessConnectionId
Unique identifier of the business connection.
Arguments for Api::getChatAdministrators.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup or channel in the format @...
bool returnBots
Pass True to additionally receive all bots that are administrators of the chat. By default,...
Arguments for Api::getChat.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup or channel in the format @...
Arguments for Api::getChatGifts.
bool excludeUnique
Pass True to exclude unique gifts.
bool excludeFromBlockchain
Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transfer...
std::uint32_t limit
The maximum number of gifts to be returned; 1-100. Defaults to 100.
bool excludeUnlimited
Pass True to exclude gifts that can be purchased an unlimited number of times.
bool excludeSaved
Pass True to exclude gifts that are saved to the chat's profile page. Always False,...
bool sortByPrice
Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.
bool excludeLimitedNonUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to u...
std::string offset
Offset of the first entry to return as received from the previous request; use an empty string to get...
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
bool excludeUnsaved
Pass True to exclude gifts that aren't saved to the chat's profile page. Always True,...
bool excludeLimitedUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to uni...
Arguments for Api::getChatMember.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup or channel in the format @...
std::uint64_t userId
Unique identifier of the target user.
Arguments for Api::getChatMemberCount.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup or channel in the format @...
Arguments for Api::getCustomEmojiStickers.
std::vector< std::string > customEmojiIds
A JSON-serialized list of custom emoji identifiers. At most 200 custom emoji identifiers can be speci...
Arguments for Api::getFile.
std::string fileId
File identifier to get information about.
Arguments for Api::getGameHighScores.
std::uint64_t userId
Target user id.
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat.
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the sent message.
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Arguments for Api::getManagedBotAccessSettings.
std::uint64_t userId
User identifier of the managed bot whose access settings will be returned.
Arguments for Api::getManagedBotToken.
std::uint64_t userId
User identifier of the managed bot whose token will be returned.
Arguments for Api::getMyCommands.
std::string languageCode
A two-letter ISO 639-1 language code or an empty string.
std::shared_ptr< BotCommandScope > scope
A JSON-serialized object, describing scope of users. Defaults to BotCommandScopeDefault.
Arguments for Api::getMyDefaultAdministratorRights.
bool forChannels
Pass True to get default administrator rights of the bot in channels. Otherwise, default administrato...
Arguments for Api::getMyDescription.
std::string languageCode
A two-letter ISO 639-1 language code or an empty string.
Arguments for Api::getMyName.
std::string languageCode
A two-letter ISO 639-1 language code or an empty string.
Arguments for Api::getMyShortDescription.
std::string languageCode
A two-letter ISO 639-1 language code or an empty string.
Arguments for Api::getStarTransactions.
std::uint32_t limit
The maximum number of transactions to be retrieved. Values between 1-100 are accepted....
std::uint32_t offset
Number of transactions to skip in the response.
Arguments for Api::getStickerSet.
std::string name
Name of the sticker set.
Arguments for Api::getUniqueGift.
std::string name
Unique name of the gift.
Arguments for Api::getUpdates.
std::int32_t offset
Identifier of the first update to be returned. Must be greater by one than the highest among the iden...
std::vector< std::string > allowedUpdates
A JSON-serialized list of the update types you want your bot to receive. For example,...
std::uint32_t limit
Limits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100.
std::uint32_t timeout
Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling. Should be positive,...
Arguments for Api::getUserChatBoosts.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the chat or username of the channel in the format @username.
std::uint64_t userId
Unique identifier of the target user.
Arguments for Api::getUserGifts.
bool sortByPrice
Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.
bool excludeLimitedUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to uni...
std::uint64_t userId
Unique identifier of the user.
bool excludeLimitedNonUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to u...
bool excludeUnlimited
Pass True to exclude gifts that can be purchased an unlimited number of times.
bool excludeUnique
Pass True to exclude unique gifts.
std::uint32_t limit
The maximum number of gifts to be returned; 1-100. Defaults to 100.
std::string offset
Offset of the first entry to return as received from the previous request; use an empty string to get...
bool excludeFromBlockchain
Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transfer...
Arguments for Api::getUserPersonalChatMessages.
std::uint64_t userId
Unique identifier for the target user.
std::uint32_t limit
The maximum number of messages to return; 1-20.
Arguments for Api::getUserProfileAudios.
std::uint32_t limit
Limits the number of audios to be retrieved. Values between 1-100 are accepted. Defaults to 100.
std::uint64_t userId
Unique identifier of the target user.
std::uint32_t offset
Sequential number of the first audio to be returned. By default, all audios are returned.
Arguments for Api::getUserProfilePhotos.
std::uint64_t userId
Unique identifier of the target user.
std::uint32_t offset
Sequential number of the first photo to be returned. By default, all photos are returned.
std::uint32_t limit
Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.
This object describes the background of a gift.
std::shared_ptr< GiftBackground > Ptr
std::uint32_t edgeColor
Edge color of the background in RGB format.
std::uint32_t centerColor
Center color of the background in RGB format.
std::uint32_t textColor
Text color of the background in RGB format.
This object represents a gift that can be sent by the bot.
std::shared_ptr< Chat > publisherChat
Optional. Information about the chat that published the gift.
std::shared_ptr< GiftBackground > background
Optional. Background of the gift.
std::optional< bool > isPremium
Optional. True, if the gift can only be purchased by Telegram Premium subscribers.
std::shared_ptr< Sticker > sticker
The sticker that represents the gift.
std::shared_ptr< Gift > Ptr
std::uint32_t starCount
The number of Telegram Stars that must be paid to send the sticker.
std::optional< std::uint32_t > uniqueGiftVariantCount
Optional. The total number of different unique gifts that can be obtained by upgrading the gift.
std::optional< std::uint32_t > personalRemainingCount
Optional. The number of remaining gifts of this type that can be sent by the bot; for limited gifts o...
std::optional< std::uint32_t > totalCount
Optional. The total number of gifts of this type that can be sent by all users; for limited gifts onl...
std::optional< bool > hasColors
Optional. True, if the gift can be used (after being upgraded) to customize a user's appearance.
std::optional< std::uint32_t > remainingCount
Optional. The number of remaining gifts of this type that can be sent by all users; for limited gifts...
std::optional< std::uint32_t > personalTotalCount
Optional. The total number of gifts of this type that can be sent by the bot; for limited gifts only.
std::optional< std::uint32_t > upgradeStarCount
Optional. The number of Telegram Stars that must be paid to upgrade the gift to a unique one.
Describes a service message about a regular gift that was sent or received.
std::optional< std::string > ownedGiftId
Optional. Unique identifier of the received gift for the bot; only present for gifts received on beha...
std::optional< bool > canBeUpgraded
Optional. True, if the gift can be upgraded to a unique gift.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the text.
std::optional< std::uint32_t > prepaidUpgradeStarCount
Optional. Number of Telegram Stars that were prepaid for the ability to upgrade the gift.
std::optional< bool > isUpgradeSeparate
Optional. True, if the gift's upgrade was purchased after the gift was sent.
std::optional< std::uint32_t > uniqueGiftNumber
Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift.
std::optional< std::string > text
Optional. Text of the message that was added to the gift.
std::optional< bool > isPrivate
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise,...
std::shared_ptr< GiftInfo > Ptr
std::shared_ptr< Gift > gift
Information about the gift.
std::optional< std::uint32_t > convertStarCount
Optional. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitte...
Arguments for Api::giftPremiumSubscription.
std::uint32_t starCount
Number of Telegram Stars to pay for the Telegram Premium subscription; must be 1000 for 3 months,...
std::uint32_t monthCount
Number of months the Telegram Premium subscription will be active for the user; must be one of 3,...
std::vector< std::shared_ptr< MessageEntity > > textEntities
A JSON-serialized list of special entities that appear in the gift text. It can be specified instead ...
std::string text
Text that will be shown along with the service message about the subscription; 0-128 characters.
std::uint64_t userId
Unique identifier of the target user who will receive a Telegram Premium subscription.
std::string textParseMode
Mode for parsing entities in the text. See formatting options for more details. Entities other than “...
This object represent a list of gifts.
std::vector< std::shared_ptr< Gift > > gifts
The list of gifts.
std::shared_ptr< Gifts > Ptr
This object represents a service message about the completion of a giveaway without public winners.
std::shared_ptr< GiveawayCompleted > Ptr
std::optional< std::uint32_t > unclaimedPrizeCount
Optional. Number of undistributed prizes.
std::shared_ptr< Message > giveawayMessage
Optional. Message with the giveaway that was completed, if it wasn't deleted.
std::uint32_t winnerCount
Number of winners in the giveaway.
std::optional< bool > isStarGiveaway
Optional. True, if the giveaway is a Telegram Star giveaway. Otherwise, currently,...
This object represents a service message about the creation of a scheduled giveaway.
std::optional< std::uint32_t > prizeStarCount
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaw...
std::shared_ptr< GiveawayCreated > Ptr
This object represents a message about a scheduled giveaway.
std::optional< std::uint32_t > premiumSubscriptionMonthCount
Optional. The number of months the Telegram Premium subscription won from the giveaway will be active...
std::vector< std::shared_ptr< Chat > > chats
The list of chats which the user must join to participate in the giveaway.
std::optional< bool > onlyNewMembers
Optional. True, if only users who join the chats after the giveaway started should be eligible to win...
std::int32_t winnersSelectionDate
Point in time (Unix timestamp) when winners of the giveaway will be selected.
std::uint32_t winnerCount
The number of users which are supposed to be selected as winners of the giveaway.
std::optional< std::vector< std::string > > countryCodes
Optional. A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which e...
std::shared_ptr< Giveaway > Ptr
std::optional< bool > hasPublicWinners
Optional. True, if the list of giveaway winners will be visible to everyone.
std::optional< std::string > prizeDescription
Optional. Description of additional giveaway prize.
std::optional< std::uint32_t > prizeStarCount
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaw...
This object represents a message about the completion of a giveaway with public winners.
std::optional< std::uint32_t > additionalChatCount
Optional. The number of other chats the user had to join in order to be eligible for the giveaway.
std::optional< std::string > prizeDescription
Optional. Description of additional giveaway prize.
std::optional< std::uint32_t > premiumSubscriptionMonthCount
Optional. The number of months the Telegram Premium subscription won from the giveaway will be active...
std::optional< bool > onlyNewMembers
Optional. True, if only users who had joined the chats after the giveaway started were eligible to wi...
std::optional< std::uint32_t > prizeStarCount
Optional. The number of Telegram Stars that were split between giveaway winners; for Telegram Star gi...
std::shared_ptr< Chat > chat
The chat that created the giveaway.
std::optional< bool > wasRefunded
Optional. True, if the giveaway was canceled because the payment for it was refunded.
std::int32_t winnersSelectionDate
Point in time (Unix timestamp) when winners of the giveaway were selected.
std::uint32_t winnerCount
Total number of winners in the giveaway.
std::optional< std::uint32_t > unclaimedPrizeCount
Optional. Number of undistributed prizes.
std::vector< std::shared_ptr< User > > winners
List of up to 100 winners of the giveaway.
std::uint32_t giveawayMessageId
Identifier of the message with the giveaway in the chat.
std::shared_ptr< GiveawayWinners > Ptr
Arguments for Api::hideGeneralForumTopic.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
This object describes a message that was deleted or is otherwise inaccessible to the bot.
std::uint32_t messageId
Unique message identifier inside the chat.
std::uint32_t date
Always 0. The field can be used to differentiate regular and inaccessible messages.
std::shared_ptr< InaccessibleMessage > Ptr
std::shared_ptr< Chat > chat
Chat the message belonged to.
This object represents an inline keyboard that appears right next to the message it belongs to.
std::optional< bool > forceReply
Optional. Pass True if the reply interface must be shown to the user, as if they had manually selecte...
std::vector< std::vector< std::shared_ptr< InlineKeyboardButton > > > inlineKeyboard
Array of button rows, each represented by an Array of InlineKeyboardButton objects.
std::shared_ptr< InlineKeyboardMarkup > Ptr
This object represents an incoming inline query. When the user sends an empty query,...
std::string offset
Offset of the results to be returned, can be controlled by the bot.
std::shared_ptr< InlineQuery > Ptr
std::shared_ptr< Location > location
Optional. Sender location, only for bots that request user location.
std::optional< std::string > chatType
Optional. Type of the chat from which the inline query was sent. Can be either “sender” for a private...
std::string query
Text of the query (up to 256 characters).
std::shared_ptr< User > from
Sender.
Represents a link to an article or web page.
std::optional< std::uint32_t > thumbnailWidth
Optional. Thumbnail width.
std::optional< std::string > description
Optional. Short description of the result.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::shared_ptr< InputMessageContent > inputMessageContent
Content of the message to be sent.
std::shared_ptr< InlineQueryResultArticle > Ptr
std::string type
Type of the result, must be article.
static TGBOT_API const std::string TYPE
std::optional< std::string > url
Optional. URL of the result.
std::string title
Title of the result.
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
std::optional< std::uint32_t > thumbnailHeight
Optional. Thumbnail height.
Represents a link to an MP3 audio file. By default, this audio file will be sent by the user....
std::string audioUrl
A valid URL for the audio file.
std::shared_ptr< InlineQueryResultAudio > Ptr
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
std::optional< std::uint32_t > audioDuration
Optional. Audio duration in seconds.
std::optional< std::string > performer
Optional. Performer.
std::string type
Type of the result, must be audio.
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the audio.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
static TGBOT_API const std::string TYPE
Represents a link to an MP3 audio file stored on the Telegram servers. By default,...
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::string type
Type of the result, must be audio.
std::string audioFileId
A valid file identifier for the audio file.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the audio.
static TGBOT_API const std::string TYPE
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
std::shared_ptr< InlineQueryResultCachedAudio > Ptr
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the...
static TGBOT_API const std::string TYPE
std::shared_ptr< InlineQueryResultCachedDocument > Ptr
std::string title
Title for the result.
std::optional< std::string > description
Optional. Short description of the result.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the document caption. See formatting options for more details.
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the file.
std::string type
Type of the result, must be document.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::string documentFileId
A valid file identifier for the file.
std::optional< std::string > caption
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing.
Represents a link to an animated GIF file stored on the Telegram servers. By default,...
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::shared_ptr< InlineQueryResultCachedGif > Ptr
std::string type
Type of the result, must be gif.
static TGBOT_API const std::string TYPE
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the GIF animation.
std::optional< std::string > caption
Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
std::string gifFileId
A valid file identifier for the GIF file.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::optional< std::string > title
Optional. Title for the result.
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram ...
std::optional< std::string > caption
Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing.
std::string mpeg4FileId
A valid file identifier for the MPEG4 file.
static TGBOT_API const std::string TYPE
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the video animation.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::shared_ptr< InlineQueryResultCachedMpeg4Gif > Ptr
std::string type
Type of the result, must be mpeg4_gif.
std::optional< std::string > title
Optional. Title for the result.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by t...
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
std::optional< std::string > title
Optional. Title for the result.
std::optional< std::string > caption
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
static TGBOT_API const std::string TYPE
std::optional< std::string > description
Optional. Short description of the result.
std::string photoFileId
A valid file identifier of the photo.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the photo.
std::string type
Type of the result, must be photo.
std::shared_ptr< InlineQueryResultCachedPhoto > Ptr
Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent ...
std::string type
Type of the result, must be sticker.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::shared_ptr< InlineQueryResultCachedSticker > Ptr
std::string stickerFileId
A valid file identifier of the sticker.
static TGBOT_API const std::string TYPE
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the sticker.
Represents a link to a video file stored on the Telegram servers. By default, this video file will be...
std::shared_ptr< InlineQueryResultCachedVideo > Ptr
std::string title
Title for the result.
std::optional< std::string > caption
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::optional< std::string > description
Optional. Short description of the result.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
std::string type
Type of the result, must be video.
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
std::string videoFileId
A valid file identifier for the video file.
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the video.
static TGBOT_API const std::string TYPE
Represents a link to a voice message stored on the Telegram servers. By default, this voice message w...
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
static TGBOT_API const std::string TYPE
std::shared_ptr< InlineQueryResultCachedVoice > Ptr
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the voice message caption. See formatting options for more det...
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the voice message.
std::string voiceFileId
A valid file identifier for the voice message.
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::string title
Voice message title.
std::string type
Type of the result, must be voice.
Represents a link to a file. By default, this file will be sent by the user with an optional caption....
std::optional< std::uint32_t > thumbnailWidth
Optional. Thumbnail width.
std::string title
Title for the result.
std::optional< std::uint32_t > thumbnailHeight
Optional. Thumbnail height.
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the document caption. See formatting options for more details.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the file.
std::string mimeType
MIME type of the content of the file, either “application/pdf” or “application/zip”
std::string type
Type of the result, must be document.
std::optional< std::string > description
Optional. Short description of the result.
static TGBOT_API const std::string TYPE
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::optional< std::string > caption
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing.
std::shared_ptr< InlineQueryResultDocument > Ptr
std::optional< std::string > thumbnailUrl
Optional. URL of the thumbnail (JPEG only) for the file.
std::string documentUrl
A valid URL for the file.
std::string gameShortName
Short name of the game.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::shared_ptr< InlineQueryResultGame > Ptr
std::string type
Type of the result, must be game.
static TGBOT_API const std::string TYPE
Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the use...
std::optional< std::string > title
Optional. Title for the result.
static TGBOT_API const std::string TYPE
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::optional< std::uint32_t > gifWidth
Optional. Width of the GIF.
std::shared_ptr< InlineQueryResultGif > Ptr
std::string gifUrl
A valid URL for the GIF file.
std::string type
Type of the result, must be gif.
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::optional< std::string > thumbnailMimeType
Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”....
std::optional< std::uint32_t > gifDuration
Optional. Duration of the GIF in seconds.
std::optional< std::string > caption
Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
std::string thumbnailUrl
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the GIF animation.
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
std::optional< std::uint32_t > gifHeight
Optional. Height of the GIF.
This object represents one result of an inline query. Telegram clients currently support results of t...
std::variant< std::shared_ptr< InlineQueryResultCachedAudio >, std::shared_ptr< InlineQueryResultCachedDocument >, std::shared_ptr< InlineQueryResultCachedGif >, std::shared_ptr< InlineQueryResultCachedMpeg4Gif >, std::shared_ptr< InlineQueryResultCachedPhoto >, std::shared_ptr< InlineQueryResultCachedSticker >, std::shared_ptr< InlineQueryResultCachedVideo >, std::shared_ptr< InlineQueryResultCachedVoice >, std::shared_ptr< InlineQueryResultArticle >, std::shared_ptr< InlineQueryResultAudio >, std::shared_ptr< InlineQueryResultContact >, std::shared_ptr< InlineQueryResultGame >, std::shared_ptr< InlineQueryResultDocument >, std::shared_ptr< InlineQueryResultGif >, std::shared_ptr< InlineQueryResultLocation >, std::shared_ptr< InlineQueryResultMpeg4Gif >, std::shared_ptr< InlineQueryResultPhoto >, std::shared_ptr< InlineQueryResultVenue >, std::shared_ptr< InlineQueryResultVideo >, std::shared_ptr< InlineQueryResultVoice > > value
std::shared_ptr< InlineQueryResult > Ptr
Represents a location on a map. By default, the location will be sent by the user....
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::optional< std::uint32_t > livePeriod
Optional. Period in seconds during which the location can be updated, must be between 60 and 86400,...
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
double latitude
Location latitude in degrees.
std::optional< std::uint32_t > thumbnailWidth
Optional. Thumbnail width.
std::optional< std::uint32_t > proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat ...
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the location.
static TGBOT_API const std::string TYPE
std::optional< std::uint32_t > thumbnailHeight
Optional. Thumbnail height.
double longitude
Location longitude in degrees.
std::optional< std::uint32_t > heading
Optional. For live locations, a direction in which the user is moving, in degrees....
std::string title
Location title.
std::shared_ptr< InlineQueryResultLocation > Ptr
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
std::string type
Type of the result, must be location.
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default,...
std::optional< std::string > caption
Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing.
static TGBOT_API const std::string TYPE
std::string mpeg4Url
A valid URL for the MPEG4 file.
std::optional< std::uint32_t > mpeg4Height
Optional. Video height.
std::string type
Type of the result, must be mpeg4_gif.
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
std::shared_ptr< InlineQueryResultMpeg4Gif > Ptr
std::optional< std::string > title
Optional. Title for the result.
std::optional< std::uint32_t > mpeg4Width
Optional. Video width.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::optional< std::uint32_t > mpeg4Duration
Optional. Video duration in seconds.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::optional< std::string > thumbnailMimeType
Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”....
std::string thumbnailUrl
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the video animation.
Represents a link to a photo. By default, this photo will be sent by the user with optional caption....
static TGBOT_API const std::string TYPE
std::string photoUrl
A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB.
std::shared_ptr< InlineQueryResultPhoto > Ptr
std::string thumbnailUrl
URL of the thumbnail for the photo.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::optional< std::uint32_t > photoHeight
Optional. Height of the photo.
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
std::optional< std::string > caption
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
std::optional< std::uint32_t > photoWidth
Optional. Width of the photo.
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the photo.
std::optional< std::string > description
Optional. Short description of the result.
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
std::optional< std::string > title
Optional. Title for the result.
std::string type
Type of the result, must be photo.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Represents a venue. By default, the venue will be sent by the user. Alternatively,...
std::string address
Address of the venue.
std::string type
Type of the result, must be venue.
std::optional< std::uint32_t > thumbnailWidth
Optional. Thumbnail width.
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the venue.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::optional< std::uint32_t > thumbnailHeight
Optional. Thumbnail height.
double latitude
Latitude of the venue location in degrees.
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue if known.
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,...
double longitude
Longitude of the venue location in degrees.
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
std::string title
Title of the venue.
static TGBOT_API const std::string TYPE
std::shared_ptr< InlineQueryResultVenue > Ptr
Represents a link to a page containing an embedded video player or a video file. By default,...
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
static TGBOT_API const std::string TYPE
std::shared_ptr< InlineQueryResultVideo > Ptr
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
std::optional< std::string > description
Optional. Short description of the result.
std::optional< std::uint32_t > videoDuration
Optional. Video duration in seconds.
std::string thumbnailUrl
URL of the thumbnail (JPEG only) for the video.
std::string title
Title for the result.
std::string mimeType
MIME type of the content of the video URL, “text/html” or “video/mp4”
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the video. This field is required if InlineQue...
std::optional< std::uint32_t > videoHeight
Optional. Video height.
std::optional< std::string > caption
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
std::optional< std::uint32_t > videoWidth
Optional. Video width.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::string videoUrl
A valid URL for the embedded video player or video file.
std::string type
Type of the result, must be video.
Represents a link to a voice recording in an .OGG container encoded with OPUS. By default,...
std::optional< std::uint32_t > voiceDuration
Optional. Recording duration in seconds.
std::string title
Recording title.
std::string type
Type of the result, must be voice.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the voice recording.
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the voice message caption. See formatting options for more det...
static TGBOT_API const std::string TYPE
std::shared_ptr< InlineQueryResultVoice > Ptr
std::string voiceUrl
A valid URL for the voice recording.
Represents the content of a contact message to be sent as the result of an inline query.
std::optional< std::string > lastName
Optional. Contact's last name.
std::string firstName
Contact's first name.
std::string phoneNumber
Contact's phone number.
std::shared_ptr< InputContactMessageContent > Ptr
std::optional< std::string > vcard
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.
Represents the content of an invoice message to be sent as the result of an inline query.
std::optional< std::uint32_t > photoSize
Optional. Photo size in bytes.
std::optional< bool > needEmail
Optional. Pass True if you require the user's email address to complete the order....
std::vector< std::shared_ptr< LabeledPrice > > prices
Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount,...
std::optional< std::string > photoUrl
Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image ...
std::optional< std::string > providerData
Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment ...
std::optional< bool > isFlexible
Optional. Pass True if the final price depends on the shipping method. Ignored for payments in Telegr...
std::shared_ptr< InputInvoiceMessageContent > Ptr
std::string title
Product name, 1-32 characters.
std::optional< bool > sendPhoneNumberToProvider
Optional. Pass True if the user's phone number should be sent to the provider. Ignored for payments i...
std::optional< std::vector< std::uint64_t > > suggestedTipAmounts
Optional. A JSON-serialized Array of suggested amounts of tip in the smallest units of the currency (...
std::optional< bool > needShippingAddress
Optional. Pass True if you require the user's shipping address to complete the order....
std::optional< std::uint32_t > photoHeight
Optional. Photo height.
std::string currency
Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Star...
std::optional< bool > needPhoneNumber
Optional. Pass True if you require the user's phone number to complete the order. Ignored for payment...
std::string payload
Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your int...
std::optional< bool > sendEmailToProvider
Optional. Pass True if the user's email address should be sent to the provider. Ignored for payments ...
std::optional< std::uint32_t > photoWidth
Optional. Photo width.
std::optional< std::string > providerToken
Optional. Payment provider token, obtained via @BotFather. Pass an empty string for payments in Teleg...
std::optional< std::uint64_t > maxTipAmount
Optional. The maximum accepted amount for tips in the smallest units of the currency (integer,...
std::optional< bool > needName
Optional. Pass True if you require the user's full name to complete the order. Ignored for payments i...
std::string description
Product description, 1-255 characters.
Represents the content of a location message to be sent as the result of an inline query.
double longitude
Longitude of the location in degrees.
double latitude
Latitude of the location in degrees.
std::optional< std::uint32_t > heading
Optional. For live locations, a direction in which the user is moving, in degrees....
std::shared_ptr< InputLocationMessageContent > Ptr
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
std::optional< std::uint32_t > livePeriod
Optional. Period in seconds during which the location can be updated, must be between 60 and 86400,...
std::optional< std::uint32_t > proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat ...
This object represents the content of a message to be sent as a result of an inline query....
std::shared_ptr< InputMessageContent > Ptr
std::variant< std::shared_ptr< InputTextMessageContent >, std::shared_ptr< InputRichMessageContent >, std::shared_ptr< InputLocationMessageContent >, std::shared_ptr< InputVenueMessageContent >, std::shared_ptr< InputContactMessageContent >, std::shared_ptr< InputInvoiceMessageContent >, std::shared_ptr< InputWidgetMessageContent >, std::shared_ptr< InputSharedWidgetMessageContent > > value
Represents the content of a rich message to be sent as the result of an inline query.
std::shared_ptr< InputRichMessage > richMessage
The message to be sent. Only previously uploaded files may be used in the message.
std::shared_ptr< InputRichMessageContent > Ptr
Represents the content of a message with a shared widget to be sent as the result of an inline query....
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::optional< std::string > caption
Optional. Widget caption, 0-1024 characters after entities parsing.
std::optional< std::string > chatData
Optional. Data of the widget, which is specific to the message, 0-1024 bytes.
std::string widgetId
Unique identifier of the shared widget created by the bot.
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the widget caption. See formatting options for more details.
std::shared_ptr< InputSharedWidgetMessageContent > Ptr
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the widget.
This object describes the content of a story to post. Currently, it can be one of InputStoryContentPh...
std::shared_ptr< InputStoryContent > Ptr
std::variant< std::shared_ptr< InputStoryContentPhoto >, std::shared_ptr< InputStoryContentVideo > > value
Describes a photo to post as a story.
std::shared_ptr< InputStoryContentPhoto > Ptr
std::string photo
The photo to post as a story. The photo must be of the size 1080x1920 and must not exceed 10 MB....
static TGBOT_API const std::string TYPE
std::string type
Type of the content, must be photo.
Describes a video to post as a story.
std::optional< bool > isAnimation
Optional. Pass True if the video has no sound.
std::optional< double > duration
Optional. Precise duration of the video in seconds; 0-60.
std::optional< double > coverFrameTimestamp
Optional. Timestamp in seconds of the frame that will be used as the static cover for the story....
std::string video
The video to post as a story. The video must be of the size 720x1280, streamable, encoded with H....
std::shared_ptr< InputStoryContentVideo > Ptr
static TGBOT_API const std::string TYPE
std::string type
Type of the content, must be video.
Represents the content of a text message to be sent as the result of an inline query.
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Optional. Link preview generation options for the message.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. List of special entities that appear in message text, which can be specified instead of par...
std::string messageText
Text of the message to be sent, 1-4096 characters.
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the message text. See formatting options for more details.
std::shared_ptr< InputTextMessageContent > Ptr
Represents the content of a venue message to be sent as the result of an inline query.
double latitude
Latitude of the venue in degrees.
std::string address
Address of the venue.
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,...
std::shared_ptr< InputVenueMessageContent > Ptr
double longitude
Longitude of the venue in degrees.
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue, if known.
std::string title
Name of the venue.
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
Represents the content of a message with an HTML widget to be sent as the result of an inline query....
std::string html
HTML code of the widget, 1-32768 bytes. The code must not exceed 4096 bytes when compressed by zlib w...
std::optional< std::string > caption
Optional. Widget caption, 0-1024 characters after entities parsing.
std::shared_ptr< InputWidgetMessageContent > Ptr
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the widget caption. See formatting options for more details.
std::optional< std::string > publicData
Optional. Public data of the widget, 0-1024 bytes, which will be available wherever the widget is sho...
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the widget.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::optional< std::uint32_t > width
Optional. Width of the widget in logical pixels; omit if the widget must occupy the whole width of th...
std::optional< bool > allowQueries
Optional. Pass True to allow the widget to send queries to the bot.
std::optional< std::uint32_t > height
Optional. Height of the widget in logical pixels; omit if the height of the widget isn't fixed....
std::optional< std::string > chatData
Optional. Data of the widget, which is specific to the message, 0-1024 bytes.
std::optional< bool > isShared
Optional. Pass True to create a shared widget. Each message sent from the result creates a separate s...
This object contains basic information about an invoice.
std::shared_ptr< Invoice > Ptr
std::uint64_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
std::string title
Product name.
std::string startParameter
Unique bot deep-linking parameter that can be used to generate this invoice.
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
std::string description
Product description.
This object represents a portion of the price for goods or services.
std::shared_ptr< LabeledPrice > Ptr
std::string label
Portion label.
std::int64_t amount
Price of the product in the smallest units of the currency (integer, not float/double)....
Arguments for Api::leaveChat.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup or channel in the format @...
std::shared_ptr< Link > Ptr
std::string url
URL of the link.
Describes the options used for link preview generation.
std::optional< bool > preferLargeMedia
Optional. True, if the media in the link preview is supposed to be enlarged; ignored if the URL isn't...
std::shared_ptr< LinkPreviewOptions > Ptr
std::optional< bool > showAboveText
Optional. True, if the link preview must be shown above the message text; otherwise,...
std::optional< bool > preferSmallMedia
Optional. True, if the media in the link preview is supposed to be shrunk; ignored if the URL isn't e...
std::optional< std::string > url
Optional. URL to use for the link preview. If empty, then the first URL found in the message text wil...
std::optional< bool > isDisabled
Optional. True, if the link preview is disabled.
This object represents a live photo.
std::uint32_t height
Video height as defined by the sender.
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Available sizes of the corresponding static photo.
std::string fileId
Identifier for the video file which can be used to download or reuse the file.
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
std::uint32_t width
Video width as defined by the sender.
std::uint32_t duration
Duration of the video in seconds as defined by the sender.
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
std::shared_ptr< LivePhoto > Ptr
std::string fileUniqueId
Unique identifier for the video file which is supposed to be the same over time and for different bot...
Describes the physical address of a location.
std::optional< std::string > state
Optional. State of the location.
std::shared_ptr< LocationAddress > Ptr
std::optional< std::string > street
Optional. Street address of the location.
std::optional< std::string > city
Optional. City of the location.
std::string countryCode
The two-letter ISO 3166-1 alpha-2 country code of the country where the location is located.
This object represents a point on the map.
double latitude
Latitude as defined by the sender.
double longitude
Longitude as defined by the sender.
std::optional< std::uint32_t > proximityAlertRadius
Optional. The maximum distance for proximity alerts about approaching another chat member,...
std::optional< std::uint32_t > heading
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
std::shared_ptr< Location > Ptr
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
std::optional< std::uint32_t > livePeriod
Optional. Time relative to the message sending date, during which the location can be updated; in sec...
This object represents a parameter of the inline keyboard button used to automatically authorize a us...
std::shared_ptr< LoginUrl > Ptr
std::optional< std::string > forwardText
Optional. New text of the button in forwarded messages.
std::optional< std::string > botUsername
Optional. Username of a bot, which will be used for user authorization; not supported in RichMessageB...
std::optional< bool > requestWriteAccess
Optional. Pass True to request the permission for your bot to send messages to the user.
std::string url
An HTTPS URL to be opened with user authorization data added to the query string when the button is p...
This object contains information about the bot that was created to be managed by the current bot.
std::shared_ptr< User > bot
Information about the bot. The bot's token can be fetched using the method getManagedBotToken.
std::shared_ptr< ManagedBotCreated > Ptr
This object contains information about the creation, token update, or owner update of a bot that is m...
std::shared_ptr< User > bot
Information about the bot. Token of the bot can be fetched using the method getManagedBotToken.
std::shared_ptr< User > user
User that created the bot.
std::shared_ptr< ManagedBotUpdated > Ptr
This object describes the position on faces where a mask should be placed by default.
double scale
Mask scaling coefficient. For example, 2.0 means double size.
double yShift
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom....
std::string point
The part of the face relative to which the mask should be placed. One of “forehead”,...
std::shared_ptr< MaskPosition > Ptr
double xShift
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right....
This object describes a message that can be inaccessible to the bot. It can be one of Message Inacces...
std::shared_ptr< MaybeInaccessibleMessage > Ptr
std::variant< std::shared_ptr< Message >, std::shared_ptr< InaccessibleMessage > > value
This object represents a service message about a change in auto-delete timer settings.
std::shared_ptr< MessageAutoDeleteTimerChanged > Ptr
std::uint32_t messageAutoDeleteTime
New auto-delete time for messages in the chat; in seconds.
This object represents one special entity in a text message. For example, hashtags,...
std::optional< std::int32_t > unixTime
Optional. For “date_time” only, the Unix time associated with the entity.
std::shared_ptr< MessageEntity > Ptr
std::optional< std::string > customEmojiId
Optional. For “custom_emoji” only, unique identifier of the custom emoji. Use getCustomEmojiStickers ...
std::optional< std::string > dateTimeFormat
Optional. For “date_time” only, the string that defines the formatting of the date and time....
std::uint32_t offset
Offset in UTF-16 code units to the start of the entity.
std::shared_ptr< User > user
Optional. For “text_mention” only, the mentioned user.
std::optional< std::string > language
Optional. For “pre” only, the programming language of the entity text.
Type type
Type of the entity. Currently, can be “mention” (@username), “hashtag” (hashtag or hashtag@chatuserna...
std::optional< std::string > url
Optional. For “text_link” only, URL that will be opened after user taps on the text.
std::uint32_t length
Length of the entity in UTF-16 code units.
This object describes an update about a user stopping message generation.
std::optional< std::uint32_t > messageThreadId
Optional. Unique identifier of the message thread in which the message is generated.
std::shared_ptr< MessageGenerationStopped > Ptr
std::int64_t draftId
Unique identifier of the message draft which was stopped.
std::shared_ptr< Chat > chat
Chat in which the message is generated.
This object represents a message.
std::shared_ptr< Sticker > sticker
Optional. Message is a sticker, information about the sticker.
std::shared_ptr< RichMessage > richMessage
Optional. Message is a rich formatted message.
std::optional< bool > channelChatCreated
Optional. Service message: the channel has been created. This field can't be received in a message co...
std::shared_ptr< GiftInfo > gift
Optional. Service message: a regular gift was sent or received.
std::shared_ptr< CommunityChatRemoved > communityChatRemoved
Optional. Service message: chat or bot removed from a Community.
std::shared_ptr< Giveaway > giveaway
Optional. The message is a scheduled giveaway message.
std::shared_ptr< Animation > animation
Optional. Message is an animation, information about the animation. For backward compatibility,...
std::shared_ptr< PassportData > passportData
Optional. Telegram Passport data.
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Optional. Options used for link preview generation for the message, if it is a text message and link ...
std::shared_ptr< ForumTopicEdited > forumTopicEdited
Optional. Service message: forum topic edited.
std::shared_ptr< Chat > guestBotCallerChat
Optional. For a message sent by a guest bot, this is the chat whose original message triggered the bo...
std::shared_ptr< GiftInfo > giftUpgradeSent
Optional. Service message: upgrade of a gift was purchased after the gift was sent.
std::optional< std::string > authorSignature
Optional. Signature of the post author for messages in channels, or the custom title of an anonymous ...
std::shared_ptr< WebAppData > webAppData
Optional. Service message: data sent by a Web App.
std::shared_ptr< UsersShared > usersShared
Optional. Service message: users were shared with the bot.
std::shared_ptr< ChatBackground > chatBackgroundSet
Optional. Service message: chat background set.
std::shared_ptr< GiveawayWinners > giveawayWinners
Optional. A giveaway with public winners was completed.
std::shared_ptr< Venue > venue
Optional. Message is a venue, information about the venue. For backward compatibility,...
std::shared_ptr< Video > video
Optional. Message is a video, information about the video.
std::shared_ptr< TextQuote > quote
Optional. For replies that quote part of the original message, the quoted part of the message.
std::shared_ptr< RefundedPayment > refundedPayment
Optional. Message is a service message about a refunded payment, information about the payment....
std::shared_ptr< GeneralForumTopicHidden > generalForumTopicHidden
Optional. Service message: the 'General' forum topic hidden.
std::shared_ptr< Message > Ptr
std::shared_ptr< VideoChatParticipantsInvited > videoChatParticipantsInvited
Optional. Service message: new participants invited to a video chat.
std::shared_ptr< Location > location
Optional. Message is a shared location, information about the location.
std::shared_ptr< ForumTopicClosed > forumTopicClosed
Optional. Service message: forum topic closed.
std::shared_ptr< ExternalReplyInfo > externalReply
Optional. Information about the message that is being replied to, which may come from another chat or...
std::shared_ptr< MessageOrigin > forwardOrigin
Optional. Information about the original message for forwarded messages.
std::shared_ptr< ChatBoostAdded > boostAdded
Optional. Service message: user boosted the chat.
std::optional< bool > isAutomaticForward
Optional. True, if the message is a channel post that was automatically forwarded to the connected di...
std::optional< bool > supergroupChatCreated
Optional. Service message: the supergroup has been created. This field can't be received in a message...
std::shared_ptr< PaidMediaInfo > paidMedia
Optional. Message contains paid media; information about the paid media.
std::optional< std::vector< std::shared_ptr< PhotoSize > > > newChatPhoto
Optional. A chat photo was change to this value.
std::shared_ptr< Invoice > invoice
Optional. Message is an invoice for a payment, information about the invoice. More about payments »
std::shared_ptr< CommunityChatAdded > communityChatAdded
Optional. Service message: chat or bot added to a Community.
std::optional< std::string > mediaGroupId
Optional. The unique identifier inside this chat of a media message group this message belongs to.
std::shared_ptr< Story > replyToStory
Optional. For replies to a story, the original story.
std::shared_ptr< ChatOwnerLeft > chatOwnerLeft
Optional. Service message: chat owner has left.
std::shared_ptr< Audio > audio
Optional. Message is an audio file, information about the file.
std::shared_ptr< Contact > contact
Optional. Message is a shared contact, information about the contact.
std::shared_ptr< GiveawayCreated > giveawayCreated
Optional. Service message: a scheduled giveaway was created.
std::shared_ptr< Story > story
Optional. Message is a forwarded story.
std::shared_ptr< VideoChatScheduled > videoChatScheduled
Optional. Service message: video chat scheduled.
std::optional< std::uint32_t > paidStarCount
Optional. The number of Telegram Stars that were paid by the sender of the message to send it.
std::shared_ptr< Checklist > checklist
Optional. Message is a checklist.
std::optional< bool > showCaptionAboveMedia
Optional. True, if the caption must be shown above the message media or the widget.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. For messages with a caption, special entities like usernames, URLs, bot commands,...
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. For text messages, special entities like usernames, URLs, bot commands, etc....
std::shared_ptr< User > guestBotCallerUser
Optional. For a message sent by a guest bot, this is the user whose original message triggered the bo...
std::optional< std::string > text
Optional. For text messages, the actual UTF-8 text of the message.
std::shared_ptr< Message > replyToMessage
Optional. For replies in the same chat and message thread, the original message. Note that the Messag...
std::shared_ptr< CommunityChatJoined > communityChatJoined
Optional. Service message: chat was joined by a user from a Community.
std::shared_ptr< UniqueGiftInfo > uniqueGift
Optional. Service message: a unique gift was sent or received.
std::optional< bool > groupChatCreated
Optional. Service message: the group has been created.
std::optional< std::vector< std::shared_ptr< User > > > newChatMembers
Optional. New members that were added to the group or supergroup and information about them (the bot ...
std::optional< std::string > businessConnectionId
Optional. Unique identifier of the business connection from which the message was received....
std::shared_ptr< ManagedBotCreated > managedBotCreated
Optional. Service message: user created a bot that will be managed by the current bot.
std::shared_ptr< VideoChatStarted > videoChatStarted
Optional. Service message: video chat started.
std::shared_ptr< LivePhoto > livePhoto
Optional. Message is a live photo, information about the live photo. For backward compatibility,...
std::shared_ptr< ForumTopicReopened > forumTopicReopened
Optional. Service message: forum topic reopened.
std::uint32_t messageId
Unique message identifier inside this chat; 0 for ephemeral messages. In specific instances (e....
std::shared_ptr< User > from
Optional. Sender of the message; may be empty for messages sent to channels. For backward compatibili...
std::optional< std::int64_t > migrateFromChatId
Optional. The supergroup has been migrated from a group with the specified identifier....
std::optional< std::int32_t > editDate
Optional. Date the message was last edited in Unix time.
std::shared_ptr< Document > document
Optional. Message is a general file, information about the file.
std::shared_ptr< SuccessfulPayment > successfulPayment
Optional. Message is a service message about a successful payment, information about the payment....
std::shared_ptr< PaidMessagesWaived > paidMessagesWaived
Optional. Service message: the sender of the message used a link of the other user,...
std::optional< std::int64_t > migrateToChatId
Optional. The group has been migrated to a supergroup with the specified identifier....
std::shared_ptr< PaidMessagePriceChanged > paidMessagePriceChanged
Optional. Service message: the price for paid messages has changed in the chat.
std::optional< bool > hasMediaSpoiler
Optional. True, if the message media is covered by a spoiler animation.
std::shared_ptr< VideoChatEnded > videoChatEnded
Optional. Service message: video chat ended.
std::shared_ptr< PollOptionAdded > pollOptionAdded
Optional. Service message: answer option was added to a poll.
std::shared_ptr< GiveawayCompleted > giveawayCompleted
Optional. Service message: a giveaway without public winners was completed.
std::shared_ptr< WriteAccessAllowed > writeAccessAllowed
Optional. Service message: the user allowed the bot to write messages after adding it to the attachme...
std::shared_ptr< Poll > poll
Optional. Message is a native poll, information about the poll.
std::shared_ptr< DirectMessagePriceChanged > directMessagePriceChanged
Optional. Service message: the price for paid messages in the corresponding direct messages chat of a...
std::optional< bool > hasProtectedContent
Optional. True, if the message can't be forwarded.
std::shared_ptr< PollOptionDeleted > pollOptionDeleted
Optional. Service message: answer option was deleted from a poll.
std::shared_ptr< User > receiverUser
Optional. For ephemeral messages, the user who received the message.
std::optional< bool > deleteChatPhoto
Optional. Service message: the chat photo was deleted.
std::shared_ptr< SuggestedPostApproved > suggestedPostApproved
Optional. Service message: a suggested post was approved.
std::optional< bool > isFromOffline
Optional. True, if the message was sent by an implicit action, for example, as an away or a greeting ...
std::shared_ptr< SuggestedPostInfo > suggestedPostInfo
Optional. Information about suggested post parameters if the message is a suggested post in a channel...
std::shared_ptr< GeneralForumTopicUnhidden > generalForumTopicUnhidden
Optional. Service message: the 'General' forum topic unhidden.
std::shared_ptr< SuggestedPostRefunded > suggestedPostRefunded
Optional. Service message: payment for a suggested post was refunded.
std::shared_ptr< User > leftChatMember
Optional. A member was removed from the group, information about them (this member may be the bot its...
std::shared_ptr< MessageAutoDeleteTimerChanged > messageAutoDeleteTimerChanged
Optional. Service message: auto-delete timer settings changed in the chat.
std::shared_ptr< SuggestedPostPaid > suggestedPostPaid
Optional. Service message: payment for a suggested post was received.
std::shared_ptr< ChatShared > chatShared
Optional. Service message: a chat was shared with the bot.
std::shared_ptr< SuggestedPostApprovalFailed > suggestedPostApprovalFailed
Optional. Service message: approval of a suggested post has failed.
std::uint32_t date
Date the message was sent in Unix time. It is always a positive number, representing a valid date.
std::shared_ptr< Dice > dice
Optional. Message is a dice with random value.
std::shared_ptr< DirectMessagesTopic > directMessagesTopic
Optional. Information about the direct messages chat topic that contains the message.
std::shared_ptr< ChecklistTasksDone > checklistTasksDone
Optional. Service message: some tasks in a checklist were marked as done or not done.
std::shared_ptr< Voice > voice
Optional. Message is a voice message, information about the file.
std::optional< std::uint32_t > ephemeralMessageId
Optional. For ephemeral messages, identifier of the ephemeral message inside this chat....
std::optional< std::string > replyToPollOptionId
Optional. Persistent identifier of the specific poll option that is being replied to.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url ...
std::shared_ptr< Chat > senderChat
Optional. Sender of the message when sent on behalf of a chat. For example, the supergroup itself for...
std::optional< std::string > newChatTitle
Optional. A chat title was changed to this value.
std::optional< bool > isPaidPost
Optional. True, if the message is a paid post. Note that such posts must not be deleted for 24 hours ...
std::shared_ptr< ChatOwnerChanged > chatOwnerChanged
Optional. Service message: chat owner has changed.
std::shared_ptr< VideoNote > videoNote
Optional. Message is a video note, information about the video message.
std::optional< std::string > senderTag
Optional. Tag or custom title of the sender of the message; for supergroups only.
std::shared_ptr< ProximityAlertTriggered > proximityAlertTriggered
Optional. Service message: a user in the chat triggered another user's proximity alert while sharing ...
std::optional< std::string > effectId
Optional. Unique identifier of the message effect added to the message.
std::shared_ptr< Chat > chat
Chat the message belongs to.
std::shared_ptr< Widget > widget
Optional. Message is an HTML widget, information about the widget.
std::optional< bool > isTopicMessage
Optional. True, if the message is sent to a topic in a forum supergroup or a private chat with the bo...
std::shared_ptr< ChecklistTasksAdded > checklistTasksAdded
Optional. Service message: tasks were added to a checklist.
std::shared_ptr< TonWalletTransfer > tonWalletTransfer
Optional. Service message: a transfer with a TON wallet.
std::shared_ptr< User > senderBusinessBot
Optional. The bot that actually sent the message on behalf of the business account....
std::optional< std::uint32_t > senderBoostCount
Optional. If the sender of the message boosted the chat, the number of boosts added by the user.
std::shared_ptr< User > viaBot
Optional. Bot through which the message was sent.
std::shared_ptr< ForumTopicCreated > forumTopicCreated
Optional. Service message: forum topic created.
std::shared_ptr< MaybeInaccessibleMessage > pinnedMessage
Optional. Specified message was pinned. Note that the Message object in this field will not contain f...
std::optional< std::string > caption
Optional. Caption for the animation, audio, document, live photo, paid media, photo,...
std::optional< std::uint32_t > replyToChecklistTaskId
Optional. Identifier of the specific checklist task that is being replied to.
std::optional< std::string > connectedWebsite
Optional. The domain name of the website on which the user has logged in. More about Telegram Login »
std::shared_ptr< Game > game
Optional. Message is a game, information about the game. More about games »
std::optional< std::string > guestQueryId
Optional. The unique identifier for the guest query. Use this identifier with the method answerGuestQ...
std::optional< std::uint32_t > messageThreadId
Optional. Unique identifier of a message thread or forum topic to which the message belongs; for supe...
std::shared_ptr< SuggestedPostDeclined > suggestedPostDeclined
Optional. Service message: a suggested post was declined.
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Message is a photo, available sizes of the photo.
This object represents a unique message identifier.
std::uint32_t messageId
Unique message identifier. In specific instances (e.g., message containing a video sent to a big chat...
std::shared_ptr< MessageId > Ptr
The message was originally sent to a channel chat.
std::optional< std::string > authorSignature
Optional. Signature of the original post author.
std::shared_ptr< MessageOriginChannel > Ptr
std::int32_t date
Date the message was sent originally in Unix time.
static TGBOT_API const std::string TYPE
std::uint32_t messageId
Unique message identifier inside the chat.
std::shared_ptr< Chat > chat
Channel chat to which the message was originally sent.
std::string type
Type of the message origin, always “channel”
The message was originally sent on behalf of a chat to a group chat.
std::optional< std::string > authorSignature
Optional. For messages originally sent by an anonymous chat administrator, original message author si...
std::string type
Type of the message origin, always “chat”
std::shared_ptr< MessageOriginChat > Ptr
std::int32_t date
Date the message was sent originally in Unix time.
static TGBOT_API const std::string TYPE
std::shared_ptr< Chat > senderChat
Chat that sent the message originally.
The message was originally sent by an unknown user.
std::shared_ptr< MessageOriginHiddenUser > Ptr
static TGBOT_API const std::string TYPE
std::int32_t date
Date the message was sent originally in Unix time.
std::string senderUserName
Name of the user that sent the message originally.
std::string type
Type of the message origin, always “hidden_user”
This object describes the origin of a message. It can be one of MessageOriginUser MessageOriginHidden...
std::shared_ptr< MessageOrigin > Ptr
std::variant< std::shared_ptr< MessageOriginUser >, std::shared_ptr< MessageOriginHiddenUser >, std::shared_ptr< MessageOriginChat >, std::shared_ptr< MessageOriginChannel > > value
The message was originally sent by a known user.
static TGBOT_API const std::string TYPE
std::string type
Type of the message origin, always “user”
std::shared_ptr< MessageOriginUser > Ptr
std::int32_t date
Date the message was sent originally in Unix time.
std::shared_ptr< User > senderUser
User that sent the message originally.
This object represents reaction changes on a message with anonymous reactions.
std::uint32_t messageId
Unique message identifier inside the chat.
std::vector< std::shared_ptr< ReactionCount > > reactions
List of reactions that are present on the message.
std::int32_t date
Date of the change in Unix time.
std::shared_ptr< Chat > chat
The chat containing the message.
std::shared_ptr< MessageReactionCountUpdated > Ptr
This object represents a change of a reaction on a message performed by a user.
std::vector< std::shared_ptr< ReactionType > > newReaction
New list of reaction types that have been set by the user.
std::vector< std::shared_ptr< ReactionType > > oldReaction
Previous list of reaction types that were set by the user.
std::shared_ptr< Chat > actorChat
Optional. The chat on behalf of which the reaction was changed, if the user is anonymous.
std::uint32_t messageId
Unique identifier of the message inside the chat.
std::shared_ptr< User > user
Optional. The user that changed the reaction, if the user isn't anonymous.
std::int32_t date
Date of the change in Unix time.
std::shared_ptr< MessageReactionUpdated > Ptr
std::shared_ptr< Chat > chat
The chat containing the message the user reacted to.
This object represents information about an order.
std::optional< std::string > phoneNumber
Optional. User's phone number.
std::optional< std::string > name
Optional. User name.
std::optional< std::string > email
Optional. User email.
std::shared_ptr< ShippingAddress > shippingAddress
Optional. User shipping address.
std::shared_ptr< OrderInfo > Ptr
This object describes a gift received and owned by a user or a chat. Currently, it can be one of Owne...
std::shared_ptr< OwnedGift > Ptr
std::variant< std::shared_ptr< OwnedGiftRegular >, std::shared_ptr< OwnedGiftUnique > > value
Describes a regular gift owned by a user or a chat.
static TGBOT_API const std::string TYPE
std::optional< bool > wasRefunded
Optional. True, if the gift was refunded and isn't available anymore.
std::optional< std::uint32_t > convertStarCount
Optional. Number of Telegram Stars that can be claimed by the receiver instead of the gift; omitted i...
std::optional< bool > isSaved
Optional. True, if the gift is displayed on the account's profile page; for gifts received on behalf ...
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the text.
std::optional< std::uint32_t > uniqueGiftNumber
Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift.
std::optional< std::uint32_t > prepaidUpgradeStarCount
Optional. Number of Telegram Stars that were paid for the ability to upgrade the gift.
std::optional< bool > isPrivate
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise,...
std::optional< std::string > ownedGiftId
Optional. Unique identifier of the gift for the bot; for gifts received on behalf of business account...
std::optional< bool > canBeUpgraded
Optional. True, if the gift can be upgraded to a unique gift; for gifts received on behalf of busines...
std::string type
Type of the gift, always “regular”
std::optional< bool > isUpgradeSeparate
Optional. True, if the gift's upgrade was purchased after the gift was sent; for gifts received on be...
std::optional< std::string > text
Optional. Text of the message that was added to the gift.
std::shared_ptr< User > senderUser
Optional. Sender of the gift if it is a known user.
std::shared_ptr< Gift > gift
Information about the regular gift.
std::shared_ptr< OwnedGiftRegular > Ptr
std::int32_t sendDate
Date the gift was sent in Unix time.
Describes a unique gift received and owned by a user or a chat.
std::shared_ptr< OwnedGiftUnique > Ptr
std::optional< std::string > ownedGiftId
Optional. Unique identifier of the received gift for the bot; for gifts received on behalf of busines...
std::string type
Type of the gift, always “unique”
std::optional< std::int32_t > nextTransferDate
Optional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past,...
std::shared_ptr< UniqueGift > gift
Information about the unique gift.
std::optional< bool > isSaved
Optional. True, if the gift is displayed on the account's profile page; for gifts received on behalf ...
std::optional< bool > canBeTransferred
Optional. True, if the gift can be transferred to another owner; for gifts received on behalf of busi...
std::int32_t sendDate
Date the gift was sent in Unix time.
std::shared_ptr< User > senderUser
Optional. Sender of the gift if it is a known user.
std::optional< std::uint32_t > transferStarCount
Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot ...
static TGBOT_API const std::string TYPE
Contains the list of gifts received and owned by a user or a chat.
std::uint32_t totalCount
The total number of gifts owned by the user or the chat.
std::vector< std::shared_ptr< OwnedGift > > gifts
The list of gifts.
std::shared_ptr< OwnedGifts > Ptr
std::optional< std::string > nextOffset
Optional. Offset for the next request. If empty, then there are no more results.
Describes a service message about a change in the price of paid messages within a chat.
std::uint32_t paidMessageStarCount
The new number of Telegram Stars that must be paid by non-administrator users of the supergroup chat ...
std::shared_ptr< PaidMessagePriceChanged > Ptr
Describes a service message about the sender of the message using a link of the other user,...
std::shared_ptr< PaidMessagesWaived > Ptr
Describes Telegram Passport data shared with the bot by the user.
std::vector< std::shared_ptr< EncryptedPassportElement > > data
Array with information about documents and other Telegram Passport elements that was shared with the ...
std::shared_ptr< EncryptedCredentials > credentials
Encrypted credentials required to decrypt the data.
std::shared_ptr< PassportData > Ptr
Represents an issue in one of the data fields that was provided by the user. The error is considered ...
std::string source
Error source, must be data.
std::string message
Error message.
static TGBOT_API const std::string SOURCE
std::shared_ptr< PassportElementErrorDataField > Ptr
std::string type
The section of the user's Telegram Passport which has the error, one of “personal_details”,...
std::string dataHash
Base64-encoded data hash.
std::string fieldName
Name of the data field which has the error.
Represents an issue with a document scan. The error is considered resolved when the file with the doc...
std::string type
The section of the user's Telegram Passport which has the issue, one of “utility_bill”,...
std::string message
Error message.
std::shared_ptr< PassportElementErrorFile > Ptr
static TGBOT_API const std::string SOURCE
std::string fileHash
Base64-encoded file hash.
std::string source
Error source, must be file.
Represents an issue with a list of scans. The error is considered resolved when the list of files con...
std::string message
Error message.
std::string source
Error source, must be files.
std::shared_ptr< PassportElementErrorFiles > Ptr
static TGBOT_API const std::string SOURCE
std::string type
The section of the user's Telegram Passport which has the issue, one of “utility_bill”,...
std::vector< std::string > fileHashes
List of base64-encoded file hashes.
Represents an issue with the front side of a document. The error is considered resolved when the file...
std::string fileHash
Base64-encoded hash of the file with the front side of the document.
std::string message
Error message.
std::shared_ptr< PassportElementErrorFrontSide > Ptr
static TGBOT_API const std::string SOURCE
std::string source
Error source, must be front_side.
std::string type
The section of the user's Telegram Passport which has the issue, one of “passport”,...
This object represents an error in the Telegram Passport element which was submitted that should be r...
std::variant< std::shared_ptr< PassportElementErrorDataField >, std::shared_ptr< PassportElementErrorFrontSide >, std::shared_ptr< PassportElementErrorReverseSide >, std::shared_ptr< PassportElementErrorSelfie >, std::shared_ptr< PassportElementErrorFile >, std::shared_ptr< PassportElementErrorFiles >, std::shared_ptr< PassportElementErrorTranslationFile >, std::shared_ptr< PassportElementErrorTranslationFiles >, std::shared_ptr< PassportElementErrorUnspecified > > value
std::shared_ptr< PassportElementError > Ptr
Represents an issue with the reverse side of a document. The error is considered resolved when the fi...
std::string source
Error source, must be reverse_side.
std::shared_ptr< PassportElementErrorReverseSide > Ptr
static TGBOT_API const std::string SOURCE
std::string message
Error message.
std::string type
The section of the user's Telegram Passport which has the issue, one of “driver_license”,...
std::string fileHash
Base64-encoded hash of the file with the reverse side of the document.
Represents an issue with the selfie with a document. The error is considered resolved when the file w...
std::string fileHash
Base64-encoded hash of the file with the selfie.
static TGBOT_API const std::string SOURCE
std::shared_ptr< PassportElementErrorSelfie > Ptr
std::string type
The section of the user's Telegram Passport which has the issue, one of “passport”,...
std::string source
Error source, must be selfie.
std::string message
Error message.
Represents an issue with one of the files that constitute the translation of a document....
std::string source
Error source, must be translation_file.
std::string fileHash
Base64-encoded file hash.
std::shared_ptr< PassportElementErrorTranslationFile > Ptr
std::string message
Error message.
static TGBOT_API const std::string SOURCE
std::string type
Type of element of the user's Telegram Passport which has the issue, one of “passport”,...
Represents an issue with the translated version of a document. The error is considered resolved when ...
static TGBOT_API const std::string SOURCE
std::vector< std::string > fileHashes
List of base64-encoded file hashes.
std::shared_ptr< PassportElementErrorTranslationFiles > Ptr
std::string message
Error message.
std::string source
Error source, must be translation_files.
std::string type
Type of element of the user's Telegram Passport which has the issue, one of “passport”,...
Represents an issue in an unspecified place. The error is considered resolved when new data is added.
std::string elementHash
Base64-encoded element hash.
std::string message
Error message.
static TGBOT_API const std::string SOURCE
std::string source
Error source, must be unspecified.
std::shared_ptr< PassportElementErrorUnspecified > Ptr
std::string type
Type of element of the user's Telegram Passport which has the issue.
This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files ar...
std::int32_t fileDate
Unix time when the file was uploaded.
std::uint32_t fileSize
File size in bytes.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
std::shared_ptr< PassportFile > Ptr
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
This object represents one size of a photo or a file / sticker thumbnail.
std::uint32_t width
Photo width.
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::uint32_t height
Photo height.
std::optional< std::uint32_t > fileSize
Optional. File size in bytes.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
std::shared_ptr< PhotoSize > Ptr
Arguments for Api::pinChatMessage.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
bool disableNotification
Pass True if it is not necessary to send a notification to all chat members about the new pinned mess...
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be pinned.
std::uint32_t messageId
Identifier of a message to pin.
This object represents an answer of a user in a non-anonymous poll.
std::shared_ptr< User > user
Optional. The user that changed the answer to the poll, if the voter isn't anonymous.
std::string pollId
Unique poll identifier.
std::vector< std::uint32_t > optionIds
0-based identifiers of chosen answer options. May be empty if the vote was retracted.
std::shared_ptr< Chat > voterChat
Optional. The chat that changed the answer to the poll, if the voter is anonymous.
std::vector< std::string > optionPersistentIds
Persistent identifiers of the chosen answer options. May be empty if the vote was retracted.
std::shared_ptr< PollAnswer > Ptr
This object contains information about a poll.
bool isAnonymous
True, if the poll is anonymous.
std::optional< std::int32_t > closeDate
Optional. Point in time (Unix timestamp) when the poll will be automatically closed.
std::optional< std::uint32_t > openPeriod
Optional. Amount of time in seconds the poll will be active after creation.
bool isClosed
True, if the poll is closed.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > descriptionEntities
Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the description.
std::optional< std::string > explanation
Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a qu...
std::uint32_t totalVoterCount
Total number of users that voted in the poll.
std::vector< std::shared_ptr< PollOption > > options
List of poll options.
std::optional< std::string > description
Optional. Description of the poll; for polls inside the Message object only.
bool membersOnly
True if voting is limited to users who have been members of the chat where the poll was originally se...
bool allowsMultipleAnswers
True, if the poll allows multiple answers.
std::shared_ptr< PollMedia > explanationMedia
Optional. Media added to the quiz explanation.
std::shared_ptr< PollMedia > media
Optional. Media added to the poll description; for polls inside the Message object only.
std::optional< std::vector< std::uint32_t > > correctOptionIds
Optional. Array of 0-based identifiers of the correct answer options. Available only for polls in qui...
std::optional< std::vector< std::shared_ptr< MessageEntity > > > explanationEntities
Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation.
bool allowsRevoting
True, if the poll allows to change the chosen answer options.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > questionEntities
Optional. Special entities that appear in the question. Currently, only custom emoji entities are all...
std::optional< std::vector< std::string > > countryCodes
Optional. A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which u...
std::string type
Poll type, currently can be “regular” or “quiz”
std::shared_ptr< Poll > Ptr
std::string question
Poll question, 1-300 characters.
Describes a service message about an option added to a poll.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > optionTextEntities
Optional. Special entities that appear in the option_text.
std::string optionPersistentId
Unique identifier of the added option.
std::shared_ptr< MaybeInaccessibleMessage > pollMessage
Optional. Message containing the poll to which the option was added, if known. Note that the Message ...
std::string optionText
Option text.
std::shared_ptr< PollOptionAdded > Ptr
Describes a service message about an option deleted from a poll.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > optionTextEntities
Optional. Special entities that appear in the option_text.
std::shared_ptr< MaybeInaccessibleMessage > pollMessage
Optional. Message containing the poll from which the option was deleted, if known....
std::string optionText
Option text.
std::shared_ptr< PollOptionDeleted > Ptr
std::string optionPersistentId
Unique identifier of the deleted option.
This object contains information about one answer option in a poll.
std::string text
Option text, 1-100 characters.
std::optional< std::int32_t > additionDate
Optional. Point in time (Unix timestamp) when the option was added; omitted if the option existed in ...
std::string persistentId
Unique identifier of the option, persistent on option addition and deletion.
std::shared_ptr< PollOption > Ptr
std::uint32_t voterCount
Number of users who voted for this option; may be 0 if unknown.
std::shared_ptr< PollMedia > media
Optional. Media added to the poll option.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > textEntities
Optional. Special entities that appear in the option text. Currently, only custom emoji entities are ...
std::shared_ptr< Chat > addedByChat
Optional. Chat that added the option; omitted if the option wasn't added by a chat after poll creatio...
std::shared_ptr< User > addedByUser
Optional. User who added the option; omitted if the option wasn't added by a user after poll creation...
Arguments for Api::postStory.
std::vector< std::shared_ptr< StoryArea > > areas
A JSON-serialized list of clickable areas to be shown on the story.
bool protectContent
Pass True if the content of the story must be protected from forwarding and screenshotting.
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
std::string caption
Caption of the story, 0-2048 characters after entities parsing.
bool postToChatPage
Pass True to keep the story accessible after it expires.
std::uint32_t activePeriod
Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600,...
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
std::shared_ptr< InputStoryContent > content
Content of the story.
std::string businessConnectionId
Unique identifier of the business connection.
std::string parseMode
Mode for parsing entities in the story caption. See formatting options for more details.
This object contains information about an incoming pre-checkout query.
std::shared_ptr< PreCheckoutQuery > Ptr
std::optional< std::string > shippingOptionId
Optional. Identifier of the shipping option chosen by the user.
std::shared_ptr< OrderInfo > orderInfo
Optional. Order information provided by the user.
std::uint64_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
std::string invoicePayload
Bot-specified invoice payload.
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
std::shared_ptr< User > from
User who sent the query.
Describes an inline message to be sent by a user of a Mini App.
std::shared_ptr< PreparedInlineMessage > Ptr
std::int32_t expirationDate
Expiration date of the prepared message, in Unix time. Expired prepared messages can no longer be use...
This object represents the content of a service message, sent whenever a user in the chat triggers a ...
std::shared_ptr< ProximityAlertTriggered > Ptr
std::shared_ptr< User > watcher
User that set the alert.
std::shared_ptr< User > traveler
User that triggered the alert.
std::uint32_t distance
The distance between the users.
Represents a reaction added to a message along with the number of times it was added.
std::shared_ptr< ReactionType > type
Type of the reaction.
std::uint32_t totalCount
Number of times the reaction was added.
std::shared_ptr< ReactionCount > Ptr
The reaction is based on a custom emoji.
static TGBOT_API const std::string TYPE
std::string customEmojiId
Custom emoji identifier.
std::shared_ptr< ReactionTypeCustomEmoji > Ptr
std::string type
Type of the reaction, always “custom_emoji”
The reaction is based on an emoji.
static TGBOT_API const std::string TYPE
std::string type
Type of the reaction, always “emoji”
std::shared_ptr< ReactionTypeEmoji > Ptr
std::string emoji
Reaction emoji. Currently, it can be one of "", "", "", "", "", "", "", "", "", "",...
This object describes the type of a reaction. Currently, it can be one of ReactionTypeEmoji ReactionT...
std::variant< std::shared_ptr< ReactionTypeEmoji >, std::shared_ptr< ReactionTypeCustomEmoji >, std::shared_ptr< ReactionTypePaid > > value
std::shared_ptr< ReactionType > Ptr
std::string type
Type of the reaction, always “paid”
std::shared_ptr< ReactionTypePaid > Ptr
static TGBOT_API const std::string TYPE
Arguments for Api::readBusinessMessage.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which to read the message.
std::uint32_t messageId
Unique identifier of the message to mark as read.
std::variant< std::int64_t, std::string > chatId
Unique identifier of the chat in which the message was received. The chat must have been active in th...
Arguments for Api::refundStarPayment.
std::string telegramPaymentChargeId
Telegram payment identifier.
std::uint64_t userId
Identifier of the user whose payment will be refunded.
This object contains basic information about a refunded payment.
std::string invoicePayload
Bot-specified invoice payload.
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently,...
std::uint64_t totalAmount
Total refunded price in the smallest units of the currency (integer, not float/double)....
std::optional< std::string > providerPaymentChargeId
Optional. Provider payment identifier.
std::string telegramPaymentChargeId
Telegram payment identifier.
std::shared_ptr< RefundedPayment > Ptr
Arguments for Api::removeBusinessAccountProfilePhoto.
std::string businessConnectionId
Unique identifier of the business connection.
bool isPublic
Pass True to remove the public photo, which is visible even if the main photo is hidden by the busine...
Arguments for Api::removeChatVerification.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot or channel in the format @usernam...
Arguments for Api::removeUserVerification.
std::uint64_t userId
Unique identifier of the target user.
Arguments for Api::reopenForumTopic.
std::uint32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Arguments for Api::reopenGeneralForumTopic.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Arguments for Api::replaceManagedBotToken.
std::uint64_t userId
User identifier of the managed bot whose token will be replaced.
Arguments for Api::replaceStickerInSet.
std::string name
Sticker set name.
std::string oldSticker
File identifier of the replaced sticker.
std::shared_ptr< InputSticker > sticker
A JSON-serialized object with information about the added sticker. If exactly the same sticker had al...
std::uint64_t userId
User identifier of the sticker set owner.
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
This object represents a custom keyboard with reply options (see Introduction to bots for details and...
std::optional< std::string > inputFieldPlaceholder
Optional. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters...
std::optional< bool > forceReply
Optional. Pass True if the reply interface must be shown to the user, as if they had manually selecte...
std::shared_ptr< ReplyKeyboardMarkup > Ptr
std::vector< std::vector< std::shared_ptr< KeyboardButton > > > keyboard
Array of button rows, each represented by an Array of KeyboardButton objects.
std::optional< bool > selective
Optional. Use this parameter if you want to show the keyboard to specific users only....
std::optional< bool > isPersistent
Optional. Requests clients to always show the keyboard when the regular keyboard is hidden....
std::optional< bool > resizeKeyboard
Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g....
std::optional< bool > oneTimeKeyboard
Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be...
Upon receiving a message with this object, Telegram clients will remove the current custom keyboard a...
bool removeKeyboard
Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you...
std::optional< bool > selective
Optional. Use this parameter if you want to remove the keyboard for specific users only....
std::shared_ptr< ReplyKeyboardRemove > Ptr
Describes reply parameters for the message that is being sent.
std::optional< std::vector< std::shared_ptr< RichText > > > quoteRichTexts
Optional. A JSON-serialized list of quoted parts of the rich message to be replied to....
std::optional< std::variant< std::int64_t, std::string > > chatId
Optional. If the message to be replied to is from a different chat, unique identifier for the chat or...
std::optional< std::string > pollOptionId
Optional. Persistent identifier of the specific poll option to be replied to.
std::optional< std::uint32_t > quotePosition
Optional. Position of the quote in the original message in UTF-16 code units. For quotes from rich me...
std::optional< std::uint32_t > messageId
Optional. Identifier of the message that will be replied to in the current chat, or in the chat chat_...
std::optional< std::string > quote
Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing....
std::optional< bool > allowSendingWithoutReply
Optional. Pass True if the message should be sent even if the specified message to be replied to is n...
std::optional< std::uint32_t > checklistTaskId
Optional. Identifier of the specific checklist task to be replied to.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > quoteEntities
Optional. A JSON-serialized list of special entities that appear in the quote. It can be specified in...
std::optional< std::string > quoteParseMode
Optional. Mode for parsing entities in the quote. See formatting options for more details.
std::optional< std::uint32_t > ephemeralMessageId
Optional. Identifier of the incoming ephemeral message that will be replied to in the current chat....
std::shared_ptr< ReplyParameters > Ptr
Arguments for Api::repostStory.
std::uint32_t activePeriod
Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600,...
std::uint32_t fromStoryId
Unique identifier of the story that should be reposted.
bool postToChatPage
Pass True to keep the story accessible after it expires.
bool protectContent
Pass True if the content of the story must be protected from forwarding and screenshotting.
std::string businessConnectionId
Unique identifier of the business connection.
std::variant< std::int64_t, std::string > fromChatId
Unique identifier of the chat which posted the story that should be reposted.
Describes why a request was unsuccessful.
std::optional< std::uint32_t > retryAfter
Optional. In case of exceeding flood control, the number of seconds left to wait before the request c...
std::optional< std::int64_t > migrateToChatId
Optional. The group has been migrated to a supergroup with the specified identifier....
std::shared_ptr< ResponseParameters > Ptr
Arguments for Api::restrictChatMember.
std::int32_t untilDate
Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 36...
std::uint64_t userId
Unique identifier of the target user.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
bool useIndependentChatPermissions
Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_a...
std::shared_ptr< ChatPermissions > permissions
A JSON-serialized object for new user permissions.
The withdrawal failed and the transaction was refunded.
std::shared_ptr< RevenueWithdrawalStateFailed > Ptr
static TGBOT_API const std::string TYPE
std::string type
Type of the state, always “failed”
This object describes the state of a revenue withdrawal operation. Currently, it can be one of Revenu...
std::variant< std::shared_ptr< RevenueWithdrawalStatePending >, std::shared_ptr< RevenueWithdrawalStateSucceeded >, std::shared_ptr< RevenueWithdrawalStateFailed > > value
std::shared_ptr< RevenueWithdrawalState > Ptr
The withdrawal is in progress.
std::shared_ptr< RevenueWithdrawalStatePending > Ptr
static TGBOT_API const std::string TYPE
std::string type
Type of the state, always “pending”
The withdrawal succeeded.
std::string type
Type of the state, always “succeeded”
std::shared_ptr< RevenueWithdrawalStateSucceeded > Ptr
static TGBOT_API const std::string TYPE
std::int32_t date
Date the withdrawal was completed in Unix time.
std::string url
An HTTPS URL that can be used to see transaction details.
Arguments for Api::revokeChatInviteLink.
std::string inviteLink
The invite link to revoke.
std::variant< std::int64_t, std::string > chatId
Unique identifier of the target chat or username of the target channel in the format @username.
A block with an anchor, corresponding to the HTML tag with the attribute name.
static TGBOT_API const std::string TYPE
std::shared_ptr< RichBlockAnchor > Ptr
std::string name
The name of the anchor.
std::string type
Type of the block, always “anchor”
A block with an animation, corresponding to the HTML tag <video>.
std::string type
Type of the block, always “animation”
std::optional< bool > hasSpoiler
Optional. True, if the media preview is covered by a spoiler animation.
std::shared_ptr< RichBlockAnimation > Ptr
static TGBOT_API const std::string TYPE
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
std::shared_ptr< Animation > animation
The animation.
A block with a music file, corresponding to the HTML tag <audio>.
std::shared_ptr< RichBlockAudio > Ptr
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
std::string type
Type of the block, always “audio”
static TGBOT_API const std::string TYPE
std::shared_ptr< Audio > audio
The audio.
A block quotation, corresponding to the HTML tag.
std::vector< std::shared_ptr< RichBlock > > blocks
Content of the block.
static TGBOT_API const std::string TYPE
std::string type
Type of the block, always “blockquote”
std::shared_ptr< RichText > credit
Optional. Credit of the block.
std::shared_ptr< RichBlockBlockQuotation > Ptr
Caption of a rich formatted block.
std::shared_ptr< RichText > text
Block caption.
std::shared_ptr< RichBlockCaption > Ptr
std::shared_ptr< RichText > credit
Optional. Block credit which corresponds to the HTML tag .
A collage, corresponding to the custom HTML tag <tg-collage>.
std::vector< std::shared_ptr< RichBlock > > blocks
Elements of the collage.
std::string type
Type of the block, always “collage”
static TGBOT_API const std::string TYPE
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
std::shared_ptr< RichBlockCollage > Ptr
An expandable block for details disclosure, corresponding to the HTML tag.
std::shared_ptr< RichBlockDetails > Ptr
std::string type
Type of the block, always “details”
std::shared_ptr< RichText > summary
Always shown summary of the block.
std::vector< std::shared_ptr< RichBlock > > blocks
Content of the block.
static TGBOT_API const std::string TYPE
std::optional< bool > isOpen
Optional. True, if the content of the block is visible by default.
A divider, corresponding to the HTML tag .
std::string type
Type of the block, always “divider”
static TGBOT_API const std::string TYPE
std::shared_ptr< RichBlockDivider > Ptr
A block with a general file, corresponding to the custom HTML tag <tg-document>.
std::shared_ptr< Document > document
The document.
std::shared_ptr< RichBlockDocument > Ptr
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
std::string type
Type of the block, always “document”
static TGBOT_API const std::string TYPE
A block quotation, corresponding to the HTML tag.
std::shared_ptr< RichBlockExpandableBlockQuotation > Ptr
std::shared_ptr< RichText > credit
Optional. Credit of the block.
static TGBOT_API const std::string TYPE
std::shared_ptr< RichText > text
Content of the block.
std::string type
Type of the block, always “expandable_blockquote”
This object represents a block in a rich formatted message. Currently, it can be any of the following...
std::variant< std::shared_ptr< RichBlockParagraph >, std::shared_ptr< RichBlockSectionHeading >, std::shared_ptr< RichBlockPreformatted >, std::shared_ptr< RichBlockFooter >, std::shared_ptr< RichBlockDivider >, std::shared_ptr< RichBlockMathematicalExpression >, std::shared_ptr< RichBlockAnchor >, std::shared_ptr< RichBlockList >, std::shared_ptr< RichBlockBlockQuotation >, std::shared_ptr< RichBlockExpandableBlockQuotation >, std::shared_ptr< RichBlockPullQuotation >, std::shared_ptr< RichBlockCollage >, std::shared_ptr< RichBlockSlideshow >, std::shared_ptr< RichBlockTable >, std::shared_ptr< RichBlockDetails >, std::shared_ptr< RichBlockMap >, std::shared_ptr< RichBlockButtons >, std::shared_ptr< RichBlockAnimation >, std::shared_ptr< RichBlockAudio >, std::shared_ptr< RichBlockDocument >, std::shared_ptr< RichBlockPhoto >, std::shared_ptr< RichBlockVideo >, std::shared_ptr< RichBlockVoiceNote >, std::shared_ptr< RichBlockThinking > > value
std::shared_ptr< RichBlock > Ptr
A list of blocks, corresponding to the HTML tag.
static TGBOT_API const std::string TYPE
std::vector< std::shared_ptr< RichBlockListItem > > items
Items of the list.
std::string type
Type of the block, always “list”
std::shared_ptr< RichBlockList > Ptr
std::string label
Label of the item.
std::shared_ptr< RichBlockListItem > Ptr
std::optional< bool > hasCheckbox
Optional. True, if the item has a checkbox.
std::optional< std::string > type
Optional. For ordered lists, the type of the item label; must be one of “a” for lowercase letters,...
std::vector< std::shared_ptr< RichBlock > > blocks
The content of the item.
std::optional< bool > isChecked
Optional. True, if the item has a checked checkbox.
std::optional< std::int32_t > value
Optional. For ordered lists, the numeric value of the item label.
A block with a map, corresponding to the custom HTML tag <tg-map>.
std::shared_ptr< Location > location
Location of the center of the map.
std::uint32_t height
Expected height of the map.
static TGBOT_API const std::string TYPE
std::shared_ptr< RichBlockMap > Ptr
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
std::uint32_t width
Expected width of the map.
std::string type
Type of the block, always “map”
std::uint32_t zoom
Map zoom level.
A block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag <tg-math...
std::string type
Type of the block, always “mathematical_expression”
std::shared_ptr< RichBlockMathematicalExpression > Ptr
static TGBOT_API const std::string TYPE
std::string expression
The mathematical expression in LaTeX format.
A text paragraph, corresponding to the HTML tag.
std::shared_ptr< RichBlockParagraph > Ptr
std::shared_ptr< RichText > text
Text of the block.
static TGBOT_API const std::string TYPE
std::string type
Type of the block, always “paragraph”
A block with a photo, corresponding to the HTML tag.
std::optional< bool > hasSpoiler
Optional. True, if the media preview is covered by a spoiler animation.
static TGBOT_API const std::string TYPE
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
std::shared_ptr< RichBlockPhoto > Ptr
std::string type
Type of the block, always “photo”
std::vector< std::shared_ptr< PhotoSize > > photo
Available sizes of the photo.
A quotation with centered text, loosely corresponding to the HTML tag <aside>.
std::shared_ptr< RichText > text
Text of the block.
std::shared_ptr< RichText > credit
Optional. Credit of the block.
std::shared_ptr< RichBlockPullQuotation > Ptr
static TGBOT_API const std::string TYPE
std::string type
Type of the block, always “pullquote”
A section heading, corresponding to the HTML tags.
std::shared_ptr< RichText > text
Text of the block.
std::shared_ptr< RichBlockSectionHeading > Ptr
static TGBOT_API const std::string TYPE
std::string type
Type of the block, always “heading”
std::uint32_t size
Relative size of the text font; 1-6, 1 is the largest, 6 is the smallest.
A slideshow, corresponding to the custom HTML tag <tg-slideshow>.
std::vector< std::shared_ptr< RichBlock > > blocks
Elements of the slideshow.
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
std::string type
Type of the block, always “slideshow”
static TGBOT_API const std::string TYPE
std::shared_ptr< RichBlockSlideshow > Ptr
std::string align
Horizontal cell content alignment. Currently, must be one of “left”, “center”, or “right”.
std::optional< std::uint32_t > colspan
Optional. The number of columns the cell spans if it is bigger than 1.
std::optional< std::uint32_t > rowspan
Optional. The number of rows the cell spans if it is bigger than 1.
std::shared_ptr< RichBlockTableCell > Ptr
std::optional< bool > isHeader
Optional. True, if the cell is a header cell.
std::string valign
Vertical cell content alignment. Currently, must be one of “top”, “middle”, or “bottom”.
std::shared_ptr< RichText > text
Optional. Text in the cell. If omitted, then the cell is invisible.
A table, corresponding to the HTML tag.
std::vector< std::vector< std::shared_ptr< RichBlockTableCell > > > cells
Cells of the table.
std::shared_ptr< RichText > caption
Optional. Caption of the table.
std::string type
Type of the block, always “table”
std::optional< bool > isStriped
Optional. True, if the table is striped.
std::optional< bool > isCompact
Optional. True, if table cells have smaller indents.
static TGBOT_API const std::string TYPE
std::shared_ptr< RichBlockTable > Ptr
std::optional< bool > isBordered
Optional. True, if the table has borders.
A block with a “Thinking…” placeholder, corresponding to the custom HTML tag <tg-thinking>....
std::shared_ptr< RichBlockThinking > Ptr
std::string type
Type of the block, always “thinking”
std::shared_ptr< RichText > text
Text of the block. See https://t.me/addemoji/AIActions for examples of custom emoji that are recommen...
static TGBOT_API const std::string TYPE
A block with a video, corresponding to the HTML tag <video>.
std::shared_ptr< RichBlockVideo > Ptr
static TGBOT_API const std::string TYPE
std::string type
Type of the block, always “video”
std::optional< bool > hasSpoiler
Optional. True, if the media preview is covered by a spoiler animation.
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
std::shared_ptr< Video > video
The video.
A block with a voice note, corresponding to the HTML tag <audio>.
static TGBOT_API const std::string TYPE
std::shared_ptr< RichBlockVoiceNote > Ptr
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
std::shared_ptr< Voice > voiceNote
The voice note.
std::string type
Type of the block, always “voice_note”
std::shared_ptr< RichMessage > Ptr
std::optional< bool > isRtl
Optional. True, if the rich message must be shown right-to-left.
std::vector< std::shared_ptr< RichBlock > > blocks
Content of the message.
std::string type
Type of the rich text, always “anchor”
std::shared_ptr< RichTextAnchor > Ptr
static TGBOT_API const std::string TYPE
std::string name
The name of the anchor.
std::shared_ptr< RichText > text
The link text.
std::string type
Type of the rich text, always “anchor_link”
static TGBOT_API const std::string TYPE
std::string anchorName
The name of the anchor. If the name is empty, then the link brings back to the top of the message.
std::shared_ptr< RichTextAnchorLink > Ptr
A text with a bank card number.
std::shared_ptr< RichTextBankCardNumber > Ptr
static TGBOT_API const std::string TYPE
std::shared_ptr< RichText > text
The text.
std::string bankCardNumber
The bank card number.
std::string type
Type of the rich text, always “bank_card_number”
std::shared_ptr< RichTextBold > Ptr
static TGBOT_API const std::string TYPE
std::shared_ptr< RichText > text
The text.
std::string type
Type of the rich text, always “bold”
static TGBOT_API const std::string TYPE
std::string botCommand
The bot command.
std::shared_ptr< RichTextBotCommand > Ptr
std::string type
Type of the rich text, always “bot_command”
std::shared_ptr< RichText > text
The text.
static TGBOT_API const std::string TYPE
std::shared_ptr< RichTextButton > Ptr
std::string type
Type of the rich text, always “button”
std::shared_ptr< RichMessageButton > button
The button.
static TGBOT_API const std::string TYPE
std::string cashtag
The cashtag.
std::shared_ptr< RichText > text
The text.
std::string type
Type of the rich text, always “cashtag”
std::shared_ptr< RichTextCashtag > Ptr
static TGBOT_API const std::string TYPE
std::shared_ptr< RichTextCode > Ptr
std::string type
Type of the rich text, always “code”
std::shared_ptr< RichText > text
The text.
std::string type
Type of the rich text, always “custom_emoji”
std::string alternativeText
Alternative emoji for the custom emoji.
std::string customEmojiId
Unique identifier of the custom emoji. Use getCustomEmojiStickers to get full information about the s...
std::shared_ptr< RichTextCustomEmoji > Ptr
static TGBOT_API const std::string TYPE
static TGBOT_API const std::string TYPE
std::string dateTimeFormat
The string that defines the formatting of the date and time. See date-time entity formatting for more...
std::shared_ptr< RichTextDateTime > Ptr
std::shared_ptr< RichText > text
The text.
std::int32_t unixTime
The Unix time associated with the entity.
std::string type
Type of the rich text, always “date_time”
A text with an email address.
std::shared_ptr< RichTextEmailAddress > Ptr
std::string emailAddress
The email address.
static TGBOT_API const std::string TYPE
std::string type
Type of the rich text, always “email_address”
std::shared_ptr< RichText > text
The text.
static TGBOT_API const std::string TYPE
std::shared_ptr< RichTextHashtag > Ptr
std::string type
Type of the rich text, always “hashtag”
std::string hashtag
The hashtag.
std::shared_ptr< RichText > text
The text.
This object represents a rich formatted text. Currently, it can be either a String for plain text,...
std::variant< std::shared_ptr< RichTextBold >, std::shared_ptr< RichTextItalic >, std::shared_ptr< RichTextUnderline >, std::shared_ptr< RichTextStrikethrough >, std::shared_ptr< RichTextSpoiler >, std::shared_ptr< RichTextDateTime >, std::shared_ptr< RichTextTextMention >, std::shared_ptr< RichTextSubscript >, std::shared_ptr< RichTextSuperscript >, std::shared_ptr< RichTextMarked >, std::shared_ptr< RichTextCode >, std::shared_ptr< RichTextCustomEmoji >, std::shared_ptr< RichTextMathematicalExpression >, std::shared_ptr< RichTextUrl >, std::shared_ptr< RichTextEmailAddress >, std::shared_ptr< RichTextPhoneNumber >, std::shared_ptr< RichTextBankCardNumber >, std::shared_ptr< RichTextMention >, std::shared_ptr< RichTextHashtag >, std::shared_ptr< RichTextCashtag >, std::shared_ptr< RichTextBotCommand >, std::shared_ptr< RichTextButton >, std::shared_ptr< RichTextAnchor >, std::shared_ptr< RichTextAnchorLink >, std::shared_ptr< RichTextReference >, std::shared_ptr< RichTextReferenceLink >, std::string, std::vector< std::shared_ptr< RichText > >, std::shared_ptr< RichTextTonAddress > > value
std::shared_ptr< RichText > Ptr
std::string type
Type of the rich text, always “italic”
static TGBOT_API const std::string TYPE
std::shared_ptr< RichText > text
The text.
std::shared_ptr< RichTextItalic > Ptr
static TGBOT_API const std::string TYPE
std::shared_ptr< RichText > text
The text.
std::string type
Type of the rich text, always “marked”
std::shared_ptr< RichTextMarked > Ptr
A mathematical expression.
std::string type
Type of the rich text, always “mathematical_expression”
std::string expression
The expression in LaTeX format.
std::shared_ptr< RichTextMathematicalExpression > Ptr
static TGBOT_API const std::string TYPE
static TGBOT_API const std::string TYPE
std::shared_ptr< RichTextMention > Ptr
std::string username
The username.
std::shared_ptr< RichText > text
The text.
std::string type
Type of the rich text, always “mention”
A text with a phone number.
std::shared_ptr< RichText > text
The text.
std::shared_ptr< RichTextPhoneNumber > Ptr
std::string phoneNumber
The phone number.
std::string type
Type of the rich text, always “phone_number”
static TGBOT_API const std::string TYPE
std::string type
Type of the rich text, always “reference”
std::string name
The name of the reference.
static TGBOT_API const std::string TYPE
std::shared_ptr< RichText > text
Text of the reference.
std::shared_ptr< RichTextReference > Ptr
std::shared_ptr< RichTextReferenceLink > Ptr
static TGBOT_API const std::string TYPE
std::string type
Type of the rich text, always “reference_link”
std::string referenceName
The name of the reference.
std::shared_ptr< RichText > text
The link text.
A text covered by a spoiler.
static TGBOT_API const std::string TYPE
std::string type
Type of the rich text, always “spoiler”
std::shared_ptr< RichTextSpoiler > Ptr
std::shared_ptr< RichText > text
The text.
static TGBOT_API const std::string TYPE
std::string type
Type of the rich text, always “strikethrough”
std::shared_ptr< RichText > text
The text.
std::shared_ptr< RichTextStrikethrough > Ptr
std::string type
Type of the rich text, always “subscript”
std::shared_ptr< RichText > text
The text.
static TGBOT_API const std::string TYPE
std::shared_ptr< RichTextSubscript > Ptr
std::shared_ptr< RichText > text
The text.
static TGBOT_API const std::string TYPE
std::string type
Type of the rich text, always “superscript”
std::shared_ptr< RichTextSuperscript > Ptr
A mention of a Telegram user by their identifier.
static TGBOT_API const std::string TYPE
std::string type
Type of the rich text, always “text_mention”
std::shared_ptr< RichText > text
The text.
std::shared_ptr< RichTextTextMention > Ptr
std::shared_ptr< User > user
The mentioned user.
An address in the TON blockchain.
std::shared_ptr< RichTextTonAddress > Ptr
std::shared_ptr< RichText > text
Text of the address.
static TGBOT_API const std::string TYPE
std::string address
The address.
std::string type
Type of the rich text, always “ton_address”
std::shared_ptr< RichText > text
The text.
std::string type
Type of the rich text, always “underline”
std::shared_ptr< RichTextUnderline > Ptr
static TGBOT_API const std::string TYPE
std::string type
Type of the rich text, always “url”
static TGBOT_API const std::string TYPE
std::string url
URL of the link.
std::shared_ptr< RichText > text
The text.
std::shared_ptr< RichTextUrl > Ptr
Arguments for Api::savePreparedInlineMessage.
bool allowGroupChats
Pass True if the message can be sent to group and supergroup chats.
bool allowBotChats
Pass True if the message can be sent to private chats with bots.
bool allowUserChats
Pass True if the message can be sent to private chats with users.
std::shared_ptr< InlineQueryResult > result
A JSON-serialized object describing the message to be sent.
std::uint64_t userId
Unique identifier of the target user that can use the prepared message.
bool allowChannelChats
Pass True if the message can be sent to channel chats.
Arguments for Api::sendAnimation.
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::uint32_t duration
Duration of sent animation in seconds.
std::uint32_t width
Animation width.
std::variant< std::shared_ptr< InputFile >, std::string > animation
Animation to send. Pass a file_id as String to send an animation that exists on the Telegram servers ...
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::string parseMode
Mode for parsing entities in the animation caption. See formatting options for more details.
std::variant< std::shared_ptr< InputFile >, std::string > thumbnail
Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-s...
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
std::uint32_t height
Animation height.
std::string caption
Animation caption (may also be used when resending animation by file_id), 0-1024 characters after ent...
bool hasSpoiler
Pass True if the animation needs to be covered with a spoiler animation.
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Arguments for Api::sendAudio.
std::variant< std::shared_ptr< InputFile >, std::string > thumbnail
Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-s...
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::variant< std::shared_ptr< InputFile >, std::string > audio
Audio file to send. Pass a file_id as String to send an audio file that exists on the Telegram server...
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::uint32_t duration
Duration of the audio in seconds.
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
std::string caption
Audio caption, 0-1024 characters after entities parsing.
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
std::string title
Track name.
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
std::string parseMode
Mode for parsing entities in the audio caption. See formatting options for more details.
std::string performer
Performer.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Arguments for Api::sendChatAction.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the action will be sent.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot or supergroup in the format @user...
std::uint32_t messageThreadId
Unique identifier for the target message thread or topic of a forum; for supergroups and private chat...
std::string action
Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for t...
Arguments for Api::sendChatJoinRequestWebApp.
std::string chatJoinRequestQueryId
Unique identifier of the join request query.
std::string webAppUrl
An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps.
Arguments for Api::sendChecklist.
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot in the format @username.
std::string messageEffectId
Unique identifier of the message effect to be added to the message.
std::shared_ptr< ReplyParameters > replyParameters
A JSON-serialized object for description of the message to reply to.
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
std::shared_ptr< InputChecklist > checklist
A JSON-serialized object for the checklist to send.
Arguments for Api::sendDice.
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
bool protectContent
Protects the contents of the sent message from forwarding.
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
std::string emoji
Emoji on which the dice throw animation is based. Currently, must be one of “”, “”,...
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Arguments for Api::sendDocument.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
std::string parseMode
Mode for parsing entities in the document caption. See formatting options for more details.
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
std::variant< std::shared_ptr< InputFile >, std::string > thumbnail
Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-s...
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
std::string caption
Document caption (may also be used when resending documents by file_id), 0-1024 characters after enti...
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
bool disableContentTypeDetection
Disables automatic server-side content type detection for files uploaded using multipart/form-data.
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
std::variant< std::shared_ptr< InputFile >, std::string > document
File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommende...
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Arguments for Api::sendGame.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot in the format @username....
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::string gameShortName
Short name of the game, serves as the unique identifier for the game. Set up your games via @BotFathe...
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard. If empty, one 'Play game_title' button will be shown...
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Arguments for Api::sendGift.
std::string text
Text that will be shown along with the gift; 0-128 characters.
std::variant< std::int64_t, std::string > chatId
Required if user_id is not specified. Unique identifier for the chat that will receive the gift or us...
std::vector< std::shared_ptr< MessageEntity > > textEntities
A JSON-serialized list of special entities that appear in the gift text. It can be specified instead ...
std::string textParseMode
Mode for parsing entities in the text. See formatting options for more details. Entities other than “...
std::uint64_t userId
Required if chat_id is not specified. Unique identifier of the target user who will receive the gift.
std::string giftId
Identifier of the gift; limited gifts can't be sent to channel chats.
bool payForUpgrade
Pass True to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the...
Arguments for Api::sendInvoice.
std::uint32_t photoSize
Photo size in bytes.
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
std::uint32_t photoHeight
Photo height.
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
std::string currency
Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Star...
std::string description
Product description, 1-255 characters.
bool needShippingAddress
Pass True if you require the user's shipping address to complete the order. Ignored for payments in T...
std::string photoUrl
URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a serv...
bool isFlexible
Pass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars.
std::string title
Product name, 1-32 characters.
std::string payload
Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your int...
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
bool sendPhoneNumberToProvider
Pass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram...
std::vector< std::uint64_t > suggestedTipAmounts
A JSON-serialized Array of suggested amounts of tips in the smallest units of the currency (integer,...
std::vector< std::shared_ptr< LabeledPrice > > prices
Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount,...
std::string providerToken
Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars.
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
bool needEmail
Pass True if you require the user's email address to complete the order. Ignored for payments in Tele...
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown...
bool needPhoneNumber
Pass True if you require the user's phone number to complete the order. Ignored for payments in Teleg...
std::uint32_t photoWidth
Photo width.
std::string providerData
JSON-serialized data about the invoice, which will be shared with the payment provider....
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::uint64_t maxTipAmount
The maximum accepted amount for tips in the smallest units of the currency (integer,...
std::string startParameter
Unique deep-linking parameter. If left empty, forwarded copies of the sent message will have a Pay bu...
bool sendEmailToProvider
Pass True if the user's email address should be sent to the provider. Ignored for payments in Telegra...
bool needName
Pass True if you require the user's full name to complete the order. Ignored for payments in Telegram...
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Arguments for Api::sendLivePhoto.
std::variant< std::shared_ptr< InputFile >, std::string > livePhoto
Live photo video to send. The video must be no longer than 10 seconds and must not exceed 10 MB in si...
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
bool hasSpoiler
Pass True if the video needs to be covered with a spoiler animation.
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::string caption
Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities p...
std::string parseMode
Mode for parsing entities in the video caption. See formatting options for more details.
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
std::variant< std::shared_ptr< InputFile >, std::string > photo
The static photo to send. Pass a file_id as String to send a photo that exists on the Telegram server...
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Arguments for Api::sendLocation.
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
double horizontalAccuracy
The radius of uncertainty for the location, measured in meters; 0-1500.
double longitude
Longitude of the location.
std::uint32_t livePeriod
Period in seconds during which the location will be updated (see Live Locations), must be between 60 ...
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
double latitude
Latitude of the location.
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
std::uint32_t heading
For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if...
std::uint32_t proximityAlertRadius
For live locations, a maximum distance for proximity alerts about approaching another chat member,...
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Arguments for Api::sendMessage.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::vector< std::shared_ptr< MessageEntity > > entities
A JSON-serialized list of special entities that appear in message text, which can be specified instea...
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
std::string text
Text of the message to be sent, 1-4096 characters after entities parsing.
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Link preview generation options for the message.
std::string parseMode
Mode for parsing entities in the message text. See formatting options for more details.
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Arguments for Api::sendMessageDraft.
std::vector< std::shared_ptr< MessageEntity > > entities
A JSON-serialized list of special entities that appear in message text, which can be specified instea...
std::string parseMode
Mode for parsing entities in the message text. See formatting options for more details.
std::string text
Text of the message to be sent, 0-4096 characters after entities parsing. Pass an empty text to show ...
std::int64_t draftId
Unique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier ...
std::uint32_t messageThreadId
Unique identifier for the target message thread.
std::variant< std::uint64_t, std::string > chatId
Unique identifier for the target private chat.
bool keepOnStop
Pass True to keep the draft in the chat when the button is pressed. The draft will still disappear af...
bool canStop
Pass True to show the user a button to stop further drafts. The bot will receive an Update “stopped_m...
Arguments for Api::sendPhoto.
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
std::string caption
Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities p...
std::string parseMode
Mode for parsing entities in the photo caption. See formatting options for more details.
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
bool hasSpoiler
Pass True if the photo needs to be covered with a spoiler animation.
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::variant< std::shared_ptr< InputFile >, std::string > photo
Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommen...
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Arguments for Api::sendPoll.
std::string description
Description of the poll to be sent, 0-1024 characters after entities parsing.
std::string explanationParseMode
Mode for parsing entities in the explanation. See formatting options for more details.
bool allowAddingOptions
Pass True if answer options can be added to the poll after creation; not supported for anonymous poll...
bool hideResultsUntilCloses
Pass True if poll results must be shown only after the poll closes.
std::string descriptionParseMode
Mode for parsing entities in the poll description. See formatting options for more details.
std::vector< std::shared_ptr< InputPollOption > > options
A JSON-serialized list of 1-12 answer options.
std::vector< std::string > countryCodes
A JSON-serialized list of 0-12 two-letter ISO 3166-1 alpha-2 country codes indicating the countries f...
std::vector< std::shared_ptr< MessageEntity > > descriptionEntities
A JSON-serialized list of special entities that appear in the poll description, which can be specifie...
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
std::string questionParseMode
Mode for parsing entities in the question. See formatting options for more details....
std::shared_ptr< InputPollMedia > explanationMedia
Media added to the quiz explanation.
std::vector< std::shared_ptr< MessageEntity > > questionEntities
A JSON-serialized list of special entities that appear in the poll question. It can be specified inst...
bool allowsMultipleAnswers
Pass True if the poll allows multiple answers, defaults to False.
bool protectContent
Protects the contents of the sent message from forwarding and saving.
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
bool membersOnly
Pass True if voting is limited to users who have been members of the chat where the poll is being sen...
bool isAnonymous
True, if the poll needs to be anonymous, defaults to True.
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::shared_ptr< InputPollMedia > media
Media added to the poll description.
std::string type
Poll type, “quiz” or “regular”, defaults to “regular”
std::string question
Poll question, 1-300 characters.
std::vector< std::shared_ptr< MessageEntity > > explanationEntities
A JSON-serialized list of special entities that appear in the poll explanation. It can be specified i...
bool isClosed
Pass True if the poll needs to be immediately closed. This can be useful for poll preview.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
std::uint32_t openPeriod
Amount of time in seconds the poll will be active after creation, 5-2628000. Can't be used together w...
std::vector< std::uint32_t > correctOptionIds
A JSON-serialized list of monotonically increasing 0-based identifiers of the correct answer options,...
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::int32_t closeDate
Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no ...
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
bool shuffleOptions
Pass True if the poll options must be shown in random order.
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::string explanation
Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style p...
bool allowsRevoting
Pass True if the poll allows to change chosen answer options, defaults to False for quizzes and to Tr...
Arguments for Api::sendRichMessage.
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent....
bool protectContent
Protects the contents of the sent message from forwarding and saving.
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::shared_ptr< InputRichMessage > richMessage
The message to be sent.
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Arguments for Api::sendRichMessageDraft.
std::int64_t draftId
Unique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier ...
bool canStop
Pass True to show the user a button to stop further drafts. The bot will receive an Update “stopped_m...
bool keepOnStop
Pass True to keep the draft in the chat when the button is pressed. The draft will still disappear af...
std::shared_ptr< InputRichMessage > richMessage
The partial message to be streamed. Direct upload of new files and explicit upload of files by a URL ...
std::uint32_t messageThreadId
Unique identifier for the target message thread.
std::variant< std::uint64_t, std::string > chatId
Unique identifier for the target private chat.
Arguments for Api::sendSticker.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::variant< std::shared_ptr< InputFile >, std::string > sticker
Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recomme...
std::string emoji
Emoji associated with the sticker; only for just uploaded stickers.
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Arguments for Api::sendVenue.
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
double latitude
Latitude of the venue.
std::string googlePlaceType
Google Places type of the venue. (See supported types.).
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
std::string foursquareId
Foursquare identifier of the venue.
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::string googlePlaceId
Google Places identifier of the venue.
std::string address
Address of the venue.
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
std::string title
Name of the venue.
std::string foursquareType
Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,...
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
double longitude
Longitude of the venue.
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Arguments for Api::sendVideo.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
std::uint32_t height
Video height.
bool hasSpoiler
Pass True if the video needs to be covered with a spoiler animation.
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
std::uint32_t startTimestamp
Start timestamp for the video in the message.
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::string caption
Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities p...
std::string parseMode
Mode for parsing entities in the video caption. See formatting options for more details.
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
std::uint32_t duration
Duration of sent video in seconds.
bool supportsStreaming
Pass True if the uploaded video is suitable for streaming.
std::uint32_t width
Video width.
std::variant< std::shared_ptr< InputFile >, std::string > video
Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommen...
std::variant< std::shared_ptr< InputFile >, std::string > cover
Cover for the video in the message. Pass a file_id to send a file that exists on the Telegram servers...
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
std::variant< std::shared_ptr< InputFile >, std::string > thumbnail
Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-s...
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Arguments for Api::sendVideoNote.
std::variant< std::shared_ptr< InputFile >, std::string > thumbnail
Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-s...
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::uint32_t duration
Duration of sent video in seconds.
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::variant< std::shared_ptr< InputFile >, std::string > videoNote
Video note to send. Pass a file_id as String to send a video note that exists on the Telegram servers...
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::uint32_t length
Video width and height, i.e. diameter of the video message.
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Arguments for Api::sendVoice.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
std::uint32_t duration
Duration of the voice message in seconds.
std::string parseMode
Mode for parsing entities in the voice message caption. See formatting options for more details.
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
std::string caption
Voice message caption, 0-1024 characters after entities parsing.
std::variant< std::shared_ptr< InputFile >, std::string > voice
Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (reco...
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Describes an inline message sent by a guest bot.
std::shared_ptr< SentGuestMessage > Ptr
std::string inlineMessageId
Identifier of the sent inline message.
Describes an inline message sent by a Web App on behalf of a user.
std::optional< std::string > inlineMessageId
Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attach...
std::shared_ptr< SentWebAppMessage > Ptr
Arguments for Api::setBusinessAccountBio.
std::string businessConnectionId
Unique identifier of the business connection.
std::string bio
The new value of the bio for the business account; 0-140 characters.
Arguments for Api::setBusinessAccountGiftSettings.
bool showGiftButton
Pass True if a button for sending a gift to the user or by the business account must always be shown ...
std::shared_ptr< AcceptedGiftTypes > acceptedGiftTypes
Types of gifts accepted by the business account.
std::string businessConnectionId
Unique identifier of the business connection.
Arguments for Api::setBusinessAccountName.
std::string firstName
The new value of the first name for the business account; 1-64 characters.
std::string lastName
The new value of the last name for the business account; 0-64 characters.
std::string businessConnectionId
Unique identifier of the business connection.
Arguments for Api::setBusinessAccountProfilePhoto.
std::shared_ptr< InputProfilePhoto > photo
The new profile photo to set.
std::string businessConnectionId
Unique identifier of the business connection.
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
bool isPublic
Pass True to set the public photo, which will be visible even if the main photo is hidden by the busi...
Arguments for Api::setBusinessAccountUsername.
std::string businessConnectionId
Unique identifier of the business connection.
std::string username
The new value of the username for the business account; 0-32 characters.
Arguments for Api::setChatAdministratorCustomTitle.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
std::string customTitle
New custom title for the administrator; 0-16 characters, emoji are not allowed.
std::uint64_t userId
Unique identifier of the target user.
Arguments for Api::setChatDescription.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
std::string description
New chat description, 0-255 characters.
Arguments for Api::setChatMemberTag.
std::string tag
New tag for the member; 0-16 characters, emoji are not allowed.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
std::uint64_t userId
Unique identifier of the target user.
Arguments for Api::setChatPermissions.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
bool useIndependentChatPermissions
Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_a...
std::shared_ptr< ChatPermissions > permissions
A JSON-serialized object for new default chat permissions.
Arguments for Api::setChatPhoto.
std::variant< std::shared_ptr< InputFile >, std::string > photo
New chat photo, uploaded using multipart/form-data.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Arguments for Api::setChatStickerSet.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
std::string stickerSetName
Name of the sticker set to be set as the group sticker set.
Arguments for Api::setChatTitle.
std::string title
New chat title, 1-128 characters.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Arguments for Api::setCustomEmojiStickerSetThumbnail.
std::string name
Sticker set name.
std::string customEmojiId
Custom emoji identifier of a sticker from the sticker set; pass an empty string to drop the thumbnail...
Arguments for Api::setGameScore.
bool disableEditMessage
Pass True if the game message should not be automatically edited to include the current scoreboard.
std::uint64_t userId
User identifier.
std::uint32_t score
New score, must be non-negative.
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the sent message.
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat.
bool force
Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or bannin...
Arguments for Api::setManagedBotAccessSettings.
bool isAccessRestricted
Pass True if only selected users can access the bot. The bot's owner can always access it.
std::vector< std::uint64_t > addedUserIds
A JSON-serialized list of up to 10 identifiers of users who will have access to the bot in addition t...
std::uint64_t userId
User identifier of the managed bot whose access settings will be changed.
Arguments for Api::setMessageReaction.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
bool isBig
Pass True to set the reaction with a big animation.
std::vector< std::shared_ptr< ReactionType > > reaction
A JSON-serialized list of reaction types to set on the message. Currently, as non-premium users,...
std::uint32_t messageId
Identifier of the target message. If the message belongs to a media group, the reaction is set to the...
Arguments for Api::setMyCommands.
std::shared_ptr< BotCommandScope > scope
A JSON-serialized object, describing scope of users for which the commands are relevant....
std::string languageCode
A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given ...
std::vector< std::shared_ptr< BotCommand > > commands
A JSON-serialized list of bot commands to be set as the list of the bot's commands....
Arguments for Api::setMyDefaultAdministratorRights.
bool forChannels
Pass True to change the default administrator rights of the bot in channels. Otherwise,...
std::shared_ptr< ChatAdministratorRights > rights
A JSON-serialized object describing new default administrator rights. If not specified,...
Arguments for Api::setMyDescription.
std::string description
New bot description; 0-512 characters. Pass an empty string to remove the dedicated description for t...
std::string languageCode
A two-letter ISO 639-1 language code. If empty, the description will be applied to all users for whos...
Arguments for Api::setMyName.
std::string name
New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given langua...
std::string languageCode
A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose languag...
Arguments for Api::setMyProfilePhoto.
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
std::shared_ptr< InputProfilePhoto > photo
The new profile photo to set.
Arguments for Api::setMyShortDescription.
std::string languageCode
A two-letter ISO 639-1 language code. If empty, the short description will be applied to all users fo...
std::string shortDescription
New short description for the bot; 0-120 characters. Pass an empty string to remove the dedicated sho...
Arguments for Api::setPassportDataErrors.
std::uint64_t userId
User identifier.
std::vector< std::shared_ptr< PassportElementError > > errors
A JSON-serialized Array describing the errors.
Arguments for Api::setStickerEmojiList.
std::string sticker
File identifier of the sticker.
std::vector< std::string > emojiList
A JSON-serialized list of 1-20 emoji associated with the sticker.
Arguments for Api::setStickerKeywords.
std::string sticker
File identifier of the sticker.
std::vector< std::string > keywords
A JSON-serialized list of 0-20 search keywords for the sticker with total length of up to 64 characte...
Arguments for Api::setStickerMaskPosition.
std::string sticker
File identifier of the sticker.
std::shared_ptr< MaskPosition > maskPosition
A JSON-serialized object with the position where the mask should be placed on faces....
Arguments for Api::setStickerPositionInSet.
std::uint32_t position
New sticker position in the set, zero-based.
std::string sticker
File identifier of the sticker.
Arguments for Api::setStickerSetThumbnail.
std::string format
Format of the thumbnail, must be one of “static” for a .WEBP or .PNG image, “animated” for a ....
std::string name
Sticker set name.
std::variant< std::shared_ptr< InputFile >, std::string > thumbnail
A .WEBP or .PNG image with the thumbnail, must be up to 128 kilobytes in size and have a width and he...
std::uint64_t userId
User identifier of the sticker set owner.
Arguments for Api::setStickerSetTitle.
std::string name
Sticker set name.
std::string title
Sticker set title, 1-64 characters.
Arguments for Api::setUserEmojiStatus.
std::int32_t emojiStatusExpirationDate
Expiration date of the emoji status, if any.
std::uint64_t userId
Unique identifier of the target user.
std::string emojiStatusCustomEmojiId
Custom emoji identifier of the emoji status to set. Pass an empty string to remove the status.
Arguments for Api::setWebhook.
std::string ipAddress
The fixed IP address which will be used to send webhook requests instead of the IP address resolved t...
bool dropPendingUpdates
Pass True to drop all pending updates.
std::string secretToken
A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” in every webhook request,...
std::uint32_t maxConnections
The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery,...
std::vector< std::string > allowedUpdates
A JSON-serialized list of the update types you want your bot to receive. For example,...
std::string url
HTTPS URL to send updates to. Use an empty string to remove webhook integration.
std::shared_ptr< InputFile > certificate
Upload your public key certificate so that the root certificate in use can be checked....
This object contains information about a user that was shared with the bot using a KeyboardButtonRequ...
std::optional< std::string > firstName
Optional. First name of the user, if the name was requested by the bot.
std::optional< std::string > lastName
Optional. Last name of the user, if the name was requested by the bot.
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Available sizes of the chat photo, if the photo was requested by the bot.
std::shared_ptr< SharedUser > Ptr
std::uint64_t userId
Identifier of the shared user. This number may have more than 32 significant bits and some programmin...
std::optional< std::string > username
Optional. Username of the user, if the username was requested by the bot.
This object represents a shipping address.
std::string streetLine2
Second line for the address.
std::string countryCode
Two-letter ISO 3166-1 alpha-2 country code.
std::string state
State, if applicable.
std::string postCode
Address post code.
std::shared_ptr< ShippingAddress > Ptr
std::string streetLine1
First line for the address.
This object represents one shipping option.
std::vector< std::shared_ptr< LabeledPrice > > prices
List of price portions.
std::string title
Option title.
std::shared_ptr< ShippingOption > Ptr
This object contains information about an incoming shipping query.
std::shared_ptr< ShippingAddress > shippingAddress
User specified shipping address.
std::shared_ptr< ShippingQuery > Ptr
std::string invoicePayload
Bot-specified invoice payload.
std::shared_ptr< User > from
User who sent the query.
Describes an amount of Telegram Stars.
std::shared_ptr< StarAmount > Ptr
std::int64_t amount
Integer amount of Telegram Stars, rounded to 0; can be negative.
std::optional< std::int32_t > nanostarAmount
Optional. The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999; can be n...
Describes a Telegram Star transaction. Note that if the buyer initiates a chargeback with the payment...
std::shared_ptr< TransactionPartner > source
Optional. Source of an incoming transaction (e.g., a user purchasing goods or services,...
std::shared_ptr< StarTransaction > Ptr
std::uint64_t amount
Integer amount of Telegram Stars transferred by the transaction.
std::int32_t date
Date the transaction was created in Unix time.
std::shared_ptr< TransactionPartner > receiver
Optional. Receiver of an outgoing transaction (e.g., a user for a purchase refund,...
std::optional< std::uint32_t > nanostarAmount
Optional. The number of 1/1000000000 shares of Telegram Stars transferred by the transaction; from 0 ...
Contains a list of Telegram Star transactions.
std::vector< std::shared_ptr< StarTransaction > > transactions
The list of transactions.
std::shared_ptr< StarTransactions > Ptr
This object represents a sticker.
std::uint32_t height
Sticker height.
Type type
Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is i...
std::optional< std::string > emoji
Optional. Emoji associated with the sticker.
std::uint32_t width
Sticker width.
std::shared_ptr< File > premiumAnimation
Optional. For premium regular stickers, premium animation for the sticker.
std::optional< std::string > setName
Optional. Name of the sticker set to which the sticker belongs.
std::shared_ptr< MaskPosition > maskPosition
Optional. For mask stickers, the position where the mask should be placed.
bool isVideo
True, if the sticker is a video sticker.
std::optional< std::string > customEmojiId
Optional. For custom emoji stickers, unique identifier of the custom emoji.
bool isAnimated
True, if the sticker is animated.
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::shared_ptr< Sticker > Ptr
std::optional< bool > needsRepainting
Optional. True, if the sticker must be repainted to a text color in messages, the color of the Telegr...
std::optional< std::uint32_t > fileSize
Optional. File size in bytes.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
std::shared_ptr< PhotoSize > thumbnail
Optional. Sticker thumbnail in the .WEBP or .JPG format.
This object represents a sticker set.
std::vector< std::shared_ptr< Sticker > > stickers
List of all set stickers.
std::string name
Sticker set name.
std::shared_ptr< PhotoSize > thumbnail
Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format.
Type stickerType
Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”
std::string title
Sticker set title.
std::shared_ptr< StickerSet > Ptr
Arguments for Api::stopMessageLiveLocation.
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the message with live location to stop.
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for a new inline keyboard.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat or username of ...
Arguments for Api::stopPoll.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for a new message inline keyboard.
std::uint32_t messageId
Identifier of the original message with the poll.
Describes a clickable area on a story media.
std::shared_ptr< AreaPosition > position
Position of the area.
std::shared_ptr< StoryAreaType > type
Type of the area.
std::shared_ptr< StoryArea > Ptr
Describes the type of a clickable area on a story. Currently, it can be one of StoryAreaTypeLocation ...
std::variant< std::shared_ptr< StoryAreaTypeLocation >, std::shared_ptr< StoryAreaTypeSuggestedReaction >, std::shared_ptr< StoryAreaTypeLink >, std::shared_ptr< StoryAreaTypeWeather >, std::shared_ptr< StoryAreaTypeUniqueGift > > value
std::shared_ptr< StoryAreaType > Ptr
Describes a story area pointing to an HTTP or tg:// link. Currently, a story can have up to 3 link ar...
std::string type
Type of the area, always “link”
static TGBOT_API const std::string TYPE
std::shared_ptr< StoryAreaTypeLink > Ptr
std::string url
HTTP or tg:// URL to be opened when the area is clicked.
Describes a story area pointing to a location. Currently, a story can have up to 10 location areas.
double longitude
Location longitude in degrees.
static TGBOT_API const std::string TYPE
std::shared_ptr< LocationAddress > address
Optional. Address of the location.
std::string type
Type of the area, always “location”
double latitude
Location latitude in degrees.
std::shared_ptr< StoryAreaTypeLocation > Ptr
Describes a story area pointing to a suggested reaction. Currently, a story can have up to 5 suggeste...
std::shared_ptr< StoryAreaTypeSuggestedReaction > Ptr
std::string type
Type of the area, always “suggested_reaction”
std::shared_ptr< ReactionType > reactionType
Type of the reaction.
static TGBOT_API const std::string TYPE
std::optional< bool > isFlipped
Optional. Pass True if reaction area corner is flipped.
std::optional< bool > isDark
Optional. Pass True if the reaction area has a dark background.
Describes a story area pointing to a unique gift. Currently, a story can have at most 1 unique gift a...
static TGBOT_API const std::string TYPE
std::shared_ptr< StoryAreaTypeUniqueGift > Ptr
std::string name
Unique name of the gift.
std::string type
Type of the area, always “unique_gift”
Describes a story area containing weather information. Currently, a story can have up to 3 weather ar...
std::uint32_t backgroundColor
A color of the area background in the ARGB format.
std::string type
Type of the area, always “weather”
static TGBOT_API const std::string TYPE
double temperature
Temperature, in degree Celsius.
std::string emoji
Emoji representing the weather.
std::shared_ptr< StoryAreaTypeWeather > Ptr
This object represents a story.
std::shared_ptr< Chat > chat
Chat that posted the story.
std::shared_ptr< Story > Ptr
This object contains basic information about a successful payment. Note that if the buyer initiates a...
std::string providerPaymentChargeId
Provider payment identifier.
std::optional< bool > isFirstRecurring
Optional. True, if the payment is the first payment for a subscription.
std::string invoicePayload
Bot-specified invoice payload.
std::string telegramPaymentChargeId
Telegram payment identifier.
std::optional< std::int32_t > subscriptionExpirationDate
Optional. Expiration date of the subscription, in Unix time; for recurring payments only.
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
std::shared_ptr< OrderInfo > orderInfo
Optional. Order information provided by the user.
std::optional< std::string > shippingOptionId
Optional. Identifier of the shipping option chosen by the user.
std::shared_ptr< SuccessfulPayment > Ptr
std::optional< bool > isRecurring
Optional. True, if the payment is a recurring payment for a subscription.
std::uint64_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
Describes a service message about the failed approval of a suggested post. Currently,...
std::shared_ptr< SuggestedPostPrice > price
Expected price of the post.
std::shared_ptr< SuggestedPostApprovalFailed > Ptr
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post whose approval has failed. Note that the Message obje...
Describes a service message about the approval of a suggested post.
std::shared_ptr< SuggestedPostApproved > Ptr
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
std::int32_t sendDate
Date when the post will be published.
std::shared_ptr< SuggestedPostPrice > price
Optional. Amount paid for the post.
Describes a service message about the rejection of a suggested post.
std::shared_ptr< SuggestedPostDeclined > Ptr
std::optional< std::string > comment
Optional. Comment with which the post was declined.
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
Contains information about a suggested post.
std::string state
State of the suggested post. Currently, it can be one of “pending”, “approved”, “declined”.
std::optional< std::int32_t > sendDate
Optional. Proposed send date of the post. If the field is omitted, then the post can be published at ...
std::shared_ptr< SuggestedPostPrice > price
Optional. Proposed price of the post. If the field is omitted, then the post is unpaid.
std::shared_ptr< SuggestedPostInfo > Ptr
Describes a service message about a successful payment for a suggested post.
std::shared_ptr< SuggestedPostPaid > Ptr
std::shared_ptr< StarAmount > starAmount
Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Sta...
std::optional< std::uint64_t > amount
Optional. The amount of the currency that was received by the channel in nanograms; for payments in T...
std::string currency
Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for TON g...
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
Contains parameters of a post that is being suggested by the bot.
std::shared_ptr< SuggestedPostParameters > Ptr
std::shared_ptr< SuggestedPostPrice > price
Optional. Proposed price for the post. If the field is omitted, then the post is unpaid.
std::optional< std::int32_t > sendDate
Optional. Proposed send date of the post. If specified, then the date must be between 300 second and ...
Describes the price of a suggested post.
std::uint64_t amount
The amount of the currency that will be paid for the post in the smallest units of the currency,...
std::string currency
Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” ...
std::shared_ptr< SuggestedPostPrice > Ptr
Describes a service message about a payment refund for a suggested post.
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
std::shared_ptr< SuggestedPostRefunded > Ptr
std::string reason
Reason for the refund. Currently, one of “post_deleted” if the post was deleted within 24 hours of be...
This object represents an inline button that switches the current user to inline mode in a chosen cha...
std::optional< bool > allowGroupChats
Optional. True, if group and supergroup chats can be chosen.
std::shared_ptr< SwitchInlineQueryChosenChat > Ptr
std::optional< bool > allowBotChats
Optional. True, if private chats with bots can be chosen.
std::optional< bool > allowChannelChats
Optional. True, if channel chats can be chosen.
std::optional< std::string > query
Optional. The default inline query to be inserted in the input field. If left empty,...
std::optional< bool > allowUserChats
Optional. True, if private chats with users can be chosen.
This object contains information about the quoted part of a message that is replied to by the given m...
std::optional< std::vector< std::shared_ptr< RichText > > > richTexts
Optional. Rich text of the quote if it was chosen from a rich message. May contain only plain text,...
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the quote. Currently, only bold, italic,...
std::uint32_t position
Approximate quote position in the original message in UTF-16 code units as specified by the sender....
std::shared_ptr< TextQuote > Ptr
std::string text
Text of the quoted part of a message that is replied to by the given message; may be empty if the quo...
std::optional< bool > isManual
Optional. True, if the quote was chosen manually by the message sender. Otherwise,...
This object represents an attribute of an NFT in the TON blockchain.
std::string value
Value of the attribute.
std::shared_ptr< TonNftAttribute > Ptr
std::string traitType
Trait type of the attribute.
This object represents an NFT in the TON blockchain.
std::optional< std::vector< std::shared_ptr< TonNftAttribute > > > attributes
Optional. Attributes of the NFT.
std::shared_ptr< UniqueGift > gift
Optional. The unique gift corresponding to the NFT.
std::string index
Index of the NFT among all NFTs from the collection as a decimal number.
std::string description
Description of the NFT.
std::optional< std::string > collectionAddress
Optional. Address of the collection to which the NFT belongs; omitted if unknown.
std::shared_ptr< TonNft > Ptr
std::string name
Name of the NFT.
std::string address
Address of the NFT.
This object describes a TON wallet card, which is shown on the profile page of a user to everyone.
std::string amount
Balance of the wallet, in the smallest units of the cryptocurrency, as a decimal number.
std::shared_ptr< TonWalletCard > Ptr
std::string address
Address of the wallet.
std::optional< std::string > backgroundNftAddress
Optional. Address of the NFT of one of the stickers, whose colors must be used for the card backgroun...
std::vector< std::shared_ptr< TonWalletCardSticker > > stickers
Stickers placed on the card.
This object describes a sticker on a TON wallet card.
std::shared_ptr< TonNft > nft
The NFT shown as the sticker.
std::shared_ptr< TonWalletCardSticker > Ptr
std::shared_ptr< AreaPosition > position
Position of the sticker on the card.
Describes a service message about a transfer with a TON wallet.
std::string amount
The amount of transferred cryptocurrency, in the smallest units of the cryptocurrency,...
std::optional< std::string > comment
Optional. Comment added to the transfer; omitted if the comment is encrypted.
std::shared_ptr< TonWalletTransfer > Ptr
std::string transactionId
Unique identifier of the transaction; may be empty if the transfer hasn't been sent yet.
std::string peerAddress
Address of the transfer peer in the TON blockchain.
Describes the affiliate program that issued the affiliate commission received via this transaction.
std::shared_ptr< TransactionPartnerAffiliateProgram > Ptr
std::uint32_t commissionPerMille
The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affilia...
std::string type
Type of the transaction partner, always “affiliate_program”
std::shared_ptr< User > sponsorUser
Optional. Information about the bot that sponsored the affiliate program.
static TGBOT_API const std::string TYPE
Describes a transaction with a chat.
std::shared_ptr< Gift > gift
Optional. The gift sent to the chat by the bot.
std::shared_ptr< Chat > chat
Information about the chat.
static TGBOT_API const std::string TYPE
std::shared_ptr< TransactionPartnerChat > Ptr
std::string type
Type of the transaction partner, always “chat”
Describes a withdrawal transaction with Fragment.
std::shared_ptr< TransactionPartnerFragment > Ptr
std::shared_ptr< RevenueWithdrawalState > withdrawalState
Optional. State of the transaction if the transaction is outgoing.
static TGBOT_API const std::string TYPE
std::string type
Type of the transaction partner, always “fragment”
This object describes the source of a transaction, or its recipient for outgoing transactions....
std::variant< std::shared_ptr< TransactionPartnerUser >, std::shared_ptr< TransactionPartnerChat >, std::shared_ptr< TransactionPartnerAffiliateProgram >, std::shared_ptr< TransactionPartnerFragment >, std::shared_ptr< TransactionPartnerTelegramAds >, std::shared_ptr< TransactionPartnerTelegramApi >, std::shared_ptr< TransactionPartnerOther > > value
std::shared_ptr< TransactionPartner > Ptr
Describes a transaction with an unknown source or recipient.
std::shared_ptr< TransactionPartnerOther > Ptr
std::string type
Type of the transaction partner, always “other”
static TGBOT_API const std::string TYPE
Describes a withdrawal transaction to the Telegram Ads platform.
std::string type
Type of the transaction partner, always “telegram_ads”
std::shared_ptr< TransactionPartnerTelegramAds > Ptr
static TGBOT_API const std::string TYPE
Describes a transaction with payment for paid broadcasting.
std::shared_ptr< TransactionPartnerTelegramApi > Ptr
static TGBOT_API const std::string TYPE
std::string type
Type of the transaction partner, always “telegram_api”
std::uint32_t requestCount
The number of successful requests that exceeded regular limits and were therefore billed.
Describes a transaction with a user.
std::shared_ptr< User > user
Information about the user.
std::optional< std::string > paidMediaPayload
Optional. Bot-specified paid media payload. Can be available only for “paid_media_payment” transactio...
std::optional< std::string > invoicePayload
Optional. Bot-specified invoice payload. Can be available only for “invoice_payment” transactions.
std::optional< std::uint32_t > premiumSubscriptionDuration
Optional. Number of months the gifted Telegram Premium subscription will be active for; for “premium_...
std::shared_ptr< AffiliateInfo > affiliate
Optional. Information about the affiliate that received a commission via this transaction....
std::string transactionType
Type of the transaction, currently one of “invoice_payment” for payments via invoices,...
std::optional< std::vector< std::shared_ptr< PaidMedia > > > paidMedia
Optional. Information about the paid media bought by the user; for “paid_media_payment” transactions ...
std::string type
Type of the transaction partner, always “user”
std::optional< std::uint32_t > subscriptionPeriod
Optional. The duration of the paid subscription. Can be available only for “invoice_payment” transact...
std::shared_ptr< TransactionPartnerUser > Ptr
static TGBOT_API const std::string TYPE
std::shared_ptr< Gift > gift
Optional. The gift sent to the user by the bot; for “gift_purchase” transactions only.
Arguments for Api::transferBusinessAccountStars.
std::string businessConnectionId
Unique identifier of the business connection.
std::uint32_t starCount
Number of Telegram Stars to transfer; 1-10000.
Arguments for Api::transferGift.
std::string ownedGiftId
Unique identifier of the regular gift that should be transferred.
std::string businessConnectionId
Unique identifier of the business connection.
std::uint32_t starCount
The amount of Telegram Stars that will be paid for the transfer from the business account balance....
std::int64_t newOwnerChatId
Unique identifier of the chat which will own the gift. The chat must be active in the last 24 hours.
Arguments for Api::unbanChatMember.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target group or username of the target supergroup or channel in the format ...
bool onlyIfBanned
Do nothing if the user is not banned.
std::uint64_t userId
Unique identifier of the target user.
Arguments for Api::unbanChatSenderChat.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
std::int64_t senderChatId
Unique identifier of the target sender chat.
Arguments for Api::unhideGeneralForumTopic.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
This object describes the colors of the backdrop of a unique gift.
std::uint32_t edgeColor
The color on the edges of the backdrop in RGB format.
std::uint32_t symbolColor
The color to be applied to the symbol in RGB format.
std::uint32_t textColor
The color for the text on the backdrop in RGB format.
std::shared_ptr< UniqueGiftBackdropColors > Ptr
std::uint32_t centerColor
The color in the center of the backdrop in RGB format.
This object describes the backdrop of a unique gift.
std::string name
Name of the backdrop.
std::shared_ptr< UniqueGiftBackdrop > Ptr
std::shared_ptr< UniqueGiftBackdropColors > colors
Colors of the backdrop.
std::uint32_t rarityPerMille
The number of unique gifts that receive this backdrop for every 1000 gifts upgraded.
This object contains information about the color scheme for a user's name, message replies and link p...
std::vector< std::uint32_t > lightThemeOtherColors
List of 1-3 additional colors used in light themes; RGB format.
std::string modelCustomEmojiId
Custom emoji identifier of the unique gift's model.
std::vector< std::uint32_t > darkThemeOtherColors
List of 1-3 additional colors used in dark themes; RGB format.
std::shared_ptr< UniqueGiftColors > Ptr
std::string symbolCustomEmojiId
Custom emoji identifier of the unique gift's symbol.
std::uint32_t lightThemeMainColor
Main color used in light themes; RGB format.
std::uint32_t darkThemeMainColor
Main color used in dark themes; RGB format.
This object describes a unique gift that was upgraded from a regular gift.
std::optional< bool > isFromBlockchain
Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in...
std::shared_ptr< UniqueGift > Ptr
std::uint32_t number
Unique number of the upgraded gift among gifts upgraded from the same regular gift.
std::shared_ptr< UniqueGiftBackdrop > backdrop
Backdrop of the gift.
std::string baseName
Human-readable name of the regular gift from which this unique gift was upgraded.
std::shared_ptr< UniqueGiftColors > colors
Optional. The color scheme that can be used by the gift's owner for the chat's name,...
std::shared_ptr< Chat > publisherChat
Optional. Information about the chat that published the gift.
std::shared_ptr< UniqueGiftSymbol > symbol
Symbol of the gift.
std::string giftId
Identifier of the regular gift from which the gift was upgraded.
std::optional< bool > isPremium
Optional. True, if the original regular gift was exclusively purchaseable by Telegram Premium subscri...
std::optional< bool > isBurned
Optional. True, if the gift was used to craft another gift and isn't available anymore.
std::string name
Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas.
std::shared_ptr< UniqueGiftModel > model
Model of the gift.
Describes a service message about a unique gift that was sent or received.
std::optional< std::string > lastResaleCurrency
Optional. For gifts bought from other users, the currency in which the payment for the gift was done....
std::shared_ptr< UniqueGift > gift
Information about the gift.
std::shared_ptr< UniqueGiftInfo > Ptr
std::optional< std::uint32_t > transferStarCount
Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot ...
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the text.
std::optional< bool > isPrivate
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise,...
std::optional< std::string > ownedGiftId
Optional. Unique identifier of the received gift for the bot; only present for gifts received on beha...
std::string origin
Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts,...
std::optional< std::string > text
Optional. Text of the message that was added to the gift.
std::optional< std::uint64_t > lastResaleAmount
Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or ...
std::optional< std::int32_t > nextTransferDate
Optional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past,...
This object describes the model of a unique gift.
std::optional< std::string > rarity
Optional. Rarity of the model if it is a crafted model. Currently, can be “uncommon”,...
std::uint32_t rarityPerMille
The number of unique gifts that receive this model for every 1000 gift upgrades. Always 0 for crafted...
std::shared_ptr< UniqueGiftModel > Ptr
std::string name
Name of the model.
std::shared_ptr< Sticker > sticker
The sticker that represents the unique gift.
This object describes the symbol shown on the pattern of a unique gift.
std::shared_ptr< Sticker > sticker
The sticker that represents the unique gift.
std::uint32_t rarityPerMille
The number of unique gifts that receive this model for every 1000 gifts upgraded.
std::shared_ptr< UniqueGiftSymbol > Ptr
std::string name
Name of the symbol.
Arguments for Api::unpinAllChatMessages.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Arguments for Api::unpinAllForumTopicMessages.
std::uint32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Arguments for Api::unpinAllGeneralForumTopicMessages.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Arguments for Api::unpinChatMessage.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be unpinned.
std::uint32_t messageId
Identifier of the message to unpin. Required if business_connection_id is specified....
This object represents an incoming update.At most one of the optional fields can be present in any gi...
std::shared_ptr< WidgetQuery > widgetQuery
Optional. New incoming query from a widget in a message sent by the bot or via the bot.
std::shared_ptr< Message > editedMessage
Optional. New version of a message that is known to the bot and was edited. This update may at times ...
std::shared_ptr< Message > channelPost
Optional. New incoming channel post of any kind - text, photo, sticker, etc.
std::shared_ptr< CallbackQuery > callbackQuery
Optional. New incoming callback query.
std::uint32_t updateId
The update's unique identifier. Update identifiers start from a certain positive number and increase ...
std::shared_ptr< BotSubscriptionUpdated > subscription
Optional. User payment subscription has changed.
std::shared_ptr< ChatBoostUpdated > chatBoost
Optional. A chat boost was added or changed. The bot must be an administrator in the chat to receive ...
std::shared_ptr< Message > message
Optional. New incoming message of any kind - text, photo, sticker, etc.
std::shared_ptr< ChatBoostRemoved > removedChatBoost
Optional. A boost was removed from a chat. The bot must be an administrator in the chat to receive th...
std::shared_ptr< ChosenInlineResult > chosenInlineResult
Optional. The result of an inline query that was chosen by a user and sent to their chat partner....
std::shared_ptr< ShippingQuery > shippingQuery
Optional. New incoming shipping query. Only for invoices with flexible price.
std::shared_ptr< MessageReactionUpdated > messageReaction
Optional. A reaction to a message was changed by a user. The bot must be an administrator in the chat...
std::shared_ptr< ChatJoinRequest > chatJoinRequest
Optional. A request to join the chat has been sent. The bot must have the can_invite_users administra...
std::shared_ptr< Update > Ptr
std::shared_ptr< ChatMemberUpdated > chatMember
Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat ...
std::shared_ptr< PaidMediaPurchased > purchasedPaidMedia
Optional. A user purchased paid media with a non-empty payload sent by the bot in a non- channel chat...
std::shared_ptr< ManagedBotUpdated > managedBot
Optional. A new bot was created to be managed by the bot, or token or owner of a managed bot was chan...
std::shared_ptr< PreCheckoutQuery > preCheckoutQuery
Optional. New incoming pre-checkout query. Contains full information about checkout.
std::shared_ptr< Message > editedChannelPost
Optional. New version of a channel post that is known to the bot and was edited. This update may at t...
std::shared_ptr< Message > guestMessage
Optional. New guest message. The bot can use the field Message.guest_query_id and the method answerGu...
std::shared_ptr< MessageReactionCountUpdated > messageReactionCount
Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administra...
std::shared_ptr< PollAnswer > pollAnswer
Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls t...
std::shared_ptr< BusinessConnection > businessConnection
Optional. The bot was connected to or disconnected from a business account, or a user edited an exist...
std::shared_ptr< BusinessMessagesDeleted > deletedBusinessMessages
Optional. Messages were deleted from a connected business account.
std::shared_ptr< Message > editedBusinessMessage
Optional. New version of a message from a connected business account.
std::shared_ptr< SharedWidgetQuery > sharedWidgetQuery
Optional. New incoming query from a forwarded message with a shared widget.
std::shared_ptr< MessageGenerationStopped > stoppedMessageGeneration
Optional. A user asked the bot to stop the generation of a message.
std::shared_ptr< ChatMemberUpdated > myChatMember
Optional. The bot's chat member status was updated in a chat. For private chats, this update is recei...
std::shared_ptr< InlineQuery > inlineQuery
Optional. New incoming inline query.
std::shared_ptr< Message > businessMessage
Optional. New message from a connected business account.
std::shared_ptr< Poll > poll
Optional. New poll state. Bots receive only updates about manually stopped polls and polls,...
Arguments for Api::upgradeGift.
std::string businessConnectionId
Unique identifier of the business connection.
bool keepOriginalDetails
Pass True to keep the original gift text, sender and receiver in the upgraded gift.
std::string ownedGiftId
Unique identifier of the regular gift that should be upgraded to a unique one.
std::uint32_t starCount
The amount of Telegram Stars that will be paid for the upgrade from the business account balance....
Arguments for Api::uploadStickerFile.
std::uint64_t userId
User identifier of sticker file owner.
std::variant< std::shared_ptr< InputFile >, std::string > sticker
A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram....
std::string stickerFormat
Format of the sticker, must be one of “static”, “animated”, “video”
This object represents a list of boosts added to a chat by a user.
std::vector< std::shared_ptr< ChatBoost > > boosts
The list of boosts added to the chat by the user.
std::shared_ptr< UserChatBoosts > Ptr
This object represents a Telegram user or bot.
std::optional< std::string > lastName
Optional. User's or bot's last name.
std::optional< bool > hasMainWebApp
Optional. True, if the bot has a main Web App. Returned only in getMe.
std::optional< bool > allowsUsersToCreateTopics
Optional. True, if the bot allows users to create and delete topics in private chats....
std::optional< bool > canJoinGroups
Optional. True, if the bot can be invited to groups. Returned only in getMe.
std::optional< bool > supportsInlineQueries
Optional. True, if the bot supports inline queries. Returned only in getMe.
std::optional< bool > isPremium
Optional. True, if this user is a Telegram Premium user.
std::optional< bool > canManageBots
Optional. True, if other bots can be created to be controlled by the bot. Returned only in getMe.
std::optional< bool > supportsGuestQueries
Optional. True, if the bot supports guest queries from chats it is not a member of....
std::string firstName
User's or bot's first name.
std::optional< bool > canReadAllGroupMessages
Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.
std::optional< std::string > username
Optional. User's or bot's username.
std::optional< bool > canConnectToBusiness
Optional. True, if the bot can be connected to a user account to manage it. Returned only in getMe.
std::optional< bool > hasTopicsEnabled
Optional. True, if the bot has forum topic mode enabled in private chats. Returned only in getMe.
bool isBot
True, if this user is a bot.
std::optional< bool > addedToAttachmentMenu
Optional. True, if this user added the bot to the attachment menu.
std::shared_ptr< User > Ptr
std::optional< std::string > languageCode
Optional. IETF language tag of the user's language.
std::optional< bool > supportsJoinRequestQueries
Optional. True, if the bot supports join request queries and can be assigned to process them....
This object represents the audios displayed on a user's profile.
std::uint32_t totalCount
Total number of profile audios for the target user.
std::vector< std::shared_ptr< Audio > > audios
Requested profile audios.
std::shared_ptr< UserProfileAudios > Ptr
This object represent a user's profile pictures.
std::uint32_t totalCount
Total number of profile pictures the target user has.
std::vector< std::vector< std::shared_ptr< PhotoSize > > > photos
Requested profile pictures (in up to 4 sizes each).
std::shared_ptr< UserProfilePhotos > Ptr
This object describes the rating of a user based on their Telegram Star spendings.
std::int32_t level
Current level of the user, indicating their reliability when purchasing digital goods and services....
std::shared_ptr< UserRating > Ptr
std::optional< std::int32_t > nextLevelRating
Optional. The rating value required to get to the next level; omitted if the maximum level was reache...
std::int32_t currentLevelRating
The rating value required to get the current level.
std::int32_t rating
Numerical value of the user's rating; the higher the rating, the better.
This object contains information about the users whose identifiers were shared with the bot using a K...
std::vector< std::shared_ptr< SharedUser > > users
Information about users shared with the bot.
std::shared_ptr< UsersShared > Ptr
std::int32_t requestId
Identifier of the request.
This object represents a venue.
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue.
std::string address
Address of the venue.
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
std::shared_ptr< Location > location
Venue location. Can't be a live location.
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”,...
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
std::shared_ptr< Venue > Ptr
std::string title
Name of the venue.
Arguments for Api::verifyChat.
std::string customDescription
Custom description for the verification; 0-70 characters. Must be empty if the organization isn't all...
std::string customDescriptionParseMode
Mode for parsing entities in the custom description. See formatting options for more details....
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
std::vector< std::shared_ptr< MessageEntity > > customDescriptionEntities
A JSON-serialized list of special entities that appear in the custom description, which can be specif...
Arguments for Api::verifyUser.
std::string customDescriptionParseMode
Mode for parsing entities in the custom description. See formatting options for more details....
std::string customDescription
Custom description for the verification; 0-70 characters. Must be empty if the organization isn't all...
std::uint64_t userId
Unique identifier of the target user.
std::vector< std::shared_ptr< MessageEntity > > customDescriptionEntities
A JSON-serialized list of special entities that appear in the custom description, which can be specif...
This object represents a service message about a video chat ended in the chat.
std::shared_ptr< VideoChatEnded > Ptr
std::uint32_t duration
Video chat duration in seconds.
This object represents a service message about new members invited to a video chat.
std::shared_ptr< VideoChatParticipantsInvited > Ptr
std::vector< std::shared_ptr< User > > users
New members that were invited to the video chat.
This object represents a service message about a video chat scheduled in the chat.
std::int32_t startDate
Point in time (Unix timestamp) when the video chat is supposed to be started by a chat administrator.
std::shared_ptr< VideoChatScheduled > Ptr
This object represents a service message about a video chat started in the chat. Currently holds no i...
std::shared_ptr< VideoChatStarted > Ptr
This object represents a video file.
std::optional< std::string > fileName
Optional. Original filename as defined by the sender.
std::optional< std::vector< std::shared_ptr< VideoQuality > > > qualities
Optional. List of available qualities of the video.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
std::uint32_t duration
Duration of the video in seconds as defined by the sender.
std::shared_ptr< PhotoSize > thumbnail
Optional. Video thumbnail.
std::uint32_t width
Video width as defined by the sender.
std::shared_ptr< Video > Ptr
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
std::optional< std::vector< std::shared_ptr< PhotoSize > > > cover
Optional. Available sizes of the cover of the video in the message.
std::uint32_t height
Video height as defined by the sender.
std::optional< std::uint32_t > startTimestamp
Optional. Timestamp in seconds from which the video will play in the message.
This object represents a video message.
std::optional< std::uint32_t > fileSize
Optional. File size in bytes.
std::shared_ptr< PhotoSize > thumbnail
Optional. Video thumbnail.
std::uint32_t length
Video width and height (diameter of the video message) as defined by the sender.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::shared_ptr< VideoNote > Ptr
std::uint32_t duration
Duration of the video in seconds as defined by the sender.
This object represents a video file of a specific quality.
std::shared_ptr< VideoQuality > Ptr
std::uint32_t width
Video width.
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
std::string codec
Codec that was used to encode the video, for example, “h264”, “h265”, or “av01”
std::uint32_t height
Video height.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
This object represents a voice note.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
std::uint32_t duration
Duration of the audio in seconds as defined by the sender.
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::shared_ptr< Voice > Ptr
Describes data sent from a Web App to the bot.
std::shared_ptr< WebAppData > Ptr
std::string buttonText
Text of the web_app keyboard button from which the Web App was opened. Be aware that a bad client can...
std::string data
The data. Be aware that a bad client can send arbitrary data in this field.
std::string url
An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps.
std::shared_ptr< WebAppInfo > Ptr
Describes the current status of a webhook.
std::optional< std::string > lastErrorMessage
Optional. Error message in human-readable format for the most recent error that happened when trying ...
std::optional< std::string > ipAddress
Optional. Currently used webhook IP address.
std::optional< std::vector< std::string > > allowedUpdates
Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_m...
std::string url
Webhook URL, may be empty if webhook is not set up.
std::optional< std::int32_t > lastSynchronizationErrorDate
Optional. Unix time of the most recent error that happened when trying to synchronize available updat...
std::shared_ptr< WebhookInfo > Ptr
std::optional< std::int32_t > lastErrorDate
Optional. Unix time for the most recent error that happened when trying to deliver an update via webh...
std::optional< std::uint32_t > maxConnections
Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update deli...
std::uint32_t pendingUpdateCount
Number of updates awaiting delivery.
bool hasCustomCertificate
True, if a custom certificate was provided for webhook certificate checks.
This object represents a service message about a user allowing a bot to write messages after adding i...
std::optional< bool > fromAttachmentMenu
Optional. True, if the access was granted when the bot was added to the attachment or side menu.
std::optional< std::string > webAppName
Optional. Name of the Web App, if the access was granted when the Web App was launched from a link.
std::shared_ptr< WriteAccessAllowed > Ptr
std::optional< bool > fromRequest
Optional. True, if the access was granted after the user accepted an explicit request from a Web App ...