8#include <nlohmann/json_fwd.hpp>
424 using Ptr = std::shared_ptr<AcceptedGiftTypes>;
456 using Ptr = std::shared_ptr<AffiliateInfo>;
492 using Ptr = std::shared_ptr<Animation>;
544 using Ptr = std::shared_ptr<Audio>;
566 std::optional<std::string>
title { };
598 using Ptr = std::shared_ptr<BackgroundFill>;
600 std::variant<std::shared_ptr<BackgroundFillSolid>, std::shared_ptr<BackgroundFillGradient>,
601 std::shared_ptr<BackgroundFillFreeformGradient>>
613 using Ptr = std::shared_ptr<BackgroundFillFreeformGradient>;
636 using Ptr = std::shared_ptr<BackgroundFillGradient>;
666 using Ptr = std::shared_ptr<BackgroundFillSolid>;
689 using Ptr = std::shared_ptr<BackgroundType>;
691 std::variant<std::shared_ptr<BackgroundTypeFill>, std::shared_ptr<BackgroundTypeWallpaper>,
692 std::shared_ptr<BackgroundTypePattern>, std::shared_ptr<BackgroundTypeChatTheme>>
704 using Ptr = std::shared_ptr<BackgroundTypeChatTheme>;
726 using Ptr = std::shared_ptr<BackgroundTypeFill>;
737 std::shared_ptr<BackgroundFill>
fill { };
754 using Ptr = std::shared_ptr<BackgroundTypePattern>;
769 std::shared_ptr<BackgroundFill>
fill { };
793 using Ptr = std::shared_ptr<BackgroundTypeWallpaper>;
828 using Ptr = std::shared_ptr<Birthdate>;
841 std::optional<std::int32_t>
year { };
852 using Ptr = std::shared_ptr<BotAccessSettings>;
861 std::optional<std::vector<std::shared_ptr<User>>>
addedUsers { };
872 using Ptr = std::shared_ptr<BotCommand>;
901 using Ptr = std::shared_ptr<BotCommandScope>;
903 std::variant<std::shared_ptr<BotCommandScopeDefault>, std::shared_ptr<BotCommandScopeAllPrivateChats>,
904 std::shared_ptr<BotCommandScopeAllGroupChats>, std::shared_ptr<BotCommandScopeAllChatAdministrators>,
905 std::shared_ptr<BotCommandScopeChat>, std::shared_ptr<BotCommandScopeChatAdministrators>,
906 std::shared_ptr<BotCommandScopeChatMember>>
918 using Ptr = std::shared_ptr<BotCommandScopeAllChatAdministrators>;
936 using Ptr = std::shared_ptr<BotCommandScopeAllGroupChats>;
954 using Ptr = std::shared_ptr<BotCommandScopeAllPrivateChats>;
972 using Ptr = std::shared_ptr<BotCommandScopeChat>;
996 using Ptr = std::shared_ptr<BotCommandScopeChatAdministrators>;
1020 using Ptr = std::shared_ptr<BotCommandScopeChatMember>;
1048 using Ptr = std::shared_ptr<BotCommandScopeDefault>;
1066 using Ptr = std::shared_ptr<BotDescription>;
1082 using Ptr = std::shared_ptr<BotName>;
1098 using Ptr = std::shared_ptr<BotShortDescription>;
1115 using Ptr = std::shared_ptr<BotSubscriptionUpdated>;
1141 using Ptr = std::shared_ptr<BusinessBotRights>;
1215 using Ptr = std::shared_ptr<BusinessConnection>;
1239 std::shared_ptr<BusinessBotRights>
rights { };
1254 using Ptr = std::shared_ptr<BusinessIntro>;
1278 using Ptr = std::shared_ptr<BusinessLocation>;
1298 using Ptr = std::shared_ptr<BusinessMessagesDeleted>;
1323 using Ptr = std::shared_ptr<BusinessOpeningHours>;
1332 std::vector<std::shared_ptr<BusinessOpeningHoursInterval>>
openingHours { };
1343 using Ptr = std::shared_ptr<BusinessOpeningHoursInterval>;
1365 using Ptr = std::shared_ptr<CallbackGame>;
1380 using Ptr = std::shared_ptr<CallbackQuery>;
1393 std::shared_ptr<MaybeInaccessibleMessage>
message { };
1408 std::optional<std::string>
data { };
1424 using Ptr = std::shared_ptr<Chat>;
1426 enum class Type { Private, Group, Supergroup, Channel };
1434 std::int64_t
id { };
1476 using Ptr = std::shared_ptr<ChatAdministratorRights>;
1573 using Ptr = std::shared_ptr<ChatBackground>;
1578 std::shared_ptr<BackgroundType>
type { };
1589 using Ptr = std::shared_ptr<ChatBoost>;
1618 using Ptr = std::shared_ptr<ChatBoostAdded>;
1634 using Ptr = std::shared_ptr<ChatBoostRemoved>;
1663 using Ptr = std::shared_ptr<ChatBoostSource>;
1665 std::variant<std::shared_ptr<ChatBoostSourcePremium>, std::shared_ptr<ChatBoostSourceGiftCode>,
1666 std::shared_ptr<ChatBoostSourceGiveaway>>
1680 using Ptr = std::shared_ptr<ChatBoostSourceGiftCode>;
1705 using Ptr = std::shared_ptr<ChatBoostSourceGiveaway>;
1743 using Ptr = std::shared_ptr<ChatBoostSourcePremium>;
1765 using Ptr = std::shared_ptr<ChatBoostUpdated>;
1785 using Ptr = std::shared_ptr<ChatFullInfo>;
1793 std::int64_t
id { };
1898 std::optional<std::string>
bio { };
2040 using Ptr = std::shared_ptr<ChatInviteLink>;
2066 std::optional<std::string>
name { };
2100 using Ptr = std::shared_ptr<ChatJoinRequest>;
2126 std::optional<std::string>
bio { };
2147 using Ptr = std::shared_ptr<ChatLocation>;
2169 using Ptr = std::shared_ptr<ChatMember>;
2171 std::variant<std::shared_ptr<ChatMemberOwner>, std::shared_ptr<ChatMemberAdministrator>,
2172 std::shared_ptr<ChatMemberMember>, std::shared_ptr<ChatMemberRestricted>,
2173 std::shared_ptr<ChatMemberLeft>, std::shared_ptr<ChatMemberBanned>>
2185 using Ptr = std::shared_ptr<ChatMemberAdministrator>;
2301 using Ptr = std::shared_ptr<ChatMemberBanned>;
2329 using Ptr = std::shared_ptr<ChatMemberLeft>;
2351 using Ptr = std::shared_ptr<ChatMemberMember>;
2362 std::optional<std::string>
tag { };
2381 using Ptr = std::shared_ptr<ChatMemberOwner>;
2411 using Ptr = std::shared_ptr<ChatMemberRestricted>;
2422 std::optional<std::string>
tag { };
2511 using Ptr = std::shared_ptr<ChatMemberUpdated>;
2557 using Ptr = std::shared_ptr<ChatOwnerChanged>;
2573 using Ptr = std::shared_ptr<ChatOwnerLeft>;
2590 using Ptr = std::shared_ptr<ChatPermissions>;
2672 using Ptr = std::shared_ptr<ChatPhoto>;
2705 using Ptr = std::shared_ptr<ChatShared>;
2731 std::optional<std::vector<std::shared_ptr<PhotoSize>>>
photo { };
2742 using Ptr = std::shared_ptr<Checklist>;
2755 std::vector<std::shared_ptr<ChecklistTask>>
tasks { };
2775 using Ptr = std::shared_ptr<ChecklistTask>;
2780 std::int32_t
id { };
2788 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
textEntities { };
2812 using Ptr = std::shared_ptr<ChecklistTasksAdded>;
2823 std::vector<std::shared_ptr<ChecklistTask>>
tasks { };
2834 using Ptr = std::shared_ptr<ChecklistTasksDone>;
2861 using Ptr = std::shared_ptr<ChosenInlineResult>;
2895 using Ptr = std::shared_ptr<Community>;
2903 std::int64_t
id { };
2918 using Ptr = std::shared_ptr<CommunityChatAdded>;
2934 using Ptr = std::shared_ptr<CommunityChatJoined>;
2951 using Ptr = std::shared_ptr<CommunityChatRemoved>;
2962 using Ptr = std::shared_ptr<Contact>;
2998 using Ptr = std::shared_ptr<CopyTextButton>;
3014 using Ptr = std::shared_ptr<Dice>;
3036 using Ptr = std::shared_ptr<DirectMessagePriceChanged>;
3058 using Ptr = std::shared_ptr<DirectMessagesTopic>;
3082 using Ptr = std::shared_ptr<DisabledButton>;
3094 using Ptr = std::shared_ptr<Document>;
3136 using Ptr = std::shared_ptr<EncryptedCredentials>;
3162 using Ptr = std::shared_ptr<EncryptedPassportElement>;
3176 std::optional<std::string>
data { };
3191 std::optional<std::vector<std::shared_ptr<PassportFile>>>
files { };
3219 std::optional<std::vector<std::shared_ptr<PassportFile>>>
translation { };
3234 using Ptr = std::shared_ptr<EphemeralMessageParameters>;
3262 using Ptr = std::shared_ptr<ExternalReplyInfo>;
3306 std::optional<std::vector<std::shared_ptr<PhotoSize>>>
photo { };
3385 using Ptr = std::shared_ptr<File>;
3422 using Ptr = std::shared_ptr<ForceReply>;
3451 using Ptr = std::shared_ptr<ForumTopic>;
3485 using Ptr = std::shared_ptr<ForumTopicClosed>;
3496 using Ptr = std::shared_ptr<ForumTopicCreated>;
3525 using Ptr = std::shared_ptr<ForumTopicEdited>;
3530 std::optional<std::string>
name { };
3547 using Ptr = std::shared_ptr<ForumTopicReopened>;
3559 using Ptr = std::shared_ptr<Game>;
3572 std::vector<std::shared_ptr<PhotoSize>>
photo { };
3578 std::optional<std::string>
text { };
3583 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
textEntities { };
3599 using Ptr = std::shared_ptr<GameHighScore>;
3624 using Ptr = std::shared_ptr<GeneralForumTopicHidden>;
3636 using Ptr = std::shared_ptr<GeneralForumTopicUnhidden>;
3647 using Ptr = std::shared_ptr<Gift>;
3718 using Ptr = std::shared_ptr<GiftBackground>;
3742 using Ptr = std::shared_ptr<GiftInfo>;
3773 std::optional<std::string>
text { };
3777 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
entities { };
3798 using Ptr = std::shared_ptr<Gifts>;
3803 std::vector<std::shared_ptr<Gift>>
gifts { };
3814 using Ptr = std::shared_ptr<Giveaway>;
3819 std::vector<std::shared_ptr<Chat>>
chats { };
3869 using Ptr = std::shared_ptr<GiveawayCompleted>;
3898 using Ptr = std::shared_ptr<GiveawayCreated>;
3915 using Ptr = std::shared_ptr<GiveawayWinners>;
3979 using Ptr = std::shared_ptr<InaccessibleMessage>;
4004 using Ptr = std::shared_ptr<InlineKeyboardButton>;
4027 std::optional<std::string>
url { };
4099 using Ptr = std::shared_ptr<InlineKeyboardMarkup>;
4122 using Ptr = std::shared_ptr<InlineQuery>;
4170 using Ptr = std::shared_ptr<InlineQueryResult>;
4172 std::variant<std::shared_ptr<InlineQueryResultCachedAudio>, std::shared_ptr<InlineQueryResultCachedDocument>,
4173 std::shared_ptr<InlineQueryResultCachedGif>, std::shared_ptr<InlineQueryResultCachedMpeg4Gif>,
4174 std::shared_ptr<InlineQueryResultCachedPhoto>, std::shared_ptr<InlineQueryResultCachedSticker>,
4175 std::shared_ptr<InlineQueryResultCachedVideo>, std::shared_ptr<InlineQueryResultCachedVoice>,
4176 std::shared_ptr<InlineQueryResultArticle>, std::shared_ptr<InlineQueryResultAudio>,
4177 std::shared_ptr<InlineQueryResultContact>, std::shared_ptr<InlineQueryResultGame>,
4178 std::shared_ptr<InlineQueryResultDocument>, std::shared_ptr<InlineQueryResultGif>,
4179 std::shared_ptr<InlineQueryResultLocation>, std::shared_ptr<InlineQueryResultMpeg4Gif>,
4180 std::shared_ptr<InlineQueryResultPhoto>, std::shared_ptr<InlineQueryResultVenue>,
4181 std::shared_ptr<InlineQueryResultVideo>, std::shared_ptr<InlineQueryResultVoice>>
4193 using Ptr = std::shared_ptr<InlineQueryResultArticle>;
4220 std::optional<std::string>
url { };
4249 using Ptr = std::shared_ptr<InlineQueryResultAudio>;
4311 using Ptr = std::shared_ptr<InlineQueryResultCachedAudio>;
4361 using Ptr = std::shared_ptr<InlineQueryResultCachedDocument>;
4419 using Ptr = std::shared_ptr<InlineQueryResultCachedGif>;
4478 using Ptr = std::shared_ptr<InlineQueryResultCachedMpeg4Gif>;
4537 using Ptr = std::shared_ptr<InlineQueryResultCachedPhoto>;
4599 using Ptr = std::shared_ptr<InlineQueryResultCachedSticker>;
4635 using Ptr = std::shared_ptr<InlineQueryResultCachedVideo>;
4697 using Ptr = std::shared_ptr<InlineQueryResultCachedVoice>;
4751 using Ptr = std::shared_ptr<InlineQueryResultContact>;
4812 using Ptr = std::shared_ptr<InlineQueryResultDocument>;
4884 using Ptr = std::shared_ptr<InlineQueryResultGame>;
4916 using Ptr = std::shared_ptr<InlineQueryResultGif>;
4995 using Ptr = std::shared_ptr<InlineQueryResultLocation>;
5071 using Ptr = std::shared_ptr<InlineQueryResultMpeg4Gif>;
5151 using Ptr = std::shared_ptr<InlineQueryResultPhoto>;
5224 using Ptr = std::shared_ptr<InlineQueryResultVenue>;
5301 using Ptr = std::shared_ptr<InlineQueryResultVideo>;
5386 using Ptr = std::shared_ptr<InlineQueryResultVoice>;
5443 using Ptr = std::shared_ptr<InlineQueryResultsButton>;
5477 using Ptr = std::shared_ptr<InputChecklist>;
5497 std::vector<std::shared_ptr<InputChecklistTask>>
tasks { };
5516 using Ptr = std::shared_ptr<InputChecklistTask>;
5522 std::int32_t
id { };
5537 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
textEntities { };
5548 using Ptr = std::shared_ptr<InputContactMessageContent>;
5576 using Ptr = std::shared_ptr<InputInvoiceMessageContent>;
5606 std::vector<std::shared_ptr<LabeledPrice>>
prices { };
5690 using Ptr = std::shared_ptr<InputLocationMessageContent>;
5731 using Ptr = std::shared_ptr<InputMedia>;
5733 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaAudio>,
5734 std::shared_ptr<InputMediaDocument>, std::shared_ptr<InputMediaLivePhoto>,
5735 std::shared_ptr<InputMediaPhoto>, std::shared_ptr<InputMediaVideo>>
5747 using Ptr = std::shared_ptr<InputMediaAnimation>;
5816 using Ptr = std::shared_ptr<InputMediaAudio>;
5877 using Ptr = std::shared_ptr<InputMediaDocument>;
5931 using Ptr = std::shared_ptr<InputMediaLink>;
5953 using Ptr = std::shared_ptr<InputMediaLivePhoto>;
6007 using Ptr = std::shared_ptr<InputMediaLocation>;
6037 using Ptr = std::shared_ptr<InputMediaPhoto>;
6084 using Ptr = std::shared_ptr<InputMediaSticker>;
6114 using Ptr = std::shared_ptr<InputMediaVenue>;
6165 using Ptr = std::shared_ptr<InputMediaVideo>;
6249 using Ptr = std::shared_ptr<InputMediaVoiceNote>;
6296 using Ptr = std::shared_ptr<InputMessageContent>;
6298 std::variant<std::shared_ptr<InputTextMessageContent>, std::shared_ptr<InputRichMessageContent>,
6299 std::shared_ptr<InputLocationMessageContent>, std::shared_ptr<InputVenueMessageContent>,
6300 std::shared_ptr<InputContactMessageContent>, std::shared_ptr<InputInvoiceMessageContent>>
6313 using Ptr = std::shared_ptr<InputPaidMedia>;
6315 std::variant<std::shared_ptr<InputPaidMediaLivePhoto>, std::shared_ptr<InputPaidMediaPhoto>,
6316 std::shared_ptr<InputPaidMediaVideo>>
6328 using Ptr = std::shared_ptr<InputPaidMediaLivePhoto>;
6360 using Ptr = std::shared_ptr<InputPaidMediaPhoto>;
6385 using Ptr = std::shared_ptr<InputPaidMediaVideo>;
6449 using Ptr = std::shared_ptr<InputPollMedia>;
6451 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaAudio>,
6452 std::shared_ptr<InputMediaDocument>, std::shared_ptr<InputMediaLivePhoto>,
6453 std::shared_ptr<InputMediaLocation>, std::shared_ptr<InputMediaPhoto>,
6454 std::shared_ptr<InputMediaVenue>, std::shared_ptr<InputMediaVideo>>
6466 using Ptr = std::shared_ptr<InputPollOption>;
6481 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
textEntities { };
6485 std::shared_ptr<InputPollOptionMedia>
media { };
6498 using Ptr = std::shared_ptr<InputPollOptionMedia>;
6500 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaLink>,
6501 std::shared_ptr<InputMediaLivePhoto>, std::shared_ptr<InputMediaLocation>,
6502 std::shared_ptr<InputMediaPhoto>, std::shared_ptr<InputMediaSticker>, std::shared_ptr<InputMediaVenue>,
6503 std::shared_ptr<InputMediaVideo>>
6516 using Ptr = std::shared_ptr<InputProfilePhoto>;
6518 std::variant<std::shared_ptr<InputProfilePhotoStatic>, std::shared_ptr<InputProfilePhotoAnimated>>
value;
6529 using Ptr = std::shared_ptr<InputProfilePhotoAnimated>;
6558 using Ptr = std::shared_ptr<InputProfilePhotoStatic>;
6590 using Ptr = std::shared_ptr<InputRichBlock>;
6592 std::variant<std::shared_ptr<InputRichBlockParagraph>, std::shared_ptr<InputRichBlockSectionHeading>,
6593 std::shared_ptr<InputRichBlockPreformatted>, std::shared_ptr<InputRichBlockFooter>,
6594 std::shared_ptr<InputRichBlockDivider>, std::shared_ptr<InputRichBlockMathematicalExpression>,
6595 std::shared_ptr<InputRichBlockAnchor>, std::shared_ptr<InputRichBlockList>,
6596 std::shared_ptr<InputRichBlockBlockQuotation>, std::shared_ptr<InputRichBlockExpandableBlockQuotation>,
6597 std::shared_ptr<InputRichBlockPullQuotation>, std::shared_ptr<InputRichBlockCollage>,
6598 std::shared_ptr<InputRichBlockSlideshow>, std::shared_ptr<InputRichBlockTable>,
6599 std::shared_ptr<InputRichBlockDetails>, std::shared_ptr<InputRichBlockMap>,
6600 std::shared_ptr<InputRichBlockButtons>, std::shared_ptr<InputRichBlockAnimation>,
6601 std::shared_ptr<InputRichBlockAudio>, std::shared_ptr<InputRichBlockDocument>,
6602 std::shared_ptr<InputRichBlockPhoto>, std::shared_ptr<InputRichBlockVideo>,
6603 std::shared_ptr<InputRichBlockVoiceNote>, std::shared_ptr<InputRichBlockThinking>>
6615 using Ptr = std::shared_ptr<InputRichBlockAnchor>;
6637 using Ptr = std::shared_ptr<InputRichBlockAnimation>;
6663 using Ptr = std::shared_ptr<InputRichBlockAudio>;
6674 std::shared_ptr<InputMediaAudio>
audio { };
6689 using Ptr = std::shared_ptr<InputRichBlockBlockQuotation>;
6700 std::vector<std::shared_ptr<InputRichBlock>>
blocks { };
6716 using Ptr = std::shared_ptr<InputRichBlockButtons>;
6727 std::vector<std::shared_ptr<RichMessageButton>>
buttons { };
6743 using Ptr = std::shared_ptr<InputRichBlockCollage>;
6754 std::vector<std::shared_ptr<InputRichBlock>>
blocks { };
6769 using Ptr = std::shared_ptr<InputRichBlockDetails>;
6784 std::vector<std::shared_ptr<InputRichBlock>>
blocks { };
6799 using Ptr = std::shared_ptr<InputRichBlockDivider>;
6817 using Ptr = std::shared_ptr<InputRichBlockDocument>;
6844 using Ptr = std::shared_ptr<InputRichBlockExpandableBlockQuotation>;
6855 std::shared_ptr<RichText>
text { };
6870 using Ptr = std::shared_ptr<InputRichBlockFooter>;
6881 std::shared_ptr<RichText>
text { };
6892 using Ptr = std::shared_ptr<InputRichBlockList>;
6903 std::vector<std::shared_ptr<InputRichBlockListItem>>
items { };
6914 using Ptr = std::shared_ptr<InputRichBlockListItem>;
6919 std::vector<std::shared_ptr<InputRichBlock>>
blocks { };
6937 std::optional<std::string>
type { };
6949 using Ptr = std::shared_ptr<InputRichBlockMap>;
6964 std::optional<std::int32_t>
zoom { };
6988 using Ptr = std::shared_ptr<InputRichBlockMathematicalExpression>;
7010 using Ptr = std::shared_ptr<InputRichBlockParagraph>;
7021 std::shared_ptr<RichText>
text { };
7032 using Ptr = std::shared_ptr<InputRichBlockPhoto>;
7043 std::shared_ptr<InputMediaPhoto>
photo { };
7058 using Ptr = std::shared_ptr<InputRichBlockPreformatted>;
7069 std::shared_ptr<RichText>
text { };
7084 using Ptr = std::shared_ptr<InputRichBlockPullQuotation>;
7095 std::shared_ptr<RichText>
text { };
7110 using Ptr = std::shared_ptr<InputRichBlockSectionHeading>;
7121 std::shared_ptr<RichText>
text { };
7136 using Ptr = std::shared_ptr<InputRichBlockSlideshow>;
7147 std::vector<std::shared_ptr<InputRichBlock>>
blocks { };
7162 using Ptr = std::shared_ptr<InputRichBlockTable>;
7173 std::vector<std::vector<std::shared_ptr<RichBlockTableCell>>>
cells { };
7203 using Ptr = std::shared_ptr<InputRichBlockThinking>;
7215 std::shared_ptr<RichText>
text { };
7226 using Ptr = std::shared_ptr<InputRichBlockVideo>;
7237 std::shared_ptr<InputMediaVideo>
video { };
7252 using Ptr = std::shared_ptr<InputRichBlockVoiceNote>;
7279 using Ptr = std::shared_ptr<InputRichMessage>;
7284 std::optional<std::vector<std::shared_ptr<InputRichBlock>>>
blocks { };
7290 std::optional<std::string>
html { };
7301 std::optional<std::vector<std::shared_ptr<InputRichMessageMedia>>>
media { };
7322 using Ptr = std::shared_ptr<InputRichMessageContent>;
7338 using Ptr = std::shared_ptr<InputRichMessageMedia>;
7349 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaAudio>,
7350 std::shared_ptr<InputMediaDocument>, std::shared_ptr<InputMediaPhoto>,
7351 std::shared_ptr<InputMediaVideo>, std::shared_ptr<InputMediaVoiceNote>>
7363 using Ptr = std::shared_ptr<InputSticker>;
7402 using Ptr = std::shared_ptr<InputStoryContent>;
7404 std::variant<std::shared_ptr<InputStoryContentPhoto>, std::shared_ptr<InputStoryContentVideo>>
value;
7415 using Ptr = std::shared_ptr<InputStoryContentPhoto>;
7440 using Ptr = std::shared_ptr<InputStoryContentVideo>;
7479 using Ptr = std::shared_ptr<InputTextMessageContent>;
7494 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
entities { };
7509 using Ptr = std::shared_ptr<InputVenueMessageContent>;
7554 using Ptr = std::shared_ptr<Invoice>;
7592 using Ptr = std::shared_ptr<KeyboardButton>;
7661 using Ptr = std::shared_ptr<KeyboardButtonPollType>;
7668 std::optional<std::string>
type { };
7681 using Ptr = std::shared_ptr<KeyboardButtonRequestChat>;
7749 using Ptr = std::shared_ptr<KeyboardButtonRequestManagedBot>;
7775 using Ptr = std::shared_ptr<KeyboardButtonRequestUsers>;
7818 using Ptr = std::shared_ptr<LabeledPrice>;
7841 using Ptr = std::shared_ptr<Link>;
7857 using Ptr = std::shared_ptr<LinkPreviewOptions>;
7867 std::optional<std::string>
url { };
7893 using Ptr = std::shared_ptr<LivePhoto>;
7898 std::optional<std::vector<std::shared_ptr<PhotoSize>>>
photo { };
7941 using Ptr = std::shared_ptr<Location>;
7980 using Ptr = std::shared_ptr<LocationAddress>;
7994 std::optional<std::string>
city { };
8012 using Ptr = std::shared_ptr<LoginUrl>;
8049 using Ptr = std::shared_ptr<ManagedBotCreated>;
8055 std::shared_ptr<User>
bot { };
8067 using Ptr = std::shared_ptr<ManagedBotUpdated>;
8077 std::shared_ptr<User>
bot { };
8088 using Ptr = std::shared_ptr<MaskPosition>;
8121 using Ptr = std::shared_ptr<MaybeInaccessibleMessage>;
8123 std::variant<std::shared_ptr<Message>, std::shared_ptr<InaccessibleMessage>>
value;
8137 using Ptr = std::shared_ptr<MenuButton>;
8139 std::variant<std::shared_ptr<MenuButtonCommands>, std::shared_ptr<MenuButtonWebApp>,
8140 std::shared_ptr<MenuButtonDefault>>
8152 using Ptr = std::shared_ptr<MenuButtonCommands>;
8170 using Ptr = std::shared_ptr<MenuButtonDefault>;
8188 using Ptr = std::shared_ptr<MenuButtonWebApp>;
8218 using Ptr = std::shared_ptr<Message>;
8390 std::optional<std::string>
text { };
8395 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
entities { };
8440 std::optional<std::vector<std::shared_ptr<PhotoSize>>>
photo { };
8606 std::shared_ptr<GiftInfo>
gift { };
8779 using Ptr = std::shared_ptr<MessageAutoDeleteTimerChanged>;
8796 using Ptr = std::shared_ptr<MessageEntity>;
8812 ExpandableBlockquote,
8844 std::optional<std::string>
url { };
8880 using Ptr = std::shared_ptr<MessageGenerationStopped>;
8904 using Ptr = std::shared_ptr<MessageId>;
8924 using Ptr = std::shared_ptr<MessageOrigin>;
8926 std::variant<std::shared_ptr<MessageOriginUser>, std::shared_ptr<MessageOriginHiddenUser>,
8927 std::shared_ptr<MessageOriginChat>, std::shared_ptr<MessageOriginChannel>>
8939 using Ptr = std::shared_ptr<MessageOriginChannel>;
8973 using Ptr = std::shared_ptr<MessageOriginChat>;
9004 using Ptr = std::shared_ptr<MessageOriginHiddenUser>;
9030 using Ptr = std::shared_ptr<MessageOriginUser>;
9056 using Ptr = std::shared_ptr<MessageReactionCountUpdated>;
9084 using Ptr = std::shared_ptr<MessageReactionUpdated>;
9124 using Ptr = std::shared_ptr<OrderInfo>;
9129 std::optional<std::string>
name { };
9153 using Ptr = std::shared_ptr<OwnedGift>;
9155 std::variant<std::shared_ptr<OwnedGiftRegular>, std::shared_ptr<OwnedGiftUnique>>
value;
9166 using Ptr = std::shared_ptr<OwnedGiftRegular>;
9194 std::optional<std::string>
text { };
9198 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
entities { };
9248 using Ptr = std::shared_ptr<OwnedGiftUnique>;
9259 std::shared_ptr<UniqueGift>
gift { };
9303 using Ptr = std::shared_ptr<OwnedGifts>;
9312 std::vector<std::shared_ptr<OwnedGift>>
gifts { };
9328 using Ptr = std::shared_ptr<PaidMedia>;
9330 std::variant<std::shared_ptr<PaidMediaLivePhoto>, std::shared_ptr<PaidMediaPhoto>,
9331 std::shared_ptr<PaidMediaPreview>, std::shared_ptr<PaidMediaVideo>>
9343 using Ptr = std::shared_ptr<PaidMediaInfo>;
9363 using Ptr = std::shared_ptr<PaidMediaLivePhoto>;
9385 using Ptr = std::shared_ptr<PaidMediaPhoto>;
9396 std::vector<std::shared_ptr<PhotoSize>>
photo { };
9407 using Ptr = std::shared_ptr<PaidMediaPreview>;
9437 using Ptr = std::shared_ptr<PaidMediaPurchased>;
9457 using Ptr = std::shared_ptr<PaidMediaVideo>;
9479 using Ptr = std::shared_ptr<PaidMessagePriceChanged>;
9496 using Ptr = std::shared_ptr<PassportData>;
9502 std::vector<std::shared_ptr<EncryptedPassportElement>>
data { };
9521 using Ptr = std::shared_ptr<PassportElementError>;
9523 std::variant<std::shared_ptr<PassportElementErrorDataField>, std::shared_ptr<PassportElementErrorFrontSide>,
9524 std::shared_ptr<PassportElementErrorReverseSide>, std::shared_ptr<PassportElementErrorSelfie>,
9525 std::shared_ptr<PassportElementErrorFile>, std::shared_ptr<PassportElementErrorFiles>,
9526 std::shared_ptr<PassportElementErrorTranslationFile>,
9527 std::shared_ptr<PassportElementErrorTranslationFiles>,
9528 std::shared_ptr<PassportElementErrorUnspecified>>
9541 using Ptr = std::shared_ptr<PassportElementErrorDataField>;
9578 using Ptr = std::shared_ptr<PassportElementErrorFile>;
9610 using Ptr = std::shared_ptr<PassportElementErrorFiles>;
9642 using Ptr = std::shared_ptr<PassportElementErrorFrontSide>;
9674 using Ptr = std::shared_ptr<PassportElementErrorReverseSide>;
9706 using Ptr = std::shared_ptr<PassportElementErrorSelfie>;
9738 using Ptr = std::shared_ptr<PassportElementErrorTranslationFile>;
9771 using Ptr = std::shared_ptr<PassportElementErrorTranslationFiles>;
9804 using Ptr = std::shared_ptr<PassportElementErrorUnspecified>;
9835 using Ptr = std::shared_ptr<PassportFile>;
9864 using Ptr = std::shared_ptr<PhotoSize>;
9897 using Ptr = std::shared_ptr<Poll>;
9915 std::vector<std::shared_ptr<PollOption>>
options { };
10002 using Ptr = std::shared_ptr<PollAnswer>;
10035 using Ptr = std::shared_ptr<PollMedia>;
10066 std::optional<std::vector<std::shared_ptr<PhotoSize>>>
photo { };
10090 using Ptr = std::shared_ptr<PollOption>;
10138 using Ptr = std::shared_ptr<PollOptionAdded>;
10168 using Ptr = std::shared_ptr<PollOptionDeleted>;
10198 using Ptr = std::shared_ptr<PreCheckoutQuery>;
10203 std::string
id { };
10241 using Ptr = std::shared_ptr<PreparedInlineMessage>;
10246 std::string
id { };
10262 using Ptr = std::shared_ptr<PreparedKeyboardButton>;
10267 std::string
id { };
10279 using Ptr = std::shared_ptr<ProximityAlertTriggered>;
10303 using Ptr = std::shared_ptr<ReactionCount>;
10308 std::shared_ptr<ReactionType>
type { };
10324 using Ptr = std::shared_ptr<ReactionType>;
10326 std::variant<std::shared_ptr<ReactionTypeEmoji>, std::shared_ptr<ReactionTypeCustomEmoji>,
10327 std::shared_ptr<ReactionTypePaid>>
10339 using Ptr = std::shared_ptr<ReactionTypeCustomEmoji>;
10361 using Ptr = std::shared_ptr<ReactionTypeEmoji>;
10386 using Ptr = std::shared_ptr<ReactionTypePaid>;
10404 using Ptr = std::shared_ptr<RefundedPayment>;
10442 using Ptr = std::shared_ptr<ReplyKeyboardMarkup>;
10447 std::vector<std::vector<std::shared_ptr<KeyboardButton>>>
keyboard { };
10500 using Ptr = std::shared_ptr<ReplyKeyboardRemove>;
10527 using Ptr = std::shared_ptr<ReplyParameters>;
10594 using Ptr = std::shared_ptr<ResponseParameters>;
10621 using Ptr = std::shared_ptr<RevenueWithdrawalState>;
10623 std::variant<std::shared_ptr<RevenueWithdrawalStatePending>, std::shared_ptr<RevenueWithdrawalStateSucceeded>,
10624 std::shared_ptr<RevenueWithdrawalStateFailed>>
10636 using Ptr = std::shared_ptr<RevenueWithdrawalStateFailed>;
10654 using Ptr = std::shared_ptr<RevenueWithdrawalStatePending>;
10672 using Ptr = std::shared_ptr<RevenueWithdrawalStateSucceeded>;
10704 using Ptr = std::shared_ptr<RichBlock>;
10706 std::variant<std::shared_ptr<RichBlockParagraph>, std::shared_ptr<RichBlockSectionHeading>,
10707 std::shared_ptr<RichBlockPreformatted>, std::shared_ptr<RichBlockFooter>,
10708 std::shared_ptr<RichBlockDivider>, std::shared_ptr<RichBlockMathematicalExpression>,
10709 std::shared_ptr<RichBlockAnchor>, std::shared_ptr<RichBlockList>,
10710 std::shared_ptr<RichBlockBlockQuotation>, std::shared_ptr<RichBlockExpandableBlockQuotation>,
10711 std::shared_ptr<RichBlockPullQuotation>, std::shared_ptr<RichBlockCollage>,
10712 std::shared_ptr<RichBlockSlideshow>, std::shared_ptr<RichBlockTable>,
10713 std::shared_ptr<RichBlockDetails>, std::shared_ptr<RichBlockMap>, std::shared_ptr<RichBlockButtons>,
10714 std::shared_ptr<RichBlockAnimation>, std::shared_ptr<RichBlockAudio>,
10715 std::shared_ptr<RichBlockDocument>, std::shared_ptr<RichBlockPhoto>, std::shared_ptr<RichBlockVideo>,
10716 std::shared_ptr<RichBlockVoiceNote>, std::shared_ptr<RichBlockThinking>>
10728 using Ptr = std::shared_ptr<RichBlockAnchor>;
10750 using Ptr = std::shared_ptr<RichBlockAnimation>;
10780 using Ptr = std::shared_ptr<RichBlockAudio>;
10806 using Ptr = std::shared_ptr<RichBlockBlockQuotation>;
10817 std::vector<std::shared_ptr<RichBlock>>
blocks { };
10833 using Ptr = std::shared_ptr<RichBlockButtons>;
10844 std::vector<std::shared_ptr<RichMessageButton>>
buttons { };
10860 using Ptr = std::shared_ptr<RichBlockCaption>;
10880 using Ptr = std::shared_ptr<RichBlockCollage>;
10891 std::vector<std::shared_ptr<RichBlock>>
blocks { };
10906 using Ptr = std::shared_ptr<RichBlockDetails>;
10921 std::vector<std::shared_ptr<RichBlock>>
blocks { };
10936 using Ptr = std::shared_ptr<RichBlockDivider>;
10954 using Ptr = std::shared_ptr<RichBlockDocument>;
10981 using Ptr = std::shared_ptr<RichBlockExpandableBlockQuotation>;
11007 using Ptr = std::shared_ptr<RichBlockFooter>;
11029 using Ptr = std::shared_ptr<RichBlockList>;
11040 std::vector<std::shared_ptr<RichBlockListItem>>
items { };
11051 using Ptr = std::shared_ptr<RichBlockListItem>;
11060 std::vector<std::shared_ptr<RichBlock>>
blocks { };
11089 using Ptr = std::shared_ptr<RichBlockMap>;
11128 using Ptr = std::shared_ptr<RichBlockMathematicalExpression>;
11150 using Ptr = std::shared_ptr<RichBlockParagraph>;
11172 using Ptr = std::shared_ptr<RichBlockPhoto>;
11183 std::vector<std::shared_ptr<PhotoSize>>
photo { };
11202 using Ptr = std::shared_ptr<RichBlockPreformatted>;
11228 using Ptr = std::shared_ptr<RichBlockPullQuotation>;
11254 using Ptr = std::shared_ptr<RichBlockSectionHeading>;
11280 using Ptr = std::shared_ptr<RichBlockSlideshow>;
11291 std::vector<std::shared_ptr<RichBlock>>
blocks { };
11306 using Ptr = std::shared_ptr<RichBlockTable>;
11317 std::vector<std::vector<std::shared_ptr<RichBlockTableCell>>>
cells { };
11344 using Ptr = std::shared_ptr<RichBlockTableCell>;
11384 using Ptr = std::shared_ptr<RichBlockThinking>;
11407 using Ptr = std::shared_ptr<RichBlockVideo>;
11437 using Ptr = std::shared_ptr<RichBlockVoiceNote>;
11463 using Ptr = std::shared_ptr<RichMessage>;
11468 std::vector<std::shared_ptr<RichBlock>>
blocks { };
11484 using Ptr = std::shared_ptr<RichMessageButton>;
11503 std::optional<std::string>
url { };
11567 using Ptr = std::shared_ptr<RichText>;
11570 std::shared_ptr<RichTextBold>, std::shared_ptr<RichTextItalic>, std::shared_ptr<RichTextUnderline>,
11571 std::shared_ptr<RichTextStrikethrough>, std::shared_ptr<RichTextSpoiler>, std::shared_ptr<RichTextDateTime>,
11572 std::shared_ptr<RichTextTextMention>, std::shared_ptr<RichTextSubscript>, std::shared_ptr<RichTextSuperscript>,
11573 std::shared_ptr<RichTextMarked>, std::shared_ptr<RichTextCode>, std::shared_ptr<RichTextCustomEmoji>,
11574 std::shared_ptr<RichTextMathematicalExpression>, std::shared_ptr<RichTextUrl>,
11575 std::shared_ptr<RichTextEmailAddress>, std::shared_ptr<RichTextPhoneNumber>,
11576 std::shared_ptr<RichTextBankCardNumber>, std::shared_ptr<RichTextMention>, std::shared_ptr<RichTextHashtag>,
11577 std::shared_ptr<RichTextCashtag>, std::shared_ptr<RichTextBotCommand>, std::shared_ptr<RichTextButton>,
11578 std::shared_ptr<RichTextAnchor>, std::shared_ptr<RichTextAnchorLink>, std::shared_ptr<RichTextReference>,
11579 std::shared_ptr<RichTextReferenceLink>>
11591 using Ptr = std::shared_ptr<RichTextAnchor>;
11613 using Ptr = std::shared_ptr<RichTextAnchorLink>;
11640 using Ptr = std::shared_ptr<RichTextBankCardNumber>;
11666 using Ptr = std::shared_ptr<RichTextBold>;
11688 using Ptr = std::shared_ptr<RichTextBotCommand>;
11714 using Ptr = std::shared_ptr<RichTextButton>;
11736 using Ptr = std::shared_ptr<RichTextCashtag>;
11762 using Ptr = std::shared_ptr<RichTextCode>;
11784 using Ptr = std::shared_ptr<RichTextCustomEmoji>;
11811 using Ptr = std::shared_ptr<RichTextDateTime>;
11842 using Ptr = std::shared_ptr<RichTextEmailAddress>;
11868 using Ptr = std::shared_ptr<RichTextHashtag>;
11894 using Ptr = std::shared_ptr<RichTextItalic>;
11916 using Ptr = std::shared_ptr<RichTextMarked>;
11938 using Ptr = std::shared_ptr<RichTextMathematicalExpression>;
11960 using Ptr = std::shared_ptr<RichTextMention>;
11986 using Ptr = std::shared_ptr<RichTextPhoneNumber>;
12012 using Ptr = std::shared_ptr<RichTextReference>;
12038 using Ptr = std::shared_ptr<RichTextReferenceLink>;
12064 using Ptr = std::shared_ptr<RichTextSpoiler>;
12086 using Ptr = std::shared_ptr<RichTextStrikethrough>;
12108 using Ptr = std::shared_ptr<RichTextSubscript>;
12130 using Ptr = std::shared_ptr<RichTextSuperscript>;
12152 using Ptr = std::shared_ptr<RichTextTextMention>;
12178 using Ptr = std::shared_ptr<RichTextUnderline>;
12200 using Ptr = std::shared_ptr<RichTextUrl>;
12226 using Ptr = std::shared_ptr<SentGuestMessage>;
12242 using Ptr = std::shared_ptr<SentWebAppMessage>;
12260 using Ptr = std::shared_ptr<SharedUser>;
12286 std::optional<std::vector<std::shared_ptr<PhotoSize>>>
photo { };
12297 using Ptr = std::shared_ptr<ShippingAddress>;
12333 using Ptr = std::shared_ptr<ShippingOption>;
12338 std::string
id { };
12346 std::vector<std::shared_ptr<LabeledPrice>>
prices { };
12357 using Ptr = std::shared_ptr<ShippingQuery>;
12362 std::string
id { };
12385 using Ptr = std::shared_ptr<StarAmount>;
12409 using Ptr = std::shared_ptr<StarTransaction>;
12417 std::string
id { };
12451 using Ptr = std::shared_ptr<StarTransactions>;
12467 using Ptr = std::shared_ptr<Sticker>;
12469 enum class Type { Regular, Mask, CustomEmoji };
12549 using Ptr = std::shared_ptr<StickerSet>;
12551 enum class Type { Regular, Mask, CustomEmoji };
12586 using Ptr = std::shared_ptr<Story>;
12595 std::int32_t
id { };
12606 using Ptr = std::shared_ptr<StoryArea>;
12615 std::shared_ptr<StoryAreaType>
type { };
12626 using Ptr = std::shared_ptr<StoryAreaPosition>;
12664 using Ptr = std::shared_ptr<StoryAreaType>;
12666 std::variant<std::shared_ptr<StoryAreaTypeLocation>, std::shared_ptr<StoryAreaTypeSuggestedReaction>,
12667 std::shared_ptr<StoryAreaTypeLink>, std::shared_ptr<StoryAreaTypeWeather>,
12668 std::shared_ptr<StoryAreaTypeUniqueGift>>
12681 using Ptr = std::shared_ptr<StoryAreaTypeLink>;
12704 using Ptr = std::shared_ptr<StoryAreaTypeLocation>;
12735 using Ptr = std::shared_ptr<StoryAreaTypeSuggestedReaction>;
12766 using Ptr = std::shared_ptr<StoryAreaTypeUniqueGift>;
12789 using Ptr = std::shared_ptr<StoryAreaTypeWeather>;
12821 using Ptr = std::shared_ptr<SuccessfulPayment>;
12877 using Ptr = std::shared_ptr<SuggestedPostApprovalFailed>;
12888 std::shared_ptr<SuggestedPostPrice>
price { };
12899 using Ptr = std::shared_ptr<SuggestedPostApproved>;
12909 std::shared_ptr<SuggestedPostPrice>
price { };
12924 using Ptr = std::shared_ptr<SuggestedPostDeclined>;
12945 using Ptr = std::shared_ptr<SuggestedPostInfo>;
12955 std::shared_ptr<SuggestedPostPrice>
price { };
12972 using Ptr = std::shared_ptr<SuggestedPostPaid>;
13004 using Ptr = std::shared_ptr<SuggestedPostParameters>;
13009 std::shared_ptr<SuggestedPostPrice>
price { };
13027 using Ptr = std::shared_ptr<SuggestedPostPrice>;
13051 using Ptr = std::shared_ptr<SuggestedPostRefunded>;
13075 using Ptr = std::shared_ptr<SwitchInlineQueryChosenChat>;
13109 using Ptr = std::shared_ptr<TextQuote>;
13120 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
entities { };
13144 using Ptr = std::shared_ptr<TransactionPartner>;
13146 std::variant<std::shared_ptr<TransactionPartnerUser>, std::shared_ptr<TransactionPartnerChat>,
13147 std::shared_ptr<TransactionPartnerAffiliateProgram>, std::shared_ptr<TransactionPartnerFragment>,
13148 std::shared_ptr<TransactionPartnerTelegramAds>, std::shared_ptr<TransactionPartnerTelegramApi>,
13149 std::shared_ptr<TransactionPartnerOther>>
13162 using Ptr = std::shared_ptr<TransactionPartnerAffiliateProgram>;
13189 using Ptr = std::shared_ptr<TransactionPartnerChat>;
13215 using Ptr = std::shared_ptr<TransactionPartnerFragment>;
13237 using Ptr = std::shared_ptr<TransactionPartnerOther>;
13255 using Ptr = std::shared_ptr<TransactionPartnerTelegramAds>;
13273 using Ptr = std::shared_ptr<TransactionPartnerTelegramApi>;
13295 using Ptr = std::shared_ptr<TransactionPartnerUser>;
13334 std::optional<std::vector<std::shared_ptr<PaidMedia>>>
paidMedia { };
13359 using Ptr = std::shared_ptr<UniqueGift>;
13424 using Ptr = std::shared_ptr<UniqueGiftBackdrop>;
13433 std::shared_ptr<UniqueGiftBackdropColors>
colors { };
13448 using Ptr = std::shared_ptr<UniqueGiftBackdropColors>;
13477 using Ptr = std::shared_ptr<UniqueGiftColors>;
13513 using Ptr = std::shared_ptr<UniqueGiftInfo>;
13533 std::optional<std::vector<std::shared_ptr<MessageEntity>>>
entities { };
13574 using Ptr = std::shared_ptr<UniqueGiftModel>;
13604 using Ptr = std::shared_ptr<UniqueGiftSymbol>;
13629 using Ptr = std::shared_ptr<Update>;
13782 using Ptr = std::shared_ptr<User>;
13790 std::int64_t
id { };
13875 using Ptr = std::shared_ptr<UserChatBoosts>;
13880 std::vector<std::shared_ptr<ChatBoost>>
boosts { };
13891 using Ptr = std::shared_ptr<UserProfileAudios>;
13911 using Ptr = std::shared_ptr<UserProfilePhotos>;
13920 std::vector<std::vector<std::shared_ptr<PhotoSize>>>
photos { };
13931 using Ptr = std::shared_ptr<UserRating>;
13963 using Ptr = std::shared_ptr<UsersShared>;
13972 std::vector<std::shared_ptr<SharedUser>>
users { };
13983 using Ptr = std::shared_ptr<Venue>;
14024 using Ptr = std::shared_ptr<Video>;
14054 std::optional<std::vector<std::shared_ptr<PhotoSize>>>
cover { };
14062 std::optional<std::vector<std::shared_ptr<VideoQuality>>>
qualities { };
14088 using Ptr = std::shared_ptr<VideoChatEnded>;
14104 using Ptr = std::shared_ptr<VideoChatParticipantsInvited>;
14109 std::vector<std::shared_ptr<User>>
users { };
14120 using Ptr = std::shared_ptr<VideoChatScheduled>;
14138 using Ptr = std::shared_ptr<VideoChatStarted>;
14149 using Ptr = std::shared_ptr<VideoNote>;
14186 using Ptr = std::shared_ptr<VideoQuality>;
14226 using Ptr = std::shared_ptr<Voice>;
14262 using Ptr = std::shared_ptr<WebAppData>;
14283 using Ptr = std::shared_ptr<WebAppInfo>;
14300 using Ptr = std::shared_ptr<WebhookInfo>;
14355 using Ptr = std::shared_ptr<WriteAccessAllowed>;
14492 std::vector<std::shared_ptr<InlineQueryResult>>
results { };
14519 std::shared_ptr<InlineQueryResultsButton>
button =
nullptr;
14607 std::variant<std::int64_t, std::string>
chatId { };
14623 std::variant<std::int64_t, std::string>
chatId { };
14648 std::variant<std::int64_t, std::string>
chatId { };
14681 std::variant<std::int64_t, std::string>
chatId { };
14698 std::variant<std::int64_t, std::string>
chatId { };
14715 std::variant<std::int64_t, std::string>
chatId { };
14744 std::variant<std::int64_t, std::string>
chatId { };
14792 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
14793 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
14856 std::variant<std::int64_t, std::string>
chatId { };
14911 std::variant<std::int64_t, std::string>
chatId { };
14945 std::variant<std::int64_t, std::string>
chatId { };
14974 std::variant<std::int64_t, std::string>
chatId { };
15033 std::vector<std::shared_ptr<LabeledPrice>>
prices { };
15202 std::variant<std::int64_t, std::string>
chatId { };
15218 std::variant<std::int64_t, std::string>
chatId { };
15240 std::variant<std::int64_t, std::string>
chatId { };
15283 std::variant<std::int64_t, std::string>
chatId { };
15295 std::variant<std::int64_t, std::string>
chatId { };
15307 std::variant<std::int64_t, std::string>
chatId { };
15329 std::variant<std::int64_t, std::string>
chatId { };
15346 std::variant<std::int64_t, std::string>
chatId { };
15363 std::variant<std::int64_t, std::string>
chatId { };
15392 std::variant<std::int64_t, std::string>
chatId { };
15410 std::shared_ptr<BotCommandScope>
scope =
nullptr;
15478 std::variant<std::int64_t, std::string>
chatId { };
15517 std::variant<std::int64_t, std::string>
chatId { };
15539 std::variant<std::int64_t, std::string>
chatId { };
15589 std::variant<std::int64_t, std::string>
chatId { };
15628 std::variant<std::int64_t, std::string>
chatId { };
15655 std::variant<std::int64_t, std::string>
chatId { };
15677 std::vector<std::shared_ptr<MessageEntity>>
entities = { };
15710 std::variant<std::int64_t, std::string>
chatId { };
15741 std::variant<std::int64_t, std::string>
chatId { };
15759 std::variant<std::int64_t, std::string>
chatId = { };
15817 std::variant<std::int64_t, std::string>
chatId { };
15861 std::variant<std::int64_t, std::string>
chatId = { };
15929 std::variant<std::int64_t, std::string>
chatId = { };
15972 std::variant<std::int64_t, std::string>
chatId = { };
16014 std::variant<std::int64_t, std::string>
chatId = { };
16048 std::vector<std::shared_ptr<MessageEntity>>
entities = { };
16094 std::vector<std::shared_ptr<StoryArea>>
areas = { };
16154 std::variant<std::int64_t, std::string>
chatId { };
16166 std::variant<std::int64_t, std::string>
chatId { };
16233 std::variant<std::int64_t, std::string>
chatId { };
16375 std::variant<std::int64_t, std::string>
chatId { };
16387 std::variant<std::int64_t, std::string>
chatId { };
16405 std::variant<std::int64_t, std::string>
chatId { };
16477 std::variant<std::int64_t, std::string>
chatId { };
16494 std::variant<std::int64_t, std::string>
chatId { };
16506 std::variant<std::int64_t, std::string>
chatId = { };
16546 std::variant<std::int64_t, std::string>
chatId = { };
16593 std::shared_ptr<BotCommandScope>
scope =
nullptr;
16727 std::variant<std::int64_t, std::string>
chatId { };
16908 std::variant<std::int64_t, std::string>
chatId { };
16921 std::variant<std::int64_t, std::string>
chatId { };
16933 std::variant<std::int64_t, std::string>
chatId { };
16978 std::vector<std::shared_ptr<StoryArea>>
areas = { };
17025 std::variant<std::int64_t, std::string>
chatId { };
17149 std::variant<std::int64_t, std::string>
chatId { };
17207 std::variant<std::int64_t, std::string>
chatId { };
17230 std::variant<std::int64_t, std::string>
chatId { };
17247 std::variant<std::int64_t, std::string>
chatId { };
17344 std::variant<std::int64_t, std::string>
chatId { };
17383 std::variant<std::int64_t, std::string>
chatId { };
17453 std::variant<std::int64_t, std::string>
chatId { };
17462 std::variant<std::shared_ptr<InputFile>, std::string>
animation { };
17489 std::variant<std::shared_ptr<InputFile>, std::string>
thumbnail = { };
17507 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
17508 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
17610 std::variant<std::int64_t, std::string>
chatId { };
17618 std::variant<std::shared_ptr<InputFile>, std::string>
audio { };
17650 std::variant<std::shared_ptr<InputFile>, std::string>
thumbnail = { };
17662 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
17663 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
17756 std::variant<std::int64_t, std::string>
chatId { };
17807 std::variant<std::int64_t, std::string>
chatId { };
17856 std::variant<std::int64_t, std::string>
chatId { };
17894 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
17895 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
17969 std::variant<std::int64_t, std::string>
chatId { };
17987 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
17988 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18053 std::variant<std::int64_t, std::string>
chatId { };
18061 std::variant<std::shared_ptr<InputFile>, std::string>
document { };
18073 std::variant<std::shared_ptr<InputFile>, std::string>
thumbnail = { };
18091 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18092 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18191 std::variant<std::int64_t, std::string>
chatId { };
18264 std::variant<std::int64_t, std::string>
chatId = { };
18308 std::variant<std::int64_t, std::string>
chatId { };
18343 std::vector<std::shared_ptr<LabeledPrice>>
prices { };
18512 std::variant<std::int64_t, std::string>
chatId { };
18521 std::variant<std::shared_ptr<InputFile>, std::string>
livePhoto { };
18529 std::variant<std::shared_ptr<InputFile>, std::string>
photo { };
18612 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18613 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18650 std::variant<std::int64_t, std::string>
chatId { };
18680 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18681 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18779 std::variant<std::int64_t, std::string>
chatId { };
18785 std::vector<std::variant<std::shared_ptr<InputMediaAudio>, std::shared_ptr<InputMediaDocument>,
18786 std::shared_ptr<InputMediaLivePhoto>, std::shared_ptr<InputMediaPhoto>,
18787 std::shared_ptr<InputMediaVideo>>>
18855 std::variant<std::int64_t, std::string>
chatId { };
18877 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18878 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18897 std::vector<std::shared_ptr<MessageEntity>>
entities = { };
18969 std::variant<std::int64_t, std::string>
chatId { };
18982 std::vector<std::shared_ptr<MessageEntity>>
entities = { };
19028 std::variant<std::int64_t, std::string>
chatId { };
19033 std::vector<std::shared_ptr<InputPaidMedia>>
media { };
19106 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19107 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19145 std::variant<std::int64_t, std::string>
chatId { };
19155 std::variant<std::shared_ptr<InputFile>, std::string>
photo { };
19173 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19174 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19277 std::variant<std::int64_t, std::string>
chatId { };
19287 std::vector<std::shared_ptr<InputPollOption>>
options { };
19305 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19306 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19445 std::shared_ptr<InputPollMedia>
media =
nullptr;
19487 std::variant<std::int64_t, std::string>
chatId { };
19543 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19544 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19582 std::variant<std::int64_t, std::string>
chatId { };
19627 std::variant<std::int64_t, std::string>
chatId { };
19637 std::variant<std::shared_ptr<InputFile>, std::string>
sticker { };
19649 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19650 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19735 std::variant<std::int64_t, std::string>
chatId { };
19785 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19786 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19870 std::variant<std::int64_t, std::string>
chatId { };
19878 std::variant<std::shared_ptr<InputFile>, std::string>
video { };
19910 std::variant<std::shared_ptr<InputFile>, std::string>
thumbnail = { };
19928 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19929 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19992 std::variant<std::shared_ptr<InputFile>, std::string>
cover = { };
20045 std::variant<std::int64_t, std::string>
chatId { };
20053 std::variant<std::shared_ptr<InputFile>, std::string>
videoNote { };
20086 std::variant<std::shared_ptr<InputFile>, std::string>
thumbnail = { };
20093 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20094 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20168 std::variant<std::int64_t, std::string>
chatId { };
20176 std::variant<std::shared_ptr<InputFile>, std::string>
voice { };
20198 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20199 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20355 std::shared_ptr<InputProfilePhoto>
photo { };
20397 std::variant<std::int64_t, std::string>
chatId { };
20420 std::variant<std::int64_t, std::string>
chatId { };
20437 std::variant<std::int64_t, std::string>
chatId { };
20459 std::variant<std::int64_t, std::string>
chatId = { };
20477 std::variant<std::int64_t, std::string>
chatId { };
20504 std::variant<std::int64_t, std::string>
chatId { };
20509 std::variant<std::shared_ptr<InputFile>, std::string>
photo { };
20521 std::variant<std::int64_t, std::string>
chatId { };
20538 std::variant<std::int64_t, std::string>
chatId { };
20594 std::variant<std::int64_t, std::string>
chatId = { };
20642 std::variant<std::int64_t, std::string>
chatId { };
20681 std::shared_ptr<BotCommandScope>
scope =
nullptr;
20700 std::shared_ptr<ChatAdministratorRights>
rights =
nullptr;
20755 std::shared_ptr<InputProfilePhoto>
photo { };
20797 std::vector<std::shared_ptr<PassportElementError>>
errors { };
20902 std::variant<std::shared_ptr<InputFile>, std::string>
thumbnail = { };
21011 std::variant<std::int64_t, std::string>
chatId = { };
21046 std::variant<std::int64_t, std::string>
chatId { };
21119 std::variant<std::int64_t, std::string>
chatId { };
21141 std::variant<std::int64_t, std::string>
chatId { };
21158 std::variant<std::int64_t, std::string>
chatId { };
21170 std::variant<std::int64_t, std::string>
chatId { };
21182 std::variant<std::int64_t, std::string>
chatId { };
21199 std::variant<std::int64_t, std::string>
chatId { };
21211 std::variant<std::int64_t, std::string>
chatId { };
21273 std::variant<std::shared_ptr<InputFile>, std::string>
sticker { };
21291 std::variant<std::int64_t, std::string>
chatId { };
TGBOT_API void to_json(nlohmann::json &json, const AcceptedGiftTypes &value)
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::int64_t userId
User identifier of sticker set owner.
Contains information about the affiliate that received a commission via this transaction.
std::int32_t commissionPerMille
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the b...
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::optional< std::int32_t > nanostarAmount
Optional. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999...
std::int32_t amount
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be...
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 ...
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
std::int32_t duration
Duration of the video in seconds as defined by the sender.
std::optional< std::int64_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::optional< std::string > fileName
Optional. Original animation filename as defined by the sender.
std::shared_ptr< Animation > Ptr
std::int32_t height
Video height as defined by the sender.
std::shared_ptr< PhotoSize > thumbnail
Optional. Animation thumbnail as defined by the sender.
std::int32_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::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...
std::int32_t cacheTime
The maximum amount of time in seconds that the result of the callback query may be cached client-side...
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::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...
std::int32_t cacheTime
The maximum amount of time in seconds that the result of the inline query may be cached on the server...
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::int64_t userId
Unique identifier of the target user.
Arguments for Api::approveSuggestedPost.
std::int32_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.
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::int32_t duration
Duration of the audio in seconds as defined by the sender.
std::optional< std::string > title
Optional. Title of the audio as defined by the sender or by audio tags.
std::optional< std::int64_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::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::int32_t rotationAngle
Clockwise rotation angle of the background fill in degrees; 0-359.
std::int32_t topColor
Top color of the gradient in the RGB24 format.
std::int32_t bottomColor
Bottom 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::int32_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::int32_t darkThemeDimming
Dimming of the background in dark themes, as a percentage; 0-100.
std::shared_ptr< BackgroundTypeFill > Ptr
std::shared_ptr< BackgroundFill > fill
The background fill.
std::string type
Type of the background, always “fill”
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::int32_t intensity
Intensity of the pattern when it is shown above the filled background; 0-100.
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::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::int32_t darkThemeDimming
Dimming of the background in dark themes, as a percentage; 0-100.
std::shared_ptr< BackgroundTypeWallpaper > Ptr
std::shared_ptr< Document > document
Document with the wallpaper.
static TGBOT_API const std::string TYPE
Arguments for Api::banChatMember.
bool revokeMessages
Pass True to delete all messages from the chat for the user that is being removed....
std::int64_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::int32_t month
Month of the user's birth; 1-12.
std::optional< std::int32_t > year
Optional. Year of the user's birth.
std::int32_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...
std::int64_t 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::string type
Scope type, must be chat_administrators.
std::shared_ptr< BotCommandScopeChatAdministrators > Ptr
Represents the scope of bot commands, covering a specific chat.
std::int64_t 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::int64_t userId
Unique identifier of the target user.
std::string type
Scope type, must be chat_member.
std::int64_t chatId
Unique identifier for the target chat or username of the target supergroup in the format @username....
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.
std::int64_t userChatId
Identifier of a private chat with the user who created the business connection. This number may have ...
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
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::int32_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::int32_t openingMinute
The minute's sequence number in a week, starting on Monday, marking the start of the time interval du...
std::int32_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::shared_ptr< ChatBoostAdded > Ptr
std::int32_t boostCount
Number of boosts added by the user.
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::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::string source
Source of the boost, always “giveaway”
std::optional< std::int32_t > prizeStarCount
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaw...
std::int32_t giveawayMessageId
Identifier of a message in the chat with the giveaway; the message could have been deleted already....
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::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::int32_t maxReactionCount
The maximum number of reactions that can be set on a message in the chat.
std::optional< std::int32_t > messageAutoDeleteTime
Optional. The time after which all messages sent to the chat will be automatically deleted; in second...
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::int32_t > unrestrictBoostCount
Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in...
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::int32_t accentColorId
Identifier of the accent color for the chat name and backgrounds of the chat photo,...
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< std::int32_t > slowModeDelay
Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriv...
std::optional< bool > hasProtectedContent
Optional. True, if messages from the chat can't be forwarded to other chats.
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::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::int32_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 > 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::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::int32_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.
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::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::int32_t > pendingJoinRequestCount
Optional. Number of pending join requests created using this link.
std::optional< std::int32_t > subscriptionPeriod
Optional. The number of seconds the subscription will be active for before the next payment.
std::optional< std::int32_t > memberLimit
Optional. The maximum number of users that can be members of the chat simultaneously after joining th...
std::shared_ptr< User > creator
Creator of the link.
std::optional< std::int32_t > subscriptionPrice
Optional. The amount of Telegram Stars a user must pay initially and after each subsequent subscripti...
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
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::int64_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 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 and use inline bots.
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 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::int32_t > > markedAsNotDoneTaskIds
Optional. Identifiers of the tasks that were marked as not done.
std::optional< std::vector< std::int32_t > > markedAsDoneTaskIds
Optional. Identifiers of the tasks that were marked as done.
std::shared_ptr< ChecklistTasksDone > Ptr
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::int32_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 for...
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,...
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
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.
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media. Ignored if a new caption isn't specif...
std::int32_t videoStartTimestamp
New start timestamp for the copied video in the message.
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::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::int32_t messageId
Message identifier in the chat specified in from_chat_id.
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::int32_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,...
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 for...
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the messages will be sent; required if the messages ...
bool removeCaption
Pass True to copy the messages without their captions.
std::int32_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 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::int32_t memberLimit
The maximum number of users that can be members of the chat simultaneously after joining the chat via...
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 createsJoinRequest
True, if users joining the chat via the link need to be approved by chat administrators....
Arguments for Api::createChatSubscriptionInviteLink.
std::int32_t subscriptionPeriod
The number of seconds the subscription will be active for before the next payment....
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::int32_t subscriptionPrice
The amount of Telegram Stars a user must pay initially and after each subsequent subscription period ...
std::string name
Invite link name; 0-32 characters.
Arguments for Api::createForumTopic.
std::int32_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::int32_t photoHeight
Photo height.
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::int32_t photoWidth
Photo width.
std::vector< std::shared_ptr< LabeledPrice > > prices
Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount,...
std::int32_t photoSize
Photo size in bytes.
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::int32_t maxTipAmount
The maximum accepted amount for tips in the smallest units of the currency (integer,...
std::int32_t subscriptionPeriod
The number of seconds the subscription will be active for before the next payment....
std::vector< std::int32_t > suggestedTipAmounts
A JSON-serialized Array of suggested amounts of tips in the smallest units of the currency (integer,...
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....
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::int64_t userId
User identifier of created sticker set owner.
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,...
Arguments for Api::declineChatJoinRequest.
std::int64_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 channel in the format @username.
Arguments for Api::declineSuggestedPost.
std::int32_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 userId
Identifier of the user whose reactions will be removed, if the reactions were added by a user.
std::int64_t actorChatId
Identifier of the chat whose reactions will be removed, if the reactions were added by a 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.
Arguments for Api::deleteBusinessMessages.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which to delete the messages.
std::vector< std::int32_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::int32_t ephemeralMessageId
Identifier of the ephemeral message to delete.
std::int64_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::int32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
Arguments for Api::deleteMessage.
std::int32_t messageId
Identifier of the message to delete.
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 for...
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::int32_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::int64_t userId
Identifier of the user whose reaction will be removed, if the reaction was added by a user.
Arguments for Api::deleteMessages.
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 for...
std::vector< std::int32_t > messageIds
A JSON-serialized list of 1-100 identifiers of messages to delete. See deleteMessage for limitations ...
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::int32_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::int32_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.
bool areDirectMessagesEnabled
True, if direct messages are enabled for the channel chat; False otherwise.
std::shared_ptr< DirectMessagePriceChanged > Ptr
std::optional< std::int32_t > directMessageStarCount
Optional. The new number of Telegram Stars that must be paid by users for each direct message sent to...
Describes a topic of a direct messages chat.
std::int64_t topicId
Unique identifier of the topic. This number may have more than 32 significant bits and some programmi...
std::shared_ptr< DirectMessagesTopic > Ptr
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::int64_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::int32_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.
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::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.
std::int64_t receiverUserId
Identifier of the user who received the message.
std::int32_t ephemeralMessageId
Identifier of the ephemeral message to edit.
Arguments for Api::editEphemeralMessageReplyMarkup.
std::int32_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::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
std::int64_t receiverUserId
Identifier of the user who received the message.
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::int64_t receiverUserId
Identifier of the user who received the message.
std::int32_t ephemeralMessageId
Identifier of the ephemeral 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::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::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::int32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
std::string iconCustomEmojiId
New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to g...
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::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::int32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
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::int32_t messageId
Unique identifier for the target message.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for the new inline keyboard for the 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::int32_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::int32_t proximityAlertRadius
The maximum distance for proximity alerts about approaching another chat member, in meters....
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::int32_t livePeriod
New period in seconds during which the location can be updated, starting from the message send date....
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::int32_t heading
Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
Arguments for Api::editMessageReplyMarkup.
std::int32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
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::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::int32_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::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::int32_t storyId
Unique identifier of the story to edit.
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::int64_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...
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::int64_t receiverUserId
Identifier of the user who will receive the message. It is not guaranteed that the user will receive ...
std::optional< std::string > callbackQueryId
Optional. Identifier of the callback query which triggered the message, if any.
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< 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::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::optional< std::int32_t > messageId
Optional. Unique message identifier inside the original chat. Available only if the original chat is ...
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::int64_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 > 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....
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::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 ...
std::int32_t iconColor
Color of the topic icon in RGB format.
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::int32_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::int32_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.
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 for...
std::int32_t videoStartTimestamp
New start timestamp for the forwarded video in the message.
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be forwarded; required if the messa...
std::string messageEffectId
Unique identifier of the message effect to be added to the message; only available when forwarding to...
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::int32_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 for...
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
bool disableNotification
Sends the messages silently. Users will receive a notification with no sound.
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the messages will be forwarded; required if the mess...
std::vector< std::int32_t > messageIds
A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to forward....
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::int32_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::int32_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...
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.
std::int32_t limit
The maximum number of gifts to be returned; 1-100. Defaults to 100.
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::int64_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::int32_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.
std::int64_t userId
Target user id.
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Arguments for Api::getManagedBotAccessSettings.
std::int64_t userId
User identifier of the managed bot whose access settings will be returned.
Arguments for Api::getManagedBotToken.
std::int64_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::int32_t offset
Number of transactions to skip in the response.
std::int32_t limit
The maximum number of transactions to be retrieved. Values between 1-100 are accepted....
Arguments for Api::getStickerSet.
std::string name
Name of the sticker set.
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::int32_t timeout
Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling. Should be positive,...
std::int32_t limit
Limits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100.
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::int64_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.
std::int64_t userId
Unique identifier of the user.
bool excludeLimitedUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to uni...
std::int32_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...
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::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::int64_t userId
Unique identifier for the target user.
std::int32_t limit
The maximum number of messages to return; 1-20.
Arguments for Api::getUserProfileAudios.
std::int32_t offset
Sequential number of the first audio to be returned. By default, all audios are returned.
std::int32_t limit
Limits the number of audios to be retrieved. Values between 1-100 are accepted. Defaults to 100.
std::int64_t userId
Unique identifier of the target user.
Arguments for Api::getUserProfilePhotos.
std::int64_t userId
Unique identifier of the target user.
std::int32_t limit
Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.
std::int32_t offset
Sequential number of the first photo to be returned. By default, all photos are returned.
This object describes the background of a gift.
std::shared_ptr< GiftBackground > Ptr
std::int32_t centerColor
Center color of the background in RGB format.
std::int32_t textColor
Text color of the background in RGB format.
std::int32_t edgeColor
Edge color of the background in RGB format.
This object represents a gift that can be sent by the bot.
std::optional< std::int32_t > personalRemainingCount
Optional. The number of remaining gifts of this type that can be sent by the bot; for limited gifts o...
std::shared_ptr< Chat > publisherChat
Optional. Information about the chat that published the gift.
std::optional< std::int32_t > remainingCount
Optional. The number of remaining gifts of this type that can be sent by all users; for limited gifts...
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::optional< std::int32_t > totalCount
Optional. The total number of gifts of this type that can be sent by all users; for limited gifts onl...
std::shared_ptr< Gift > Ptr
std::optional< std::int32_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::int32_t > upgradeStarCount
Optional. The number of Telegram Stars that must be paid to upgrade the gift to a unique one.
std::int32_t starCount
The number of Telegram Stars that must be paid to send the sticker.
std::optional< bool > hasColors
Optional. True, if the gift can be used (after being upgraded) to customize a user's appearance.
std::optional< std::int32_t > uniqueGiftVariantCount
Optional. The total number of different unique gifts that can be obtained by upgrading the gift.
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::int32_t > uniqueGiftNumber
Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift.
std::optional< bool > isUpgradeSeparate
Optional. True, if the gift's upgrade was purchased after the gift was sent.
std::optional< std::string > text
Optional. Text of the message that was added to the gift.
std::optional< std::int32_t > convertStarCount
Optional. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitte...
std::optional< std::int32_t > prepaidUpgradeStarCount
Optional. Number of Telegram Stars that were prepaid 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::shared_ptr< GiftInfo > Ptr
std::shared_ptr< Gift > gift
Information about the gift.
Arguments for Api::giftPremiumSubscription.
std::int32_t starCount
Number of Telegram Stars to pay for the Telegram Premium subscription; must be 1000 for 3 months,...
std::int64_t userId
Unique identifier of the target user who will receive a Telegram Premium subscription.
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::string textParseMode
Mode for parsing entities in the text. See formatting options for more details. Entities other than “...
std::int32_t monthCount
Number of months the Telegram Premium subscription will be active for the user; must be one of 3,...
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::optional< std::int32_t > unclaimedPrizeCount
Optional. Number of undistributed prizes.
std::shared_ptr< GiveawayCompleted > Ptr
std::shared_ptr< Message > giveawayMessage
Optional. Message with the giveaway that was completed, if it wasn't deleted.
std::int32_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::int32_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::vector< std::shared_ptr< Chat > > chats
The list of chats which the user must join to participate in the giveaway.
std::optional< std::int32_t > prizeStarCount
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaw...
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 winnerCount
The number of users which are supposed to be selected as winners of the giveaway.
std::int32_t winnersSelectionDate
Point in time (Unix timestamp) when winners of the giveaway will be selected.
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::int32_t > premiumSubscriptionMonthCount
Optional. The number of months the Telegram Premium subscription won from the giveaway will be active...
This object represents a message about the completion of a giveaway with public winners.
std::optional< std::int32_t > premiumSubscriptionMonthCount
Optional. The number of months the Telegram Premium subscription won from the giveaway will be active...
std::optional< std::string > prizeDescription
Optional. Description of additional giveaway prize.
std::optional< bool > onlyNewMembers
Optional. True, if only users who had joined the chats after the giveaway started were eligible to wi...
std::int32_t giveawayMessageId
Identifier of the message with the giveaway in the chat.
std::optional< std::int32_t > prizeStarCount
Optional. The number of Telegram Stars that were split between giveaway winners; for Telegram Star gi...
std::optional< std::int32_t > unclaimedPrizeCount
Optional. Number of undistributed prizes.
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 winnerCount
Total number of winners in the giveaway.
std::int32_t winnersSelectionDate
Point in time (Unix timestamp) when winners of the giveaway were selected.
std::vector< std::shared_ptr< User > > winners
List of up to 100 winners of the giveaway.
std::shared_ptr< GiveawayWinners > Ptr
std::optional< std::int32_t > additionalChatCount
Optional. The number of other chats the user had to join in order to be eligible for the giveaway.
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::shared_ptr< InaccessibleMessage > Ptr
std::int32_t date
Always 0. The field can be used to differentiate regular and inaccessible messages.
std::shared_ptr< Chat > chat
Chat the message belonged to.
std::int32_t messageId
Unique message identifier inside the chat.
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::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::int32_t > thumbnailWidth
Optional. Thumbnail width.
std::optional< std::int32_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::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::int32_t > audioDuration
Optional. Audio 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 > 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::int32_t > thumbnailHeight
Optional. Thumbnail height.
std::string title
Title for the result.
std::optional< std::int32_t > thumbnailWidth
Optional. Thumbnail width.
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::shared_ptr< InlineQueryResultGif > Ptr
std::optional< std::int32_t > gifHeight
Optional. Height of the GIF.
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::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< std::int32_t > gifDuration
Optional. Duration of the GIF in seconds.
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
std::optional< std::int32_t > gifWidth
Optional. Width 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::int32_t > thumbnailHeight
Optional. Thumbnail height.
std::optional< std::int32_t > thumbnailWidth
Optional. Thumbnail width.
std::optional< std::int32_t > proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat ...
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
double latitude
Location latitude in degrees.
std::optional< std::int32_t > heading
Optional. For live locations, a direction in which the user is moving, in degrees....
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the location.
static TGBOT_API const std::string TYPE
double longitude
Location longitude in degrees.
std::string title
Location title.
std::shared_ptr< InlineQueryResultLocation > Ptr
std::optional< std::int32_t > livePeriod
Optional. Period in seconds during which the location can be updated, must be between 60 and 86400,...
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::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::int32_t > mpeg4Width
Optional. Video width.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
std::optional< std::int32_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::optional< std::int32_t > mpeg4Height
Optional. Video height.
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::int32_t > photoWidth
Optional. Width 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::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::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::int32_t > photoHeight
Optional. Height of the photo.
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::optional< std::int32_t > thumbnailHeight
Optional. Thumbnail height.
std::string address
Address of the venue.
std::string type
Type of the result, must be venue.
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::optional< std::int32_t > thumbnailWidth
Optional. Thumbnail width.
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.
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::int32_t > videoHeight
Optional. Video height.
std::string thumbnailUrl
URL of the thumbnail (JPEG only) for the video.
std::optional< std::int32_t > videoWidth
Optional. Video width.
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::string > caption
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
std::optional< std::int32_t > videoDuration
Optional. Video duration in seconds.
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::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::int32_t > voiceDuration
Optional. Recording duration in seconds.
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::int32_t > photoWidth
Optional. Photo width.
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::optional< std::int32_t > photoHeight
Optional. Photo height.
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< bool > needShippingAddress
Optional. Pass True if you require the user's shipping address to complete the order....
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::optional< std::int32_t > maxTipAmount
Optional. The maximum accepted amount for tips in the smallest units of the currency (integer,...
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< std::int32_t > photoSize
Optional. Photo size in bytes.
std::optional< std::vector< std::int32_t > > suggestedTipAmounts
Optional. A JSON-serialized Array of suggested amounts of tip in the smallest units of the currency (...
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::string > providerToken
Optional. Payment provider token, obtained via @BotFather. Pass an empty string for payments in Teleg...
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.
std::optional< std::int32_t > livePeriod
Optional. Period in seconds during which the location can be updated, must be between 60 and 86400,...
double latitude
Latitude of the location in degrees.
std::optional< std::int32_t > proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat ...
std::shared_ptr< InputLocationMessageContent > Ptr
std::optional< std::int32_t > heading
Optional. For live locations, a direction in which the user is moving, in degrees....
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
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 > > 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
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.
This object contains basic information about an invoice.
std::shared_ptr< Invoice > Ptr
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.
std::int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
This object represents a portion of the price for goods or services.
std::shared_ptr< LabeledPrice > Ptr
std::string label
Portion label.
std::int32_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::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::int32_t width
Video width as defined by the sender.
std::optional< std::int64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
std::int32_t height
Video height as defined by the sender.
std::int32_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.
std::optional< std::int32_t > heading
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
double latitude
Latitude as defined by the sender.
double longitude
Longitude as defined by the sender.
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::int32_t > proximityAlertRadius
Optional. The maximum distance for proximity alerts about approaching another chat member,...
std::optional< std::int32_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::int32_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::int32_t offset
Offset in UTF-16 code units to the start of the entity.
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::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::int32_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::int32_t > messageThreadId
Optional. Unique identifier of the message thread in which the message is generated.
std::shared_ptr< MessageGenerationStopped > Ptr
std::int32_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::int32_t messageId
Unique message identifier inside this chat; 0 for ephemeral messages. In specific instances (e....
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::int32_t > messageThreadId
Optional. Unique identifier of a message thread or forum topic to which the message belongs; for supe...
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::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.
std::optional< std::int32_t > replyToChecklistTaskId
Optional. Identifier of the specific checklist task that is being replied to.
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::int32_t date
Date the message was sent in Unix time. It is always a positive number, representing a valid date.
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::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::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< std::int32_t > paidStarCount
Optional. The number of Telegram Stars that were paid by the sender of the message to send it.
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::optional< std::int32_t > senderBoostCount
Optional. If the sender of the message boosted the chat, the number of boosts added by the user.
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::optional< std::int32_t > ephemeralMessageId
Optional. For ephemeral messages, identifier of the ephemeral message inside this chat....
std::shared_ptr< SuggestedPostApprovalFailed > suggestedPostApprovalFailed
Optional. Service message: approval of a suggested post has failed.
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::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::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< User > senderBusinessBot
Optional. The bot that actually sent the message on behalf of the business account....
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, paid media, photo, video or voice.
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::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::int32_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::int32_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::int32_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::int32_t messageId
Unique identifier of the message inside the chat.
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::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< 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::int32_t > convertStarCount
Optional. Number of Telegram Stars that can be claimed by the receiver instead of the gift; omitted i...
std::optional< bool > isPrivate
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise,...
std::optional< std::int32_t > uniqueGiftNumber
Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift.
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::optional< std::int32_t > prepaidUpgradeStarCount
Optional. Number of Telegram Stars that were paid for the ability to upgrade the gift.
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.
static TGBOT_API const std::string TYPE
std::optional< std::int32_t > transferStarCount
Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot ...
Contains the list of gifts received and owned by a user or a chat.
std::vector< std::shared_ptr< OwnedGift > > gifts
The list of gifts.
std::int32_t totalCount
The total number of gifts owned by the user or the chat.
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::int32_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 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::int32_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::int32_t width
Photo width.
std::int32_t height
Photo height.
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::optional< std::int32_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::int32_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::shared_ptr< Chat > voterChat
Optional. The chat that changed the answer to the poll, if the voter is anonymous.
std::vector< std::int32_t > optionIds
0-based identifiers of chosen answer options. May be empty if the vote was retracted.
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.
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::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::optional< std::vector< std::int32_t > > correctOptionIds
Optional. Array of 0-based identifiers of the correct answer options. Available only for polls in qui...
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::int32_t > openPeriod
Optional. Amount of time in seconds the poll will be active after creation.
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.
std::int32_t totalVoterCount
Total number of users that voted in the poll.
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::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::int32_t voterCount
Number of users who voted for this option; may be 0 if unknown.
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::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::int32_t activePeriod
Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600,...
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::int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
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::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::int32_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::int32_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::int32_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::int64_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::int32_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::int64_t userId
Unique identifier of the target user.
Arguments for Api::reopenForumTopic.
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::int32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
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::int64_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::int64_t userId
User identifier of the sticker set owner.
std::shared_ptr< InputSticker > sticker
A JSON-serialized object with information about the added sticker. If exactly the same sticker had al...
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::int64_t > 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::int32_t > quotePosition
Optional. Position of the quote in the original message in UTF-16 code units.
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::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::int32_t > checklistTaskId
Optional. Identifier of the specific checklist task to be replied to.
std::optional< std::int32_t > ephemeralMessageId
Optional. Identifier of the incoming ephemeral message that will be replied to in the current chat....
std::optional< std::int32_t > messageId
Optional. Identifier of the message that will be replied to in the current chat, or in the chat chat_...
std::shared_ptr< ReplyParameters > Ptr
Arguments for Api::repostStory.
std::int32_t fromStoryId
Unique identifier of the story that should be reposted.
bool postToChatPage
Pass True to keep the story accessible after it expires.
std::int32_t activePeriod
Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600,...
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::int64_t > migrateToChatId
Optional. The group has been migrated to a supergroup with the specified identifier....
std::optional< std::int32_t > retryAfter
Optional. In case of exceeding flood control, the number of seconds left to wait before the request c...
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::int64_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.
static TGBOT_API const std::string TYPE
std::shared_ptr< RichBlockMap > Ptr
std::int32_t zoom
Map zoom level.
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
std::int32_t width
Expected width of the map.
std::string type
Type of the block, always “map”
std::int32_t height
Expected height of the map.
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::int32_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::int32_t > colspan
Optional. The number of columns 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::optional< std::int32_t > rowspan
Optional. The number of rows the cell spans if it is bigger than 1.
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 > > 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.
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::int64_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::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
std::int32_t duration
Duration of sent animation in seconds.
bool protectContent
Protects the contents of the sent message from forwarding and saving.
std::int32_t height
Animation height.
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
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 for...
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::int64_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 parseMode
Mode for parsing entities in the animation caption. See formatting options for more details.
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
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::int32_t width
Animation width.
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::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::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::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
std::int64_t receiverUserId
Identifier of the user who will receive 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::string caption
Audio caption, 0-1024 characters after entities parsing.
std::int32_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::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::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
std::int32_t duration
Duration of the audio in seconds.
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 for...
Arguments for Api::sendChatAction.
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the action will be sent.
std::int32_t messageThreadId
Unique identifier for the target message thread or topic of a forum; for supergroups and private chat...
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::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 for...
std::int64_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::int32_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 for...
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::int64_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.
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::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
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.
std::int64_t receiverUserId
Identifier of the user who will receive 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...
std::int32_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 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::int32_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.
Arguments for Api::sendGift.
std::int64_t userId
Required if chat_id is not specified. Unique identifier of the target user who will receive the gift.
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 or username of the channel (in t...
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::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::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::int32_t photoSize
Photo size in bytes.
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::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.
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::int32_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....
std::vector< std::int32_t > suggestedTipAmounts
A JSON-serialized Array of suggested amounts of tips in the smallest units of the currency (integer,...
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::int32_t photoHeight
Photo height.
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 for...
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
std::int32_t photoWidth
Photo width.
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::int64_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::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
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 channel (in the format @channeluserna...
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::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::int32_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 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::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.
std::int32_t heading
For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if...
double longitude
Longitude of the location.
std::int32_t proximityAlertRadius
For live locations, a maximum distance for proximity alerts about approaching another chat member,...
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::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
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 for...
std::int32_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::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
std::int64_t receiverUserId
Identifier of the user who will receive 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::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::int32_t livePeriod
Period in seconds during which the location will be updated (see Live Locations), must be between 60 ...
Arguments for Api::sendMessage.
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
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 for...
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,...
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::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
std::string text
Text of the message to be sent, 1-4096 characters after entities parsing.
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.
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
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::int32_t draftId
Unique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier ...
std::string parseMode
Mode for parsing entities in the message text. See formatting options for more details.
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target private chat.
std::string text
Text of the message to be sent, 0-4096 characters after entities parsing. Pass an empty text to show ...
std::int32_t messageThreadId
Unique identifier for the target message thread.
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 for...
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::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
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...
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::int32_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::int64_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::int32_t > correctOptionIds
A JSON-serialized list of monotonically increasing 0-based identifiers of the correct 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....
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
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::int32_t openPeriod
Amount of time in seconds the poll will be active after creation, 5-2628000. Can't be used together w...
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.
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 for...
bool shuffleOptions
Pass True if the poll options must be shown in random order.
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::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
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 for...
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::int32_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::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::int32_t messageThreadId
Unique identifier for the target message thread.
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::variant< std::int64_t, std::string > chatId
Unique identifier for the target private chat.
std::int32_t draftId
Unique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier ...
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 for...
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...
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
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::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::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
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.
std::int64_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....
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::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 for...
std::string googlePlaceId
Google Places identifier of the venue.
std::string address
Address of the venue.
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::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
double longitude
Longitude of the venue.
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
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::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
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 for...
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::int32_t width
Video width.
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
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...
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
std::int32_t startTimestamp
Start timestamp for the video in the 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::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
std::int32_t duration
Duration of sent video in seconds.
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
bool supportsStreaming
Pass True if the uploaded video is suitable for streaming.
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::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::int32_t height
Video height.
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.
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
std::int32_t duration
Duration of sent video in seconds.
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::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::int64_t receiverUserId
Identifier of the user who will receive 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::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
std::int32_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 sent message from forwarding and saving.
std::int32_t length
Video width and height, i.e. diameter of the video message.
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 for...
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 for...
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::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
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::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
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::int64_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::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 parseMode
Mode for parsing entities in the voice message caption. See formatting options for more details.
std::int32_t duration
Duration of the voice message in seconds.
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::int64_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.
std::string customTitle
New custom title for the administrator; 0-16 characters, emoji are not allowed.
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::int64_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.
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::int64_t userId
User identifier.
std::int32_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.
std::int32_t score
New score, must be non-negative.
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::int64_t userId
User identifier of the managed bot whose access settings will be changed.
std::vector< std::int32_t > addedUserIds
A JSON-serialized list of up to 10 identifiers of users who will have access to the bot in addition t...
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 for...
std::int32_t messageId
Identifier of the target message. If the message belongs to a media group, the reaction is set to the...
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,...
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::int64_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::string sticker
File identifier of the sticker.
std::int32_t position
New sticker position in the set, zero-based.
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::int64_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::int64_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::int32_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::int64_t userId
Identifier of the shared user. This number may have more than 32 significant bits and some programmin...
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::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::int32_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::int32_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::int32_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.
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::int32_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::int32_t height
Sticker height.
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::int32_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::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::int32_t messageId
Required if inline_message_id is not specified. Identifier of the message with live location to stop.
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 for...
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
std::int32_t messageId
Identifier of the original message with the poll.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for a new message inline keyboard.
Describes a clickable area on a story media.
std::shared_ptr< StoryAreaPosition > position
Position of the area.
std::shared_ptr< StoryAreaType > type
Type of the area.
std::shared_ptr< StoryArea > Ptr
Describes the position of a clickable area within a story.
double heightPercentage
The height of the area's rectangle, as a percentage of the media height.
double yPercentage
The ordinate of the area's center, as a percentage of the media height.
std::shared_ptr< StoryAreaPosition > Ptr
double cornerRadiusPercentage
The radius of the rectangle corner rounding, as a percentage of the media width.
double widthPercentage
The width of the area's rectangle, as a percentage of the media width.
double rotationAngle
The clockwise rotation angle of the rectangle, in degrees; 0-360.
double xPercentage
The abscissa of the area's center, as a percentage of the media width.
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::string type
Type of the area, always “weather”
std::int32_t backgroundColor
A color of the area background in the ARGB format.
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::int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
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.
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::string currency
Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for TON g...
std::optional< std::int32_t > amount
Optional. The amount of the currency that was received by the channel in nanograms; for payments in T...
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::string currency
Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” ...
std::int32_t amount
The amount of the currency that will be paid for the post in the smallest units of the currency,...
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< MessageEntity > > > entities
Optional. Special entities that appear in the quote. Currently, only bold, italic,...
std::int32_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.
std::optional< bool > isManual
Optional. True, if the quote was chosen manually by the message sender. Otherwise,...
Describes the affiliate program that issued the affiliate commission received via this transaction.
std::shared_ptr< TransactionPartnerAffiliateProgram > Ptr
std::int32_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::int32_t requestCount
The number of successful requests that exceeded regular limits and were therefore billed.
std::shared_ptr< TransactionPartnerTelegramApi > Ptr
static TGBOT_API const std::string TYPE
std::string type
Type of the transaction partner, always “telegram_api”
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::int32_t > premiumSubscriptionDuration
Optional. Number of months the gifted Telegram Premium subscription will be active for; for “premium_...
std::optional< std::int32_t > subscriptionPeriod
Optional. The duration of the paid subscription. Can be available only for “invoice_payment” transact...
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::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::int32_t starCount
Number of Telegram Stars to transfer; 1-10000.
Arguments for Api::transferGift.
std::int32_t starCount
The amount of Telegram Stars that will be paid for the transfer from the business account balance....
std::string ownedGiftId
Unique identifier of the regular gift that should be transferred.
std::string businessConnectionId
Unique identifier of the business connection.
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::int64_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::int32_t edgeColor
The color on the edges of the backdrop in RGB format.
std::shared_ptr< UniqueGiftBackdropColors > Ptr
std::int32_t symbolColor
The color to be applied to the symbol in RGB format.
std::int32_t textColor
The color for the text on the backdrop in RGB format.
std::int32_t centerColor
The color in the center of the backdrop in RGB format.
This object describes the backdrop of a unique gift.
std::int32_t rarityPerMille
The number of unique gifts that receive this backdrop for every 1000 gifts upgraded.
std::string name
Name of the backdrop.
std::shared_ptr< UniqueGiftBackdrop > Ptr
std::shared_ptr< UniqueGiftBackdropColors > colors
Colors of the backdrop.
This object contains information about the color scheme for a user's name, message replies and link p...
std::int32_t darkThemeMainColor
Main color used in dark themes; RGB format.
std::string modelCustomEmojiId
Custom emoji identifier of the unique gift's model.
std::vector< std::int32_t > darkThemeOtherColors
List of 1-3 additional colors used in dark themes; RGB format.
std::shared_ptr< UniqueGiftColors > Ptr
std::int32_t lightThemeMainColor
Main color used in light themes; RGB format.
std::string symbolCustomEmojiId
Custom emoji identifier of the unique gift's symbol.
std::vector< std::int32_t > lightThemeOtherColors
List of 1-3 additional colors used in light 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::shared_ptr< UniqueGiftBackdrop > backdrop
Backdrop of the gift.
std::int32_t number
Unique number of the upgraded gift among gifts upgraded from the same regular 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::int32_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::int32_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::shared_ptr< UniqueGiftModel > Ptr
std::int32_t rarityPerMille
The number of unique gifts that receive this model for every 1000 gift upgrades. Always 0 for crafted...
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::int32_t rarityPerMille
The number of unique gifts that receive this model for every 1000 gifts upgraded.
std::shared_ptr< Sticker > sticker
The sticker that represents the unique gift.
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::int32_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::int32_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< 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::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::int32_t updateId
The update's unique identifier. Update identifiers start from a certain positive number and increase ...
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< 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.
std::int32_t starCount
The amount of Telegram Stars that will be paid for the upgrade from the business account balance....
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.
Arguments for Api::uploadStickerFile.
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::int64_t userId
User identifier of sticker file owner.
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::int32_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::vector< std::vector< std::shared_ptr< PhotoSize > > > photos
Requested profile pictures (in up to 4 sizes each).
std::int32_t totalCount
Total number of profile pictures the target user has.
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::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup or channel in the for...
Arguments for Api::verifyUser.
std::int64_t userId
Unique identifier of the target user.
std::string customDescription
Custom description for the verification; 0-70 characters. Must be empty if the organization isn't all...
This object represents a service message about a video chat ended in the chat.
std::int32_t duration
Video chat duration in seconds.
std::shared_ptr< VideoChatEnded > Ptr
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::int32_t > startTimestamp
Optional. Timestamp in seconds from which the video will play in the message.
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::shared_ptr< PhotoSize > thumbnail
Optional. Video thumbnail.
std::int32_t width
Video width as defined by the sender.
std::shared_ptr< Video > Ptr
std::int32_t duration
Duration of the video in seconds as defined by the sender.
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::int32_t height
Video height as defined by the sender.
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
std::optional< std::int64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
std::optional< std::vector< std::shared_ptr< PhotoSize > > > cover
Optional. Available sizes of the cover of the video in the message.
This object represents a video message.
std::int32_t duration
Duration of the video in seconds as defined by the sender.
std::shared_ptr< PhotoSize > thumbnail
Optional. Video thumbnail.
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::int32_t > fileSize
Optional. File size in bytes.
std::int32_t length
Video width and height (diameter of the video message) as defined by the sender.
std::shared_ptr< VideoNote > Ptr
This object represents a video file of a specific quality.
std::shared_ptr< VideoQuality > Ptr
std::int32_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::string codec
Codec that was used to encode the video, for example, “h264”, “h265”, or “av01”
std::int32_t height
Video height.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
std::optional< std::int64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
This object represents a voice note.
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
std::optional< std::int64_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::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
std::int32_t duration
Duration of the audio in seconds as defined by the sender.
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::optional< std::int32_t > maxConnections
Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update deli...
std::int32_t pendingUpdateCount
Number of updates awaiting delivery.
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...
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 ...