tgbot-cpp
Loading...
Searching...
No Matches
Types.h
Go to the documentation of this file.
1// Generated by `make api-generate`. Do not edit.
2
3#pragma once
4
5#include "tgbot/InputFile.h"
6#include "tgbot/export.h"
7
8#include <nlohmann/json_fwd.hpp>
9
10#include <cstdint>
11#include <memory>
12#include <optional>
13#include <string>
14#include <variant>
15#include <vector>
16
17namespace TgBot {
18
20struct AffiliateInfo;
21struct Animation;
22struct Audio;
23struct BackgroundFill;
27struct BackgroundType;
32struct Birthdate;
34struct BotCommand;
35struct BotCommandScope;
43struct BotDescription;
44struct BotName;
49struct BusinessIntro;
50struct BusinessLocation;
54struct CallbackGame;
55struct CallbackQuery;
56struct Chat;
58struct ChatBackground;
59struct ChatBoost;
60struct ChatBoostAdded;
61struct ChatBoostRemoved;
62struct ChatBoostSource;
66struct ChatBoostUpdated;
67struct ChatFullInfo;
68struct ChatInviteLink;
69struct ChatJoinRequest;
70struct ChatLocation;
71struct ChatMember;
73struct ChatMemberBanned;
74struct ChatMemberLeft;
75struct ChatMemberMember;
76struct ChatMemberOwner;
79struct ChatOwnerChanged;
80struct ChatOwnerLeft;
81struct ChatPermissions;
82struct ChatPhoto;
83struct ChatShared;
84struct Checklist;
85struct ChecklistTask;
89struct Community;
93struct Contact;
94struct CopyTextButton;
95struct Dice;
98struct DisabledButton;
99struct Document;
103struct ExternalReplyInfo;
104struct File;
105struct ForceReply;
106struct ForumTopic;
107struct ForumTopicClosed;
108struct ForumTopicCreated;
109struct ForumTopicEdited;
110struct ForumTopicReopened;
111struct Game;
112struct GameHighScore;
115struct Gift;
116struct GiftBackground;
117struct GiftInfo;
118struct Gifts;
119struct Giveaway;
120struct GiveawayCompleted;
121struct GiveawayCreated;
122struct GiveawayWinners;
126struct InlineQuery;
127struct InlineQueryResult;
149struct InputChecklist;
150struct InputChecklistTask;
154struct InputMedia;
156struct InputMediaAudio;
157struct InputMediaDocument;
158struct InputMediaLink;
160struct InputMediaLocation;
161struct InputMediaPhoto;
162struct InputMediaSticker;
163struct InputMediaVenue;
164struct InputMediaVideo;
167struct InputPaidMedia;
171struct InputPollMedia;
172struct InputPollOption;
174struct InputProfilePhoto;
177struct InputRichBlock;
189struct InputRichBlockList;
191struct InputRichBlockMap;
203struct InputRichMessage;
206struct InputSticker;
207struct InputStoryContent;
212struct Invoice;
213struct KeyboardButton;
218struct LabeledPrice;
219struct Link;
220struct LinkPreviewOptions;
221struct LivePhoto;
222struct Location;
223struct LocationAddress;
224struct LoginUrl;
225struct ManagedBotCreated;
226struct ManagedBotUpdated;
227struct MaskPosition;
229struct MenuButton;
230struct MenuButtonCommands;
231struct MenuButtonDefault;
232struct MenuButtonWebApp;
233struct Message;
235struct MessageEntity;
237struct MessageId;
238struct MessageOrigin;
240struct MessageOriginChat;
242struct MessageOriginUser;
245struct OrderInfo;
246struct OwnedGift;
247struct OwnedGiftRegular;
248struct OwnedGiftUnique;
249struct OwnedGifts;
250struct PaidMedia;
251struct PaidMediaInfo;
252struct PaidMediaLivePhoto;
253struct PaidMediaPhoto;
254struct PaidMediaPreview;
255struct PaidMediaPurchased;
256struct PaidMediaVideo;
258struct PassportData;
269struct PassportFile;
270struct PhotoSize;
271struct Poll;
272struct PollAnswer;
273struct PollMedia;
274struct PollOption;
275struct PollOptionAdded;
276struct PollOptionDeleted;
277struct PreCheckoutQuery;
281struct ReactionCount;
282struct ReactionType;
284struct ReactionTypeEmoji;
285struct ReactionTypePaid;
286struct RefundedPayment;
289struct ReplyParameters;
290struct ResponseParameters;
295struct RichBlock;
296struct RichBlockAnchor;
297struct RichBlockAnimation;
298struct RichBlockAudio;
300struct RichBlockButtons;
301struct RichBlockCaption;
302struct RichBlockCollage;
303struct RichBlockDetails;
304struct RichBlockDivider;
305struct RichBlockDocument;
307struct RichBlockFooter;
308struct RichBlockList;
309struct RichBlockListItem;
310struct RichBlockMap;
312struct RichBlockParagraph;
313struct RichBlockPhoto;
317struct RichBlockSlideshow;
318struct RichBlockTable;
319struct RichBlockTableCell;
320struct RichBlockThinking;
321struct RichBlockVideo;
322struct RichBlockVoiceNote;
323struct RichMessage;
324struct RichMessageButton;
325struct RichText;
326struct RichTextAnchor;
327struct RichTextAnchorLink;
329struct RichTextBold;
330struct RichTextBotCommand;
331struct RichTextButton;
332struct RichTextCashtag;
333struct RichTextCode;
335struct RichTextDateTime;
337struct RichTextHashtag;
338struct RichTextItalic;
339struct RichTextMarked;
341struct RichTextMention;
343struct RichTextReference;
345struct RichTextSpoiler;
347struct RichTextSubscript;
350struct RichTextUnderline;
351struct RichTextUrl;
352struct SentGuestMessage;
353struct SentWebAppMessage;
354struct SharedUser;
355struct ShippingAddress;
356struct ShippingOption;
357struct ShippingQuery;
358struct StarAmount;
359struct StarTransaction;
360struct StarTransactions;
361struct Sticker;
362struct StickerSet;
363struct Story;
364struct StoryArea;
365struct StoryAreaPosition;
366struct StoryAreaType;
367struct StoryAreaTypeLink;
372struct SuccessfulPayment;
376struct SuggestedPostInfo;
377struct SuggestedPostPaid;
379struct SuggestedPostPrice;
382struct TextQuote;
383struct TransactionPartner;
391struct UniqueGift;
392struct UniqueGiftBackdrop;
394struct UniqueGiftColors;
395struct UniqueGiftInfo;
396struct UniqueGiftModel;
397struct UniqueGiftSymbol;
398struct Update;
399struct User;
400struct UserChatBoosts;
401struct UserProfileAudios;
402struct UserProfilePhotos;
403struct UserRating;
404struct UsersShared;
405struct Venue;
406struct Video;
407struct VideoChatEnded;
409struct VideoChatScheduled;
410struct VideoChatStarted;
411struct VideoNote;
412struct VideoQuality;
413struct Voice;
414struct WebAppData;
415struct WebAppInfo;
416struct WebhookInfo;
417struct WriteAccessAllowed;
418
424 using Ptr = std::shared_ptr<AcceptedGiftTypes>;
425
433 bool limitedGifts { };
437 bool uniqueGifts { };
446};
447
448TGBOT_API void from_json(const nlohmann::json& json, AcceptedGiftTypes& value);
449TGBOT_API void to_json(nlohmann::json& json, const AcceptedGiftTypes& value);
450
456 using Ptr = std::shared_ptr<AffiliateInfo>;
457
462 std::shared_ptr<User> affiliateUser { };
466 std::shared_ptr<Chat> affiliateChat { };
471 std::int32_t commissionPerMille { };
476 std::int32_t amount { };
481 std::optional<std::int32_t> nanostarAmount { };
482};
483
484TGBOT_API void from_json(const nlohmann::json& json, AffiliateInfo& value);
485TGBOT_API void to_json(nlohmann::json& json, const AffiliateInfo& value);
486
491struct Animation {
492 using Ptr = std::shared_ptr<Animation>;
493
497 std::string fileId { };
502 std::string fileUniqueId { };
506 std::int32_t width { };
510 std::int32_t height { };
514 std::int32_t duration { };
518 std::shared_ptr<PhotoSize> thumbnail { };
522 std::optional<std::string> fileName { };
526 std::optional<std::string> mimeType { };
533 std::optional<std::int64_t> fileSize { };
534};
535
536TGBOT_API void from_json(const nlohmann::json& json, Animation& value);
537TGBOT_API void to_json(nlohmann::json& json, const Animation& value);
538
543struct Audio {
544 using Ptr = std::shared_ptr<Audio>;
545
549 std::string fileId { };
554 std::string fileUniqueId { };
558 std::int32_t duration { };
562 std::optional<std::string> performer { };
566 std::optional<std::string> title { };
570 std::optional<std::string> fileName { };
574 std::optional<std::string> mimeType { };
581 std::optional<std::int64_t> fileSize { };
585 std::shared_ptr<PhotoSize> thumbnail { };
586};
587
588TGBOT_API void from_json(const nlohmann::json& json, Audio& value);
589TGBOT_API void to_json(nlohmann::json& json, const Audio& value);
590
598 using Ptr = std::shared_ptr<BackgroundFill>;
599
600 std::variant<std::shared_ptr<BackgroundFillSolid>, std::shared_ptr<BackgroundFillGradient>,
601 std::shared_ptr<BackgroundFillFreeformGradient>>
603};
604
605TGBOT_API void from_json(const nlohmann::json& json, BackgroundFill& value);
606TGBOT_API void to_json(nlohmann::json& json, const BackgroundFill& value);
607
613 using Ptr = std::shared_ptr<BackgroundFillFreeformGradient>;
614
615 static TGBOT_API const std::string TYPE;
616
620 std::string type { TYPE };
625 std::vector<std::int32_t> colors { };
626};
627
628TGBOT_API void from_json(const nlohmann::json& json, BackgroundFillFreeformGradient& value);
629TGBOT_API void to_json(nlohmann::json& json, const BackgroundFillFreeformGradient& value);
630
636 using Ptr = std::shared_ptr<BackgroundFillGradient>;
637
638 static TGBOT_API const std::string TYPE;
639
643 std::string type { TYPE };
647 std::int32_t topColor { };
651 std::int32_t bottomColor { };
655 std::int32_t rotationAngle { };
656};
657
658TGBOT_API void from_json(const nlohmann::json& json, BackgroundFillGradient& value);
659TGBOT_API void to_json(nlohmann::json& json, const BackgroundFillGradient& value);
660
666 using Ptr = std::shared_ptr<BackgroundFillSolid>;
667
668 static TGBOT_API const std::string TYPE;
669
673 std::string type { TYPE };
677 std::int32_t color { };
678};
679
680TGBOT_API void from_json(const nlohmann::json& json, BackgroundFillSolid& value);
681TGBOT_API void to_json(nlohmann::json& json, const BackgroundFillSolid& value);
682
689 using Ptr = std::shared_ptr<BackgroundType>;
690
691 std::variant<std::shared_ptr<BackgroundTypeFill>, std::shared_ptr<BackgroundTypeWallpaper>,
692 std::shared_ptr<BackgroundTypePattern>, std::shared_ptr<BackgroundTypeChatTheme>>
694};
695
696TGBOT_API void from_json(const nlohmann::json& json, BackgroundType& value);
697TGBOT_API void to_json(nlohmann::json& json, const BackgroundType& value);
698
704 using Ptr = std::shared_ptr<BackgroundTypeChatTheme>;
705
706 static TGBOT_API const std::string TYPE;
707
711 std::string type { TYPE };
715 std::string themeName { };
716};
717
718TGBOT_API void from_json(const nlohmann::json& json, BackgroundTypeChatTheme& value);
719TGBOT_API void to_json(nlohmann::json& json, const BackgroundTypeChatTheme& value);
720
726 using Ptr = std::shared_ptr<BackgroundTypeFill>;
727
728 static TGBOT_API const std::string TYPE;
729
733 std::string type { TYPE };
737 std::shared_ptr<BackgroundFill> fill { };
741 std::int32_t darkThemeDimming { };
742};
743
744TGBOT_API void from_json(const nlohmann::json& json, BackgroundTypeFill& value);
745TGBOT_API void to_json(nlohmann::json& json, const BackgroundTypeFill& value);
746
754 using Ptr = std::shared_ptr<BackgroundTypePattern>;
755
756 static TGBOT_API const std::string TYPE;
757
761 std::string type { TYPE };
765 std::shared_ptr<Document> document { };
769 std::shared_ptr<BackgroundFill> fill { };
773 std::int32_t intensity { };
778 std::optional<bool> isInverted { };
782 std::optional<bool> isMoving { };
783};
784
785TGBOT_API void from_json(const nlohmann::json& json, BackgroundTypePattern& value);
786TGBOT_API void to_json(nlohmann::json& json, const BackgroundTypePattern& value);
787
793 using Ptr = std::shared_ptr<BackgroundTypeWallpaper>;
794
795 static TGBOT_API const std::string TYPE;
796
800 std::string type { TYPE };
804 std::shared_ptr<Document> document { };
808 std::int32_t darkThemeDimming { };
813 std::optional<bool> isBlurred { };
817 std::optional<bool> isMoving { };
818};
819
820TGBOT_API void from_json(const nlohmann::json& json, BackgroundTypeWallpaper& value);
821TGBOT_API void to_json(nlohmann::json& json, const BackgroundTypeWallpaper& value);
822
827struct Birthdate {
828 using Ptr = std::shared_ptr<Birthdate>;
829
833 std::int32_t day { };
837 std::int32_t month { };
841 std::optional<std::int32_t> year { };
842};
843
844TGBOT_API void from_json(const nlohmann::json& json, Birthdate& value);
845TGBOT_API void to_json(nlohmann::json& json, const Birthdate& value);
846
852 using Ptr = std::shared_ptr<BotAccessSettings>;
853
861 std::optional<std::vector<std::shared_ptr<User>>> addedUsers { };
862};
863
864TGBOT_API void from_json(const nlohmann::json& json, BotAccessSettings& value);
865TGBOT_API void to_json(nlohmann::json& json, const BotAccessSettings& value);
866
872 using Ptr = std::shared_ptr<BotCommand>;
873
878 std::string command { };
882 std::string description { };
887 std::optional<bool> isEphemeral { };
888};
889
890TGBOT_API void from_json(const nlohmann::json& json, BotCommand& value);
891TGBOT_API void to_json(nlohmann::json& json, const BotCommand& value);
892
901 using Ptr = std::shared_ptr<BotCommandScope>;
902
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>>
908};
909
910TGBOT_API void from_json(const nlohmann::json& json, BotCommandScope& value);
911TGBOT_API void to_json(nlohmann::json& json, const BotCommandScope& value);
912
918 using Ptr = std::shared_ptr<BotCommandScopeAllChatAdministrators>;
919
920 static TGBOT_API const std::string TYPE;
921
925 std::string type { TYPE };
926};
927
928TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeAllChatAdministrators& value);
929TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeAllChatAdministrators& value);
930
936 using Ptr = std::shared_ptr<BotCommandScopeAllGroupChats>;
937
938 static TGBOT_API const std::string TYPE;
939
943 std::string type { TYPE };
944};
945
946TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeAllGroupChats& value);
947TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeAllGroupChats& value);
948
954 using Ptr = std::shared_ptr<BotCommandScopeAllPrivateChats>;
955
956 static TGBOT_API const std::string TYPE;
957
961 std::string type { TYPE };
962};
963
964TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeAllPrivateChats& value);
965TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeAllPrivateChats& value);
966
972 using Ptr = std::shared_ptr<BotCommandScopeChat>;
973
974 static TGBOT_API const std::string TYPE;
975
979 std::string type { TYPE };
984 std::int64_t chatId { };
985};
986
987TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeChat& value);
988TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeChat& value);
989
996 using Ptr = std::shared_ptr<BotCommandScopeChatAdministrators>;
997
998 static TGBOT_API const std::string TYPE;
999
1003 std::string type { TYPE };
1008 std::int64_t chatId { };
1009};
1010
1011TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeChatAdministrators& value);
1012TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeChatAdministrators& value);
1013
1020 using Ptr = std::shared_ptr<BotCommandScopeChatMember>;
1021
1022 static TGBOT_API const std::string TYPE;
1023
1027 std::string type { TYPE };
1032 std::int64_t chatId { };
1036 std::int64_t userId { };
1037};
1038
1039TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeChatMember& value);
1040TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeChatMember& value);
1041
1048 using Ptr = std::shared_ptr<BotCommandScopeDefault>;
1049
1050 static TGBOT_API const std::string TYPE;
1051
1055 std::string type { TYPE };
1056};
1057
1058TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeDefault& value);
1059TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeDefault& value);
1060
1066 using Ptr = std::shared_ptr<BotDescription>;
1067
1071 std::string description { };
1072};
1073
1074TGBOT_API void from_json(const nlohmann::json& json, BotDescription& value);
1075TGBOT_API void to_json(nlohmann::json& json, const BotDescription& value);
1076
1081struct BotName {
1082 using Ptr = std::shared_ptr<BotName>;
1083
1087 std::string name { };
1088};
1089
1090TGBOT_API void from_json(const nlohmann::json& json, BotName& value);
1091TGBOT_API void to_json(nlohmann::json& json, const BotName& value);
1092
1098 using Ptr = std::shared_ptr<BotShortDescription>;
1099
1103 std::string shortDescription { };
1104};
1105
1106TGBOT_API void from_json(const nlohmann::json& json, BotShortDescription& value);
1107TGBOT_API void to_json(nlohmann::json& json, const BotShortDescription& value);
1108
1115 using Ptr = std::shared_ptr<BotSubscriptionUpdated>;
1116
1120 std::shared_ptr<User> user { };
1124 std::string invoicePayload { };
1130 std::string state { };
1131};
1132
1133TGBOT_API void from_json(const nlohmann::json& json, BotSubscriptionUpdated& value);
1134TGBOT_API void to_json(nlohmann::json& json, const BotSubscriptionUpdated& value);
1135
1141 using Ptr = std::shared_ptr<BusinessBotRights>;
1142
1147 std::optional<bool> canReply { };
1151 std::optional<bool> canReadMessages { };
1155 std::optional<bool> canDeleteSentMessages { };
1159 std::optional<bool> canDeleteAllMessages { };
1163 std::optional<bool> canEditName { };
1167 std::optional<bool> canEditBio { };
1171 std::optional<bool> canEditProfilePhoto { };
1175 std::optional<bool> canEditUsername { };
1180 std::optional<bool> canChangeGiftSettings { };
1185 std::optional<bool> canViewGiftsAndStars { };
1190 std::optional<bool> canConvertGiftsToStars { };
1194 std::optional<bool> canTransferAndUpgradeGifts { };
1199 std::optional<bool> canTransferStars { };
1204 std::optional<bool> canManageStories { };
1205};
1206
1207TGBOT_API void from_json(const nlohmann::json& json, BusinessBotRights& value);
1208TGBOT_API void to_json(nlohmann::json& json, const BusinessBotRights& value);
1209
1215 using Ptr = std::shared_ptr<BusinessConnection>;
1216
1220 std::string id { };
1224 std::shared_ptr<User> user { };
1231 std::int64_t userChatId { };
1235 std::int32_t date { };
1239 std::shared_ptr<BusinessBotRights> rights { };
1243 bool isEnabled { };
1244};
1245
1246TGBOT_API void from_json(const nlohmann::json& json, BusinessConnection& value);
1247TGBOT_API void to_json(nlohmann::json& json, const BusinessConnection& value);
1248
1254 using Ptr = std::shared_ptr<BusinessIntro>;
1255
1259 std::optional<std::string> title { };
1263 std::optional<std::string> message { };
1267 std::shared_ptr<Sticker> sticker { };
1268};
1269
1270TGBOT_API void from_json(const nlohmann::json& json, BusinessIntro& value);
1271TGBOT_API void to_json(nlohmann::json& json, const BusinessIntro& value);
1272
1278 using Ptr = std::shared_ptr<BusinessLocation>;
1279
1283 std::string address { };
1287 std::shared_ptr<Location> location { };
1288};
1289
1290TGBOT_API void from_json(const nlohmann::json& json, BusinessLocation& value);
1291TGBOT_API void to_json(nlohmann::json& json, const BusinessLocation& value);
1292
1298 using Ptr = std::shared_ptr<BusinessMessagesDeleted>;
1299
1303 std::string businessConnectionId { };
1308 std::shared_ptr<Chat> chat { };
1312 std::vector<std::int32_t> messageIds { };
1313};
1314
1315TGBOT_API void from_json(const nlohmann::json& json, BusinessMessagesDeleted& value);
1316TGBOT_API void to_json(nlohmann::json& json, const BusinessMessagesDeleted& value);
1317
1323 using Ptr = std::shared_ptr<BusinessOpeningHours>;
1324
1328 std::string timeZoneName { };
1332 std::vector<std::shared_ptr<BusinessOpeningHoursInterval>> openingHours { };
1333};
1334
1335TGBOT_API void from_json(const nlohmann::json& json, BusinessOpeningHours& value);
1336TGBOT_API void to_json(nlohmann::json& json, const BusinessOpeningHours& value);
1337
1343 using Ptr = std::shared_ptr<BusinessOpeningHoursInterval>;
1344
1349 std::int32_t openingMinute { };
1354 std::int32_t closingMinute { };
1355};
1356
1357TGBOT_API void from_json(const nlohmann::json& json, BusinessOpeningHoursInterval& value);
1358TGBOT_API void to_json(nlohmann::json& json, const BusinessOpeningHoursInterval& value);
1359
1365 using Ptr = std::shared_ptr<CallbackGame>;
1366};
1367
1368TGBOT_API void from_json(const nlohmann::json& json, CallbackGame& value);
1369TGBOT_API void to_json(nlohmann::json& json, const CallbackGame& value);
1370
1380 using Ptr = std::shared_ptr<CallbackQuery>;
1381
1385 std::string id { };
1389 std::shared_ptr<User> from { };
1393 std::shared_ptr<MaybeInaccessibleMessage> message { };
1398 std::optional<std::string> inlineMessageId { };
1403 std::string chatInstance { };
1408 std::optional<std::string> data { };
1413 std::optional<std::string> gameShortName { };
1414};
1415
1416TGBOT_API void from_json(const nlohmann::json& json, CallbackQuery& value);
1417TGBOT_API void to_json(nlohmann::json& json, const CallbackQuery& value);
1418
1423struct Chat {
1424 using Ptr = std::shared_ptr<Chat>;
1425
1426 enum class Type { Private, Group, Supergroup, Channel };
1427
1434 std::int64_t id { };
1442 std::optional<std::string> title { };
1446 std::optional<std::string> username { };
1450 std::optional<std::string> firstName { };
1454 std::optional<std::string> lastName { };
1458 std::optional<bool> isForum { };
1462 std::optional<bool> isDirectMessages { };
1463};
1464
1465TGBOT_API void from_json(const nlohmann::json& json, Chat::Type& value);
1466TGBOT_API void to_json(nlohmann::json& json, const Chat::Type& value);
1467
1468TGBOT_API void from_json(const nlohmann::json& json, Chat& value);
1469TGBOT_API void to_json(nlohmann::json& json, const Chat& value);
1470
1476 using Ptr = std::shared_ptr<ChatAdministratorRights>;
1477
1481 bool isAnonymous { };
1533 std::optional<bool> canPostMessages { };
1538 std::optional<bool> canEditMessages { };
1542 std::optional<bool> canPinMessages { };
1547 std::optional<bool> canManageTopics { };
1552 std::optional<bool> canManageDirectMessages { };
1557 std::optional<bool> canManageTags { };
1563};
1564
1565TGBOT_API void from_json(const nlohmann::json& json, ChatAdministratorRights& value);
1566TGBOT_API void to_json(nlohmann::json& json, const ChatAdministratorRights& value);
1567
1573 using Ptr = std::shared_ptr<ChatBackground>;
1574
1578 std::shared_ptr<BackgroundType> type { };
1579};
1580
1581TGBOT_API void from_json(const nlohmann::json& json, ChatBackground& value);
1582TGBOT_API void to_json(nlohmann::json& json, const ChatBackground& value);
1583
1589 using Ptr = std::shared_ptr<ChatBoost>;
1590
1594 std::string boostId { };
1598 std::int32_t addDate { };
1603 std::int32_t expirationDate { };
1607 std::shared_ptr<ChatBoostSource> source { };
1608};
1609
1610TGBOT_API void from_json(const nlohmann::json& json, ChatBoost& value);
1611TGBOT_API void to_json(nlohmann::json& json, const ChatBoost& value);
1612
1618 using Ptr = std::shared_ptr<ChatBoostAdded>;
1619
1623 std::int32_t boostCount { };
1624};
1625
1626TGBOT_API void from_json(const nlohmann::json& json, ChatBoostAdded& value);
1627TGBOT_API void to_json(nlohmann::json& json, const ChatBoostAdded& value);
1628
1634 using Ptr = std::shared_ptr<ChatBoostRemoved>;
1635
1639 std::shared_ptr<Chat> chat { };
1643 std::string boostId { };
1647 std::int32_t removeDate { };
1651 std::shared_ptr<ChatBoostSource> source { };
1652};
1653
1654TGBOT_API void from_json(const nlohmann::json& json, ChatBoostRemoved& value);
1655TGBOT_API void to_json(nlohmann::json& json, const ChatBoostRemoved& value);
1656
1663 using Ptr = std::shared_ptr<ChatBoostSource>;
1664
1665 std::variant<std::shared_ptr<ChatBoostSourcePremium>, std::shared_ptr<ChatBoostSourceGiftCode>,
1666 std::shared_ptr<ChatBoostSourceGiveaway>>
1668};
1669
1670TGBOT_API void from_json(const nlohmann::json& json, ChatBoostSource& value);
1671TGBOT_API void to_json(nlohmann::json& json, const ChatBoostSource& value);
1672
1680 using Ptr = std::shared_ptr<ChatBoostSourceGiftCode>;
1681
1682 static TGBOT_API const std::string SOURCE;
1683
1687 std::string source { SOURCE };
1691 std::shared_ptr<User> user { };
1692};
1693
1694TGBOT_API void from_json(const nlohmann::json& json, ChatBoostSourceGiftCode& value);
1695TGBOT_API void to_json(nlohmann::json& json, const ChatBoostSourceGiftCode& value);
1696
1705 using Ptr = std::shared_ptr<ChatBoostSourceGiveaway>;
1706
1707 static TGBOT_API const std::string SOURCE;
1708
1712 std::string source { SOURCE };
1717 std::int32_t giveawayMessageId { };
1722 std::shared_ptr<User> user { };
1727 std::optional<std::int32_t> prizeStarCount { };
1731 std::optional<bool> isUnclaimed { };
1732};
1733
1734TGBOT_API void from_json(const nlohmann::json& json, ChatBoostSourceGiveaway& value);
1735TGBOT_API void to_json(nlohmann::json& json, const ChatBoostSourceGiveaway& value);
1736
1743 using Ptr = std::shared_ptr<ChatBoostSourcePremium>;
1744
1745 static TGBOT_API const std::string SOURCE;
1746
1750 std::string source { SOURCE };
1754 std::shared_ptr<User> user { };
1755};
1756
1757TGBOT_API void from_json(const nlohmann::json& json, ChatBoostSourcePremium& value);
1758TGBOT_API void to_json(nlohmann::json& json, const ChatBoostSourcePremium& value);
1759
1765 using Ptr = std::shared_ptr<ChatBoostUpdated>;
1766
1770 std::shared_ptr<Chat> chat { };
1774 std::shared_ptr<ChatBoost> boost { };
1775};
1776
1777TGBOT_API void from_json(const nlohmann::json& json, ChatBoostUpdated& value);
1778TGBOT_API void to_json(nlohmann::json& json, const ChatBoostUpdated& value);
1779
1785 using Ptr = std::shared_ptr<ChatFullInfo>;
1786
1793 std::int64_t id { };
1797 std::string type { };
1801 std::optional<std::string> title { };
1805 std::optional<std::string> username { };
1809 std::optional<std::string> firstName { };
1813 std::optional<std::string> lastName { };
1817 std::optional<bool> isForum { };
1821 std::optional<bool> isDirectMessages { };
1826 std::int32_t accentColorId { };
1830 std::int32_t maxReactionCount { };
1834 std::shared_ptr<ChatPhoto> photo { };
1839 std::optional<std::vector<std::string>> activeUsernames { };
1843 std::shared_ptr<Birthdate> birthdate { };
1847 std::shared_ptr<BusinessIntro> businessIntro { };
1851 std::shared_ptr<BusinessLocation> businessLocation { };
1855 std::shared_ptr<BusinessOpeningHours> businessOpeningHours { };
1859 std::shared_ptr<Chat> personalChat { };
1864 std::shared_ptr<Chat> parentChat { };
1869 std::optional<std::vector<std::shared_ptr<ReactionType>>> availableReactions { };
1874 std::optional<std::string> backgroundCustomEmojiId { };
1879 std::optional<std::int32_t> profileAccentColorId { };
1884 std::optional<std::string> profileBackgroundCustomEmojiId { };
1889 std::optional<std::string> emojiStatusCustomEmojiId { };
1894 std::optional<std::int32_t> emojiStatusExpirationDate { };
1898 std::optional<std::string> bio { };
1903 std::optional<bool> hasPrivateForwards { };
1908 std::optional<bool> hasRestrictedVoiceAndVideoMessages { };
1912 std::optional<bool> joinToSendMessages { };
1917 std::optional<bool> joinByRequest { };
1921 std::optional<std::string> description { };
1925 std::optional<std::string> inviteLink { };
1929 std::shared_ptr<Message> pinnedMessage { };
1933 std::shared_ptr<ChatPermissions> permissions { };
1938 std::shared_ptr<AcceptedGiftTypes> acceptedGiftTypes { };
1943 std::optional<bool> canSendPaidMedia { };
1948 std::optional<std::int32_t> slowModeDelay { };
1953 std::optional<std::int32_t> unrestrictBoostCount { };
1958 std::optional<std::int32_t> messageAutoDeleteTime { };
1963 std::optional<bool> hasAggressiveAntiSpamEnabled { };
1968 std::optional<bool> hasHiddenMembers { };
1972 std::optional<bool> hasProtectedContent { };
1977 std::optional<bool> hasVisibleHistory { };
1981 std::optional<std::string> stickerSetName { };
1985 std::optional<bool> canSetStickerSet { };
1990 std::optional<std::string> customEmojiStickerSetName { };
1998 std::optional<std::int64_t> linkedChatId { };
2002 std::shared_ptr<ChatLocation> location { };
2006 std::shared_ptr<UserRating> rating { };
2010 std::shared_ptr<Audio> firstProfileAudio { };
2015 std::shared_ptr<UniqueGiftColors> uniqueGiftColors { };
2020 std::optional<std::int32_t> paidMessageStarCount { };
2025 std::shared_ptr<User> guardBot { };
2029 std::shared_ptr<Community> community { };
2030};
2031
2032TGBOT_API void from_json(const nlohmann::json& json, ChatFullInfo& value);
2033TGBOT_API void to_json(nlohmann::json& json, const ChatFullInfo& value);
2034
2040 using Ptr = std::shared_ptr<ChatInviteLink>;
2041
2046 std::string inviteLink { };
2050 std::shared_ptr<User> creator { };
2058 bool isPrimary { };
2062 bool isRevoked { };
2066 std::optional<std::string> name { };
2070 std::optional<std::int32_t> expireDate { };
2075 std::optional<std::int32_t> memberLimit { };
2079 std::optional<std::int32_t> pendingJoinRequestCount { };
2084 std::optional<std::int32_t> subscriptionPeriod { };
2089 std::optional<std::int32_t> subscriptionPrice { };
2090};
2091
2092TGBOT_API void from_json(const nlohmann::json& json, ChatInviteLink& value);
2093TGBOT_API void to_json(nlohmann::json& json, const ChatInviteLink& value);
2094
2100 using Ptr = std::shared_ptr<ChatJoinRequest>;
2101
2105 std::shared_ptr<Chat> chat { };
2109 std::shared_ptr<User> from { };
2118 std::int64_t userChatId { };
2122 std::int32_t date { };
2126 std::optional<std::string> bio { };
2130 std::shared_ptr<ChatInviteLink> inviteLink { };
2136 std::optional<std::string> queryId { };
2137};
2138
2139TGBOT_API void from_json(const nlohmann::json& json, ChatJoinRequest& value);
2140TGBOT_API void to_json(nlohmann::json& json, const ChatJoinRequest& value);
2141
2147 using Ptr = std::shared_ptr<ChatLocation>;
2148
2152 std::shared_ptr<Location> location { };
2156 std::string address { };
2157};
2158
2159TGBOT_API void from_json(const nlohmann::json& json, ChatLocation& value);
2160TGBOT_API void to_json(nlohmann::json& json, const ChatLocation& value);
2161
2169 using Ptr = std::shared_ptr<ChatMember>;
2170
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>>
2175};
2176
2177TGBOT_API void from_json(const nlohmann::json& json, ChatMember& value);
2178TGBOT_API void to_json(nlohmann::json& json, const ChatMember& value);
2179
2185 using Ptr = std::shared_ptr<ChatMemberAdministrator>;
2186
2187 static TGBOT_API const std::string STATUS;
2188
2192 std::string status { STATUS };
2196 std::shared_ptr<User> user { };
2200 bool canBeEdited { };
2204 bool isAnonymous { };
2256 std::optional<bool> canPostMessages { };
2261 std::optional<bool> canEditMessages { };
2265 std::optional<bool> canPinMessages { };
2270 std::optional<bool> canManageTopics { };
2275 std::optional<bool> canManageDirectMessages { };
2280 std::optional<bool> canManageTags { };
2289 std::optional<std::string> customTitle { };
2290};
2291
2292TGBOT_API void from_json(const nlohmann::json& json, ChatMemberAdministrator& value);
2293TGBOT_API void to_json(nlohmann::json& json, const ChatMemberAdministrator& value);
2294
2301 using Ptr = std::shared_ptr<ChatMemberBanned>;
2302
2303 static TGBOT_API const std::string STATUS;
2304
2308 std::string status { STATUS };
2312 std::shared_ptr<User> user { };
2317 std::int32_t untilDate { };
2318};
2319
2320TGBOT_API void from_json(const nlohmann::json& json, ChatMemberBanned& value);
2321TGBOT_API void to_json(nlohmann::json& json, const ChatMemberBanned& value);
2322
2329 using Ptr = std::shared_ptr<ChatMemberLeft>;
2330
2331 static TGBOT_API const std::string STATUS;
2332
2336 std::string status { STATUS };
2340 std::shared_ptr<User> user { };
2341};
2342
2343TGBOT_API void from_json(const nlohmann::json& json, ChatMemberLeft& value);
2344TGBOT_API void to_json(nlohmann::json& json, const ChatMemberLeft& value);
2345
2351 using Ptr = std::shared_ptr<ChatMemberMember>;
2352
2353 static TGBOT_API const std::string STATUS;
2354
2358 std::string status { STATUS };
2362 std::optional<std::string> tag { };
2366 std::shared_ptr<User> user { };
2370 std::optional<std::int32_t> untilDate { };
2371};
2372
2373TGBOT_API void from_json(const nlohmann::json& json, ChatMemberMember& value);
2374TGBOT_API void to_json(nlohmann::json& json, const ChatMemberMember& value);
2375
2381 using Ptr = std::shared_ptr<ChatMemberOwner>;
2382
2383 static TGBOT_API const std::string STATUS;
2384
2388 std::string status { STATUS };
2392 std::shared_ptr<User> user { };
2396 bool isAnonymous { };
2400 std::optional<std::string> customTitle { };
2401};
2402
2403TGBOT_API void from_json(const nlohmann::json& json, ChatMemberOwner& value);
2404TGBOT_API void to_json(nlohmann::json& json, const ChatMemberOwner& value);
2405
2411 using Ptr = std::shared_ptr<ChatMemberRestricted>;
2412
2413 static TGBOT_API const std::string STATUS;
2414
2418 std::string status { STATUS };
2422 std::optional<std::string> tag { };
2426 std::shared_ptr<User> user { };
2430 bool isMember { };
2479 bool canEditTag { };
2500 std::int32_t untilDate { };
2501};
2502
2503TGBOT_API void from_json(const nlohmann::json& json, ChatMemberRestricted& value);
2504TGBOT_API void to_json(nlohmann::json& json, const ChatMemberRestricted& value);
2505
2511 using Ptr = std::shared_ptr<ChatMemberUpdated>;
2512
2516 std::shared_ptr<Chat> chat { };
2520 std::shared_ptr<User> from { };
2524 std::int32_t date { };
2528 std::shared_ptr<ChatMember> oldChatMember { };
2532 std::shared_ptr<ChatMember> newChatMember { };
2537 std::shared_ptr<ChatInviteLink> inviteLink { };
2542 std::optional<bool> viaJoinRequest { };
2546 std::optional<bool> viaChatFolderInviteLink { };
2547};
2548
2549TGBOT_API void from_json(const nlohmann::json& json, ChatMemberUpdated& value);
2550TGBOT_API void to_json(nlohmann::json& json, const ChatMemberUpdated& value);
2551
2557 using Ptr = std::shared_ptr<ChatOwnerChanged>;
2558
2562 std::shared_ptr<User> newOwner { };
2563};
2564
2565TGBOT_API void from_json(const nlohmann::json& json, ChatOwnerChanged& value);
2566TGBOT_API void to_json(nlohmann::json& json, const ChatOwnerChanged& value);
2567
2573 using Ptr = std::shared_ptr<ChatOwnerLeft>;
2574
2579 std::shared_ptr<User> newOwner { };
2580};
2581
2582TGBOT_API void from_json(const nlohmann::json& json, ChatOwnerLeft& value);
2583TGBOT_API void to_json(nlohmann::json& json, const ChatOwnerLeft& value);
2584
2590 using Ptr = std::shared_ptr<ChatPermissions>;
2591
2596 std::optional<bool> canSendMessages { };
2600 std::optional<bool> canSendAudios { };
2604 std::optional<bool> canSendDocuments { };
2608 std::optional<bool> canSendPhotos { };
2612 std::optional<bool> canSendVideos { };
2616 std::optional<bool> canSendVideoNotes { };
2620 std::optional<bool> canSendVoiceNotes { };
2624 std::optional<bool> canSendPolls { };
2629 std::optional<bool> canSendOtherMessages { };
2633 std::optional<bool> canAddWebPagePreviews { };
2638 std::optional<bool> canReactToMessages { };
2643 std::optional<bool> canEditTag { };
2648 std::optional<bool> canChangeInfo { };
2652 std::optional<bool> canInviteUsers { };
2656 std::optional<bool> canPinMessages { };
2661 std::optional<bool> canManageTopics { };
2662};
2663
2664TGBOT_API void from_json(const nlohmann::json& json, ChatPermissions& value);
2665TGBOT_API void to_json(nlohmann::json& json, const ChatPermissions& value);
2666
2672 using Ptr = std::shared_ptr<ChatPhoto>;
2673
2678 std::string smallFileId { };
2683 std::string smallFileUniqueId { };
2688 std::string bigFileId { };
2693 std::string bigFileUniqueId { };
2694};
2695
2696TGBOT_API void from_json(const nlohmann::json& json, ChatPhoto& value);
2697TGBOT_API void to_json(nlohmann::json& json, const ChatPhoto& value);
2698
2705 using Ptr = std::shared_ptr<ChatShared>;
2706
2710 std::int32_t requestId { };
2719 std::int64_t chatId { };
2723 std::optional<std::string> title { };
2727 std::optional<std::string> username { };
2731 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
2732};
2733
2734TGBOT_API void from_json(const nlohmann::json& json, ChatShared& value);
2735TGBOT_API void to_json(nlohmann::json& json, const ChatShared& value);
2736
2742 using Ptr = std::shared_ptr<Checklist>;
2743
2747 std::string title { };
2751 std::optional<std::vector<std::shared_ptr<MessageEntity>>> titleEntities { };
2755 std::vector<std::shared_ptr<ChecklistTask>> tasks { };
2759 std::optional<bool> othersCanAddTasks { };
2764 std::optional<bool> othersCanMarkTasksAsDone { };
2765};
2766
2767TGBOT_API void from_json(const nlohmann::json& json, Checklist& value);
2768TGBOT_API void to_json(nlohmann::json& json, const Checklist& value);
2769
2775 using Ptr = std::shared_ptr<ChecklistTask>;
2776
2780 std::int32_t id { };
2784 std::string text { };
2788 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
2792 std::shared_ptr<User> completedByUser { };
2796 std::shared_ptr<Chat> completedByChat { };
2801 std::optional<std::int32_t> completionDate { };
2802};
2803
2804TGBOT_API void from_json(const nlohmann::json& json, ChecklistTask& value);
2805TGBOT_API void to_json(nlohmann::json& json, const ChecklistTask& value);
2806
2812 using Ptr = std::shared_ptr<ChecklistTasksAdded>;
2813
2819 std::shared_ptr<Message> checklistMessage { };
2823 std::vector<std::shared_ptr<ChecklistTask>> tasks { };
2824};
2825
2826TGBOT_API void from_json(const nlohmann::json& json, ChecklistTasksAdded& value);
2827TGBOT_API void to_json(nlohmann::json& json, const ChecklistTasksAdded& value);
2828
2834 using Ptr = std::shared_ptr<ChecklistTasksDone>;
2835
2841 std::shared_ptr<Message> checklistMessage { };
2845 std::optional<std::vector<std::int32_t>> markedAsDoneTaskIds { };
2849 std::optional<std::vector<std::int32_t>> markedAsNotDoneTaskIds { };
2850};
2851
2852TGBOT_API void from_json(const nlohmann::json& json, ChecklistTasksDone& value);
2853TGBOT_API void to_json(nlohmann::json& json, const ChecklistTasksDone& value);
2854
2861 using Ptr = std::shared_ptr<ChosenInlineResult>;
2862
2866 std::string resultId { };
2870 std::shared_ptr<User> from { };
2874 std::shared_ptr<Location> location { };
2880 std::optional<std::string> inlineMessageId { };
2884 std::string query { };
2885};
2886
2887TGBOT_API void from_json(const nlohmann::json& json, ChosenInlineResult& value);
2888TGBOT_API void to_json(nlohmann::json& json, const ChosenInlineResult& value);
2889
2895 using Ptr = std::shared_ptr<Community>;
2896
2903 std::int64_t id { };
2907 std::string name { };
2908};
2909
2910TGBOT_API void from_json(const nlohmann::json& json, Community& value);
2911TGBOT_API void to_json(nlohmann::json& json, const Community& value);
2912
2918 using Ptr = std::shared_ptr<CommunityChatAdded>;
2919
2923 std::shared_ptr<Community> community { };
2924};
2925
2926TGBOT_API void from_json(const nlohmann::json& json, CommunityChatAdded& value);
2927TGBOT_API void to_json(nlohmann::json& json, const CommunityChatAdded& value);
2928
2934 using Ptr = std::shared_ptr<CommunityChatJoined>;
2935
2939 std::shared_ptr<Community> community { };
2940};
2941
2942TGBOT_API void from_json(const nlohmann::json& json, CommunityChatJoined& value);
2943TGBOT_API void to_json(nlohmann::json& json, const CommunityChatJoined& value);
2944
2951 using Ptr = std::shared_ptr<CommunityChatRemoved>;
2952};
2953
2954TGBOT_API void from_json(const nlohmann::json& json, CommunityChatRemoved& value);
2955TGBOT_API void to_json(nlohmann::json& json, const CommunityChatRemoved& value);
2956
2961struct Contact {
2962 using Ptr = std::shared_ptr<Contact>;
2963
2967 std::string phoneNumber { };
2971 std::string firstName { };
2975 std::optional<std::string> lastName { };
2982 std::optional<std::int64_t> userId { };
2986 std::optional<std::string> vcard { };
2987};
2988
2989TGBOT_API void from_json(const nlohmann::json& json, Contact& value);
2990TGBOT_API void to_json(nlohmann::json& json, const Contact& value);
2991
2998 using Ptr = std::shared_ptr<CopyTextButton>;
2999
3003 std::string text { };
3004};
3005
3006TGBOT_API void from_json(const nlohmann::json& json, CopyTextButton& value);
3007TGBOT_API void to_json(nlohmann::json& json, const CopyTextButton& value);
3008
3013struct Dice {
3014 using Ptr = std::shared_ptr<Dice>;
3015
3019 std::string emoji { };
3024 std::int32_t value { };
3025};
3026
3027TGBOT_API void from_json(const nlohmann::json& json, Dice& value);
3028TGBOT_API void to_json(nlohmann::json& json, const Dice& value);
3029
3036 using Ptr = std::shared_ptr<DirectMessagePriceChanged>;
3037
3047 std::optional<std::int32_t> directMessageStarCount { };
3048};
3049
3050TGBOT_API void from_json(const nlohmann::json& json, DirectMessagePriceChanged& value);
3051TGBOT_API void to_json(nlohmann::json& json, const DirectMessagePriceChanged& value);
3052
3058 using Ptr = std::shared_ptr<DirectMessagesTopic>;
3059
3066 std::int64_t topicId { };
3071 std::shared_ptr<User> user { };
3072};
3073
3074TGBOT_API void from_json(const nlohmann::json& json, DirectMessagesTopic& value);
3075TGBOT_API void to_json(nlohmann::json& json, const DirectMessagesTopic& value);
3076
3082 using Ptr = std::shared_ptr<DisabledButton>;
3083};
3084
3085TGBOT_API void from_json(const nlohmann::json& json, DisabledButton& value);
3086TGBOT_API void to_json(nlohmann::json& json, const DisabledButton& value);
3087
3093struct Document {
3094 using Ptr = std::shared_ptr<Document>;
3095
3099 std::string fileId { };
3104 std::string fileUniqueId { };
3108 std::shared_ptr<PhotoSize> thumbnail { };
3112 std::optional<std::string> fileName { };
3116 std::optional<std::string> mimeType { };
3123 std::optional<std::int64_t> fileSize { };
3124};
3125
3126TGBOT_API void from_json(const nlohmann::json& json, Document& value);
3127TGBOT_API void to_json(nlohmann::json& json, const Document& value);
3128
3136 using Ptr = std::shared_ptr<EncryptedCredentials>;
3137
3142 std::string data { };
3146 std::string hash { };
3151 std::string secret { };
3152};
3153
3154TGBOT_API void from_json(const nlohmann::json& json, EncryptedCredentials& value);
3155TGBOT_API void to_json(nlohmann::json& json, const EncryptedCredentials& value);
3156
3162 using Ptr = std::shared_ptr<EncryptedPassportElement>;
3163
3169 std::string type { };
3176 std::optional<std::string> data { };
3180 std::optional<std::string> phoneNumber { };
3184 std::optional<std::string> email { };
3191 std::optional<std::vector<std::shared_ptr<PassportFile>>> files { };
3198 std::shared_ptr<PassportFile> frontSide { };
3204 std::shared_ptr<PassportFile> reverseSide { };
3211 std::shared_ptr<PassportFile> selfie { };
3219 std::optional<std::vector<std::shared_ptr<PassportFile>>> translation { };
3223 std::string hash { };
3224};
3225
3226TGBOT_API void from_json(const nlohmann::json& json, EncryptedPassportElement& value);
3227TGBOT_API void to_json(nlohmann::json& json, const EncryptedPassportElement& value);
3228
3234 using Ptr = std::shared_ptr<EphemeralMessageParameters>;
3235
3240 std::int64_t receiverUserId { };
3244 std::optional<std::string> callbackQueryId { };
3250 std::optional<bool> replaceCallbackQueryMessage { };
3251};
3252
3253TGBOT_API void from_json(const nlohmann::json& json, EphemeralMessageParameters& value);
3254TGBOT_API void to_json(nlohmann::json& json, const EphemeralMessageParameters& value);
3255
3262 using Ptr = std::shared_ptr<ExternalReplyInfo>;
3263
3267 std::shared_ptr<MessageOrigin> origin { };
3272 std::shared_ptr<Chat> chat { };
3277 std::optional<std::int32_t> messageId { };
3282 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions { };
3286 std::shared_ptr<Animation> animation { };
3290 std::shared_ptr<Audio> audio { };
3294 std::shared_ptr<Document> document { };
3298 std::shared_ptr<LivePhoto> livePhoto { };
3302 std::shared_ptr<PaidMediaInfo> paidMedia { };
3306 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
3310 std::shared_ptr<Sticker> sticker { };
3314 std::shared_ptr<Story> story { };
3318 std::shared_ptr<Video> video { };
3322 std::shared_ptr<VideoNote> videoNote { };
3326 std::shared_ptr<Voice> voice { };
3330 std::optional<bool> hasMediaSpoiler { };
3334 std::shared_ptr<Checklist> checklist { };
3338 std::shared_ptr<Contact> contact { };
3342 std::shared_ptr<Dice> dice { };
3346 std::shared_ptr<Game> game { };
3350 std::shared_ptr<Giveaway> giveaway { };
3354 std::shared_ptr<GiveawayWinners> giveawayWinners { };
3359 std::shared_ptr<Invoice> invoice { };
3363 std::shared_ptr<Location> location { };
3367 std::shared_ptr<Poll> poll { };
3371 std::shared_ptr<Venue> venue { };
3372};
3373
3374TGBOT_API void from_json(const nlohmann::json& json, ExternalReplyInfo& value);
3375TGBOT_API void to_json(nlohmann::json& json, const ExternalReplyInfo& value);
3376
3384struct File {
3385 using Ptr = std::shared_ptr<File>;
3386
3390 std::string fileId { };
3395 std::string fileUniqueId { };
3402 std::optional<std::int64_t> fileSize { };
3407 std::optional<std::string> filePath { };
3408};
3409
3410TGBOT_API void from_json(const nlohmann::json& json, File& value);
3411TGBOT_API void to_json(nlohmann::json& json, const File& value);
3412
3422 using Ptr = std::shared_ptr<ForceReply>;
3423
3428 bool forceReply { };
3433 std::optional<std::string> inputFieldPlaceholder { };
3440 std::optional<bool> selective { };
3441};
3442
3443TGBOT_API void from_json(const nlohmann::json& json, ForceReply& value);
3444TGBOT_API void to_json(nlohmann::json& json, const ForceReply& value);
3445
3451 using Ptr = std::shared_ptr<ForumTopic>;
3452
3456 std::int32_t messageThreadId { };
3460 std::string name { };
3464 std::int32_t iconColor { };
3468 std::optional<std::string> iconCustomEmojiId { };
3473 std::optional<bool> isNameImplicit { };
3474};
3475
3476TGBOT_API void from_json(const nlohmann::json& json, ForumTopic& value);
3477TGBOT_API void to_json(nlohmann::json& json, const ForumTopic& value);
3478
3485 using Ptr = std::shared_ptr<ForumTopicClosed>;
3486};
3487
3488TGBOT_API void from_json(const nlohmann::json& json, ForumTopicClosed& value);
3489TGBOT_API void to_json(nlohmann::json& json, const ForumTopicClosed& value);
3490
3496 using Ptr = std::shared_ptr<ForumTopicCreated>;
3497
3501 std::string name { };
3505 std::int32_t iconColor { };
3509 std::optional<std::string> iconCustomEmojiId { };
3514 std::optional<bool> isNameImplicit { };
3515};
3516
3517TGBOT_API void from_json(const nlohmann::json& json, ForumTopicCreated& value);
3518TGBOT_API void to_json(nlohmann::json& json, const ForumTopicCreated& value);
3519
3525 using Ptr = std::shared_ptr<ForumTopicEdited>;
3526
3530 std::optional<std::string> name { };
3535 std::optional<std::string> iconCustomEmojiId { };
3536};
3537
3538TGBOT_API void from_json(const nlohmann::json& json, ForumTopicEdited& value);
3539TGBOT_API void to_json(nlohmann::json& json, const ForumTopicEdited& value);
3540
3547 using Ptr = std::shared_ptr<ForumTopicReopened>;
3548};
3549
3550TGBOT_API void from_json(const nlohmann::json& json, ForumTopicReopened& value);
3551TGBOT_API void to_json(nlohmann::json& json, const ForumTopicReopened& value);
3552
3558struct Game {
3559 using Ptr = std::shared_ptr<Game>;
3560
3564 std::string title { };
3568 std::string description { };
3572 std::vector<std::shared_ptr<PhotoSize>> photo { };
3578 std::optional<std::string> text { };
3583 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
3588 std::shared_ptr<Animation> animation { };
3589};
3590
3591TGBOT_API void from_json(const nlohmann::json& json, Game& value);
3592TGBOT_API void to_json(nlohmann::json& json, const Game& value);
3593
3599 using Ptr = std::shared_ptr<GameHighScore>;
3600
3604 std::int32_t position { };
3608 std::shared_ptr<User> user { };
3612 std::int32_t score { };
3613};
3614
3615TGBOT_API void from_json(const nlohmann::json& json, GameHighScore& value);
3616TGBOT_API void to_json(nlohmann::json& json, const GameHighScore& value);
3617
3624 using Ptr = std::shared_ptr<GeneralForumTopicHidden>;
3625};
3626
3627TGBOT_API void from_json(const nlohmann::json& json, GeneralForumTopicHidden& value);
3628TGBOT_API void to_json(nlohmann::json& json, const GeneralForumTopicHidden& value);
3629
3636 using Ptr = std::shared_ptr<GeneralForumTopicUnhidden>;
3637};
3638
3639TGBOT_API void from_json(const nlohmann::json& json, GeneralForumTopicUnhidden& value);
3640TGBOT_API void to_json(nlohmann::json& json, const GeneralForumTopicUnhidden& value);
3641
3646struct Gift {
3647 using Ptr = std::shared_ptr<Gift>;
3648
3652 std::string id { };
3656 std::shared_ptr<Sticker> sticker { };
3660 std::int32_t starCount { };
3665 std::optional<std::int32_t> upgradeStarCount { };
3669 std::optional<bool> isPremium { };
3674 std::optional<bool> hasColors { };
3679 std::optional<std::int32_t> totalCount { };
3684 std::optional<std::int32_t> remainingCount { };
3689 std::optional<std::int32_t> personalTotalCount { };
3694 std::optional<std::int32_t> personalRemainingCount { };
3698 std::shared_ptr<GiftBackground> background { };
3703 std::optional<std::int32_t> uniqueGiftVariantCount { };
3707 std::shared_ptr<Chat> publisherChat { };
3708};
3709
3710TGBOT_API void from_json(const nlohmann::json& json, Gift& value);
3711TGBOT_API void to_json(nlohmann::json& json, const Gift& value);
3712
3718 using Ptr = std::shared_ptr<GiftBackground>;
3719
3723 std::int32_t centerColor { };
3727 std::int32_t edgeColor { };
3731 std::int32_t textColor { };
3732};
3733
3734TGBOT_API void from_json(const nlohmann::json& json, GiftBackground& value);
3735TGBOT_API void to_json(nlohmann::json& json, const GiftBackground& value);
3736
3741struct GiftInfo {
3742 using Ptr = std::shared_ptr<GiftInfo>;
3743
3747 std::shared_ptr<Gift> gift { };
3752 std::optional<std::string> ownedGiftId { };
3757 std::optional<std::int32_t> convertStarCount { };
3761 std::optional<std::int32_t> prepaidUpgradeStarCount { };
3765 std::optional<bool> isUpgradeSeparate { };
3769 std::optional<bool> canBeUpgraded { };
3773 std::optional<std::string> text { };
3777 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
3782 std::optional<bool> isPrivate { };
3787 std::optional<std::int32_t> uniqueGiftNumber { };
3788};
3789
3790TGBOT_API void from_json(const nlohmann::json& json, GiftInfo& value);
3791TGBOT_API void to_json(nlohmann::json& json, const GiftInfo& value);
3792
3797struct Gifts {
3798 using Ptr = std::shared_ptr<Gifts>;
3799
3803 std::vector<std::shared_ptr<Gift>> gifts { };
3804};
3805
3806TGBOT_API void from_json(const nlohmann::json& json, Gifts& value);
3807TGBOT_API void to_json(nlohmann::json& json, const Gifts& value);
3808
3813struct Giveaway {
3814 using Ptr = std::shared_ptr<Giveaway>;
3815
3819 std::vector<std::shared_ptr<Chat>> chats { };
3823 std::int32_t winnersSelectionDate { };
3827 std::int32_t winnerCount { };
3832 std::optional<bool> onlyNewMembers { };
3836 std::optional<bool> hasPublicWinners { };
3840 std::optional<std::string> prizeDescription { };
3847 std::optional<std::vector<std::string>> countryCodes { };
3852 std::optional<std::int32_t> prizeStarCount { };
3857 std::optional<std::int32_t> premiumSubscriptionMonthCount { };
3858};
3859
3860TGBOT_API void from_json(const nlohmann::json& json, Giveaway& value);
3861TGBOT_API void to_json(nlohmann::json& json, const Giveaway& value);
3862
3869 using Ptr = std::shared_ptr<GiveawayCompleted>;
3870
3874 std::int32_t winnerCount { };
3878 std::optional<std::int32_t> unclaimedPrizeCount { };
3882 std::shared_ptr<Message> giveawayMessage { };
3887 std::optional<bool> isStarGiveaway { };
3888};
3889
3890TGBOT_API void from_json(const nlohmann::json& json, GiveawayCompleted& value);
3891TGBOT_API void to_json(nlohmann::json& json, const GiveawayCompleted& value);
3892
3898 using Ptr = std::shared_ptr<GiveawayCreated>;
3899
3904 std::optional<std::int32_t> prizeStarCount { };
3905};
3906
3907TGBOT_API void from_json(const nlohmann::json& json, GiveawayCreated& value);
3908TGBOT_API void to_json(nlohmann::json& json, const GiveawayCreated& value);
3909
3915 using Ptr = std::shared_ptr<GiveawayWinners>;
3916
3920 std::shared_ptr<Chat> chat { };
3924 std::int32_t giveawayMessageId { };
3928 std::int32_t winnersSelectionDate { };
3932 std::int32_t winnerCount { };
3936 std::vector<std::shared_ptr<User>> winners { };
3941 std::optional<std::int32_t> additionalChatCount { };
3946 std::optional<std::int32_t> prizeStarCount { };
3951 std::optional<std::int32_t> premiumSubscriptionMonthCount { };
3955 std::optional<std::int32_t> unclaimedPrizeCount { };
3960 std::optional<bool> onlyNewMembers { };
3964 std::optional<bool> wasRefunded { };
3968 std::optional<std::string> prizeDescription { };
3969};
3970
3971TGBOT_API void from_json(const nlohmann::json& json, GiveawayWinners& value);
3972TGBOT_API void to_json(nlohmann::json& json, const GiveawayWinners& value);
3973
3979 using Ptr = std::shared_ptr<InaccessibleMessage>;
3980
3984 std::shared_ptr<Chat> chat { };
3988 std::int32_t messageId { };
3992 std::int32_t date { };
3993};
3994
3995TGBOT_API void from_json(const nlohmann::json& json, InaccessibleMessage& value);
3996TGBOT_API void to_json(nlohmann::json& json, const InaccessibleMessage& value);
3997
4004 using Ptr = std::shared_ptr<InlineKeyboardButton>;
4005
4009 std::string text { };
4016 std::optional<std::string> iconCustomEmojiId { };
4021 std::optional<std::string> style { };
4027 std::optional<std::string> url { };
4032 std::optional<std::string> callbackData { };
4039 std::shared_ptr<WebAppInfo> webApp { };
4044 std::shared_ptr<LoginUrl> loginUrl { };
4052 std::optional<std::string> switchInlineQuery { };
4061 std::optional<std::string> switchInlineQueryCurrentChat { };
4068 std::shared_ptr<SwitchInlineQueryChosenChat> switchInlineQueryChosenChat { };
4072 std::shared_ptr<CopyTextButton> copyText { };
4077 std::shared_ptr<CallbackGame> callbackGame { };
4083 std::optional<bool> pay { };
4087 std::shared_ptr<DisabledButton> disabled { };
4088};
4089
4090TGBOT_API void from_json(const nlohmann::json& json, InlineKeyboardButton& value);
4091TGBOT_API void to_json(nlohmann::json& json, const InlineKeyboardButton& value);
4092
4099 using Ptr = std::shared_ptr<InlineKeyboardMarkup>;
4100
4104 std::vector<std::vector<std::shared_ptr<InlineKeyboardButton>>> inlineKeyboard { };
4110 std::optional<bool> forceReply { };
4111};
4112
4113TGBOT_API void from_json(const nlohmann::json& json, InlineKeyboardMarkup& value);
4114TGBOT_API void to_json(nlohmann::json& json, const InlineKeyboardMarkup& value);
4115
4122 using Ptr = std::shared_ptr<InlineQuery>;
4123
4127 std::string id { };
4131 std::shared_ptr<User> from { };
4135 std::string query { };
4139 std::string offset { };
4146 std::optional<std::string> chatType { };
4150 std::shared_ptr<Location> location { };
4151};
4152
4153TGBOT_API void from_json(const nlohmann::json& json, InlineQuery& value);
4154TGBOT_API void to_json(nlohmann::json& json, const InlineQuery& value);
4155
4170 using Ptr = std::shared_ptr<InlineQueryResult>;
4171
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>>
4183};
4184
4185TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResult& value);
4186TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResult& value);
4187
4193 using Ptr = std::shared_ptr<InlineQueryResultArticle>;
4194
4195 static TGBOT_API const std::string TYPE;
4196
4200 std::string type { TYPE };
4204 std::string id { };
4208 std::string title { };
4212 std::shared_ptr<InputMessageContent> inputMessageContent { };
4216 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4220 std::optional<std::string> url { };
4224 std::optional<std::string> description { };
4228 std::optional<std::string> thumbnailUrl { };
4232 std::optional<std::int32_t> thumbnailWidth { };
4236 std::optional<std::int32_t> thumbnailHeight { };
4237};
4238
4239TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultArticle& value);
4240TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultArticle& value);
4241
4249 using Ptr = std::shared_ptr<InlineQueryResultAudio>;
4250
4251 static TGBOT_API const std::string TYPE;
4252
4256 std::string type { TYPE };
4260 std::string id { };
4264 std::string audioUrl { };
4268 std::string title { };
4272 std::optional<std::string> caption { };
4277 std::optional<std::string> parseMode { };
4282 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4286 std::optional<std::string> performer { };
4290 std::optional<std::int32_t> audioDuration { };
4294 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4298 std::shared_ptr<InputMessageContent> inputMessageContent { };
4299};
4300
4301TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultAudio& value);
4302TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultAudio& value);
4303
4311 using Ptr = std::shared_ptr<InlineQueryResultCachedAudio>;
4312
4313 static TGBOT_API const std::string TYPE;
4314
4318 std::string type { TYPE };
4322 std::string id { };
4326 std::string audioFileId { };
4330 std::optional<std::string> caption { };
4335 std::optional<std::string> parseMode { };
4340 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4344 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4348 std::shared_ptr<InputMessageContent> inputMessageContent { };
4349};
4350
4351TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedAudio& value);
4352TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedAudio& value);
4353
4361 using Ptr = std::shared_ptr<InlineQueryResultCachedDocument>;
4362
4363 static TGBOT_API const std::string TYPE;
4364
4368 std::string type { TYPE };
4372 std::string id { };
4376 std::string title { };
4380 std::string documentFileId { };
4384 std::optional<std::string> description { };
4388 std::optional<std::string> caption { };
4393 std::optional<std::string> parseMode { };
4398 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4402 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4406 std::shared_ptr<InputMessageContent> inputMessageContent { };
4407};
4408
4409TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedDocument& value);
4410TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedDocument& value);
4411
4419 using Ptr = std::shared_ptr<InlineQueryResultCachedGif>;
4420
4421 static TGBOT_API const std::string TYPE;
4422
4426 std::string type { TYPE };
4430 std::string id { };
4434 std::string gifFileId { };
4438 std::optional<std::string> title { };
4442 std::optional<std::string> caption { };
4447 std::optional<std::string> parseMode { };
4452 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4456 std::optional<bool> showCaptionAboveMedia { };
4460 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4464 std::shared_ptr<InputMessageContent> inputMessageContent { };
4465};
4466
4467TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedGif& value);
4468TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedGif& value);
4469
4478 using Ptr = std::shared_ptr<InlineQueryResultCachedMpeg4Gif>;
4479
4480 static TGBOT_API const std::string TYPE;
4481
4485 std::string type { TYPE };
4489 std::string id { };
4493 std::string mpeg4FileId { };
4497 std::optional<std::string> title { };
4502 std::optional<std::string> caption { };
4507 std::optional<std::string> parseMode { };
4512 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4516 std::optional<bool> showCaptionAboveMedia { };
4520 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4524 std::shared_ptr<InputMessageContent> inputMessageContent { };
4525};
4526
4527TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedMpeg4Gif& value);
4528TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedMpeg4Gif& value);
4529
4537 using Ptr = std::shared_ptr<InlineQueryResultCachedPhoto>;
4538
4539 static TGBOT_API const std::string TYPE;
4540
4544 std::string type { TYPE };
4548 std::string id { };
4552 std::string photoFileId { };
4556 std::optional<std::string> title { };
4560 std::optional<std::string> description { };
4564 std::optional<std::string> caption { };
4569 std::optional<std::string> parseMode { };
4574 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4578 std::optional<bool> showCaptionAboveMedia { };
4582 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4586 std::shared_ptr<InputMessageContent> inputMessageContent { };
4587};
4588
4589TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedPhoto& value);
4590TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedPhoto& value);
4591
4599 using Ptr = std::shared_ptr<InlineQueryResultCachedSticker>;
4600
4601 static TGBOT_API const std::string TYPE;
4602
4606 std::string type { TYPE };
4610 std::string id { };
4614 std::string stickerFileId { };
4618 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4622 std::shared_ptr<InputMessageContent> inputMessageContent { };
4623};
4624
4625TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedSticker& value);
4626TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedSticker& value);
4627
4635 using Ptr = std::shared_ptr<InlineQueryResultCachedVideo>;
4636
4637 static TGBOT_API const std::string TYPE;
4638
4642 std::string type { TYPE };
4646 std::string id { };
4650 std::string videoFileId { };
4654 std::string title { };
4658 std::optional<std::string> description { };
4662 std::optional<std::string> caption { };
4667 std::optional<std::string> parseMode { };
4672 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4676 std::optional<bool> showCaptionAboveMedia { };
4680 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4684 std::shared_ptr<InputMessageContent> inputMessageContent { };
4685};
4686
4687TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedVideo& value);
4688TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedVideo& value);
4689
4697 using Ptr = std::shared_ptr<InlineQueryResultCachedVoice>;
4698
4699 static TGBOT_API const std::string TYPE;
4700
4704 std::string type { TYPE };
4708 std::string id { };
4712 std::string voiceFileId { };
4716 std::string title { };
4720 std::optional<std::string> caption { };
4725 std::optional<std::string> parseMode { };
4730 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4734 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4738 std::shared_ptr<InputMessageContent> inputMessageContent { };
4739};
4740
4741TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedVoice& value);
4742TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedVoice& value);
4743
4751 using Ptr = std::shared_ptr<InlineQueryResultContact>;
4752
4753 static TGBOT_API const std::string TYPE;
4754
4758 std::string type { TYPE };
4762 std::string id { };
4766 std::string phoneNumber { };
4770 std::string firstName { };
4774 std::optional<std::string> lastName { };
4778 std::optional<std::string> vcard { };
4782 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4786 std::shared_ptr<InputMessageContent> inputMessageContent { };
4790 std::optional<std::string> thumbnailUrl { };
4794 std::optional<std::int32_t> thumbnailWidth { };
4798 std::optional<std::int32_t> thumbnailHeight { };
4799};
4800
4801TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultContact& value);
4802TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultContact& value);
4803
4812 using Ptr = std::shared_ptr<InlineQueryResultDocument>;
4813
4814 static TGBOT_API const std::string TYPE;
4815
4819 std::string type { TYPE };
4823 std::string id { };
4827 std::string title { };
4831 std::optional<std::string> caption { };
4836 std::optional<std::string> parseMode { };
4841 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4845 std::string documentUrl { };
4849 std::string mimeType { };
4853 std::optional<std::string> description { };
4857 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4861 std::shared_ptr<InputMessageContent> inputMessageContent { };
4865 std::optional<std::string> thumbnailUrl { };
4869 std::optional<std::int32_t> thumbnailWidth { };
4873 std::optional<std::int32_t> thumbnailHeight { };
4874};
4875
4876TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultDocument& value);
4877TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultDocument& value);
4878
4884 using Ptr = std::shared_ptr<InlineQueryResultGame>;
4885
4886 static TGBOT_API const std::string TYPE;
4887
4891 std::string type { TYPE };
4895 std::string id { };
4899 std::string gameShortName { };
4903 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4904};
4905
4906TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultGame& value);
4907TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultGame& value);
4908
4916 using Ptr = std::shared_ptr<InlineQueryResultGif>;
4917
4918 static TGBOT_API const std::string TYPE;
4919
4923 std::string type { TYPE };
4927 std::string id { };
4931 std::string gifUrl { };
4935 std::optional<std::int32_t> gifWidth { };
4939 std::optional<std::int32_t> gifHeight { };
4943 std::optional<std::int32_t> gifDuration { };
4947 std::string thumbnailUrl { };
4952 std::optional<std::string> thumbnailMimeType { };
4956 std::optional<std::string> title { };
4960 std::optional<std::string> caption { };
4965 std::optional<std::string> parseMode { };
4970 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4974 std::optional<bool> showCaptionAboveMedia { };
4978 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4982 std::shared_ptr<InputMessageContent> inputMessageContent { };
4983};
4984
4985TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultGif& value);
4986TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultGif& value);
4987
4995 using Ptr = std::shared_ptr<InlineQueryResultLocation>;
4996
4997 static TGBOT_API const std::string TYPE;
4998
5002 std::string type { TYPE };
5006 std::string id { };
5010 double latitude { };
5014 double longitude { };
5018 std::string title { };
5022 std::optional<double> horizontalAccuracy { };
5027 std::optional<std::int32_t> livePeriod { };
5032 std::optional<std::int32_t> heading { };
5037 std::optional<std::int32_t> proximityAlertRadius { };
5041 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5045 std::shared_ptr<InputMessageContent> inputMessageContent { };
5049 std::optional<std::string> thumbnailUrl { };
5053 std::optional<std::int32_t> thumbnailWidth { };
5057 std::optional<std::int32_t> thumbnailHeight { };
5058};
5059
5060TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultLocation& value);
5061TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultLocation& value);
5062
5071 using Ptr = std::shared_ptr<InlineQueryResultMpeg4Gif>;
5072
5073 static TGBOT_API const std::string TYPE;
5074
5078 std::string type { TYPE };
5082 std::string id { };
5086 std::string mpeg4Url { };
5090 std::optional<std::int32_t> mpeg4Width { };
5094 std::optional<std::int32_t> mpeg4Height { };
5098 std::optional<std::int32_t> mpeg4Duration { };
5102 std::string thumbnailUrl { };
5107 std::optional<std::string> thumbnailMimeType { };
5111 std::optional<std::string> title { };
5116 std::optional<std::string> caption { };
5121 std::optional<std::string> parseMode { };
5126 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5130 std::optional<bool> showCaptionAboveMedia { };
5134 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5138 std::shared_ptr<InputMessageContent> inputMessageContent { };
5139};
5140
5141TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultMpeg4Gif& value);
5142TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultMpeg4Gif& value);
5143
5151 using Ptr = std::shared_ptr<InlineQueryResultPhoto>;
5152
5153 static TGBOT_API const std::string TYPE;
5154
5158 std::string type { TYPE };
5162 std::string id { };
5166 std::string photoUrl { };
5170 std::string thumbnailUrl { };
5174 std::optional<std::int32_t> photoWidth { };
5178 std::optional<std::int32_t> photoHeight { };
5182 std::optional<std::string> title { };
5186 std::optional<std::string> description { };
5190 std::optional<std::string> caption { };
5195 std::optional<std::string> parseMode { };
5200 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5204 std::optional<bool> showCaptionAboveMedia { };
5208 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5212 std::shared_ptr<InputMessageContent> inputMessageContent { };
5213};
5214
5215TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultPhoto& value);
5216TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultPhoto& value);
5217
5224 using Ptr = std::shared_ptr<InlineQueryResultVenue>;
5225
5226 static TGBOT_API const std::string TYPE;
5227
5231 std::string type { TYPE };
5235 std::string id { };
5239 double latitude { };
5243 double longitude { };
5247 std::string title { };
5251 std::string address { };
5255 std::optional<std::string> foursquareId { };
5260 std::optional<std::string> foursquareType { };
5264 std::optional<std::string> googlePlaceId { };
5268 std::optional<std::string> googlePlaceType { };
5272 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5276 std::shared_ptr<InputMessageContent> inputMessageContent { };
5280 std::optional<std::string> thumbnailUrl { };
5284 std::optional<std::int32_t> thumbnailWidth { };
5288 std::optional<std::int32_t> thumbnailHeight { };
5289};
5290
5291TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultVenue& value);
5292TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultVenue& value);
5293
5301 using Ptr = std::shared_ptr<InlineQueryResultVideo>;
5302
5303 static TGBOT_API const std::string TYPE;
5304
5308 std::string type { TYPE };
5312 std::string id { };
5316 std::string videoUrl { };
5320 std::string mimeType { };
5324 std::string thumbnailUrl { };
5328 std::string title { };
5332 std::optional<std::string> caption { };
5337 std::optional<std::string> parseMode { };
5342 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5346 std::optional<bool> showCaptionAboveMedia { };
5350 std::optional<std::int32_t> videoWidth { };
5354 std::optional<std::int32_t> videoHeight { };
5358 std::optional<std::int32_t> videoDuration { };
5362 std::optional<std::string> description { };
5366 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5372 std::shared_ptr<InputMessageContent> inputMessageContent { };
5373};
5374
5375TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultVideo& value);
5376TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultVideo& value);
5377
5386 using Ptr = std::shared_ptr<InlineQueryResultVoice>;
5387
5388 static TGBOT_API const std::string TYPE;
5389
5393 std::string type { TYPE };
5397 std::string id { };
5401 std::string voiceUrl { };
5405 std::string title { };
5409 std::optional<std::string> caption { };
5414 std::optional<std::string> parseMode { };
5419 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5423 std::optional<std::int32_t> voiceDuration { };
5427 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5431 std::shared_ptr<InputMessageContent> inputMessageContent { };
5432};
5433
5434TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultVoice& value);
5435TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultVoice& value);
5436
5443 using Ptr = std::shared_ptr<InlineQueryResultsButton>;
5444
5448 std::string text { };
5454 std::shared_ptr<WebAppInfo> webApp { };
5466 std::optional<std::string> startParameter { };
5467};
5468
5469TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultsButton& value);
5470TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultsButton& value);
5471
5477 using Ptr = std::shared_ptr<InputChecklist>;
5478
5482 std::string title { };
5487 std::optional<std::string> parseMode { };
5493 std::optional<std::vector<std::shared_ptr<MessageEntity>>> titleEntities { };
5497 std::vector<std::shared_ptr<InputChecklistTask>> tasks { };
5501 std::optional<bool> othersCanAddTasks { };
5505 std::optional<bool> othersCanMarkTasksAsDone { };
5506};
5507
5508TGBOT_API void from_json(const nlohmann::json& json, InputChecklist& value);
5509TGBOT_API void to_json(nlohmann::json& json, const InputChecklist& value);
5510
5516 using Ptr = std::shared_ptr<InputChecklistTask>;
5517
5522 std::int32_t id { };
5526 std::string text { };
5531 std::optional<std::string> parseMode { };
5537 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
5538};
5539
5540TGBOT_API void from_json(const nlohmann::json& json, InputChecklistTask& value);
5541TGBOT_API void to_json(nlohmann::json& json, const InputChecklistTask& value);
5542
5548 using Ptr = std::shared_ptr<InputContactMessageContent>;
5549
5553 std::string phoneNumber { };
5557 std::string firstName { };
5561 std::optional<std::string> lastName { };
5565 std::optional<std::string> vcard { };
5566};
5567
5568TGBOT_API void from_json(const nlohmann::json& json, InputContactMessageContent& value);
5569TGBOT_API void to_json(nlohmann::json& json, const InputContactMessageContent& value);
5570
5576 using Ptr = std::shared_ptr<InputInvoiceMessageContent>;
5577
5581 std::string title { };
5585 std::string description { };
5590 std::string payload { };
5595 std::optional<std::string> providerToken { };
5600 std::string currency { };
5606 std::vector<std::shared_ptr<LabeledPrice>> prices { };
5614 std::optional<std::int32_t> maxTipAmount { };
5621 std::optional<std::vector<std::int32_t>> suggestedTipAmounts { };
5627 std::optional<std::string> providerData { };
5632 std::optional<std::string> photoUrl { };
5636 std::optional<std::int32_t> photoSize { };
5640 std::optional<std::int32_t> photoWidth { };
5644 std::optional<std::int32_t> photoHeight { };
5649 std::optional<bool> needName { };
5654 std::optional<bool> needPhoneNumber { };
5659 std::optional<bool> needEmail { };
5664 std::optional<bool> needShippingAddress { };
5669 std::optional<bool> sendPhoneNumberToProvider { };
5674 std::optional<bool> sendEmailToProvider { };
5679 std::optional<bool> isFlexible { };
5680};
5681
5682TGBOT_API void from_json(const nlohmann::json& json, InputInvoiceMessageContent& value);
5683TGBOT_API void to_json(nlohmann::json& json, const InputInvoiceMessageContent& value);
5684
5690 using Ptr = std::shared_ptr<InputLocationMessageContent>;
5691
5695 double latitude { };
5699 double longitude { };
5703 std::optional<double> horizontalAccuracy { };
5708 std::optional<std::int32_t> livePeriod { };
5713 std::optional<std::int32_t> heading { };
5718 std::optional<std::int32_t> proximityAlertRadius { };
5719};
5720
5721TGBOT_API void from_json(const nlohmann::json& json, InputLocationMessageContent& value);
5722TGBOT_API void to_json(nlohmann::json& json, const InputLocationMessageContent& value);
5723
5731 using Ptr = std::shared_ptr<InputMedia>;
5732
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>>
5737};
5738
5739TGBOT_API void from_json(const nlohmann::json& json, InputMedia& value);
5740TGBOT_API void to_json(nlohmann::json& json, const InputMedia& value);
5741
5747 using Ptr = std::shared_ptr<InputMediaAnimation>;
5748
5749 static TGBOT_API const std::string TYPE;
5750
5754 std::string type { TYPE };
5761 std::string media { };
5771 std::optional<std::string> thumbnail { };
5775 std::optional<std::string> caption { };
5780 std::optional<std::string> parseMode { };
5785 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5789 std::optional<bool> showCaptionAboveMedia { };
5793 std::optional<std::int32_t> width { };
5797 std::optional<std::int32_t> height { };
5801 std::optional<std::int32_t> duration { };
5805 std::optional<bool> hasSpoiler { };
5806};
5807
5808TGBOT_API void from_json(const nlohmann::json& json, InputMediaAnimation& value);
5809TGBOT_API void to_json(nlohmann::json& json, const InputMediaAnimation& value);
5810
5816 using Ptr = std::shared_ptr<InputMediaAudio>;
5817
5818 static TGBOT_API const std::string TYPE;
5819
5823 std::string type { TYPE };
5830 std::string media { };
5840 std::optional<std::string> thumbnail { };
5844 std::optional<std::string> caption { };
5849 std::optional<std::string> parseMode { };
5854 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5858 std::optional<std::int32_t> duration { };
5862 std::optional<std::string> performer { };
5866 std::optional<std::string> title { };
5867};
5868
5869TGBOT_API void from_json(const nlohmann::json& json, InputMediaAudio& value);
5870TGBOT_API void to_json(nlohmann::json& json, const InputMediaAudio& value);
5871
5877 using Ptr = std::shared_ptr<InputMediaDocument>;
5878
5879 static TGBOT_API const std::string TYPE;
5880
5884 std::string type { TYPE };
5891 std::string media { };
5901 std::optional<std::string> thumbnail { };
5905 std::optional<std::string> caption { };
5910 std::optional<std::string> parseMode { };
5915 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5920 std::optional<bool> disableContentTypeDetection { };
5921};
5922
5923TGBOT_API void from_json(const nlohmann::json& json, InputMediaDocument& value);
5924TGBOT_API void to_json(nlohmann::json& json, const InputMediaDocument& value);
5925
5931 using Ptr = std::shared_ptr<InputMediaLink>;
5932
5933 static TGBOT_API const std::string TYPE;
5934
5938 std::string type { TYPE };
5942 std::string url { };
5943};
5944
5945TGBOT_API void from_json(const nlohmann::json& json, InputMediaLink& value);
5946TGBOT_API void to_json(nlohmann::json& json, const InputMediaLink& value);
5947
5953 using Ptr = std::shared_ptr<InputMediaLivePhoto>;
5954
5955 static TGBOT_API const std::string TYPE;
5956
5960 std::string type { TYPE };
5967 std::string media { };
5974 std::string photo { };
5978 std::optional<std::string> caption { };
5983 std::optional<std::string> parseMode { };
5988 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5992 std::optional<bool> showCaptionAboveMedia { };
5996 std::optional<bool> hasSpoiler { };
5997};
5998
5999TGBOT_API void from_json(const nlohmann::json& json, InputMediaLivePhoto& value);
6000TGBOT_API void to_json(nlohmann::json& json, const InputMediaLivePhoto& value);
6001
6007 using Ptr = std::shared_ptr<InputMediaLocation>;
6008
6009 static TGBOT_API const std::string TYPE;
6010
6014 std::string type { TYPE };
6018 double latitude { };
6022 double longitude { };
6026 std::optional<double> horizontalAccuracy { };
6027};
6028
6029TGBOT_API void from_json(const nlohmann::json& json, InputMediaLocation& value);
6030TGBOT_API void to_json(nlohmann::json& json, const InputMediaLocation& value);
6031
6037 using Ptr = std::shared_ptr<InputMediaPhoto>;
6038
6039 static TGBOT_API const std::string TYPE;
6040
6044 std::string type { TYPE };
6051 std::string media { };
6055 std::optional<std::string> caption { };
6060 std::optional<std::string> parseMode { };
6065 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6069 std::optional<bool> showCaptionAboveMedia { };
6073 std::optional<bool> hasSpoiler { };
6074};
6075
6076TGBOT_API void from_json(const nlohmann::json& json, InputMediaPhoto& value);
6077TGBOT_API void to_json(nlohmann::json& json, const InputMediaPhoto& value);
6078
6084 using Ptr = std::shared_ptr<InputMediaSticker>;
6085
6086 static TGBOT_API const std::string TYPE;
6087
6091 std::string type { TYPE };
6099 std::string media { };
6103 std::optional<std::string> emoji { };
6104};
6105
6106TGBOT_API void from_json(const nlohmann::json& json, InputMediaSticker& value);
6107TGBOT_API void to_json(nlohmann::json& json, const InputMediaSticker& value);
6108
6114 using Ptr = std::shared_ptr<InputMediaVenue>;
6115
6116 static TGBOT_API const std::string TYPE;
6117
6121 std::string type { TYPE };
6125 double latitude { };
6129 double longitude { };
6133 std::string title { };
6137 std::string address { };
6141 std::optional<std::string> foursquareId { };
6146 std::optional<std::string> foursquareType { };
6150 std::optional<std::string> googlePlaceId { };
6154 std::optional<std::string> googlePlaceType { };
6155};
6156
6157TGBOT_API void from_json(const nlohmann::json& json, InputMediaVenue& value);
6158TGBOT_API void to_json(nlohmann::json& json, const InputMediaVenue& value);
6159
6165 using Ptr = std::shared_ptr<InputMediaVideo>;
6166
6167 static TGBOT_API const std::string TYPE;
6168
6172 std::string type { TYPE };
6179 std::string media { };
6189 std::optional<std::string> thumbnail { };
6196 std::optional<std::string> cover { };
6200 std::optional<std::int32_t> startTimestamp { };
6204 std::optional<std::string> caption { };
6209 std::optional<std::string> parseMode { };
6214 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6218 std::optional<bool> showCaptionAboveMedia { };
6222 std::optional<std::int32_t> width { };
6226 std::optional<std::int32_t> height { };
6230 std::optional<std::int32_t> duration { };
6234 std::optional<bool> supportsStreaming { };
6238 std::optional<bool> hasSpoiler { };
6239};
6240
6241TGBOT_API void from_json(const nlohmann::json& json, InputMediaVideo& value);
6242TGBOT_API void to_json(nlohmann::json& json, const InputMediaVideo& value);
6243
6249 using Ptr = std::shared_ptr<InputMediaVoiceNote>;
6250
6251 static TGBOT_API const std::string TYPE;
6252
6256 std::string type { TYPE };
6263 std::string media { };
6268 std::optional<std::string> caption { };
6273 std::optional<std::string> parseMode { };
6278 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6282 std::optional<std::int32_t> duration { };
6283};
6284
6285TGBOT_API void from_json(const nlohmann::json& json, InputMediaVoiceNote& value);
6286TGBOT_API void to_json(nlohmann::json& json, const InputMediaVoiceNote& value);
6287
6296 using Ptr = std::shared_ptr<InputMessageContent>;
6297
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>>
6302};
6303
6304TGBOT_API void from_json(const nlohmann::json& json, InputMessageContent& value);
6305TGBOT_API void to_json(nlohmann::json& json, const InputMessageContent& value);
6306
6313 using Ptr = std::shared_ptr<InputPaidMedia>;
6314
6315 std::variant<std::shared_ptr<InputPaidMediaLivePhoto>, std::shared_ptr<InputPaidMediaPhoto>,
6316 std::shared_ptr<InputPaidMediaVideo>>
6318};
6319
6320TGBOT_API void from_json(const nlohmann::json& json, InputPaidMedia& value);
6321TGBOT_API void to_json(nlohmann::json& json, const InputPaidMedia& value);
6322
6328 using Ptr = std::shared_ptr<InputPaidMediaLivePhoto>;
6329
6330 static TGBOT_API const std::string TYPE;
6331
6335 std::string type { TYPE };
6342 std::string media { };
6349 std::string photo { };
6350};
6351
6352TGBOT_API void from_json(const nlohmann::json& json, InputPaidMediaLivePhoto& value);
6353TGBOT_API void to_json(nlohmann::json& json, const InputPaidMediaLivePhoto& value);
6354
6360 using Ptr = std::shared_ptr<InputPaidMediaPhoto>;
6361
6362 static TGBOT_API const std::string TYPE;
6363
6367 std::string type { TYPE };
6374 std::string media { };
6375};
6376
6377TGBOT_API void from_json(const nlohmann::json& json, InputPaidMediaPhoto& value);
6378TGBOT_API void to_json(nlohmann::json& json, const InputPaidMediaPhoto& value);
6379
6385 using Ptr = std::shared_ptr<InputPaidMediaVideo>;
6386
6387 static TGBOT_API const std::string TYPE;
6388
6392 std::string type { TYPE };
6399 std::string media { };
6409 std::optional<std::string> thumbnail { };
6416 std::optional<std::string> cover { };
6420 std::optional<std::int32_t> startTimestamp { };
6424 std::optional<std::int32_t> width { };
6428 std::optional<std::int32_t> height { };
6432 std::optional<std::int32_t> duration { };
6436 std::optional<bool> supportsStreaming { };
6437};
6438
6439TGBOT_API void from_json(const nlohmann::json& json, InputPaidMediaVideo& value);
6440TGBOT_API void to_json(nlohmann::json& json, const InputPaidMediaVideo& value);
6441
6449 using Ptr = std::shared_ptr<InputPollMedia>;
6450
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>>
6456};
6457
6458TGBOT_API void from_json(const nlohmann::json& json, InputPollMedia& value);
6459TGBOT_API void to_json(nlohmann::json& json, const InputPollMedia& value);
6460
6466 using Ptr = std::shared_ptr<InputPollOption>;
6467
6471 std::string text { };
6476 std::optional<std::string> textParseMode { };
6481 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
6485 std::shared_ptr<InputPollOptionMedia> media { };
6486};
6487
6488TGBOT_API void from_json(const nlohmann::json& json, InputPollOption& value);
6489TGBOT_API void to_json(nlohmann::json& json, const InputPollOption& value);
6490
6498 using Ptr = std::shared_ptr<InputPollOptionMedia>;
6499
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>>
6505};
6506
6507TGBOT_API void from_json(const nlohmann::json& json, InputPollOptionMedia& value);
6508TGBOT_API void to_json(nlohmann::json& json, const InputPollOptionMedia& value);
6509
6516 using Ptr = std::shared_ptr<InputProfilePhoto>;
6517
6518 std::variant<std::shared_ptr<InputProfilePhotoStatic>, std::shared_ptr<InputProfilePhotoAnimated>> value;
6519};
6520
6521TGBOT_API void from_json(const nlohmann::json& json, InputProfilePhoto& value);
6522TGBOT_API void to_json(nlohmann::json& json, const InputProfilePhoto& value);
6523
6529 using Ptr = std::shared_ptr<InputProfilePhotoAnimated>;
6530
6531 static TGBOT_API const std::string TYPE;
6532
6536 std::string type { TYPE };
6542 std::string animation { };
6547 std::optional<double> mainFrameTimestamp { };
6548};
6549
6550TGBOT_API void from_json(const nlohmann::json& json, InputProfilePhotoAnimated& value);
6551TGBOT_API void to_json(nlohmann::json& json, const InputProfilePhotoAnimated& value);
6552
6558 using Ptr = std::shared_ptr<InputProfilePhotoStatic>;
6559
6560 static TGBOT_API const std::string TYPE;
6561
6565 std::string type { TYPE };
6571 std::string photo { };
6572};
6573
6574TGBOT_API void from_json(const nlohmann::json& json, InputProfilePhotoStatic& value);
6575TGBOT_API void to_json(nlohmann::json& json, const InputProfilePhotoStatic& value);
6576
6590 using Ptr = std::shared_ptr<InputRichBlock>;
6591
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>>
6605};
6606
6607TGBOT_API void from_json(const nlohmann::json& json, InputRichBlock& value);
6608TGBOT_API void to_json(nlohmann::json& json, const InputRichBlock& value);
6609
6615 using Ptr = std::shared_ptr<InputRichBlockAnchor>;
6616
6617 static TGBOT_API const std::string TYPE;
6618
6622 std::string type { TYPE };
6626 std::string name { };
6627};
6628
6629TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockAnchor& value);
6630TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockAnchor& value);
6631
6637 using Ptr = std::shared_ptr<InputRichBlockAnimation>;
6638
6639 static TGBOT_API const std::string TYPE;
6640
6644 std::string type { TYPE };
6648 std::shared_ptr<InputMediaAnimation> animation { };
6652 std::shared_ptr<RichBlockCaption> caption { };
6653};
6654
6655TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockAnimation& value);
6656TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockAnimation& value);
6657
6663 using Ptr = std::shared_ptr<InputRichBlockAudio>;
6664
6665 static TGBOT_API const std::string TYPE;
6666
6670 std::string type { TYPE };
6674 std::shared_ptr<InputMediaAudio> audio { };
6678 std::shared_ptr<RichBlockCaption> caption { };
6679};
6680
6681TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockAudio& value);
6682TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockAudio& value);
6683
6689 using Ptr = std::shared_ptr<InputRichBlockBlockQuotation>;
6690
6691 static TGBOT_API const std::string TYPE;
6692
6696 std::string type { TYPE };
6700 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
6704 std::shared_ptr<RichText> credit { };
6705};
6706
6707TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockBlockQuotation& value);
6708TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockBlockQuotation& value);
6709
6716 using Ptr = std::shared_ptr<InputRichBlockButtons>;
6717
6718 static TGBOT_API const std::string TYPE;
6719
6723 std::string type { TYPE };
6727 std::vector<std::shared_ptr<RichMessageButton>> buttons { };
6732 std::optional<std::string> align { };
6733};
6734
6735TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockButtons& value);
6736TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockButtons& value);
6737
6743 using Ptr = std::shared_ptr<InputRichBlockCollage>;
6744
6745 static TGBOT_API const std::string TYPE;
6746
6750 std::string type { TYPE };
6754 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
6758 std::shared_ptr<RichBlockCaption> caption { };
6759};
6760
6761TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockCollage& value);
6762TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockCollage& value);
6763
6769 using Ptr = std::shared_ptr<InputRichBlockDetails>;
6770
6771 static TGBOT_API const std::string TYPE;
6772
6776 std::string type { TYPE };
6780 std::shared_ptr<RichText> summary { };
6784 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
6788 std::optional<bool> isOpen { };
6789};
6790
6791TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockDetails& value);
6792TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockDetails& value);
6793
6799 using Ptr = std::shared_ptr<InputRichBlockDivider>;
6800
6801 static TGBOT_API const std::string TYPE;
6802
6806 std::string type { TYPE };
6807};
6808
6809TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockDivider& value);
6810TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockDivider& value);
6811
6817 using Ptr = std::shared_ptr<InputRichBlockDocument>;
6818
6819 static TGBOT_API const std::string TYPE;
6820
6824 std::string type { TYPE };
6828 std::shared_ptr<InputMediaDocument> document { };
6832 std::shared_ptr<RichBlockCaption> caption { };
6833};
6834
6835TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockDocument& value);
6836TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockDocument& value);
6837
6844 using Ptr = std::shared_ptr<InputRichBlockExpandableBlockQuotation>;
6845
6846 static TGBOT_API const std::string TYPE;
6847
6851 std::string type { TYPE };
6855 std::shared_ptr<RichText> text { };
6859 std::shared_ptr<RichText> credit { };
6860};
6861
6862TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockExpandableBlockQuotation& value);
6863TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockExpandableBlockQuotation& value);
6864
6870 using Ptr = std::shared_ptr<InputRichBlockFooter>;
6871
6872 static TGBOT_API const std::string TYPE;
6873
6877 std::string type { TYPE };
6881 std::shared_ptr<RichText> text { };
6882};
6883
6884TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockFooter& value);
6885TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockFooter& value);
6886
6892 using Ptr = std::shared_ptr<InputRichBlockList>;
6893
6894 static TGBOT_API const std::string TYPE;
6895
6899 std::string type { TYPE };
6903 std::vector<std::shared_ptr<InputRichBlockListItem>> items { };
6904};
6905
6906TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockList& value);
6907TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockList& value);
6908
6914 using Ptr = std::shared_ptr<InputRichBlockListItem>;
6915
6919 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
6923 std::optional<bool> hasCheckbox { };
6927 std::optional<bool> isChecked { };
6931 std::optional<std::int32_t> value { };
6937 std::optional<std::string> type { };
6938};
6939
6940TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockListItem& value);
6941TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockListItem& value);
6942
6949 using Ptr = std::shared_ptr<InputRichBlockMap>;
6950
6951 static TGBOT_API const std::string TYPE;
6952
6956 std::string type { TYPE };
6960 std::shared_ptr<Location> location { };
6964 std::optional<std::int32_t> zoom { };
6968 std::optional<std::int32_t> width { };
6972 std::optional<std::int32_t> height { };
6976 std::shared_ptr<RichBlockCaption> caption { };
6977};
6978
6979TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockMap& value);
6980TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockMap& value);
6981
6988 using Ptr = std::shared_ptr<InputRichBlockMathematicalExpression>;
6989
6990 static TGBOT_API const std::string TYPE;
6991
6995 std::string type { TYPE };
6999 std::string expression { };
7000};
7001
7002TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockMathematicalExpression& value);
7003TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockMathematicalExpression& value);
7004
7010 using Ptr = std::shared_ptr<InputRichBlockParagraph>;
7011
7012 static TGBOT_API const std::string TYPE;
7013
7017 std::string type { TYPE };
7021 std::shared_ptr<RichText> text { };
7022};
7023
7024TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockParagraph& value);
7025TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockParagraph& value);
7026
7032 using Ptr = std::shared_ptr<InputRichBlockPhoto>;
7033
7034 static TGBOT_API const std::string TYPE;
7035
7039 std::string type { TYPE };
7043 std::shared_ptr<InputMediaPhoto> photo { };
7047 std::shared_ptr<RichBlockCaption> caption { };
7048};
7049
7050TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockPhoto& value);
7051TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockPhoto& value);
7052
7058 using Ptr = std::shared_ptr<InputRichBlockPreformatted>;
7059
7060 static TGBOT_API const std::string TYPE;
7061
7065 std::string type { TYPE };
7069 std::shared_ptr<RichText> text { };
7073 std::optional<std::string> language { };
7074};
7075
7076TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockPreformatted& value);
7077TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockPreformatted& value);
7078
7084 using Ptr = std::shared_ptr<InputRichBlockPullQuotation>;
7085
7086 static TGBOT_API const std::string TYPE;
7087
7091 std::string type { TYPE };
7095 std::shared_ptr<RichText> text { };
7099 std::shared_ptr<RichText> credit { };
7100};
7101
7102TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockPullQuotation& value);
7103TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockPullQuotation& value);
7104
7110 using Ptr = std::shared_ptr<InputRichBlockSectionHeading>;
7111
7112 static TGBOT_API const std::string TYPE;
7113
7117 std::string type { TYPE };
7121 std::shared_ptr<RichText> text { };
7125 std::int32_t size { };
7126};
7127
7128TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockSectionHeading& value);
7129TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockSectionHeading& value);
7130
7136 using Ptr = std::shared_ptr<InputRichBlockSlideshow>;
7137
7138 static TGBOT_API const std::string TYPE;
7139
7143 std::string type { TYPE };
7147 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
7151 std::shared_ptr<RichBlockCaption> caption { };
7152};
7153
7154TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockSlideshow& value);
7155TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockSlideshow& value);
7156
7162 using Ptr = std::shared_ptr<InputRichBlockTable>;
7163
7164 static TGBOT_API const std::string TYPE;
7165
7169 std::string type { TYPE };
7173 std::vector<std::vector<std::shared_ptr<RichBlockTableCell>>> cells { };
7177 std::optional<bool> isBordered { };
7181 std::optional<bool> isStriped { };
7185 std::optional<bool> isCompact { };
7189 std::shared_ptr<RichText> caption { };
7190};
7191
7192TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockTable& value);
7193TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockTable& value);
7194
7203 using Ptr = std::shared_ptr<InputRichBlockThinking>;
7204
7205 static TGBOT_API const std::string TYPE;
7206
7210 std::string type { TYPE };
7215 std::shared_ptr<RichText> text { };
7216};
7217
7218TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockThinking& value);
7219TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockThinking& value);
7220
7226 using Ptr = std::shared_ptr<InputRichBlockVideo>;
7227
7228 static TGBOT_API const std::string TYPE;
7229
7233 std::string type { TYPE };
7237 std::shared_ptr<InputMediaVideo> video { };
7241 std::shared_ptr<RichBlockCaption> caption { };
7242};
7243
7244TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockVideo& value);
7245TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockVideo& value);
7246
7252 using Ptr = std::shared_ptr<InputRichBlockVoiceNote>;
7253
7254 static TGBOT_API const std::string TYPE;
7255
7259 std::string type { TYPE };
7263 std::shared_ptr<InputMediaVoiceNote> voiceNote { };
7267 std::shared_ptr<RichBlockCaption> caption { };
7268};
7269
7270TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockVoiceNote& value);
7271TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockVoiceNote& value);
7272
7279 using Ptr = std::shared_ptr<InputRichMessage>;
7280
7284 std::optional<std::vector<std::shared_ptr<InputRichBlock>>> blocks { };
7290 std::optional<std::string> html { };
7296 std::optional<std::string> markdown { };
7301 std::optional<std::vector<std::shared_ptr<InputRichMessageMedia>>> media { };
7305 std::optional<bool> isRtl { };
7311 std::optional<bool> skipEntityDetection { };
7312};
7313
7314TGBOT_API void from_json(const nlohmann::json& json, InputRichMessage& value);
7315TGBOT_API void to_json(nlohmann::json& json, const InputRichMessage& value);
7316
7322 using Ptr = std::shared_ptr<InputRichMessageContent>;
7323
7327 std::shared_ptr<InputRichMessage> richMessage { };
7328};
7329
7330TGBOT_API void from_json(const nlohmann::json& json, InputRichMessageContent& value);
7331TGBOT_API void to_json(nlohmann::json& json, const InputRichMessageContent& value);
7332
7338 using Ptr = std::shared_ptr<InputRichMessageMedia>;
7339
7345 std::string id { };
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>>
7353};
7354
7355TGBOT_API void from_json(const nlohmann::json& json, InputRichMessageMedia& value);
7356TGBOT_API void to_json(nlohmann::json& json, const InputRichMessageMedia& value);
7357
7363 using Ptr = std::shared_ptr<InputSticker>;
7364
7372 std::string sticker { };
7377 std::string format { };
7381 std::vector<std::string> emojiList { };
7385 std::shared_ptr<MaskPosition> maskPosition { };
7390 std::optional<std::vector<std::string>> keywords { };
7391};
7392
7393TGBOT_API void from_json(const nlohmann::json& json, InputSticker& value);
7394TGBOT_API void to_json(nlohmann::json& json, const InputSticker& value);
7395
7402 using Ptr = std::shared_ptr<InputStoryContent>;
7403
7404 std::variant<std::shared_ptr<InputStoryContentPhoto>, std::shared_ptr<InputStoryContentVideo>> value;
7405};
7406
7407TGBOT_API void from_json(const nlohmann::json& json, InputStoryContent& value);
7408TGBOT_API void to_json(nlohmann::json& json, const InputStoryContent& value);
7409
7415 using Ptr = std::shared_ptr<InputStoryContentPhoto>;
7416
7417 static TGBOT_API const std::string TYPE;
7418
7422 std::string type { TYPE };
7429 std::string photo { };
7430};
7431
7432TGBOT_API void from_json(const nlohmann::json& json, InputStoryContentPhoto& value);
7433TGBOT_API void to_json(nlohmann::json& json, const InputStoryContentPhoto& value);
7434
7440 using Ptr = std::shared_ptr<InputStoryContentVideo>;
7441
7442 static TGBOT_API const std::string TYPE;
7443
7447 std::string type { TYPE };
7455 std::string video { };
7459 std::optional<double> duration { };
7464 std::optional<double> coverFrameTimestamp { };
7468 std::optional<bool> isAnimation { };
7469};
7470
7471TGBOT_API void from_json(const nlohmann::json& json, InputStoryContentVideo& value);
7472TGBOT_API void to_json(nlohmann::json& json, const InputStoryContentVideo& value);
7473
7479 using Ptr = std::shared_ptr<InputTextMessageContent>;
7480
7484 std::string messageText { };
7489 std::optional<std::string> parseMode { };
7494 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
7498 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions { };
7499};
7500
7501TGBOT_API void from_json(const nlohmann::json& json, InputTextMessageContent& value);
7502TGBOT_API void to_json(nlohmann::json& json, const InputTextMessageContent& value);
7503
7509 using Ptr = std::shared_ptr<InputVenueMessageContent>;
7510
7514 double latitude { };
7518 double longitude { };
7522 std::string title { };
7526 std::string address { };
7530 std::optional<std::string> foursquareId { };
7535 std::optional<std::string> foursquareType { };
7539 std::optional<std::string> googlePlaceId { };
7543 std::optional<std::string> googlePlaceType { };
7544};
7545
7546TGBOT_API void from_json(const nlohmann::json& json, InputVenueMessageContent& value);
7547TGBOT_API void to_json(nlohmann::json& json, const InputVenueMessageContent& value);
7548
7553struct Invoice {
7554 using Ptr = std::shared_ptr<Invoice>;
7555
7559 std::string title { };
7563 std::string description { };
7567 std::string startParameter { };
7571 std::string currency { };
7578 std::int32_t totalAmount { };
7579};
7580
7581TGBOT_API void from_json(const nlohmann::json& json, Invoice& value);
7582TGBOT_API void to_json(nlohmann::json& json, const Invoice& value);
7583
7592 using Ptr = std::shared_ptr<KeyboardButton>;
7593
7598 std::string text { };
7605 std::optional<std::string> iconCustomEmojiId { };
7610 std::optional<std::string> style { };
7616 std::shared_ptr<KeyboardButtonRequestUsers> requestUsers { };
7622 std::shared_ptr<KeyboardButtonRequestChat> requestChat { };
7628 std::shared_ptr<KeyboardButtonRequestManagedBot> requestManagedBot { };
7633 std::optional<bool> requestContact { };
7638 std::optional<bool> requestLocation { };
7643 std::shared_ptr<KeyboardButtonPollType> requestPoll { };
7649 std::shared_ptr<WebAppInfo> webApp { };
7650};
7651
7652TGBOT_API void from_json(const nlohmann::json& json, KeyboardButton& value);
7653TGBOT_API void to_json(nlohmann::json& json, const KeyboardButton& value);
7654
7661 using Ptr = std::shared_ptr<KeyboardButtonPollType>;
7662
7668 std::optional<std::string> type { };
7669};
7670
7671TGBOT_API void from_json(const nlohmann::json& json, KeyboardButtonPollType& value);
7672TGBOT_API void to_json(nlohmann::json& json, const KeyboardButtonPollType& value);
7673
7681 using Ptr = std::shared_ptr<KeyboardButtonRequestChat>;
7682
7687 std::int32_t requestId { };
7696 std::optional<bool> chatIsForum { };
7702 std::optional<bool> chatHasUsername { };
7707 std::optional<bool> chatIsCreated { };
7713 std::shared_ptr<ChatAdministratorRights> userAdministratorRights { };
7719 std::shared_ptr<ChatAdministratorRights> botAdministratorRights { };
7724 std::optional<bool> botIsMember { };
7728 std::optional<bool> requestTitle { };
7732 std::optional<bool> requestUsername { };
7736 std::optional<bool> requestPhoto { };
7737};
7738
7739TGBOT_API void from_json(const nlohmann::json& json, KeyboardButtonRequestChat& value);
7740TGBOT_API void to_json(nlohmann::json& json, const KeyboardButtonRequestChat& value);
7741
7749 using Ptr = std::shared_ptr<KeyboardButtonRequestManagedBot>;
7750
7754 std::int32_t requestId { };
7758 std::optional<std::string> suggestedName { };
7762 std::optional<std::string> suggestedUsername { };
7763};
7764
7765TGBOT_API void from_json(const nlohmann::json& json, KeyboardButtonRequestManagedBot& value);
7766TGBOT_API void to_json(nlohmann::json& json, const KeyboardButtonRequestManagedBot& value);
7767
7775 using Ptr = std::shared_ptr<KeyboardButtonRequestUsers>;
7776
7781 std::int32_t requestId { };
7786 std::optional<bool> userIsBot { };
7791 std::optional<bool> userIsPremium { };
7795 std::optional<std::int32_t> maxQuantity { };
7799 std::optional<bool> requestName { };
7803 std::optional<bool> requestUsername { };
7807 std::optional<bool> requestPhoto { };
7808};
7809
7810TGBOT_API void from_json(const nlohmann::json& json, KeyboardButtonRequestUsers& value);
7811TGBOT_API void to_json(nlohmann::json& json, const KeyboardButtonRequestUsers& value);
7812
7818 using Ptr = std::shared_ptr<LabeledPrice>;
7819
7823 std::string label { };
7830 std::int32_t amount { };
7831};
7832
7833TGBOT_API void from_json(const nlohmann::json& json, LabeledPrice& value);
7834TGBOT_API void to_json(nlohmann::json& json, const LabeledPrice& value);
7835
7840struct Link {
7841 using Ptr = std::shared_ptr<Link>;
7842
7846 std::string url { };
7847};
7848
7849TGBOT_API void from_json(const nlohmann::json& json, Link& value);
7850TGBOT_API void to_json(nlohmann::json& json, const Link& value);
7851
7857 using Ptr = std::shared_ptr<LinkPreviewOptions>;
7858
7862 std::optional<bool> isDisabled { };
7867 std::optional<std::string> url { };
7872 std::optional<bool> preferSmallMedia { };
7877 std::optional<bool> preferLargeMedia { };
7882 std::optional<bool> showAboveText { };
7883};
7884
7885TGBOT_API void from_json(const nlohmann::json& json, LinkPreviewOptions& value);
7886TGBOT_API void to_json(nlohmann::json& json, const LinkPreviewOptions& value);
7887
7893 using Ptr = std::shared_ptr<LivePhoto>;
7894
7898 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
7902 std::string fileId { };
7907 std::string fileUniqueId { };
7911 std::int32_t width { };
7915 std::int32_t height { };
7919 std::int32_t duration { };
7923 std::optional<std::string> mimeType { };
7930 std::optional<std::int64_t> fileSize { };
7931};
7932
7933TGBOT_API void from_json(const nlohmann::json& json, LivePhoto& value);
7934TGBOT_API void to_json(nlohmann::json& json, const LivePhoto& value);
7935
7940struct Location {
7941 using Ptr = std::shared_ptr<Location>;
7942
7946 double latitude { };
7950 double longitude { };
7954 std::optional<double> horizontalAccuracy { };
7959 std::optional<std::int32_t> livePeriod { };
7964 std::optional<std::int32_t> heading { };
7969 std::optional<std::int32_t> proximityAlertRadius { };
7970};
7971
7972TGBOT_API void from_json(const nlohmann::json& json, Location& value);
7973TGBOT_API void to_json(nlohmann::json& json, const Location& value);
7974
7980 using Ptr = std::shared_ptr<LocationAddress>;
7981
7986 std::string countryCode { };
7990 std::optional<std::string> state { };
7994 std::optional<std::string> city { };
7998 std::optional<std::string> street { };
7999};
8000
8001TGBOT_API void from_json(const nlohmann::json& json, LocationAddress& value);
8002TGBOT_API void to_json(nlohmann::json& json, const LocationAddress& value);
8003
8011struct LoginUrl {
8012 using Ptr = std::shared_ptr<LoginUrl>;
8013
8022 std::string url { };
8026 std::optional<std::string> forwardText { };
8033 std::optional<std::string> botUsername { };
8037 std::optional<bool> requestWriteAccess { };
8038};
8039
8040TGBOT_API void from_json(const nlohmann::json& json, LoginUrl& value);
8041TGBOT_API void to_json(nlohmann::json& json, const LoginUrl& value);
8042
8049 using Ptr = std::shared_ptr<ManagedBotCreated>;
8050
8055 std::shared_ptr<User> bot { };
8056};
8057
8058TGBOT_API void from_json(const nlohmann::json& json, ManagedBotCreated& value);
8059TGBOT_API void to_json(nlohmann::json& json, const ManagedBotCreated& value);
8060
8067 using Ptr = std::shared_ptr<ManagedBotUpdated>;
8068
8072 std::shared_ptr<User> user { };
8077 std::shared_ptr<User> bot { };
8078};
8079
8080TGBOT_API void from_json(const nlohmann::json& json, ManagedBotUpdated& value);
8081TGBOT_API void to_json(nlohmann::json& json, const ManagedBotUpdated& value);
8082
8088 using Ptr = std::shared_ptr<MaskPosition>;
8089
8094 std::string point { };
8100 double xShift { };
8105 double yShift { };
8109 double scale { };
8110};
8111
8112TGBOT_API void from_json(const nlohmann::json& json, MaskPosition& value);
8113TGBOT_API void to_json(nlohmann::json& json, const MaskPosition& value);
8114
8121 using Ptr = std::shared_ptr<MaybeInaccessibleMessage>;
8122
8123 std::variant<std::shared_ptr<Message>, std::shared_ptr<InaccessibleMessage>> value;
8124};
8125
8126TGBOT_API void from_json(const nlohmann::json& json, MaybeInaccessibleMessage& value);
8127TGBOT_API void to_json(nlohmann::json& json, const MaybeInaccessibleMessage& value);
8128
8137 using Ptr = std::shared_ptr<MenuButton>;
8138
8139 std::variant<std::shared_ptr<MenuButtonCommands>, std::shared_ptr<MenuButtonWebApp>,
8140 std::shared_ptr<MenuButtonDefault>>
8142};
8143
8144TGBOT_API void from_json(const nlohmann::json& json, MenuButton& value);
8145TGBOT_API void to_json(nlohmann::json& json, const MenuButton& value);
8146
8152 using Ptr = std::shared_ptr<MenuButtonCommands>;
8153
8154 static TGBOT_API const std::string TYPE;
8155
8159 std::string type { TYPE };
8160};
8161
8162TGBOT_API void from_json(const nlohmann::json& json, MenuButtonCommands& value);
8163TGBOT_API void to_json(nlohmann::json& json, const MenuButtonCommands& value);
8164
8170 using Ptr = std::shared_ptr<MenuButtonDefault>;
8171
8172 static TGBOT_API const std::string TYPE;
8173
8177 std::string type { TYPE };
8178};
8179
8180TGBOT_API void from_json(const nlohmann::json& json, MenuButtonDefault& value);
8181TGBOT_API void to_json(nlohmann::json& json, const MenuButtonDefault& value);
8182
8188 using Ptr = std::shared_ptr<MenuButtonWebApp>;
8189
8190 static TGBOT_API const std::string TYPE;
8191
8195 std::string type { TYPE };
8199 std::string text { };
8207 std::shared_ptr<WebAppInfo> webApp { };
8208};
8209
8210TGBOT_API void from_json(const nlohmann::json& json, MenuButtonWebApp& value);
8211TGBOT_API void to_json(nlohmann::json& json, const MenuButtonWebApp& value);
8212
8217struct Message {
8218 using Ptr = std::shared_ptr<Message>;
8219
8226 std::int32_t messageId { };
8231 std::optional<std::int32_t> messageThreadId { };
8235 std::shared_ptr<DirectMessagesTopic> directMessagesTopic { };
8241 std::shared_ptr<User> from { };
8249 std::shared_ptr<Chat> senderChat { };
8254 std::optional<std::int32_t> senderBoostCount { };
8259 std::shared_ptr<User> senderBusinessBot { };
8263 std::optional<std::string> senderTag { };
8267 std::shared_ptr<User> receiverUser { };
8273 std::optional<std::int32_t> ephemeralMessageId { };
8278 std::int32_t date { };
8285 std::optional<std::string> guestQueryId { };
8292 std::optional<std::string> businessConnectionId { };
8296 std::shared_ptr<Chat> chat { };
8300 std::shared_ptr<MessageOrigin> forwardOrigin { };
8305 std::optional<bool> isTopicMessage { };
8310 std::optional<bool> isAutomaticForward { };
8317 std::shared_ptr<Message> replyToMessage { };
8322 std::shared_ptr<ExternalReplyInfo> externalReply { };
8327 std::shared_ptr<TextQuote> quote { };
8331 std::shared_ptr<Story> replyToStory { };
8335 std::optional<std::int32_t> replyToChecklistTaskId { };
8339 std::optional<std::string> replyToPollOptionId { };
8343 std::shared_ptr<User> viaBot { };
8348 std::shared_ptr<User> guestBotCallerUser { };
8353 std::shared_ptr<Chat> guestBotCallerChat { };
8357 std::optional<std::int32_t> editDate { };
8361 std::optional<bool> hasProtectedContent { };
8366 std::optional<bool> isFromOffline { };
8371 std::optional<bool> isPaidPost { };
8376 std::optional<std::string> mediaGroupId { };
8381 std::optional<std::string> authorSignature { };
8386 std::optional<std::int32_t> paidStarCount { };
8390 std::optional<std::string> text { };
8395 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
8400 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions { };
8406 std::shared_ptr<SuggestedPostInfo> suggestedPostInfo { };
8410 std::optional<std::string> effectId { };
8414 std::shared_ptr<RichMessage> richMessage { };
8419 std::shared_ptr<Animation> animation { };
8423 std::shared_ptr<Audio> audio { };
8427 std::shared_ptr<Document> document { };
8432 std::shared_ptr<LivePhoto> livePhoto { };
8436 std::shared_ptr<PaidMediaInfo> paidMedia { };
8440 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
8444 std::shared_ptr<Sticker> sticker { };
8448 std::shared_ptr<Story> story { };
8452 std::shared_ptr<Video> video { };
8456 std::shared_ptr<VideoNote> videoNote { };
8460 std::shared_ptr<Voice> voice { };
8464 std::optional<std::string> caption { };
8469 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
8473 std::optional<bool> showCaptionAboveMedia { };
8477 std::optional<bool> hasMediaSpoiler { };
8481 std::shared_ptr<Checklist> checklist { };
8485 std::shared_ptr<Contact> contact { };
8489 std::shared_ptr<Dice> dice { };
8493 std::shared_ptr<Game> game { };
8497 std::shared_ptr<Poll> poll { };
8502 std::shared_ptr<Venue> venue { };
8506 std::shared_ptr<Location> location { };
8511 std::optional<std::vector<std::shared_ptr<User>>> newChatMembers { };
8516 std::shared_ptr<User> leftChatMember { };
8520 std::shared_ptr<ChatOwnerLeft> chatOwnerLeft { };
8524 std::shared_ptr<ChatOwnerChanged> chatOwnerChanged { };
8528 std::optional<std::string> newChatTitle { };
8532 std::optional<std::vector<std::shared_ptr<PhotoSize>>> newChatPhoto { };
8536 std::optional<bool> deleteChatPhoto { };
8540 std::optional<bool> groupChatCreated { };
8547 std::optional<bool> supergroupChatCreated { };
8554 std::optional<bool> channelChatCreated { };
8558 std::shared_ptr<MessageAutoDeleteTimerChanged> messageAutoDeleteTimerChanged { };
8566 std::optional<std::int64_t> migrateToChatId { };
8574 std::optional<std::int64_t> migrateFromChatId { };
8579 std::shared_ptr<MaybeInaccessibleMessage> pinnedMessage { };
8584 std::shared_ptr<Invoice> invoice { };
8589 std::shared_ptr<SuccessfulPayment> successfulPayment { };
8594 std::shared_ptr<RefundedPayment> refundedPayment { };
8598 std::shared_ptr<UsersShared> usersShared { };
8602 std::shared_ptr<ChatShared> chatShared { };
8606 std::shared_ptr<GiftInfo> gift { };
8610 std::shared_ptr<UniqueGiftInfo> uniqueGift { };
8614 std::shared_ptr<GiftInfo> giftUpgradeSent { };
8619 std::optional<std::string> connectedWebsite { };
8625 std::shared_ptr<WriteAccessAllowed> writeAccessAllowed { };
8629 std::shared_ptr<PassportData> passportData { };
8634 std::shared_ptr<ProximityAlertTriggered> proximityAlertTriggered { };
8638 std::shared_ptr<ChatBoostAdded> boostAdded { };
8642 std::shared_ptr<ChatBackground> chatBackgroundSet { };
8646 std::shared_ptr<ChecklistTasksDone> checklistTasksDone { };
8650 std::shared_ptr<ChecklistTasksAdded> checklistTasksAdded { };
8654 std::shared_ptr<CommunityChatAdded> communityChatAdded { };
8658 std::shared_ptr<CommunityChatJoined> communityChatJoined { };
8662 std::shared_ptr<CommunityChatRemoved> communityChatRemoved { };
8667 std::shared_ptr<DirectMessagePriceChanged> directMessagePriceChanged { };
8671 std::shared_ptr<ForumTopicCreated> forumTopicCreated { };
8675 std::shared_ptr<ForumTopicEdited> forumTopicEdited { };
8679 std::shared_ptr<ForumTopicClosed> forumTopicClosed { };
8683 std::shared_ptr<ForumTopicReopened> forumTopicReopened { };
8687 std::shared_ptr<GeneralForumTopicHidden> generalForumTopicHidden { };
8691 std::shared_ptr<GeneralForumTopicUnhidden> generalForumTopicUnhidden { };
8695 std::shared_ptr<GiveawayCreated> giveawayCreated { };
8699 std::shared_ptr<Giveaway> giveaway { };
8703 std::shared_ptr<GiveawayWinners> giveawayWinners { };
8707 std::shared_ptr<GiveawayCompleted> giveawayCompleted { };
8711 std::shared_ptr<ManagedBotCreated> managedBotCreated { };
8715 std::shared_ptr<PaidMessagePriceChanged> paidMessagePriceChanged { };
8719 std::shared_ptr<PollOptionAdded> pollOptionAdded { };
8723 std::shared_ptr<PollOptionDeleted> pollOptionDeleted { };
8727 std::shared_ptr<SuggestedPostApproved> suggestedPostApproved { };
8731 std::shared_ptr<SuggestedPostApprovalFailed> suggestedPostApprovalFailed { };
8735 std::shared_ptr<SuggestedPostDeclined> suggestedPostDeclined { };
8739 std::shared_ptr<SuggestedPostPaid> suggestedPostPaid { };
8743 std::shared_ptr<SuggestedPostRefunded> suggestedPostRefunded { };
8747 std::shared_ptr<VideoChatScheduled> videoChatScheduled { };
8751 std::shared_ptr<VideoChatStarted> videoChatStarted { };
8755 std::shared_ptr<VideoChatEnded> videoChatEnded { };
8759 std::shared_ptr<VideoChatParticipantsInvited> videoChatParticipantsInvited { };
8763 std::shared_ptr<WebAppData> webAppData { };
8768 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
8769};
8770
8771TGBOT_API void from_json(const nlohmann::json& json, Message& value);
8772TGBOT_API void to_json(nlohmann::json& json, const Message& value);
8773
8779 using Ptr = std::shared_ptr<MessageAutoDeleteTimerChanged>;
8780
8784 std::int32_t messageAutoDeleteTime { };
8785};
8786
8787TGBOT_API void from_json(const nlohmann::json& json, MessageAutoDeleteTimerChanged& value);
8788TGBOT_API void to_json(nlohmann::json& json, const MessageAutoDeleteTimerChanged& value);
8789
8796 using Ptr = std::shared_ptr<MessageEntity>;
8797
8798 enum class Type {
8799 Mention,
8800 Hashtag,
8801 Cashtag,
8803 Url,
8804 Email,
8805 PhoneNumber,
8806 Bold,
8807 Italic,
8808 Underline,
8809 Strikethrough,
8810 Spoiler,
8811 Blockquote,
8812 ExpandableBlockquote,
8813 Code,
8814 Pre,
8815 TextLink,
8816 TextMention,
8817 CustomEmoji,
8818 DateTime
8819 };
8820
8836 std::int32_t offset { };
8840 std::int32_t length { };
8844 std::optional<std::string> url { };
8848 std::shared_ptr<User> user { };
8852 std::optional<std::string> language { };
8857 std::optional<std::string> customEmojiId { };
8861 std::optional<std::int32_t> unixTime { };
8866 std::optional<std::string> dateTimeFormat { };
8867};
8868
8869TGBOT_API void from_json(const nlohmann::json& json, MessageEntity::Type& value);
8870TGBOT_API void to_json(nlohmann::json& json, const MessageEntity::Type& value);
8871
8872TGBOT_API void from_json(const nlohmann::json& json, MessageEntity& value);
8873TGBOT_API void to_json(nlohmann::json& json, const MessageEntity& value);
8874
8880 using Ptr = std::shared_ptr<MessageGenerationStopped>;
8881
8885 std::shared_ptr<Chat> chat { };
8889 std::optional<std::int32_t> messageThreadId { };
8893 std::int32_t draftId { };
8894};
8895
8896TGBOT_API void from_json(const nlohmann::json& json, MessageGenerationStopped& value);
8897TGBOT_API void to_json(nlohmann::json& json, const MessageGenerationStopped& value);
8898
8904 using Ptr = std::shared_ptr<MessageId>;
8905
8912 std::int32_t messageId { };
8913};
8914
8915TGBOT_API void from_json(const nlohmann::json& json, MessageId& value);
8916TGBOT_API void to_json(nlohmann::json& json, const MessageId& value);
8917
8924 using Ptr = std::shared_ptr<MessageOrigin>;
8925
8926 std::variant<std::shared_ptr<MessageOriginUser>, std::shared_ptr<MessageOriginHiddenUser>,
8927 std::shared_ptr<MessageOriginChat>, std::shared_ptr<MessageOriginChannel>>
8929};
8930
8931TGBOT_API void from_json(const nlohmann::json& json, MessageOrigin& value);
8932TGBOT_API void to_json(nlohmann::json& json, const MessageOrigin& value);
8933
8939 using Ptr = std::shared_ptr<MessageOriginChannel>;
8940
8941 static TGBOT_API const std::string TYPE;
8942
8946 std::string type { TYPE };
8950 std::int32_t date { };
8954 std::shared_ptr<Chat> chat { };
8958 std::int32_t messageId { };
8962 std::optional<std::string> authorSignature { };
8963};
8964
8965TGBOT_API void from_json(const nlohmann::json& json, MessageOriginChannel& value);
8966TGBOT_API void to_json(nlohmann::json& json, const MessageOriginChannel& value);
8967
8973 using Ptr = std::shared_ptr<MessageOriginChat>;
8974
8975 static TGBOT_API const std::string TYPE;
8976
8980 std::string type { TYPE };
8984 std::int32_t date { };
8988 std::shared_ptr<Chat> senderChat { };
8993 std::optional<std::string> authorSignature { };
8994};
8995
8996TGBOT_API void from_json(const nlohmann::json& json, MessageOriginChat& value);
8997TGBOT_API void to_json(nlohmann::json& json, const MessageOriginChat& value);
8998
9004 using Ptr = std::shared_ptr<MessageOriginHiddenUser>;
9005
9006 static TGBOT_API const std::string TYPE;
9007
9011 std::string type { TYPE };
9015 std::int32_t date { };
9019 std::string senderUserName { };
9020};
9021
9022TGBOT_API void from_json(const nlohmann::json& json, MessageOriginHiddenUser& value);
9023TGBOT_API void to_json(nlohmann::json& json, const MessageOriginHiddenUser& value);
9024
9030 using Ptr = std::shared_ptr<MessageOriginUser>;
9031
9032 static TGBOT_API const std::string TYPE;
9033
9037 std::string type { TYPE };
9041 std::int32_t date { };
9045 std::shared_ptr<User> senderUser { };
9046};
9047
9048TGBOT_API void from_json(const nlohmann::json& json, MessageOriginUser& value);
9049TGBOT_API void to_json(nlohmann::json& json, const MessageOriginUser& value);
9050
9056 using Ptr = std::shared_ptr<MessageReactionCountUpdated>;
9057
9061 std::shared_ptr<Chat> chat { };
9065 std::int32_t messageId { };
9069 std::int32_t date { };
9073 std::vector<std::shared_ptr<ReactionCount>> reactions { };
9074};
9075
9076TGBOT_API void from_json(const nlohmann::json& json, MessageReactionCountUpdated& value);
9077TGBOT_API void to_json(nlohmann::json& json, const MessageReactionCountUpdated& value);
9078
9084 using Ptr = std::shared_ptr<MessageReactionUpdated>;
9085
9089 std::shared_ptr<Chat> chat { };
9093 std::int32_t messageId { };
9097 std::shared_ptr<User> user { };
9101 std::shared_ptr<Chat> actorChat { };
9105 std::int32_t date { };
9109 std::vector<std::shared_ptr<ReactionType>> oldReaction { };
9113 std::vector<std::shared_ptr<ReactionType>> newReaction { };
9114};
9115
9116TGBOT_API void from_json(const nlohmann::json& json, MessageReactionUpdated& value);
9117TGBOT_API void to_json(nlohmann::json& json, const MessageReactionUpdated& value);
9118
9124 using Ptr = std::shared_ptr<OrderInfo>;
9125
9129 std::optional<std::string> name { };
9133 std::optional<std::string> phoneNumber { };
9137 std::optional<std::string> email { };
9141 std::shared_ptr<ShippingAddress> shippingAddress { };
9142};
9143
9144TGBOT_API void from_json(const nlohmann::json& json, OrderInfo& value);
9145TGBOT_API void to_json(nlohmann::json& json, const OrderInfo& value);
9146
9153 using Ptr = std::shared_ptr<OwnedGift>;
9154
9155 std::variant<std::shared_ptr<OwnedGiftRegular>, std::shared_ptr<OwnedGiftUnique>> value;
9156};
9157
9158TGBOT_API void from_json(const nlohmann::json& json, OwnedGift& value);
9159TGBOT_API void to_json(nlohmann::json& json, const OwnedGift& value);
9160
9166 using Ptr = std::shared_ptr<OwnedGiftRegular>;
9167
9168 static TGBOT_API const std::string TYPE;
9169
9173 std::string type { TYPE };
9177 std::shared_ptr<Gift> gift { };
9182 std::optional<std::string> ownedGiftId { };
9186 std::shared_ptr<User> senderUser { };
9190 std::int32_t sendDate { };
9194 std::optional<std::string> text { };
9198 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
9203 std::optional<bool> isPrivate { };
9208 std::optional<bool> isSaved { };
9213 std::optional<bool> canBeUpgraded { };
9217 std::optional<bool> wasRefunded { };
9223 std::optional<std::int32_t> convertStarCount { };
9227 std::optional<std::int32_t> prepaidUpgradeStarCount { };
9232 std::optional<bool> isUpgradeSeparate { };
9237 std::optional<std::int32_t> uniqueGiftNumber { };
9238};
9239
9240TGBOT_API void from_json(const nlohmann::json& json, OwnedGiftRegular& value);
9241TGBOT_API void to_json(nlohmann::json& json, const OwnedGiftRegular& value);
9242
9248 using Ptr = std::shared_ptr<OwnedGiftUnique>;
9249
9250 static TGBOT_API const std::string TYPE;
9251
9255 std::string type { TYPE };
9259 std::shared_ptr<UniqueGift> gift { };
9264 std::optional<std::string> ownedGiftId { };
9268 std::shared_ptr<User> senderUser { };
9272 std::int32_t sendDate { };
9277 std::optional<bool> isSaved { };
9282 std::optional<bool> canBeTransferred { };
9287 std::optional<std::int32_t> transferStarCount { };
9292 std::optional<std::int32_t> nextTransferDate { };
9293};
9294
9295TGBOT_API void from_json(const nlohmann::json& json, OwnedGiftUnique& value);
9296TGBOT_API void to_json(nlohmann::json& json, const OwnedGiftUnique& value);
9297
9303 using Ptr = std::shared_ptr<OwnedGifts>;
9304
9308 std::int32_t totalCount { };
9312 std::vector<std::shared_ptr<OwnedGift>> gifts { };
9316 std::optional<std::string> nextOffset { };
9317};
9318
9319TGBOT_API void from_json(const nlohmann::json& json, OwnedGifts& value);
9320TGBOT_API void to_json(nlohmann::json& json, const OwnedGifts& value);
9321
9328 using Ptr = std::shared_ptr<PaidMedia>;
9329
9330 std::variant<std::shared_ptr<PaidMediaLivePhoto>, std::shared_ptr<PaidMediaPhoto>,
9331 std::shared_ptr<PaidMediaPreview>, std::shared_ptr<PaidMediaVideo>>
9333};
9334
9335TGBOT_API void from_json(const nlohmann::json& json, PaidMedia& value);
9336TGBOT_API void to_json(nlohmann::json& json, const PaidMedia& value);
9337
9343 using Ptr = std::shared_ptr<PaidMediaInfo>;
9344
9348 std::int32_t starCount { };
9352 std::vector<std::shared_ptr<PaidMedia>> paidMedia { };
9353};
9354
9355TGBOT_API void from_json(const nlohmann::json& json, PaidMediaInfo& value);
9356TGBOT_API void to_json(nlohmann::json& json, const PaidMediaInfo& value);
9357
9363 using Ptr = std::shared_ptr<PaidMediaLivePhoto>;
9364
9365 static TGBOT_API const std::string TYPE;
9366
9370 std::string type { TYPE };
9374 std::shared_ptr<LivePhoto> livePhoto { };
9375};
9376
9377TGBOT_API void from_json(const nlohmann::json& json, PaidMediaLivePhoto& value);
9378TGBOT_API void to_json(nlohmann::json& json, const PaidMediaLivePhoto& value);
9379
9385 using Ptr = std::shared_ptr<PaidMediaPhoto>;
9386
9387 static TGBOT_API const std::string TYPE;
9388
9392 std::string type { TYPE };
9396 std::vector<std::shared_ptr<PhotoSize>> photo { };
9397};
9398
9399TGBOT_API void from_json(const nlohmann::json& json, PaidMediaPhoto& value);
9400TGBOT_API void to_json(nlohmann::json& json, const PaidMediaPhoto& value);
9401
9407 using Ptr = std::shared_ptr<PaidMediaPreview>;
9408
9409 static TGBOT_API const std::string TYPE;
9410
9414 std::string type { TYPE };
9418 std::optional<std::int32_t> width { };
9422 std::optional<std::int32_t> height { };
9426 std::optional<std::int32_t> duration { };
9427};
9428
9429TGBOT_API void from_json(const nlohmann::json& json, PaidMediaPreview& value);
9430TGBOT_API void to_json(nlohmann::json& json, const PaidMediaPreview& value);
9431
9437 using Ptr = std::shared_ptr<PaidMediaPurchased>;
9438
9442 std::shared_ptr<User> from { };
9446 std::string paidMediaPayload { };
9447};
9448
9449TGBOT_API void from_json(const nlohmann::json& json, PaidMediaPurchased& value);
9450TGBOT_API void to_json(nlohmann::json& json, const PaidMediaPurchased& value);
9451
9457 using Ptr = std::shared_ptr<PaidMediaVideo>;
9458
9459 static TGBOT_API const std::string TYPE;
9460
9464 std::string type { TYPE };
9468 std::shared_ptr<Video> video { };
9469};
9470
9471TGBOT_API void from_json(const nlohmann::json& json, PaidMediaVideo& value);
9472TGBOT_API void to_json(nlohmann::json& json, const PaidMediaVideo& value);
9473
9479 using Ptr = std::shared_ptr<PaidMessagePriceChanged>;
9480
9485 std::int32_t paidMessageStarCount { };
9486};
9487
9488TGBOT_API void from_json(const nlohmann::json& json, PaidMessagePriceChanged& value);
9489TGBOT_API void to_json(nlohmann::json& json, const PaidMessagePriceChanged& value);
9490
9496 using Ptr = std::shared_ptr<PassportData>;
9497
9502 std::vector<std::shared_ptr<EncryptedPassportElement>> data { };
9506 std::shared_ptr<EncryptedCredentials> credentials { };
9507};
9508
9509TGBOT_API void from_json(const nlohmann::json& json, PassportData& value);
9510TGBOT_API void to_json(nlohmann::json& json, const PassportData& value);
9511
9521 using Ptr = std::shared_ptr<PassportElementError>;
9522
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>>
9530};
9531
9532TGBOT_API void from_json(const nlohmann::json& json, PassportElementError& value);
9533TGBOT_API void to_json(nlohmann::json& json, const PassportElementError& value);
9534
9541 using Ptr = std::shared_ptr<PassportElementErrorDataField>;
9542
9543 static TGBOT_API const std::string SOURCE;
9544
9548 std::string source { SOURCE };
9554 std::string type { };
9558 std::string fieldName { };
9562 std::string dataHash { };
9566 std::string message { };
9567};
9568
9569TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorDataField& value);
9570TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorDataField& value);
9571
9578 using Ptr = std::shared_ptr<PassportElementErrorFile>;
9579
9580 static TGBOT_API const std::string SOURCE;
9581
9585 std::string source { SOURCE };
9590 std::string type { };
9594 std::string fileHash { };
9598 std::string message { };
9599};
9600
9601TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorFile& value);
9602TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorFile& value);
9603
9610 using Ptr = std::shared_ptr<PassportElementErrorFiles>;
9611
9612 static TGBOT_API const std::string SOURCE;
9613
9617 std::string source { SOURCE };
9622 std::string type { };
9626 std::vector<std::string> fileHashes { };
9630 std::string message { };
9631};
9632
9633TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorFiles& value);
9634TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorFiles& value);
9635
9642 using Ptr = std::shared_ptr<PassportElementErrorFrontSide>;
9643
9644 static TGBOT_API const std::string SOURCE;
9645
9649 std::string source { SOURCE };
9654 std::string type { };
9658 std::string fileHash { };
9662 std::string message { };
9663};
9664
9665TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorFrontSide& value);
9666TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorFrontSide& value);
9667
9674 using Ptr = std::shared_ptr<PassportElementErrorReverseSide>;
9675
9676 static TGBOT_API const std::string SOURCE;
9677
9681 std::string source { SOURCE };
9686 std::string type { };
9690 std::string fileHash { };
9694 std::string message { };
9695};
9696
9697TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorReverseSide& value);
9698TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorReverseSide& value);
9699
9706 using Ptr = std::shared_ptr<PassportElementErrorSelfie>;
9707
9708 static TGBOT_API const std::string SOURCE;
9709
9713 std::string source { SOURCE };
9718 std::string type { };
9722 std::string fileHash { };
9726 std::string message { };
9727};
9728
9729TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorSelfie& value);
9730TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorSelfie& value);
9731
9738 using Ptr = std::shared_ptr<PassportElementErrorTranslationFile>;
9739
9740 static TGBOT_API const std::string SOURCE;
9741
9745 std::string source { SOURCE };
9751 std::string type { };
9755 std::string fileHash { };
9759 std::string message { };
9760};
9761
9762TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorTranslationFile& value);
9763TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorTranslationFile& value);
9764
9771 using Ptr = std::shared_ptr<PassportElementErrorTranslationFiles>;
9772
9773 static TGBOT_API const std::string SOURCE;
9774
9778 std::string source { SOURCE };
9784 std::string type { };
9788 std::vector<std::string> fileHashes { };
9792 std::string message { };
9793};
9794
9795TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorTranslationFiles& value);
9796TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorTranslationFiles& value);
9797
9804 using Ptr = std::shared_ptr<PassportElementErrorUnspecified>;
9805
9806 static TGBOT_API const std::string SOURCE;
9807
9811 std::string source { SOURCE };
9815 std::string type { };
9819 std::string elementHash { };
9823 std::string message { };
9824};
9825
9826TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorUnspecified& value);
9827TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorUnspecified& value);
9828
9835 using Ptr = std::shared_ptr<PassportFile>;
9836
9840 std::string fileId { };
9845 std::string fileUniqueId { };
9849 std::int32_t fileSize { };
9853 std::int32_t fileDate { };
9854};
9855
9856TGBOT_API void from_json(const nlohmann::json& json, PassportFile& value);
9857TGBOT_API void to_json(nlohmann::json& json, const PassportFile& value);
9858
9864 using Ptr = std::shared_ptr<PhotoSize>;
9865
9869 std::string fileId { };
9874 std::string fileUniqueId { };
9878 std::int32_t width { };
9882 std::int32_t height { };
9886 std::optional<std::int32_t> fileSize { };
9887};
9888
9889TGBOT_API void from_json(const nlohmann::json& json, PhotoSize& value);
9890TGBOT_API void to_json(nlohmann::json& json, const PhotoSize& value);
9891
9896struct Poll {
9897 using Ptr = std::shared_ptr<Poll>;
9898
9902 std::string id { };
9906 std::string question { };
9911 std::optional<std::vector<std::shared_ptr<MessageEntity>>> questionEntities { };
9915 std::vector<std::shared_ptr<PollOption>> options { };
9919 std::int32_t totalVoterCount { };
9923 bool isClosed { };
9927 bool isAnonymous { };
9931 std::string type { };
9944 bool membersOnly { };
9950 std::optional<std::vector<std::string>> countryCodes { };
9956 std::optional<std::vector<std::int32_t>> correctOptionIds { };
9961 std::optional<std::string> explanation { };
9966 std::optional<std::vector<std::shared_ptr<MessageEntity>>> explanationEntities { };
9970 std::shared_ptr<PollMedia> explanationMedia { };
9974 std::optional<std::int32_t> openPeriod { };
9978 std::optional<std::int32_t> closeDate { };
9982 std::optional<std::string> description { };
9987 std::optional<std::vector<std::shared_ptr<MessageEntity>>> descriptionEntities { };
9991 std::shared_ptr<PollMedia> media { };
9992};
9993
9994TGBOT_API void from_json(const nlohmann::json& json, Poll& value);
9995TGBOT_API void to_json(nlohmann::json& json, const Poll& value);
9996
10002 using Ptr = std::shared_ptr<PollAnswer>;
10003
10007 std::string pollId { };
10011 std::shared_ptr<Chat> voterChat { };
10015 std::shared_ptr<User> user { };
10019 std::vector<std::int32_t> optionIds { };
10024 std::vector<std::string> optionPersistentIds { };
10025};
10026
10027TGBOT_API void from_json(const nlohmann::json& json, PollAnswer& value);
10028TGBOT_API void to_json(nlohmann::json& json, const PollAnswer& value);
10029
10035 using Ptr = std::shared_ptr<PollMedia>;
10036
10040 std::shared_ptr<Animation> animation { };
10045 std::shared_ptr<Audio> audio { };
10050 std::shared_ptr<Document> document { };
10054 std::shared_ptr<Link> link { };
10058 std::shared_ptr<LivePhoto> livePhoto { };
10062 std::shared_ptr<Location> location { };
10066 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
10071 std::shared_ptr<Sticker> sticker { };
10075 std::shared_ptr<Venue> venue { };
10079 std::shared_ptr<Video> video { };
10080};
10081
10082TGBOT_API void from_json(const nlohmann::json& json, PollMedia& value);
10083TGBOT_API void to_json(nlohmann::json& json, const PollMedia& value);
10084
10090 using Ptr = std::shared_ptr<PollOption>;
10091
10095 std::string persistentId { };
10099 std::string text { };
10104 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
10108 std::shared_ptr<PollMedia> media { };
10112 std::int32_t voterCount { };
10117 std::shared_ptr<User> addedByUser { };
10122 std::shared_ptr<Chat> addedByChat { };
10127 std::optional<std::int32_t> additionDate { };
10128};
10129
10130TGBOT_API void from_json(const nlohmann::json& json, PollOption& value);
10131TGBOT_API void to_json(nlohmann::json& json, const PollOption& value);
10132
10138 using Ptr = std::shared_ptr<PollOptionAdded>;
10139
10145 std::shared_ptr<MaybeInaccessibleMessage> pollMessage { };
10149 std::string optionPersistentId { };
10153 std::string optionText { };
10157 std::optional<std::vector<std::shared_ptr<MessageEntity>>> optionTextEntities { };
10158};
10159
10160TGBOT_API void from_json(const nlohmann::json& json, PollOptionAdded& value);
10161TGBOT_API void to_json(nlohmann::json& json, const PollOptionAdded& value);
10162
10168 using Ptr = std::shared_ptr<PollOptionDeleted>;
10169
10175 std::shared_ptr<MaybeInaccessibleMessage> pollMessage { };
10179 std::string optionPersistentId { };
10183 std::string optionText { };
10187 std::optional<std::vector<std::shared_ptr<MessageEntity>>> optionTextEntities { };
10188};
10189
10190TGBOT_API void from_json(const nlohmann::json& json, PollOptionDeleted& value);
10191TGBOT_API void to_json(nlohmann::json& json, const PollOptionDeleted& value);
10192
10198 using Ptr = std::shared_ptr<PreCheckoutQuery>;
10199
10203 std::string id { };
10207 std::shared_ptr<User> from { };
10211 std::string currency { };
10218 std::int32_t totalAmount { };
10222 std::string invoicePayload { };
10226 std::optional<std::string> shippingOptionId { };
10230 std::shared_ptr<OrderInfo> orderInfo { };
10231};
10232
10233TGBOT_API void from_json(const nlohmann::json& json, PreCheckoutQuery& value);
10234TGBOT_API void to_json(nlohmann::json& json, const PreCheckoutQuery& value);
10235
10241 using Ptr = std::shared_ptr<PreparedInlineMessage>;
10242
10246 std::string id { };
10251 std::int32_t expirationDate { };
10252};
10253
10254TGBOT_API void from_json(const nlohmann::json& json, PreparedInlineMessage& value);
10255TGBOT_API void to_json(nlohmann::json& json, const PreparedInlineMessage& value);
10256
10262 using Ptr = std::shared_ptr<PreparedKeyboardButton>;
10263
10267 std::string id { };
10268};
10269
10270TGBOT_API void from_json(const nlohmann::json& json, PreparedKeyboardButton& value);
10271TGBOT_API void to_json(nlohmann::json& json, const PreparedKeyboardButton& value);
10272
10279 using Ptr = std::shared_ptr<ProximityAlertTriggered>;
10280
10284 std::shared_ptr<User> traveler { };
10288 std::shared_ptr<User> watcher { };
10292 std::int32_t distance { };
10293};
10294
10295TGBOT_API void from_json(const nlohmann::json& json, ProximityAlertTriggered& value);
10296TGBOT_API void to_json(nlohmann::json& json, const ProximityAlertTriggered& value);
10297
10303 using Ptr = std::shared_ptr<ReactionCount>;
10304
10308 std::shared_ptr<ReactionType> type { };
10312 std::int32_t totalCount { };
10313};
10314
10315TGBOT_API void from_json(const nlohmann::json& json, ReactionCount& value);
10316TGBOT_API void to_json(nlohmann::json& json, const ReactionCount& value);
10317
10324 using Ptr = std::shared_ptr<ReactionType>;
10325
10326 std::variant<std::shared_ptr<ReactionTypeEmoji>, std::shared_ptr<ReactionTypeCustomEmoji>,
10327 std::shared_ptr<ReactionTypePaid>>
10329};
10330
10331TGBOT_API void from_json(const nlohmann::json& json, ReactionType& value);
10332TGBOT_API void to_json(nlohmann::json& json, const ReactionType& value);
10333
10339 using Ptr = std::shared_ptr<ReactionTypeCustomEmoji>;
10340
10341 static TGBOT_API const std::string TYPE;
10342
10346 std::string type { TYPE };
10350 std::string customEmojiId { };
10351};
10352
10353TGBOT_API void from_json(const nlohmann::json& json, ReactionTypeCustomEmoji& value);
10354TGBOT_API void to_json(nlohmann::json& json, const ReactionTypeCustomEmoji& value);
10355
10361 using Ptr = std::shared_ptr<ReactionTypeEmoji>;
10362
10363 static TGBOT_API const std::string TYPE;
10364
10368 std::string type { TYPE };
10375 std::string emoji { };
10376};
10377
10378TGBOT_API void from_json(const nlohmann::json& json, ReactionTypeEmoji& value);
10379TGBOT_API void to_json(nlohmann::json& json, const ReactionTypeEmoji& value);
10380
10386 using Ptr = std::shared_ptr<ReactionTypePaid>;
10387
10388 static TGBOT_API const std::string TYPE;
10389
10393 std::string type { TYPE };
10394};
10395
10396TGBOT_API void from_json(const nlohmann::json& json, ReactionTypePaid& value);
10397TGBOT_API void to_json(nlohmann::json& json, const ReactionTypePaid& value);
10398
10404 using Ptr = std::shared_ptr<RefundedPayment>;
10405
10410 std::string currency { };
10417 std::int32_t totalAmount { };
10421 std::string invoicePayload { };
10429 std::optional<std::string> providerPaymentChargeId { };
10430};
10431
10432TGBOT_API void from_json(const nlohmann::json& json, RefundedPayment& value);
10433TGBOT_API void to_json(nlohmann::json& json, const RefundedPayment& value);
10434
10442 using Ptr = std::shared_ptr<ReplyKeyboardMarkup>;
10443
10447 std::vector<std::vector<std::shared_ptr<KeyboardButton>>> keyboard { };
10453 std::optional<bool> isPersistent { };
10459 std::optional<bool> resizeKeyboard { };
10466 std::optional<bool> oneTimeKeyboard { };
10471 std::optional<std::string> inputFieldPlaceholder { };
10480 std::optional<bool> selective { };
10485 std::optional<bool> forceReply { };
10486};
10487
10488TGBOT_API void from_json(const nlohmann::json& json, ReplyKeyboardMarkup& value);
10489TGBOT_API void to_json(nlohmann::json& json, const ReplyKeyboardMarkup& value);
10490
10500 using Ptr = std::shared_ptr<ReplyKeyboardRemove>;
10501
10516 std::optional<bool> selective { };
10517};
10518
10519TGBOT_API void from_json(const nlohmann::json& json, ReplyKeyboardRemove& value);
10520TGBOT_API void to_json(nlohmann::json& json, const ReplyKeyboardRemove& value);
10521
10527 using Ptr = std::shared_ptr<ReplyParameters>;
10528
10533 std::optional<std::int32_t> messageId { };
10540 std::optional<std::int64_t> chatId { };
10547 std::optional<std::int32_t> ephemeralMessageId { };
10553 std::optional<bool> allowSendingWithoutReply { };
10561 std::optional<std::string> quote { };
10566 std::optional<std::string> quoteParseMode { };
10571 std::optional<std::vector<std::shared_ptr<MessageEntity>>> quoteEntities { };
10575 std::optional<std::int32_t> quotePosition { };
10579 std::optional<std::int32_t> checklistTaskId { };
10583 std::optional<std::string> pollOptionId { };
10584};
10585
10586TGBOT_API void from_json(const nlohmann::json& json, ReplyParameters& value);
10587TGBOT_API void to_json(nlohmann::json& json, const ReplyParameters& value);
10588
10594 using Ptr = std::shared_ptr<ResponseParameters>;
10595
10603 std::optional<std::int64_t> migrateToChatId { };
10608 std::optional<std::int32_t> retryAfter { };
10609};
10610
10611TGBOT_API void from_json(const nlohmann::json& json, ResponseParameters& value);
10612TGBOT_API void to_json(nlohmann::json& json, const ResponseParameters& value);
10613
10621 using Ptr = std::shared_ptr<RevenueWithdrawalState>;
10622
10623 std::variant<std::shared_ptr<RevenueWithdrawalStatePending>, std::shared_ptr<RevenueWithdrawalStateSucceeded>,
10624 std::shared_ptr<RevenueWithdrawalStateFailed>>
10626};
10627
10628TGBOT_API void from_json(const nlohmann::json& json, RevenueWithdrawalState& value);
10629TGBOT_API void to_json(nlohmann::json& json, const RevenueWithdrawalState& value);
10630
10636 using Ptr = std::shared_ptr<RevenueWithdrawalStateFailed>;
10637
10638 static TGBOT_API const std::string TYPE;
10639
10643 std::string type { TYPE };
10644};
10645
10646TGBOT_API void from_json(const nlohmann::json& json, RevenueWithdrawalStateFailed& value);
10647TGBOT_API void to_json(nlohmann::json& json, const RevenueWithdrawalStateFailed& value);
10648
10654 using Ptr = std::shared_ptr<RevenueWithdrawalStatePending>;
10655
10656 static TGBOT_API const std::string TYPE;
10657
10661 std::string type { TYPE };
10662};
10663
10664TGBOT_API void from_json(const nlohmann::json& json, RevenueWithdrawalStatePending& value);
10665TGBOT_API void to_json(nlohmann::json& json, const RevenueWithdrawalStatePending& value);
10666
10672 using Ptr = std::shared_ptr<RevenueWithdrawalStateSucceeded>;
10673
10674 static TGBOT_API const std::string TYPE;
10675
10679 std::string type { TYPE };
10683 std::int32_t date { };
10687 std::string url { };
10688};
10689
10690TGBOT_API void from_json(const nlohmann::json& json, RevenueWithdrawalStateSucceeded& value);
10691TGBOT_API void to_json(nlohmann::json& json, const RevenueWithdrawalStateSucceeded& value);
10692
10704 using Ptr = std::shared_ptr<RichBlock>;
10705
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>>
10718};
10719
10720TGBOT_API void from_json(const nlohmann::json& json, RichBlock& value);
10721TGBOT_API void to_json(nlohmann::json& json, const RichBlock& value);
10722
10728 using Ptr = std::shared_ptr<RichBlockAnchor>;
10729
10730 static TGBOT_API const std::string TYPE;
10731
10735 std::string type { TYPE };
10739 std::string name { };
10740};
10741
10742TGBOT_API void from_json(const nlohmann::json& json, RichBlockAnchor& value);
10743TGBOT_API void to_json(nlohmann::json& json, const RichBlockAnchor& value);
10744
10750 using Ptr = std::shared_ptr<RichBlockAnimation>;
10751
10752 static TGBOT_API const std::string TYPE;
10753
10757 std::string type { TYPE };
10761 std::shared_ptr<Animation> animation { };
10765 std::optional<bool> hasSpoiler { };
10769 std::shared_ptr<RichBlockCaption> caption { };
10770};
10771
10772TGBOT_API void from_json(const nlohmann::json& json, RichBlockAnimation& value);
10773TGBOT_API void to_json(nlohmann::json& json, const RichBlockAnimation& value);
10774
10780 using Ptr = std::shared_ptr<RichBlockAudio>;
10781
10782 static TGBOT_API const std::string TYPE;
10783
10787 std::string type { TYPE };
10791 std::shared_ptr<Audio> audio { };
10795 std::shared_ptr<RichBlockCaption> caption { };
10796};
10797
10798TGBOT_API void from_json(const nlohmann::json& json, RichBlockAudio& value);
10799TGBOT_API void to_json(nlohmann::json& json, const RichBlockAudio& value);
10800
10806 using Ptr = std::shared_ptr<RichBlockBlockQuotation>;
10807
10808 static TGBOT_API const std::string TYPE;
10809
10813 std::string type { TYPE };
10817 std::vector<std::shared_ptr<RichBlock>> blocks { };
10821 std::shared_ptr<RichText> credit { };
10822};
10823
10824TGBOT_API void from_json(const nlohmann::json& json, RichBlockBlockQuotation& value);
10825TGBOT_API void to_json(nlohmann::json& json, const RichBlockBlockQuotation& value);
10826
10833 using Ptr = std::shared_ptr<RichBlockButtons>;
10834
10835 static TGBOT_API const std::string TYPE;
10836
10840 std::string type { TYPE };
10844 std::vector<std::shared_ptr<RichMessageButton>> buttons { };
10849 std::optional<std::string> align { };
10850};
10851
10852TGBOT_API void from_json(const nlohmann::json& json, RichBlockButtons& value);
10853TGBOT_API void to_json(nlohmann::json& json, const RichBlockButtons& value);
10854
10860 using Ptr = std::shared_ptr<RichBlockCaption>;
10861
10865 std::shared_ptr<RichText> text { };
10869 std::shared_ptr<RichText> credit { };
10870};
10871
10872TGBOT_API void from_json(const nlohmann::json& json, RichBlockCaption& value);
10873TGBOT_API void to_json(nlohmann::json& json, const RichBlockCaption& value);
10874
10880 using Ptr = std::shared_ptr<RichBlockCollage>;
10881
10882 static TGBOT_API const std::string TYPE;
10883
10887 std::string type { TYPE };
10891 std::vector<std::shared_ptr<RichBlock>> blocks { };
10895 std::shared_ptr<RichBlockCaption> caption { };
10896};
10897
10898TGBOT_API void from_json(const nlohmann::json& json, RichBlockCollage& value);
10899TGBOT_API void to_json(nlohmann::json& json, const RichBlockCollage& value);
10900
10906 using Ptr = std::shared_ptr<RichBlockDetails>;
10907
10908 static TGBOT_API const std::string TYPE;
10909
10913 std::string type { TYPE };
10917 std::shared_ptr<RichText> summary { };
10921 std::vector<std::shared_ptr<RichBlock>> blocks { };
10925 std::optional<bool> isOpen { };
10926};
10927
10928TGBOT_API void from_json(const nlohmann::json& json, RichBlockDetails& value);
10929TGBOT_API void to_json(nlohmann::json& json, const RichBlockDetails& value);
10930
10936 using Ptr = std::shared_ptr<RichBlockDivider>;
10937
10938 static TGBOT_API const std::string TYPE;
10939
10943 std::string type { TYPE };
10944};
10945
10946TGBOT_API void from_json(const nlohmann::json& json, RichBlockDivider& value);
10947TGBOT_API void to_json(nlohmann::json& json, const RichBlockDivider& value);
10948
10954 using Ptr = std::shared_ptr<RichBlockDocument>;
10955
10956 static TGBOT_API const std::string TYPE;
10957
10961 std::string type { TYPE };
10965 std::shared_ptr<Document> document { };
10969 std::shared_ptr<RichBlockCaption> caption { };
10970};
10971
10972TGBOT_API void from_json(const nlohmann::json& json, RichBlockDocument& value);
10973TGBOT_API void to_json(nlohmann::json& json, const RichBlockDocument& value);
10974
10981 using Ptr = std::shared_ptr<RichBlockExpandableBlockQuotation>;
10982
10983 static TGBOT_API const std::string TYPE;
10984
10988 std::string type { TYPE };
10992 std::shared_ptr<RichText> text { };
10996 std::shared_ptr<RichText> credit { };
10997};
10998
10999TGBOT_API void from_json(const nlohmann::json& json, RichBlockExpandableBlockQuotation& value);
11000TGBOT_API void to_json(nlohmann::json& json, const RichBlockExpandableBlockQuotation& value);
11001
11007 using Ptr = std::shared_ptr<RichBlockFooter>;
11008
11009 static TGBOT_API const std::string TYPE;
11010
11014 std::string type { TYPE };
11018 std::shared_ptr<RichText> text { };
11019};
11020
11021TGBOT_API void from_json(const nlohmann::json& json, RichBlockFooter& value);
11022TGBOT_API void to_json(nlohmann::json& json, const RichBlockFooter& value);
11023
11029 using Ptr = std::shared_ptr<RichBlockList>;
11030
11031 static TGBOT_API const std::string TYPE;
11032
11036 std::string type { TYPE };
11040 std::vector<std::shared_ptr<RichBlockListItem>> items { };
11041};
11042
11043TGBOT_API void from_json(const nlohmann::json& json, RichBlockList& value);
11044TGBOT_API void to_json(nlohmann::json& json, const RichBlockList& value);
11045
11051 using Ptr = std::shared_ptr<RichBlockListItem>;
11052
11056 std::string label { };
11060 std::vector<std::shared_ptr<RichBlock>> blocks { };
11064 std::optional<bool> hasCheckbox { };
11068 std::optional<bool> isChecked { };
11072 std::optional<std::int32_t> value { };
11078 std::optional<std::string> type { };
11079};
11080
11081TGBOT_API void from_json(const nlohmann::json& json, RichBlockListItem& value);
11082TGBOT_API void to_json(nlohmann::json& json, const RichBlockListItem& value);
11083
11089 using Ptr = std::shared_ptr<RichBlockMap>;
11090
11091 static TGBOT_API const std::string TYPE;
11092
11096 std::string type { TYPE };
11100 std::shared_ptr<Location> location { };
11104 std::int32_t zoom { };
11108 std::int32_t width { };
11112 std::int32_t height { };
11116 std::shared_ptr<RichBlockCaption> caption { };
11117};
11118
11119TGBOT_API void from_json(const nlohmann::json& json, RichBlockMap& value);
11120TGBOT_API void to_json(nlohmann::json& json, const RichBlockMap& value);
11121
11128 using Ptr = std::shared_ptr<RichBlockMathematicalExpression>;
11129
11130 static TGBOT_API const std::string TYPE;
11131
11135 std::string type { TYPE };
11139 std::string expression { };
11140};
11141
11142TGBOT_API void from_json(const nlohmann::json& json, RichBlockMathematicalExpression& value);
11143TGBOT_API void to_json(nlohmann::json& json, const RichBlockMathematicalExpression& value);
11144
11150 using Ptr = std::shared_ptr<RichBlockParagraph>;
11151
11152 static TGBOT_API const std::string TYPE;
11153
11157 std::string type { TYPE };
11161 std::shared_ptr<RichText> text { };
11162};
11163
11164TGBOT_API void from_json(const nlohmann::json& json, RichBlockParagraph& value);
11165TGBOT_API void to_json(nlohmann::json& json, const RichBlockParagraph& value);
11166
11172 using Ptr = std::shared_ptr<RichBlockPhoto>;
11173
11174 static TGBOT_API const std::string TYPE;
11175
11179 std::string type { TYPE };
11183 std::vector<std::shared_ptr<PhotoSize>> photo { };
11187 std::optional<bool> hasSpoiler { };
11191 std::shared_ptr<RichBlockCaption> caption { };
11192};
11193
11194TGBOT_API void from_json(const nlohmann::json& json, RichBlockPhoto& value);
11195TGBOT_API void to_json(nlohmann::json& json, const RichBlockPhoto& value);
11196
11202 using Ptr = std::shared_ptr<RichBlockPreformatted>;
11203
11204 static TGBOT_API const std::string TYPE;
11205
11209 std::string type { TYPE };
11213 std::shared_ptr<RichText> text { };
11217 std::optional<std::string> language { };
11218};
11219
11220TGBOT_API void from_json(const nlohmann::json& json, RichBlockPreformatted& value);
11221TGBOT_API void to_json(nlohmann::json& json, const RichBlockPreformatted& value);
11222
11228 using Ptr = std::shared_ptr<RichBlockPullQuotation>;
11229
11230 static TGBOT_API const std::string TYPE;
11231
11235 std::string type { TYPE };
11239 std::shared_ptr<RichText> text { };
11243 std::shared_ptr<RichText> credit { };
11244};
11245
11246TGBOT_API void from_json(const nlohmann::json& json, RichBlockPullQuotation& value);
11247TGBOT_API void to_json(nlohmann::json& json, const RichBlockPullQuotation& value);
11248
11254 using Ptr = std::shared_ptr<RichBlockSectionHeading>;
11255
11256 static TGBOT_API const std::string TYPE;
11257
11261 std::string type { TYPE };
11265 std::shared_ptr<RichText> text { };
11269 std::int32_t size { };
11270};
11271
11272TGBOT_API void from_json(const nlohmann::json& json, RichBlockSectionHeading& value);
11273TGBOT_API void to_json(nlohmann::json& json, const RichBlockSectionHeading& value);
11274
11280 using Ptr = std::shared_ptr<RichBlockSlideshow>;
11281
11282 static TGBOT_API const std::string TYPE;
11283
11287 std::string type { TYPE };
11291 std::vector<std::shared_ptr<RichBlock>> blocks { };
11295 std::shared_ptr<RichBlockCaption> caption { };
11296};
11297
11298TGBOT_API void from_json(const nlohmann::json& json, RichBlockSlideshow& value);
11299TGBOT_API void to_json(nlohmann::json& json, const RichBlockSlideshow& value);
11300
11306 using Ptr = std::shared_ptr<RichBlockTable>;
11307
11308 static TGBOT_API const std::string TYPE;
11309
11313 std::string type { TYPE };
11317 std::vector<std::vector<std::shared_ptr<RichBlockTableCell>>> cells { };
11321 std::optional<bool> isBordered { };
11325 std::optional<bool> isStriped { };
11329 std::optional<bool> isCompact { };
11333 std::shared_ptr<RichText> caption { };
11334};
11335
11336TGBOT_API void from_json(const nlohmann::json& json, RichBlockTable& value);
11337TGBOT_API void to_json(nlohmann::json& json, const RichBlockTable& value);
11338
11344 using Ptr = std::shared_ptr<RichBlockTableCell>;
11345
11349 std::shared_ptr<RichText> text { };
11353 std::optional<bool> isHeader { };
11357 std::optional<std::int32_t> colspan { };
11361 std::optional<std::int32_t> rowspan { };
11366 std::string align { };
11370 std::string valign { };
11371};
11372
11373TGBOT_API void from_json(const nlohmann::json& json, RichBlockTableCell& value);
11374TGBOT_API void to_json(nlohmann::json& json, const RichBlockTableCell& value);
11375
11384 using Ptr = std::shared_ptr<RichBlockThinking>;
11385
11386 static TGBOT_API const std::string TYPE;
11387
11391 std::string type { TYPE };
11396 std::shared_ptr<RichText> text { };
11397};
11398
11399TGBOT_API void from_json(const nlohmann::json& json, RichBlockThinking& value);
11400TGBOT_API void to_json(nlohmann::json& json, const RichBlockThinking& value);
11401
11407 using Ptr = std::shared_ptr<RichBlockVideo>;
11408
11409 static TGBOT_API const std::string TYPE;
11410
11414 std::string type { TYPE };
11418 std::shared_ptr<Video> video { };
11422 std::optional<bool> hasSpoiler { };
11426 std::shared_ptr<RichBlockCaption> caption { };
11427};
11428
11429TGBOT_API void from_json(const nlohmann::json& json, RichBlockVideo& value);
11430TGBOT_API void to_json(nlohmann::json& json, const RichBlockVideo& value);
11431
11437 using Ptr = std::shared_ptr<RichBlockVoiceNote>;
11438
11439 static TGBOT_API const std::string TYPE;
11440
11444 std::string type { TYPE };
11448 std::shared_ptr<Voice> voiceNote { };
11452 std::shared_ptr<RichBlockCaption> caption { };
11453};
11454
11455TGBOT_API void from_json(const nlohmann::json& json, RichBlockVoiceNote& value);
11456TGBOT_API void to_json(nlohmann::json& json, const RichBlockVoiceNote& value);
11457
11463 using Ptr = std::shared_ptr<RichMessage>;
11464
11468 std::vector<std::shared_ptr<RichBlock>> blocks { };
11472 std::optional<bool> isRtl { };
11473};
11474
11475TGBOT_API void from_json(const nlohmann::json& json, RichMessage& value);
11476TGBOT_API void to_json(nlohmann::json& json, const RichMessage& value);
11477
11484 using Ptr = std::shared_ptr<RichMessageButton>;
11485
11490 std::shared_ptr<RichText> text { };
11497 std::optional<std::string> style { };
11503 std::optional<std::string> url { };
11508 std::optional<std::string> callbackData { };
11515 std::shared_ptr<WebAppInfo> webApp { };
11520 std::shared_ptr<LoginUrl> loginUrl { };
11528 std::optional<std::string> switchInlineQuery { };
11535 std::optional<std::string> switchInlineQueryCurrentChat { };
11542 std::shared_ptr<SwitchInlineQueryChosenChat> switchInlineQueryChosenChat { };
11546 std::shared_ptr<CopyTextButton> copyText { };
11550 std::shared_ptr<DisabledButton> disabled { };
11551};
11552
11553TGBOT_API void from_json(const nlohmann::json& json, RichMessageButton& value);
11554TGBOT_API void to_json(nlohmann::json& json, const RichMessageButton& value);
11555
11566struct RichText {
11567 using Ptr = std::shared_ptr<RichText>;
11568
11569 std::variant<
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>>
11581};
11582
11583TGBOT_API void from_json(const nlohmann::json& json, RichText& value);
11584TGBOT_API void to_json(nlohmann::json& json, const RichText& value);
11585
11591 using Ptr = std::shared_ptr<RichTextAnchor>;
11592
11593 static TGBOT_API const std::string TYPE;
11594
11598 std::string type { TYPE };
11602 std::string name { };
11603};
11604
11605TGBOT_API void from_json(const nlohmann::json& json, RichTextAnchor& value);
11606TGBOT_API void to_json(nlohmann::json& json, const RichTextAnchor& value);
11607
11613 using Ptr = std::shared_ptr<RichTextAnchorLink>;
11614
11615 static TGBOT_API const std::string TYPE;
11616
11620 std::string type { TYPE };
11624 std::shared_ptr<RichText> text { };
11629 std::string anchorName { };
11630};
11631
11632TGBOT_API void from_json(const nlohmann::json& json, RichTextAnchorLink& value);
11633TGBOT_API void to_json(nlohmann::json& json, const RichTextAnchorLink& value);
11634
11640 using Ptr = std::shared_ptr<RichTextBankCardNumber>;
11641
11642 static TGBOT_API const std::string TYPE;
11643
11647 std::string type { TYPE };
11651 std::shared_ptr<RichText> text { };
11655 std::string bankCardNumber { };
11656};
11657
11658TGBOT_API void from_json(const nlohmann::json& json, RichTextBankCardNumber& value);
11659TGBOT_API void to_json(nlohmann::json& json, const RichTextBankCardNumber& value);
11660
11666 using Ptr = std::shared_ptr<RichTextBold>;
11667
11668 static TGBOT_API const std::string TYPE;
11669
11673 std::string type { TYPE };
11677 std::shared_ptr<RichText> text { };
11678};
11679
11680TGBOT_API void from_json(const nlohmann::json& json, RichTextBold& value);
11681TGBOT_API void to_json(nlohmann::json& json, const RichTextBold& value);
11682
11688 using Ptr = std::shared_ptr<RichTextBotCommand>;
11689
11690 static TGBOT_API const std::string TYPE;
11691
11695 std::string type { TYPE };
11699 std::shared_ptr<RichText> text { };
11703 std::string botCommand { };
11704};
11705
11706TGBOT_API void from_json(const nlohmann::json& json, RichTextBotCommand& value);
11707TGBOT_API void to_json(nlohmann::json& json, const RichTextBotCommand& value);
11708
11714 using Ptr = std::shared_ptr<RichTextButton>;
11715
11716 static TGBOT_API const std::string TYPE;
11717
11721 std::string type { TYPE };
11725 std::shared_ptr<RichMessageButton> button { };
11726};
11727
11728TGBOT_API void from_json(const nlohmann::json& json, RichTextButton& value);
11729TGBOT_API void to_json(nlohmann::json& json, const RichTextButton& value);
11730
11736 using Ptr = std::shared_ptr<RichTextCashtag>;
11737
11738 static TGBOT_API const std::string TYPE;
11739
11743 std::string type { TYPE };
11747 std::shared_ptr<RichText> text { };
11751 std::string cashtag { };
11752};
11753
11754TGBOT_API void from_json(const nlohmann::json& json, RichTextCashtag& value);
11755TGBOT_API void to_json(nlohmann::json& json, const RichTextCashtag& value);
11756
11762 using Ptr = std::shared_ptr<RichTextCode>;
11763
11764 static TGBOT_API const std::string TYPE;
11765
11769 std::string type { TYPE };
11773 std::shared_ptr<RichText> text { };
11774};
11775
11776TGBOT_API void from_json(const nlohmann::json& json, RichTextCode& value);
11777TGBOT_API void to_json(nlohmann::json& json, const RichTextCode& value);
11778
11784 using Ptr = std::shared_ptr<RichTextCustomEmoji>;
11785
11786 static TGBOT_API const std::string TYPE;
11787
11791 std::string type { TYPE };
11796 std::string customEmojiId { };
11800 std::string alternativeText { };
11801};
11802
11803TGBOT_API void from_json(const nlohmann::json& json, RichTextCustomEmoji& value);
11804TGBOT_API void to_json(nlohmann::json& json, const RichTextCustomEmoji& value);
11805
11811 using Ptr = std::shared_ptr<RichTextDateTime>;
11812
11813 static TGBOT_API const std::string TYPE;
11814
11818 std::string type { TYPE };
11822 std::shared_ptr<RichText> text { };
11826 std::int32_t unixTime { };
11831 std::string dateTimeFormat { };
11832};
11833
11834TGBOT_API void from_json(const nlohmann::json& json, RichTextDateTime& value);
11835TGBOT_API void to_json(nlohmann::json& json, const RichTextDateTime& value);
11836
11842 using Ptr = std::shared_ptr<RichTextEmailAddress>;
11843
11844 static TGBOT_API const std::string TYPE;
11845
11849 std::string type { TYPE };
11853 std::shared_ptr<RichText> text { };
11857 std::string emailAddress { };
11858};
11859
11860TGBOT_API void from_json(const nlohmann::json& json, RichTextEmailAddress& value);
11861TGBOT_API void to_json(nlohmann::json& json, const RichTextEmailAddress& value);
11862
11868 using Ptr = std::shared_ptr<RichTextHashtag>;
11869
11870 static TGBOT_API const std::string TYPE;
11871
11875 std::string type { TYPE };
11879 std::shared_ptr<RichText> text { };
11883 std::string hashtag { };
11884};
11885
11886TGBOT_API void from_json(const nlohmann::json& json, RichTextHashtag& value);
11887TGBOT_API void to_json(nlohmann::json& json, const RichTextHashtag& value);
11888
11894 using Ptr = std::shared_ptr<RichTextItalic>;
11895
11896 static TGBOT_API const std::string TYPE;
11897
11901 std::string type { TYPE };
11905 std::shared_ptr<RichText> text { };
11906};
11907
11908TGBOT_API void from_json(const nlohmann::json& json, RichTextItalic& value);
11909TGBOT_API void to_json(nlohmann::json& json, const RichTextItalic& value);
11910
11916 using Ptr = std::shared_ptr<RichTextMarked>;
11917
11918 static TGBOT_API const std::string TYPE;
11919
11923 std::string type { TYPE };
11927 std::shared_ptr<RichText> text { };
11928};
11929
11930TGBOT_API void from_json(const nlohmann::json& json, RichTextMarked& value);
11931TGBOT_API void to_json(nlohmann::json& json, const RichTextMarked& value);
11932
11938 using Ptr = std::shared_ptr<RichTextMathematicalExpression>;
11939
11940 static TGBOT_API const std::string TYPE;
11941
11945 std::string type { TYPE };
11949 std::string expression { };
11950};
11951
11952TGBOT_API void from_json(const nlohmann::json& json, RichTextMathematicalExpression& value);
11953TGBOT_API void to_json(nlohmann::json& json, const RichTextMathematicalExpression& value);
11954
11960 using Ptr = std::shared_ptr<RichTextMention>;
11961
11962 static TGBOT_API const std::string TYPE;
11963
11967 std::string type { TYPE };
11971 std::shared_ptr<RichText> text { };
11975 std::string username { };
11976};
11977
11978TGBOT_API void from_json(const nlohmann::json& json, RichTextMention& value);
11979TGBOT_API void to_json(nlohmann::json& json, const RichTextMention& value);
11980
11986 using Ptr = std::shared_ptr<RichTextPhoneNumber>;
11987
11988 static TGBOT_API const std::string TYPE;
11989
11993 std::string type { TYPE };
11997 std::shared_ptr<RichText> text { };
12001 std::string phoneNumber { };
12002};
12003
12004TGBOT_API void from_json(const nlohmann::json& json, RichTextPhoneNumber& value);
12005TGBOT_API void to_json(nlohmann::json& json, const RichTextPhoneNumber& value);
12006
12012 using Ptr = std::shared_ptr<RichTextReference>;
12013
12014 static TGBOT_API const std::string TYPE;
12015
12019 std::string type { TYPE };
12023 std::shared_ptr<RichText> text { };
12027 std::string name { };
12028};
12029
12030TGBOT_API void from_json(const nlohmann::json& json, RichTextReference& value);
12031TGBOT_API void to_json(nlohmann::json& json, const RichTextReference& value);
12032
12038 using Ptr = std::shared_ptr<RichTextReferenceLink>;
12039
12040 static TGBOT_API const std::string TYPE;
12041
12045 std::string type { TYPE };
12049 std::shared_ptr<RichText> text { };
12053 std::string referenceName { };
12054};
12055
12056TGBOT_API void from_json(const nlohmann::json& json, RichTextReferenceLink& value);
12057TGBOT_API void to_json(nlohmann::json& json, const RichTextReferenceLink& value);
12058
12064 using Ptr = std::shared_ptr<RichTextSpoiler>;
12065
12066 static TGBOT_API const std::string TYPE;
12067
12071 std::string type { TYPE };
12075 std::shared_ptr<RichText> text { };
12076};
12077
12078TGBOT_API void from_json(const nlohmann::json& json, RichTextSpoiler& value);
12079TGBOT_API void to_json(nlohmann::json& json, const RichTextSpoiler& value);
12080
12086 using Ptr = std::shared_ptr<RichTextStrikethrough>;
12087
12088 static TGBOT_API const std::string TYPE;
12089
12093 std::string type { TYPE };
12097 std::shared_ptr<RichText> text { };
12098};
12099
12100TGBOT_API void from_json(const nlohmann::json& json, RichTextStrikethrough& value);
12101TGBOT_API void to_json(nlohmann::json& json, const RichTextStrikethrough& value);
12102
12108 using Ptr = std::shared_ptr<RichTextSubscript>;
12109
12110 static TGBOT_API const std::string TYPE;
12111
12115 std::string type { TYPE };
12119 std::shared_ptr<RichText> text { };
12120};
12121
12122TGBOT_API void from_json(const nlohmann::json& json, RichTextSubscript& value);
12123TGBOT_API void to_json(nlohmann::json& json, const RichTextSubscript& value);
12124
12130 using Ptr = std::shared_ptr<RichTextSuperscript>;
12131
12132 static TGBOT_API const std::string TYPE;
12133
12137 std::string type { TYPE };
12141 std::shared_ptr<RichText> text { };
12142};
12143
12144TGBOT_API void from_json(const nlohmann::json& json, RichTextSuperscript& value);
12145TGBOT_API void to_json(nlohmann::json& json, const RichTextSuperscript& value);
12146
12152 using Ptr = std::shared_ptr<RichTextTextMention>;
12153
12154 static TGBOT_API const std::string TYPE;
12155
12159 std::string type { TYPE };
12163 std::shared_ptr<RichText> text { };
12167 std::shared_ptr<User> user { };
12168};
12169
12170TGBOT_API void from_json(const nlohmann::json& json, RichTextTextMention& value);
12171TGBOT_API void to_json(nlohmann::json& json, const RichTextTextMention& value);
12172
12178 using Ptr = std::shared_ptr<RichTextUnderline>;
12179
12180 static TGBOT_API const std::string TYPE;
12181
12185 std::string type { TYPE };
12189 std::shared_ptr<RichText> text { };
12190};
12191
12192TGBOT_API void from_json(const nlohmann::json& json, RichTextUnderline& value);
12193TGBOT_API void to_json(nlohmann::json& json, const RichTextUnderline& value);
12194
12200 using Ptr = std::shared_ptr<RichTextUrl>;
12201
12202 static TGBOT_API const std::string TYPE;
12203
12207 std::string type { TYPE };
12211 std::shared_ptr<RichText> text { };
12215 std::string url { };
12216};
12217
12218TGBOT_API void from_json(const nlohmann::json& json, RichTextUrl& value);
12219TGBOT_API void to_json(nlohmann::json& json, const RichTextUrl& value);
12220
12226 using Ptr = std::shared_ptr<SentGuestMessage>;
12227
12231 std::string inlineMessageId { };
12232};
12233
12234TGBOT_API void from_json(const nlohmann::json& json, SentGuestMessage& value);
12235TGBOT_API void to_json(nlohmann::json& json, const SentGuestMessage& value);
12236
12242 using Ptr = std::shared_ptr<SentWebAppMessage>;
12243
12248 std::optional<std::string> inlineMessageId { };
12249};
12250
12251TGBOT_API void from_json(const nlohmann::json& json, SentWebAppMessage& value);
12252TGBOT_API void to_json(nlohmann::json& json, const SentWebAppMessage& value);
12253
12260 using Ptr = std::shared_ptr<SharedUser>;
12261
12270 std::int64_t userId { };
12274 std::optional<std::string> firstName { };
12278 std::optional<std::string> lastName { };
12282 std::optional<std::string> username { };
12286 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
12287};
12288
12289TGBOT_API void from_json(const nlohmann::json& json, SharedUser& value);
12290TGBOT_API void to_json(nlohmann::json& json, const SharedUser& value);
12291
12297 using Ptr = std::shared_ptr<ShippingAddress>;
12298
12302 std::string countryCode { };
12306 std::string state { };
12310 std::string city { };
12314 std::string streetLine1 { };
12318 std::string streetLine2 { };
12322 std::string postCode { };
12323};
12324
12325TGBOT_API void from_json(const nlohmann::json& json, ShippingAddress& value);
12326TGBOT_API void to_json(nlohmann::json& json, const ShippingAddress& value);
12327
12333 using Ptr = std::shared_ptr<ShippingOption>;
12334
12338 std::string id { };
12342 std::string title { };
12346 std::vector<std::shared_ptr<LabeledPrice>> prices { };
12347};
12348
12349TGBOT_API void from_json(const nlohmann::json& json, ShippingOption& value);
12350TGBOT_API void to_json(nlohmann::json& json, const ShippingOption& value);
12351
12357 using Ptr = std::shared_ptr<ShippingQuery>;
12358
12362 std::string id { };
12366 std::shared_ptr<User> from { };
12370 std::string invoicePayload { };
12374 std::shared_ptr<ShippingAddress> shippingAddress { };
12375};
12376
12377TGBOT_API void from_json(const nlohmann::json& json, ShippingQuery& value);
12378TGBOT_API void to_json(nlohmann::json& json, const ShippingQuery& value);
12379
12385 using Ptr = std::shared_ptr<StarAmount>;
12386
12390 std::int32_t amount { };
12395 std::optional<std::int32_t> nanostarAmount { };
12396};
12397
12398TGBOT_API void from_json(const nlohmann::json& json, StarAmount& value);
12399TGBOT_API void to_json(nlohmann::json& json, const StarAmount& value);
12400
12409 using Ptr = std::shared_ptr<StarTransaction>;
12410
12417 std::string id { };
12421 std::int32_t amount { };
12426 std::optional<std::int32_t> nanostarAmount { };
12430 std::int32_t date { };
12435 std::shared_ptr<TransactionPartner> source { };
12440 std::shared_ptr<TransactionPartner> receiver { };
12441};
12442
12443TGBOT_API void from_json(const nlohmann::json& json, StarTransaction& value);
12444TGBOT_API void to_json(nlohmann::json& json, const StarTransaction& value);
12445
12451 using Ptr = std::shared_ptr<StarTransactions>;
12452
12456 std::vector<std::shared_ptr<StarTransaction>> transactions { };
12457};
12458
12459TGBOT_API void from_json(const nlohmann::json& json, StarTransactions& value);
12460TGBOT_API void to_json(nlohmann::json& json, const StarTransactions& value);
12461
12466struct Sticker {
12467 using Ptr = std::shared_ptr<Sticker>;
12468
12469 enum class Type { Regular, Mask, CustomEmoji };
12470
12474 std::string fileId { };
12479 std::string fileUniqueId { };
12489 std::int32_t width { };
12493 std::int32_t height { };
12497 bool isAnimated { };
12501 bool isVideo { };
12505 std::shared_ptr<PhotoSize> thumbnail { };
12509 std::optional<std::string> emoji { };
12513 std::optional<std::string> setName { };
12517 std::shared_ptr<File> premiumAnimation { };
12521 std::shared_ptr<MaskPosition> maskPosition { };
12525 std::optional<std::string> customEmojiId { };
12531 std::optional<bool> needsRepainting { };
12535 std::optional<std::int32_t> fileSize { };
12536};
12537
12538TGBOT_API void from_json(const nlohmann::json& json, Sticker::Type& value);
12539TGBOT_API void to_json(nlohmann::json& json, const Sticker::Type& value);
12540
12541TGBOT_API void from_json(const nlohmann::json& json, Sticker& value);
12542TGBOT_API void to_json(nlohmann::json& json, const Sticker& value);
12543
12549 using Ptr = std::shared_ptr<StickerSet>;
12550
12551 enum class Type { Regular, Mask, CustomEmoji };
12552
12556 std::string name { };
12560 std::string title { };
12568 std::vector<std::shared_ptr<Sticker>> stickers { };
12572 std::shared_ptr<PhotoSize> thumbnail { };
12573};
12574
12575TGBOT_API void from_json(const nlohmann::json& json, StickerSet::Type& value);
12576TGBOT_API void to_json(nlohmann::json& json, const StickerSet::Type& value);
12577
12578TGBOT_API void from_json(const nlohmann::json& json, StickerSet& value);
12579TGBOT_API void to_json(nlohmann::json& json, const StickerSet& value);
12580
12585struct Story {
12586 using Ptr = std::shared_ptr<Story>;
12587
12591 std::shared_ptr<Chat> chat { };
12595 std::int32_t id { };
12596};
12597
12598TGBOT_API void from_json(const nlohmann::json& json, Story& value);
12599TGBOT_API void to_json(nlohmann::json& json, const Story& value);
12600
12606 using Ptr = std::shared_ptr<StoryArea>;
12607
12611 std::shared_ptr<StoryAreaPosition> position { };
12615 std::shared_ptr<StoryAreaType> type { };
12616};
12617
12618TGBOT_API void from_json(const nlohmann::json& json, StoryArea& value);
12619TGBOT_API void to_json(nlohmann::json& json, const StoryArea& value);
12620
12626 using Ptr = std::shared_ptr<StoryAreaPosition>;
12627
12631 double xPercentage { };
12635 double yPercentage { };
12647 double rotationAngle { };
12652};
12653
12654TGBOT_API void from_json(const nlohmann::json& json, StoryAreaPosition& value);
12655TGBOT_API void to_json(nlohmann::json& json, const StoryAreaPosition& value);
12656
12664 using Ptr = std::shared_ptr<StoryAreaType>;
12665
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>>
12670};
12671
12672TGBOT_API void from_json(const nlohmann::json& json, StoryAreaType& value);
12673TGBOT_API void to_json(nlohmann::json& json, const StoryAreaType& value);
12674
12681 using Ptr = std::shared_ptr<StoryAreaTypeLink>;
12682
12683 static TGBOT_API const std::string TYPE;
12684
12688 std::string type { TYPE };
12692 std::string url { };
12693};
12694
12695TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeLink& value);
12696TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeLink& value);
12697
12704 using Ptr = std::shared_ptr<StoryAreaTypeLocation>;
12705
12706 static TGBOT_API const std::string TYPE;
12707
12711 std::string type { TYPE };
12715 double latitude { };
12719 double longitude { };
12723 std::shared_ptr<LocationAddress> address { };
12724};
12725
12726TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeLocation& value);
12727TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeLocation& value);
12728
12735 using Ptr = std::shared_ptr<StoryAreaTypeSuggestedReaction>;
12736
12737 static TGBOT_API const std::string TYPE;
12738
12742 std::string type { TYPE };
12746 std::shared_ptr<ReactionType> reactionType { };
12750 std::optional<bool> isDark { };
12754 std::optional<bool> isFlipped { };
12755};
12756
12757TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeSuggestedReaction& value);
12758TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeSuggestedReaction& value);
12759
12766 using Ptr = std::shared_ptr<StoryAreaTypeUniqueGift>;
12767
12768 static TGBOT_API const std::string TYPE;
12769
12773 std::string type { TYPE };
12777 std::string name { };
12778};
12779
12780TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeUniqueGift& value);
12781TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeUniqueGift& value);
12782
12789 using Ptr = std::shared_ptr<StoryAreaTypeWeather>;
12790
12791 static TGBOT_API const std::string TYPE;
12792
12796 std::string type { TYPE };
12800 double temperature { };
12804 std::string emoji { };
12808 std::int32_t backgroundColor { };
12809};
12810
12811TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeWeather& value);
12812TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeWeather& value);
12813
12821 using Ptr = std::shared_ptr<SuccessfulPayment>;
12822
12826 std::string currency { };
12833 std::int32_t totalAmount { };
12837 std::string invoicePayload { };
12841 std::optional<std::int32_t> subscriptionExpirationDate { };
12845 std::optional<bool> isRecurring { };
12849 std::optional<bool> isFirstRecurring { };
12853 std::optional<std::string> shippingOptionId { };
12857 std::shared_ptr<OrderInfo> orderInfo { };
12866};
12867
12868TGBOT_API void from_json(const nlohmann::json& json, SuccessfulPayment& value);
12869TGBOT_API void to_json(nlohmann::json& json, const SuccessfulPayment& value);
12870
12877 using Ptr = std::shared_ptr<SuggestedPostApprovalFailed>;
12878
12884 std::shared_ptr<Message> suggestedPostMessage { };
12888 std::shared_ptr<SuggestedPostPrice> price { };
12889};
12890
12891TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostApprovalFailed& value);
12892TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostApprovalFailed& value);
12893
12899 using Ptr = std::shared_ptr<SuggestedPostApproved>;
12900
12905 std::shared_ptr<Message> suggestedPostMessage { };
12909 std::shared_ptr<SuggestedPostPrice> price { };
12913 std::int32_t sendDate { };
12914};
12915
12916TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostApproved& value);
12917TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostApproved& value);
12918
12924 using Ptr = std::shared_ptr<SuggestedPostDeclined>;
12925
12930 std::shared_ptr<Message> suggestedPostMessage { };
12934 std::optional<std::string> comment { };
12935};
12936
12937TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostDeclined& value);
12938TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostDeclined& value);
12939
12945 using Ptr = std::shared_ptr<SuggestedPostInfo>;
12946
12951 std::string state { };
12955 std::shared_ptr<SuggestedPostPrice> price { };
12961 std::optional<std::int32_t> sendDate { };
12962};
12963
12964TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostInfo& value);
12965TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostInfo& value);
12966
12972 using Ptr = std::shared_ptr<SuggestedPostPaid>;
12973
12978 std::shared_ptr<Message> suggestedPostMessage { };
12983 std::string currency { };
12988 std::optional<std::int32_t> amount { };
12993 std::shared_ptr<StarAmount> starAmount { };
12994};
12995
12996TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostPaid& value);
12997TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostPaid& value);
12998
13004 using Ptr = std::shared_ptr<SuggestedPostParameters>;
13005
13009 std::shared_ptr<SuggestedPostPrice> price { };
13016 std::optional<std::int32_t> sendDate { };
13017};
13018
13019TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostParameters& value);
13020TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostParameters& value);
13021
13027 using Ptr = std::shared_ptr<SuggestedPostPrice>;
13028
13033 std::string currency { };
13040 std::int32_t amount { };
13041};
13042
13043TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostPrice& value);
13044TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostPrice& value);
13045
13051 using Ptr = std::shared_ptr<SuggestedPostRefunded>;
13052
13057 std::shared_ptr<Message> suggestedPostMessage { };
13063 std::string reason { };
13064};
13065
13066TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostRefunded& value);
13067TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostRefunded& value);
13068
13075 using Ptr = std::shared_ptr<SwitchInlineQueryChosenChat>;
13076
13081 std::optional<std::string> query { };
13085 std::optional<bool> allowUserChats { };
13089 std::optional<bool> allowBotChats { };
13093 std::optional<bool> allowGroupChats { };
13097 std::optional<bool> allowChannelChats { };
13098};
13099
13100TGBOT_API void from_json(const nlohmann::json& json, SwitchInlineQueryChosenChat& value);
13101TGBOT_API void to_json(nlohmann::json& json, const SwitchInlineQueryChosenChat& value);
13102
13109 using Ptr = std::shared_ptr<TextQuote>;
13110
13114 std::string text { };
13120 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
13125 std::int32_t position { };
13130 std::optional<bool> isManual { };
13131};
13132
13133TGBOT_API void from_json(const nlohmann::json& json, TextQuote& value);
13134TGBOT_API void to_json(nlohmann::json& json, const TextQuote& value);
13135
13144 using Ptr = std::shared_ptr<TransactionPartner>;
13145
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>>
13151};
13152
13153TGBOT_API void from_json(const nlohmann::json& json, TransactionPartner& value);
13154TGBOT_API void to_json(nlohmann::json& json, const TransactionPartner& value);
13155
13162 using Ptr = std::shared_ptr<TransactionPartnerAffiliateProgram>;
13163
13164 static TGBOT_API const std::string TYPE;
13165
13169 std::string type { TYPE };
13173 std::shared_ptr<User> sponsorUser { };
13178 std::int32_t commissionPerMille { };
13179};
13180
13181TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerAffiliateProgram& value);
13182TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerAffiliateProgram& value);
13183
13189 using Ptr = std::shared_ptr<TransactionPartnerChat>;
13190
13191 static TGBOT_API const std::string TYPE;
13192
13196 std::string type { TYPE };
13200 std::shared_ptr<Chat> chat { };
13204 std::shared_ptr<Gift> gift { };
13205};
13206
13207TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerChat& value);
13208TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerChat& value);
13209
13215 using Ptr = std::shared_ptr<TransactionPartnerFragment>;
13216
13217 static TGBOT_API const std::string TYPE;
13218
13222 std::string type { TYPE };
13226 std::shared_ptr<RevenueWithdrawalState> withdrawalState { };
13227};
13228
13229TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerFragment& value);
13230TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerFragment& value);
13231
13237 using Ptr = std::shared_ptr<TransactionPartnerOther>;
13238
13239 static TGBOT_API const std::string TYPE;
13240
13244 std::string type { TYPE };
13245};
13246
13247TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerOther& value);
13248TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerOther& value);
13249
13255 using Ptr = std::shared_ptr<TransactionPartnerTelegramAds>;
13256
13257 static TGBOT_API const std::string TYPE;
13258
13262 std::string type { TYPE };
13263};
13264
13265TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerTelegramAds& value);
13266TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerTelegramAds& value);
13267
13273 using Ptr = std::shared_ptr<TransactionPartnerTelegramApi>;
13274
13275 static TGBOT_API const std::string TYPE;
13276
13280 std::string type { TYPE };
13284 std::int32_t requestCount { };
13285};
13286
13287TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerTelegramApi& value);
13288TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerTelegramApi& value);
13289
13295 using Ptr = std::shared_ptr<TransactionPartnerUser>;
13296
13297 static TGBOT_API const std::string TYPE;
13298
13302 std::string type { TYPE };
13309 std::string transactionType { };
13313 std::shared_ptr<User> user { };
13319 std::shared_ptr<AffiliateInfo> affiliate { };
13324 std::optional<std::string> invoicePayload { };
13329 std::optional<std::int32_t> subscriptionPeriod { };
13334 std::optional<std::vector<std::shared_ptr<PaidMedia>>> paidMedia { };
13339 std::optional<std::string> paidMediaPayload { };
13343 std::shared_ptr<Gift> gift { };
13348 std::optional<std::int32_t> premiumSubscriptionDuration { };
13349};
13350
13351TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerUser& value);
13352TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerUser& value);
13353
13359 using Ptr = std::shared_ptr<UniqueGift>;
13360
13364 std::string giftId { };
13368 std::string baseName { };
13373 std::string name { };
13377 std::int32_t number { };
13381 std::shared_ptr<UniqueGiftModel> model { };
13385 std::shared_ptr<UniqueGiftSymbol> symbol { };
13389 std::shared_ptr<UniqueGiftBackdrop> backdrop { };
13394 std::optional<bool> isPremium { };
13398 std::optional<bool> isBurned { };
13403 std::optional<bool> isFromBlockchain { };
13409 std::shared_ptr<UniqueGiftColors> colors { };
13413 std::shared_ptr<Chat> publisherChat { };
13414};
13415
13416TGBOT_API void from_json(const nlohmann::json& json, UniqueGift& value);
13417TGBOT_API void to_json(nlohmann::json& json, const UniqueGift& value);
13418
13424 using Ptr = std::shared_ptr<UniqueGiftBackdrop>;
13425
13429 std::string name { };
13433 std::shared_ptr<UniqueGiftBackdropColors> colors { };
13437 std::int32_t rarityPerMille { };
13438};
13439
13440TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftBackdrop& value);
13441TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftBackdrop& value);
13442
13448 using Ptr = std::shared_ptr<UniqueGiftBackdropColors>;
13449
13453 std::int32_t centerColor { };
13457 std::int32_t edgeColor { };
13461 std::int32_t symbolColor { };
13465 std::int32_t textColor { };
13466};
13467
13468TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftBackdropColors& value);
13469TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftBackdropColors& value);
13470
13477 using Ptr = std::shared_ptr<UniqueGiftColors>;
13478
13482 std::string modelCustomEmojiId { };
13486 std::string symbolCustomEmojiId { };
13490 std::int32_t lightThemeMainColor { };
13494 std::vector<std::int32_t> lightThemeOtherColors { };
13498 std::int32_t darkThemeMainColor { };
13502 std::vector<std::int32_t> darkThemeOtherColors { };
13503};
13504
13505TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftColors& value);
13506TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftColors& value);
13507
13513 using Ptr = std::shared_ptr<UniqueGiftInfo>;
13514
13518 std::shared_ptr<UniqueGift> gift { };
13525 std::string origin { };
13529 std::optional<std::string> text { };
13533 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
13538 std::optional<bool> isPrivate { };
13543 std::optional<std::string> lastResaleCurrency { };
13548 std::optional<std::int32_t> lastResaleAmount { };
13553 std::optional<std::string> ownedGiftId { };
13558 std::optional<std::int32_t> transferStarCount { };
13563 std::optional<std::int32_t> nextTransferDate { };
13564};
13565
13566TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftInfo& value);
13567TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftInfo& value);
13568
13574 using Ptr = std::shared_ptr<UniqueGiftModel>;
13575
13579 std::string name { };
13583 std::shared_ptr<Sticker> sticker { };
13588 std::int32_t rarityPerMille { };
13593 std::optional<std::string> rarity { };
13594};
13595
13596TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftModel& value);
13597TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftModel& value);
13598
13604 using Ptr = std::shared_ptr<UniqueGiftSymbol>;
13605
13609 std::string name { };
13613 std::shared_ptr<Sticker> sticker { };
13617 std::int32_t rarityPerMille { };
13618};
13619
13620TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftSymbol& value);
13621TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftSymbol& value);
13622
13628struct Update {
13629 using Ptr = std::shared_ptr<Update>;
13630
13639 std::int32_t updateId { };
13643 std::shared_ptr<Message> message { };
13649 std::shared_ptr<Message> editedMessage { };
13653 std::shared_ptr<Message> channelPost { };
13659 std::shared_ptr<Message> editedChannelPost { };
13664 std::shared_ptr<BusinessConnection> businessConnection { };
13668 std::shared_ptr<Message> businessMessage { };
13672 std::shared_ptr<Message> editedBusinessMessage { };
13676 std::shared_ptr<BusinessMessagesDeleted> deletedBusinessMessages { };
13681 std::shared_ptr<Message> guestMessage { };
13688 std::shared_ptr<MessageReactionUpdated> messageReaction { };
13695 std::shared_ptr<MessageReactionCountUpdated> messageReactionCount { };
13699 std::shared_ptr<InlineQuery> inlineQuery { };
13705 std::shared_ptr<ChosenInlineResult> chosenInlineResult { };
13709 std::shared_ptr<CallbackQuery> callbackQuery { };
13713 std::shared_ptr<ShippingQuery> shippingQuery { };
13717 std::shared_ptr<PreCheckoutQuery> preCheckoutQuery { };
13722 std::shared_ptr<PaidMediaPurchased> purchasedPaidMedia { };
13727 std::shared_ptr<Poll> poll { };
13732 std::shared_ptr<PollAnswer> pollAnswer { };
13737 std::shared_ptr<ChatMemberUpdated> myChatMember { };
13743 std::shared_ptr<ChatMemberUpdated> chatMember { };
13748 std::shared_ptr<ChatJoinRequest> chatJoinRequest { };
13753 std::shared_ptr<ChatBoostUpdated> chatBoost { };
13758 std::shared_ptr<ChatBoostRemoved> removedChatBoost { };
13763 std::shared_ptr<ManagedBotUpdated> managedBot { };
13767 std::shared_ptr<BotSubscriptionUpdated> subscription { };
13771 std::shared_ptr<MessageGenerationStopped> stoppedMessageGeneration { };
13772};
13773
13774TGBOT_API void from_json(const nlohmann::json& json, Update& value);
13775TGBOT_API void to_json(nlohmann::json& json, const Update& value);
13776
13781struct User {
13782 using Ptr = std::shared_ptr<User>;
13783
13790 std::int64_t id { };
13794 bool isBot { };
13798 std::string firstName { };
13802 std::optional<std::string> lastName { };
13806 std::optional<std::string> username { };
13810 std::optional<std::string> languageCode { };
13814 std::optional<bool> isPremium { };
13818 std::optional<bool> addedToAttachmentMenu { };
13822 std::optional<bool> canJoinGroups { };
13826 std::optional<bool> canReadAllGroupMessages { };
13831 std::optional<bool> supportsGuestQueries { };
13835 std::optional<bool> supportsInlineQueries { };
13840 std::optional<bool> canConnectToBusiness { };
13844 std::optional<bool> hasMainWebApp { };
13849 std::optional<bool> hasTopicsEnabled { };
13854 std::optional<bool> allowsUsersToCreateTopics { };
13859 std::optional<bool> canManageBots { };
13864 std::optional<bool> supportsJoinRequestQueries { };
13865};
13866
13867TGBOT_API void from_json(const nlohmann::json& json, User& value);
13868TGBOT_API void to_json(nlohmann::json& json, const User& value);
13869
13875 using Ptr = std::shared_ptr<UserChatBoosts>;
13876
13880 std::vector<std::shared_ptr<ChatBoost>> boosts { };
13881};
13882
13883TGBOT_API void from_json(const nlohmann::json& json, UserChatBoosts& value);
13884TGBOT_API void to_json(nlohmann::json& json, const UserChatBoosts& value);
13885
13891 using Ptr = std::shared_ptr<UserProfileAudios>;
13892
13896 std::int32_t totalCount { };
13900 std::vector<std::shared_ptr<Audio>> audios { };
13901};
13902
13903TGBOT_API void from_json(const nlohmann::json& json, UserProfileAudios& value);
13904TGBOT_API void to_json(nlohmann::json& json, const UserProfileAudios& value);
13905
13911 using Ptr = std::shared_ptr<UserProfilePhotos>;
13912
13916 std::int32_t totalCount { };
13920 std::vector<std::vector<std::shared_ptr<PhotoSize>>> photos { };
13921};
13922
13923TGBOT_API void from_json(const nlohmann::json& json, UserProfilePhotos& value);
13924TGBOT_API void to_json(nlohmann::json& json, const UserProfilePhotos& value);
13925
13931 using Ptr = std::shared_ptr<UserRating>;
13932
13938 std::int32_t level { };
13942 std::int32_t rating { };
13946 std::int32_t currentLevelRating { };
13951 std::optional<std::int32_t> nextLevelRating { };
13952};
13953
13954TGBOT_API void from_json(const nlohmann::json& json, UserRating& value);
13955TGBOT_API void to_json(nlohmann::json& json, const UserRating& value);
13956
13963 using Ptr = std::shared_ptr<UsersShared>;
13964
13968 std::int32_t requestId { };
13972 std::vector<std::shared_ptr<SharedUser>> users { };
13973};
13974
13975TGBOT_API void from_json(const nlohmann::json& json, UsersShared& value);
13976TGBOT_API void to_json(nlohmann::json& json, const UsersShared& value);
13977
13982struct Venue {
13983 using Ptr = std::shared_ptr<Venue>;
13984
13988 std::shared_ptr<Location> location { };
13992 std::string title { };
13996 std::string address { };
14000 std::optional<std::string> foursquareId { };
14005 std::optional<std::string> foursquareType { };
14009 std::optional<std::string> googlePlaceId { };
14013 std::optional<std::string> googlePlaceType { };
14014};
14015
14016TGBOT_API void from_json(const nlohmann::json& json, Venue& value);
14017TGBOT_API void to_json(nlohmann::json& json, const Venue& value);
14018
14023struct Video {
14024 using Ptr = std::shared_ptr<Video>;
14025
14029 std::string fileId { };
14034 std::string fileUniqueId { };
14038 std::int32_t width { };
14042 std::int32_t height { };
14046 std::int32_t duration { };
14050 std::shared_ptr<PhotoSize> thumbnail { };
14054 std::optional<std::vector<std::shared_ptr<PhotoSize>>> cover { };
14058 std::optional<std::int32_t> startTimestamp { };
14062 std::optional<std::vector<std::shared_ptr<VideoQuality>>> qualities { };
14066 std::optional<std::string> fileName { };
14070 std::optional<std::string> mimeType { };
14077 std::optional<std::int64_t> fileSize { };
14078};
14079
14080TGBOT_API void from_json(const nlohmann::json& json, Video& value);
14081TGBOT_API void to_json(nlohmann::json& json, const Video& value);
14082
14088 using Ptr = std::shared_ptr<VideoChatEnded>;
14089
14093 std::int32_t duration { };
14094};
14095
14096TGBOT_API void from_json(const nlohmann::json& json, VideoChatEnded& value);
14097TGBOT_API void to_json(nlohmann::json& json, const VideoChatEnded& value);
14098
14104 using Ptr = std::shared_ptr<VideoChatParticipantsInvited>;
14105
14109 std::vector<std::shared_ptr<User>> users { };
14110};
14111
14112TGBOT_API void from_json(const nlohmann::json& json, VideoChatParticipantsInvited& value);
14113TGBOT_API void to_json(nlohmann::json& json, const VideoChatParticipantsInvited& value);
14114
14120 using Ptr = std::shared_ptr<VideoChatScheduled>;
14121
14126 std::int32_t startDate { };
14127};
14128
14129TGBOT_API void from_json(const nlohmann::json& json, VideoChatScheduled& value);
14130TGBOT_API void to_json(nlohmann::json& json, const VideoChatScheduled& value);
14131
14138 using Ptr = std::shared_ptr<VideoChatStarted>;
14139};
14140
14141TGBOT_API void from_json(const nlohmann::json& json, VideoChatStarted& value);
14142TGBOT_API void to_json(nlohmann::json& json, const VideoChatStarted& value);
14143
14149 using Ptr = std::shared_ptr<VideoNote>;
14150
14154 std::string fileId { };
14159 std::string fileUniqueId { };
14163 std::int32_t length { };
14167 std::int32_t duration { };
14171 std::shared_ptr<PhotoSize> thumbnail { };
14175 std::optional<std::int32_t> fileSize { };
14176};
14177
14178TGBOT_API void from_json(const nlohmann::json& json, VideoNote& value);
14179TGBOT_API void to_json(nlohmann::json& json, const VideoNote& value);
14180
14186 using Ptr = std::shared_ptr<VideoQuality>;
14187
14191 std::string fileId { };
14196 std::string fileUniqueId { };
14200 std::int32_t width { };
14204 std::int32_t height { };
14208 std::string codec { };
14215 std::optional<std::int64_t> fileSize { };
14216};
14217
14218TGBOT_API void from_json(const nlohmann::json& json, VideoQuality& value);
14219TGBOT_API void to_json(nlohmann::json& json, const VideoQuality& value);
14220
14225struct Voice {
14226 using Ptr = std::shared_ptr<Voice>;
14227
14231 std::string fileId { };
14236 std::string fileUniqueId { };
14240 std::int32_t duration { };
14244 std::optional<std::string> mimeType { };
14251 std::optional<std::int64_t> fileSize { };
14252};
14253
14254TGBOT_API void from_json(const nlohmann::json& json, Voice& value);
14255TGBOT_API void to_json(nlohmann::json& json, const Voice& value);
14256
14262 using Ptr = std::shared_ptr<WebAppData>;
14263
14267 std::string data { };
14272 std::string buttonText { };
14273};
14274
14275TGBOT_API void from_json(const nlohmann::json& json, WebAppData& value);
14276TGBOT_API void to_json(nlohmann::json& json, const WebAppData& value);
14277
14283 using Ptr = std::shared_ptr<WebAppInfo>;
14284
14289 std::string url { };
14290};
14291
14292TGBOT_API void from_json(const nlohmann::json& json, WebAppInfo& value);
14293TGBOT_API void to_json(nlohmann::json& json, const WebAppInfo& value);
14294
14300 using Ptr = std::shared_ptr<WebhookInfo>;
14301
14305 std::string url { };
14313 std::int32_t pendingUpdateCount { };
14317 std::optional<std::string> ipAddress { };
14322 std::optional<std::int32_t> lastErrorDate { };
14327 std::optional<std::string> lastErrorMessage { };
14332 std::optional<std::int32_t> lastSynchronizationErrorDate { };
14337 std::optional<std::int32_t> maxConnections { };
14342 std::optional<std::vector<std::string>> allowedUpdates { };
14343};
14344
14345TGBOT_API void from_json(const nlohmann::json& json, WebhookInfo& value);
14346TGBOT_API void to_json(nlohmann::json& json, const WebhookInfo& value);
14347
14355 using Ptr = std::shared_ptr<WriteAccessAllowed>;
14356
14361 std::optional<bool> fromRequest { };
14366 std::optional<std::string> webAppName { };
14371 std::optional<bool> fromAttachmentMenu { };
14372};
14373
14374TGBOT_API void from_json(const nlohmann::json& json, WriteAccessAllowed& value);
14375TGBOT_API void to_json(nlohmann::json& json, const WriteAccessAllowed& value);
14376
14385 std::int64_t userId { };
14386
14390 std::string name { };
14391
14397 std::shared_ptr<InputSticker> sticker { };
14398
14404 std::vector<InputFileAttachment> attachments = { };
14405};
14406
14415 std::string callbackQueryId { };
14416
14421 std::string text = "";
14422
14427 bool showAlert = false;
14428
14436 std::string url = "";
14437
14442 std::int32_t cacheTime = 0;
14443};
14444
14453 std::string chatJoinRequestQueryId { };
14454
14460 std::string result { };
14461};
14462
14471 std::string guestQueryId { };
14472
14476 std::shared_ptr<InlineQueryResult> result { };
14477};
14478
14487 std::string inlineQueryId { };
14488
14492 std::vector<std::shared_ptr<InlineQueryResult>> results { };
14493
14498 std::int32_t cacheTime = 300;
14499
14505 bool isPersonal = false;
14506
14513 std::string nextOffset = "";
14514
14519 std::shared_ptr<InlineQueryResultsButton> button = nullptr;
14520};
14521
14530 std::string preCheckoutQueryId { };
14531
14537 bool ok { };
14538
14547 std::string errorMessage = "";
14548};
14549
14558 std::string shippingQueryId { };
14559
14565 bool ok { };
14566
14571 std::vector<std::shared_ptr<ShippingOption>> shippingOptions = { };
14572
14579 std::string errorMessage = "";
14580};
14581
14590 std::string webAppQueryId { };
14591
14595 std::shared_ptr<InlineQueryResult> result { };
14596};
14597
14607 std::variant<std::int64_t, std::string> chatId { };
14608
14612 std::int64_t userId { };
14613};
14614
14623 std::variant<std::int64_t, std::string> chatId { };
14624
14628 std::int32_t messageId { };
14629
14636 std::int32_t sendDate = 0;
14637};
14638
14648 std::variant<std::int64_t, std::string> chatId { };
14649
14653 std::int64_t userId { };
14654
14661 std::int32_t untilDate = 0;
14662
14669 bool revokeMessages = true;
14670};
14671
14681 std::variant<std::int64_t, std::string> chatId { };
14682
14686 std::int64_t senderChatId { };
14687};
14688
14698 std::variant<std::int64_t, std::string> chatId { };
14699
14703 std::int32_t messageThreadId { };
14704};
14705
14715 std::variant<std::int64_t, std::string> chatId { };
14716};
14717
14726 std::string businessConnectionId { };
14727
14732 std::string ownedGiftId { };
14733};
14734
14744 std::variant<std::int64_t, std::string> chatId { };
14745
14751 std::variant<std::int64_t, std::string> fromChatId { };
14752
14756 std::int32_t messageId { };
14757
14762 std::string caption = "";
14763
14768 std::string parseMode = "";
14769
14774 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
14775
14781
14785 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
14786
14792 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
14793 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
14795
14799 bool protectContent = false;
14800
14806 std::int32_t messageThreadId = 0;
14807
14814
14819 std::int64_t directMessagesTopicId = 0;
14820
14825 std::string messageEffectId = "";
14826
14832
14839 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
14840
14844 std::int32_t videoStartTimestamp = 0;
14845};
14846
14856 std::variant<std::int64_t, std::string> chatId { };
14857
14863 std::variant<std::int64_t, std::string> fromChatId { };
14864
14870 std::vector<std::int32_t> messageIds { };
14871
14877 std::int32_t messageThreadId = 0;
14878
14884
14888 bool protectContent = false;
14889
14893 bool removeCaption = false;
14894
14899 std::int64_t directMessagesTopicId = 0;
14900};
14901
14911 std::variant<std::int64_t, std::string> chatId { };
14912
14916 std::int32_t expireDate = 0;
14917
14922 std::int32_t memberLimit = 0;
14923
14927 std::string name = "";
14928
14934};
14935
14945 std::variant<std::int64_t, std::string> chatId { };
14946
14951 std::int32_t subscriptionPeriod { };
14952
14957 std::int32_t subscriptionPrice { };
14958
14962 std::string name = "";
14963};
14964
14974 std::variant<std::int64_t, std::string> chatId { };
14975
14979 std::string name { };
14980
14986 std::int32_t iconColor = 0;
14987
14992 std::string iconCustomEmojiId = "";
14993};
14994
15003 std::string title { };
15004
15008 std::string description { };
15009
15014 std::string payload { };
15015
15020 std::string providerToken { };
15021
15026 std::string currency { };
15027
15033 std::vector<std::shared_ptr<LabeledPrice>> prices { };
15034
15043 std::int32_t maxTipAmount = 0;
15044
15052 std::vector<std::int32_t> suggestedTipAmounts = { };
15053
15059 std::string providerData = "";
15060
15065 std::string photoUrl = "";
15066
15070 std::int32_t photoSize = 0;
15071
15075 std::int32_t photoWidth = 0;
15076
15080 std::int32_t photoHeight = 0;
15081
15086 bool needName = false;
15087
15092 bool needPhoneNumber = false;
15093
15098 bool needEmail = false;
15099
15105
15111
15117
15122 bool isFlexible = false;
15123
15128 std::string businessConnectionId = "";
15129
15138 std::int32_t subscriptionPeriod = 0;
15139};
15140
15149 std::int64_t userId { };
15150
15158 std::string name { };
15159
15163 std::string title { };
15164
15169 std::vector<std::shared_ptr<InputSticker>> stickers { };
15170
15176
15183 bool needsRepainting = false;
15184
15190 std::vector<InputFileAttachment> attachments = { };
15191};
15192
15202 std::variant<std::int64_t, std::string> chatId { };
15203
15207 std::int64_t userId { };
15208};
15209
15218 std::variant<std::int64_t, std::string> chatId { };
15219
15223 std::int32_t messageId { };
15224
15228 std::string comment = "";
15229};
15230
15240 std::variant<std::int64_t, std::string> chatId { };
15241
15246 std::int64_t actorChatId = 0;
15247
15252 std::int64_t userId = 0;
15253};
15254
15264 std::string businessConnectionId { };
15265
15271 std::vector<std::int32_t> messageIds { };
15272};
15273
15283 std::variant<std::int64_t, std::string> chatId { };
15284};
15285
15295 std::variant<std::int64_t, std::string> chatId { };
15296};
15297
15307 std::variant<std::int64_t, std::string> chatId { };
15308
15312 std::int32_t ephemeralMessageId { };
15313
15317 std::int64_t receiverUserId { };
15318};
15319
15329 std::variant<std::int64_t, std::string> chatId { };
15330
15334 std::int32_t messageThreadId { };
15335};
15336
15346 std::variant<std::int64_t, std::string> chatId { };
15347
15351 std::int32_t messageId { };
15352};
15353
15363 std::variant<std::int64_t, std::string> chatId { };
15364
15368 std::int32_t messageId { };
15369
15374 std::int64_t actorChatId = 0;
15375
15380 std::int64_t userId = 0;
15381};
15382
15392 std::variant<std::int64_t, std::string> chatId { };
15393
15398 std::vector<std::int32_t> messageIds { };
15399};
15400
15410 std::shared_ptr<BotCommandScope> scope = nullptr;
15411
15417 std::string languageCode = "";
15418};
15419
15428 std::string sticker { };
15429};
15430
15439 std::string name { };
15440};
15441
15450 std::string businessConnectionId { };
15451
15455 std::int32_t storyId { };
15456};
15457
15467};
15468
15478 std::variant<std::int64_t, std::string> chatId { };
15479
15483 std::string inviteLink { };
15484
15488 std::int32_t expireDate = 0;
15489
15494 std::int32_t memberLimit = 0;
15495
15499 std::string name = "";
15500
15506};
15507
15517 std::variant<std::int64_t, std::string> chatId { };
15518
15522 std::string inviteLink { };
15523
15527 std::string name = "";
15528};
15529
15539 std::variant<std::int64_t, std::string> chatId { };
15540
15544 std::int32_t ephemeralMessageId { };
15545
15549 std::int64_t receiverUserId { };
15550
15554 std::string caption = "";
15555
15560 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
15561
15566 std::string parseMode = "";
15567
15571 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
15572
15578};
15579
15589 std::variant<std::int64_t, std::string> chatId { };
15590
15594 std::int32_t ephemeralMessageId { };
15595
15599 std::shared_ptr<InputMedia> media { };
15600
15604 std::int64_t receiverUserId { };
15605
15609 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
15610
15616 std::vector<InputFileAttachment> attachments = { };
15617};
15618
15628 std::variant<std::int64_t, std::string> chatId { };
15629
15633 std::int32_t ephemeralMessageId { };
15634
15638 std::int64_t receiverUserId { };
15639
15643 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
15644};
15645
15655 std::variant<std::int64_t, std::string> chatId { };
15656
15660 std::int32_t ephemeralMessageId { };
15661
15665 std::int64_t receiverUserId { };
15666
15671 std::string text = "";
15672
15677 std::vector<std::shared_ptr<MessageEntity>> entities = { };
15678
15682 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions = nullptr;
15683
15688 std::string parseMode = "";
15689
15693 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
15694
15698 std::shared_ptr<InputRichMessage> richMessage = nullptr;
15699};
15700
15710 std::variant<std::int64_t, std::string> chatId { };
15711
15715 std::int32_t messageThreadId { };
15716
15721 std::string name = "";
15722
15729 std::string iconCustomEmojiId = "";
15730};
15731
15741 std::variant<std::int64_t, std::string> chatId { };
15742
15746 std::string name { };
15747};
15748
15759 std::variant<std::int64_t, std::string> chatId = { };
15760
15765 std::int32_t messageId = 0;
15766
15770 std::string caption = "";
15771
15776 std::string inlineMessageId = "";
15777
15781 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
15782
15787 std::string parseMode = "";
15788
15793 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
15794
15799 std::string businessConnectionId = "";
15800
15806};
15807
15817 std::variant<std::int64_t, std::string> chatId { };
15818
15823 std::string businessConnectionId { };
15824
15828 std::shared_ptr<InputChecklist> checklist { };
15829
15833 std::int32_t messageId { };
15834
15838 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
15839};
15840
15849 double latitude { };
15850
15854 double longitude { };
15855
15861 std::variant<std::int64_t, std::string> chatId = { };
15862
15867 std::int32_t messageId = 0;
15868
15873 std::string inlineMessageId = "";
15874
15878 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
15879
15884
15889 std::int32_t heading = 0;
15890
15895 std::int32_t proximityAlertRadius = 0;
15896
15901 std::string businessConnectionId = "";
15902
15911 std::int32_t livePeriod = 0;
15912};
15913
15922 std::shared_ptr<InputMedia> media { };
15923
15929 std::variant<std::int64_t, std::string> chatId = { };
15930
15935 std::int32_t messageId = 0;
15936
15941 std::string inlineMessageId = "";
15942
15946 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
15947
15952 std::string businessConnectionId = "";
15953
15959 std::vector<InputFileAttachment> attachments = { };
15960};
15961
15972 std::variant<std::int64_t, std::string> chatId = { };
15973
15978 std::int32_t messageId = 0;
15979
15984 std::string inlineMessageId = "";
15985
15989 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
15990
15995 std::string businessConnectionId = "";
15996};
15997
16007 std::string text = "";
16008
16014 std::variant<std::int64_t, std::string> chatId = { };
16015
16020 std::int32_t messageId = 0;
16021
16026 std::string inlineMessageId = "";
16027
16032 std::string parseMode = "";
16033
16037 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions = nullptr;
16038
16042 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
16043
16048 std::vector<std::shared_ptr<MessageEntity>> entities = { };
16049
16054 std::string businessConnectionId = "";
16055
16061 std::shared_ptr<InputRichMessage> richMessage = nullptr;
16062
16068 std::vector<InputFileAttachment> attachments = { };
16069};
16070
16079 std::string businessConnectionId { };
16080
16084 std::shared_ptr<InputStoryContent> content { };
16085
16089 std::int32_t storyId { };
16090
16094 std::vector<std::shared_ptr<StoryArea>> areas = { };
16095
16099 std::string caption = "";
16100
16105 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
16106
16111 std::string parseMode = "";
16112
16118 std::vector<InputFileAttachment> attachments = { };
16119};
16120
16132 bool isCanceled { };
16133
16138
16142 std::int64_t userId { };
16143};
16144
16154 std::variant<std::int64_t, std::string> chatId { };
16155};
16156
16166 std::variant<std::int64_t, std::string> chatId { };
16167
16173 std::variant<std::int64_t, std::string> fromChatId { };
16174
16178 std::int32_t messageId { };
16179
16185
16190 bool protectContent = false;
16191
16197 std::int32_t messageThreadId = 0;
16198
16204 std::int64_t directMessagesTopicId = 0;
16205
16210 std::string messageEffectId = "";
16211
16216 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
16217
16221 std::int32_t videoStartTimestamp = 0;
16222};
16223
16233 std::variant<std::int64_t, std::string> chatId { };
16234
16240 std::variant<std::int64_t, std::string> fromChatId { };
16241
16247 std::vector<std::int32_t> messageIds { };
16248
16254 std::int32_t messageThreadId = 0;
16255
16261
16266 bool protectContent = false;
16267
16273 std::int64_t directMessagesTopicId = 0;
16274};
16275
16284 std::string businessConnectionId { };
16285
16291
16297
16303
16307 bool excludeSaved = false;
16308
16312 bool excludeUnique = false;
16313
16318 bool excludeUnlimited = false;
16319
16324 bool excludeUnsaved = false;
16325
16329 std::int32_t limit = 0;
16330
16335 std::string offset = "";
16336
16341 bool sortByPrice = false;
16342};
16343
16354
16363 std::string businessConnectionId { };
16364};
16365
16375 std::variant<std::int64_t, std::string> chatId { };
16376};
16377
16387 std::variant<std::int64_t, std::string> chatId { };
16388
16393 bool returnBots = false;
16394};
16395
16405 std::variant<std::int64_t, std::string> chatId { };
16406
16412
16418
16424
16430 bool excludeSaved = false;
16431
16435 bool excludeUnique = false;
16436
16441 bool excludeUnlimited = false;
16442
16448 bool excludeUnsaved = false;
16449
16453 std::int32_t limit = 0;
16454
16459 std::string offset = "";
16460
16465 bool sortByPrice = false;
16466};
16467
16477 std::variant<std::int64_t, std::string> chatId { };
16478
16482 std::int64_t userId { };
16483};
16484
16494 std::variant<std::int64_t, std::string> chatId { };
16495};
16496
16506 std::variant<std::int64_t, std::string> chatId = { };
16507};
16508
16518 std::vector<std::string> customEmojiIds { };
16519};
16520
16529 std::string fileId { };
16530};
16531
16540 std::int64_t userId { };
16541
16546 std::variant<std::int64_t, std::string> chatId = { };
16547
16552 std::int32_t messageId = 0;
16553
16558 std::string inlineMessageId = "";
16559};
16560
16570 std::int64_t userId { };
16571};
16572
16581 std::int64_t userId { };
16582};
16583
16593 std::shared_ptr<BotCommandScope> scope = nullptr;
16594
16598 std::string languageCode = "";
16599};
16600
16613
16622 std::string languageCode = "";
16623};
16624
16633 std::string languageCode = "";
16634};
16635
16644 std::string languageCode = "";
16645};
16646
16656 std::int32_t limit = 0;
16657
16661 std::int32_t offset = 0;
16662};
16663
16672 std::string name { };
16673};
16674
16689 std::int32_t offset = 0;
16690
16695 std::int32_t limit = 100;
16696
16702 std::int32_t timeout = 0;
16703
16715 std::vector<std::string> allowedUpdates = { };
16716};
16717
16727 std::variant<std::int64_t, std::string> chatId { };
16728
16732 std::int64_t userId { };
16733};
16734
16743 std::int64_t userId { };
16744
16750
16756
16762
16766 bool excludeUnique = false;
16767
16772 bool excludeUnlimited = false;
16773
16777 std::int32_t limit = 0;
16778
16783 std::string offset = "";
16784
16789 bool sortByPrice = false;
16790};
16791
16800 std::int32_t limit { };
16801
16805 std::int64_t userId { };
16806};
16807
16816 std::int64_t userId { };
16817
16822 std::int32_t limit = 0;
16823
16828 std::int32_t offset = 0;
16829};
16830
16839 std::int64_t userId { };
16840
16845 std::int32_t offset = 0;
16846
16851 std::int32_t limit = 100;
16852};
16853
16863 std::int32_t monthCount { };
16864
16869 std::int32_t starCount { };
16870
16875 std::int64_t userId { };
16876
16881 std::string text = "";
16882
16889 std::vector<std::shared_ptr<MessageEntity>> textEntities = { };
16890
16896 std::string textParseMode = "";
16897};
16898
16908 std::variant<std::int64_t, std::string> chatId { };
16909};
16910
16921 std::variant<std::int64_t, std::string> chatId { };
16922};
16923
16933 std::variant<std::int64_t, std::string> chatId { };
16934
16938 std::int32_t messageId { };
16939
16944 std::string businessConnectionId = "";
16945
16952};
16953
16963 std::int32_t activePeriod { };
16964
16968 std::string businessConnectionId { };
16969
16973 std::shared_ptr<InputStoryContent> content { };
16974
16978 std::vector<std::shared_ptr<StoryArea>> areas = { };
16979
16983 std::string caption = "";
16984
16989 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
16990
16995 std::string parseMode = "";
16996
17000 bool postToChatPage = false;
17001
17006 bool protectContent = false;
17007
17013 std::vector<InputFileAttachment> attachments = { };
17014};
17015
17025 std::variant<std::int64_t, std::string> chatId { };
17026
17030 std::int64_t userId { };
17031
17036 bool canChangeInfo = false;
17037
17042 bool canPostMessages = false;
17043
17048 bool canEditMessages = false;
17049
17053 bool canDeleteMessages = false;
17054
17058 bool canInviteUsers = false;
17059
17063 bool canPinMessages = false;
17064
17071 bool canPromoteMembers = false;
17072
17076 bool isAnonymous = false;
17077
17084 bool canManageChat = false;
17085
17090
17097
17102 bool canManageTopics = false;
17103
17107 bool canPostStories = false;
17108
17114 bool canEditStories = false;
17115
17119 bool canDeleteStories = false;
17120
17126
17131 bool canManageTags = false;
17132
17138};
17139
17149 std::variant<std::int64_t, std::string> chatId { };
17150
17155 std::string businessConnectionId { };
17156
17160 std::int32_t messageId { };
17161};
17162
17172
17176 std::int64_t userId { };
17177};
17178
17187 std::string businessConnectionId { };
17188
17195 bool isPublic = false;
17196};
17197
17207 std::variant<std::int64_t, std::string> chatId { };
17208};
17209
17218 std::int64_t userId { };
17219};
17220
17230 std::variant<std::int64_t, std::string> chatId { };
17231
17235 std::int32_t messageThreadId { };
17236};
17237
17247 std::variant<std::int64_t, std::string> chatId { };
17248};
17249
17258 std::int64_t userId { };
17259};
17260
17269 std::int64_t userId { };
17270
17274 std::string name { };
17275
17279 std::string oldSticker { };
17280
17286 std::shared_ptr<InputSticker> sticker { };
17287
17293 std::vector<InputFileAttachment> attachments = { };
17294};
17295
17305 std::int32_t activePeriod { };
17306
17310 std::string businessConnectionId { };
17311
17316 std::variant<std::int64_t, std::string> fromChatId { };
17317
17321 std::int32_t fromStoryId { };
17322
17326 bool postToChatPage = false;
17327
17332 bool protectContent = false;
17333};
17334
17344 std::variant<std::int64_t, std::string> chatId { };
17345
17349 std::int64_t userId { };
17350
17354 std::shared_ptr<ChatPermissions> permissions { };
17355
17361 std::int32_t untilDate = 0;
17362
17372};
17373
17383 std::variant<std::int64_t, std::string> chatId { };
17384
17388 std::string inviteLink { };
17389};
17390
17399 std::shared_ptr<InlineQueryResult> result { };
17400
17404 std::int64_t userId { };
17405
17409 bool allowBotChats = false;
17410
17414 bool allowChannelChats = false;
17415
17419 bool allowGroupChats = false;
17420
17424 bool allowUserChats = false;
17425};
17426
17436 std::shared_ptr<KeyboardButton> button { };
17437
17441 std::int64_t userId { };
17442};
17443
17453 std::variant<std::int64_t, std::string> chatId { };
17454
17462 std::variant<std::shared_ptr<InputFile>, std::string> animation { };
17463
17467 std::int32_t duration = 0;
17468
17472 std::int32_t width = 0;
17473
17477 std::int32_t height = 0;
17478
17489 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { };
17490
17495 std::string caption = "";
17496
17500 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
17501
17507 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
17508 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
17510
17515 std::string parseMode = "";
17516
17522
17527 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
17528
17534 std::int32_t messageThreadId = 0;
17535
17539 bool protectContent = false;
17540
17544 bool hasSpoiler = false;
17545
17550 std::string businessConnectionId = "";
17551
17558
17562 std::string callbackQueryId = "";
17563
17568 std::int64_t directMessagesTopicId = 0;
17569
17574 std::string messageEffectId = "";
17575
17579 std::int64_t receiverUserId = 0;
17580
17585
17592 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
17593
17598 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
17599};
17600
17610 std::variant<std::int64_t, std::string> chatId { };
17611
17618 std::variant<std::shared_ptr<InputFile>, std::string> audio { };
17619
17623 std::string caption = "";
17624
17628 std::int32_t duration = 0;
17629
17633 std::string performer = "";
17634
17638 std::string title = "";
17639
17650 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { };
17651
17655 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
17656
17662 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
17663 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
17665
17670 std::string parseMode = "";
17671
17677
17682 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
17683
17689 std::int32_t messageThreadId = 0;
17690
17694 bool protectContent = false;
17695
17700 std::string businessConnectionId = "";
17701
17708
17712 std::string callbackQueryId = "";
17713
17718 std::int64_t directMessagesTopicId = 0;
17719
17724 std::string messageEffectId = "";
17725
17729 std::int64_t receiverUserId = 0;
17730
17737 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
17738
17743 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
17744};
17745
17756 std::variant<std::int64_t, std::string> chatId { };
17757
17766 std::string action { };
17767
17772 std::int32_t messageThreadId = 0;
17773
17778 std::string businessConnectionId = "";
17779};
17780
17789 std::string chatJoinRequestQueryId { };
17790
17795 std::string webAppUrl { };
17796};
17797
17807 std::variant<std::int64_t, std::string> chatId { };
17808
17813 std::string businessConnectionId { };
17814
17818 std::shared_ptr<InputChecklist> checklist { };
17819
17825
17829 std::string messageEffectId = "";
17830
17834 bool protectContent = false;
17835
17839 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
17840
17844 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
17845};
17846
17856 std::variant<std::int64_t, std::string> chatId { };
17857
17861 std::string phoneNumber { };
17862
17866 std::string firstName { };
17867
17871 std::string lastName = "";
17872
17876 std::string vcard = "";
17877
17883
17887 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
17888
17894 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
17895 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
17897
17903 std::int32_t messageThreadId = 0;
17904
17908 bool protectContent = false;
17909
17914 std::string businessConnectionId = "";
17915
17922
17926 std::string callbackQueryId = "";
17927
17932 std::int64_t directMessagesTopicId = 0;
17933
17938 std::string messageEffectId = "";
17939
17943 std::int64_t receiverUserId = 0;
17944
17951 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
17952
17957 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
17958};
17959
17969 std::variant<std::int64_t, std::string> chatId { };
17970
17976
17980 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
17981
17987 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
17988 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
17990
17996 std::string emoji = "";
17997
18003 std::int32_t messageThreadId = 0;
18004
18008 bool protectContent = false;
18009
18014 std::string businessConnectionId = "";
18015
18022
18027 std::int64_t directMessagesTopicId = 0;
18028
18033 std::string messageEffectId = "";
18034
18041 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
18042};
18043
18053 std::variant<std::int64_t, std::string> chatId { };
18054
18061 std::variant<std::shared_ptr<InputFile>, std::string> document { };
18062
18073 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { };
18074
18079 std::string caption = "";
18080
18084 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
18085
18091 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18092 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18094
18099 std::string parseMode = "";
18100
18106
18111 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
18112
18118
18124 std::int32_t messageThreadId = 0;
18125
18129 bool protectContent = false;
18130
18135 std::string businessConnectionId = "";
18136
18143
18147 std::string callbackQueryId = "";
18148
18153 std::int64_t directMessagesTopicId = 0;
18154
18159 std::string messageEffectId = "";
18160
18164 std::int64_t receiverUserId = 0;
18165
18172 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
18173
18178 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
18179};
18180
18191 std::variant<std::int64_t, std::string> chatId { };
18192
18197 std::string gameShortName { };
18198
18202 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
18203
18209 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
18210
18216
18222 std::int32_t messageThreadId = 0;
18223
18227 bool protectContent = false;
18228
18233 std::string businessConnectionId = "";
18234
18241
18246 std::string messageEffectId = "";
18247};
18248
18257 std::string giftId { };
18258
18264 std::variant<std::int64_t, std::string> chatId = { };
18265
18270 bool payForUpgrade = false;
18271
18275 std::string text = "";
18276
18283 std::vector<std::shared_ptr<MessageEntity>> textEntities = { };
18284
18290 std::string textParseMode = "";
18291
18296 std::int64_t userId = 0;
18297};
18298
18308 std::variant<std::int64_t, std::string> chatId { };
18309
18313 std::string title { };
18314
18318 std::string description { };
18319
18324 std::string payload { };
18325
18330 std::string providerToken { };
18331
18336 std::string currency { };
18337
18343 std::vector<std::shared_ptr<LabeledPrice>> prices { };
18344
18350 std::string providerData = "";
18351
18357 std::string photoUrl = "";
18358
18362 std::int32_t photoSize = 0;
18363
18367 std::int32_t photoWidth = 0;
18368
18372 std::int32_t photoHeight = 0;
18373
18378 bool needName = false;
18379
18384 bool needPhoneNumber = false;
18385
18390 bool needEmail = false;
18391
18397
18403
18409
18414 bool isFlexible = false;
18415
18419 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
18420
18426 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
18427
18433
18439 std::int32_t messageThreadId = 0;
18440
18449 std::int32_t maxTipAmount = 0;
18450
18458 std::vector<std::int32_t> suggestedTipAmounts = { };
18459
18468 std::string startParameter = "";
18469
18473 bool protectContent = false;
18474
18481
18486 std::int64_t directMessagesTopicId = 0;
18487
18492 std::string messageEffectId = "";
18493
18500 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
18501};
18502
18512 std::variant<std::int64_t, std::string> chatId { };
18513
18521 std::variant<std::shared_ptr<InputFile>, std::string> livePhoto { };
18522
18529 std::variant<std::shared_ptr<InputFile>, std::string> photo { };
18530
18537
18542 std::string businessConnectionId = "";
18543
18547 std::string callbackQueryId = "";
18548
18553 std::string caption = "";
18554
18559 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
18560
18565 std::int64_t directMessagesTopicId = 0;
18566
18572
18576 bool hasSpoiler = false;
18577
18582 std::string messageEffectId = "";
18583
18589 std::int32_t messageThreadId = 0;
18590
18595 std::string parseMode = "";
18596
18600 bool protectContent = false;
18601
18605 std::int64_t receiverUserId = 0;
18606
18612 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18613 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18615
18619 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
18620
18625
18632 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
18633
18638 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
18639};
18640
18650 std::variant<std::int64_t, std::string> chatId { };
18651
18655 double latitude { };
18656
18660 double longitude { };
18661
18668 std::int32_t livePeriod = 0;
18669
18673 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
18674
18680 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18681 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18683
18689
18694
18699 std::int32_t heading = 0;
18700
18706 std::int32_t proximityAlertRadius = 0;
18707
18713 std::int32_t messageThreadId = 0;
18714
18718 bool protectContent = false;
18719
18724 std::string businessConnectionId = "";
18725
18732
18736 std::string callbackQueryId = "";
18737
18742 std::int64_t directMessagesTopicId = 0;
18743
18748 std::string messageEffectId = "";
18749
18753 std::int64_t receiverUserId = 0;
18754
18761 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
18762
18767 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
18768};
18769
18779 std::variant<std::int64_t, std::string> chatId { };
18780
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>>>
18789
18795
18799 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
18800
18806 std::int32_t messageThreadId = 0;
18807
18811 bool protectContent = false;
18812
18817 std::string businessConnectionId = "";
18818
18825
18830 std::int64_t directMessagesTopicId = 0;
18831
18836 std::string messageEffectId = "";
18837
18843 std::vector<InputFileAttachment> attachments = { };
18844};
18845
18855 std::variant<std::int64_t, std::string> chatId { };
18856
18860 std::string text { };
18861
18865 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions = nullptr;
18866
18870 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
18871
18877 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18878 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18880
18885 std::string parseMode = "";
18886
18892
18897 std::vector<std::shared_ptr<MessageEntity>> entities = { };
18898
18904 std::int32_t messageThreadId = 0;
18905
18909 bool protectContent = false;
18910
18915 std::string businessConnectionId = "";
18916
18923
18927 std::string callbackQueryId = "";
18928
18933 std::int64_t directMessagesTopicId = 0;
18934
18939 std::string messageEffectId = "";
18940
18944 std::int64_t receiverUserId = 0;
18945
18952 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
18953
18958 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
18959};
18960
18969 std::variant<std::int64_t, std::string> chatId { };
18970
18976 std::int32_t draftId { };
18977
18982 std::vector<std::shared_ptr<MessageEntity>> entities = { };
18983
18987 std::int32_t messageThreadId = 0;
18988
18993 std::string parseMode = "";
18994
18999 std::string text = "";
19000
19006 bool canStop = false;
19007
19014 bool keepOnStop = false;
19015};
19016
19028 std::variant<std::int64_t, std::string> chatId { };
19029
19033 std::vector<std::shared_ptr<InputPaidMedia>> media { };
19034
19039 std::int32_t starCount { };
19040
19047
19052 std::string businessConnectionId = "";
19053
19057 std::string caption = "";
19058
19063 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
19064
19069 std::int64_t directMessagesTopicId = 0;
19070
19076
19082 std::int32_t messageThreadId = 0;
19083
19088 std::string parseMode = "";
19089
19094 std::string payload = "";
19095
19099 bool protectContent = false;
19100
19106 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19107 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19109
19113 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
19114
19119
19126 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
19127
19133 std::vector<InputFileAttachment> attachments = { };
19134};
19135
19145 std::variant<std::int64_t, std::string> chatId { };
19146
19155 std::variant<std::shared_ptr<InputFile>, std::string> photo { };
19156
19161 std::string caption = "";
19162
19166 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
19167
19173 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19174 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19176
19181 std::string parseMode = "";
19182
19188
19193 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
19194
19200 std::int32_t messageThreadId = 0;
19201
19205 bool protectContent = false;
19206
19210 bool hasSpoiler = false;
19211
19216 std::string businessConnectionId = "";
19217
19224
19228 std::string callbackQueryId = "";
19229
19234 std::int64_t directMessagesTopicId = 0;
19235
19240 std::string messageEffectId = "";
19241
19245 std::int64_t receiverUserId = 0;
19246
19251
19258 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
19259
19264 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
19265};
19266
19277 std::variant<std::int64_t, std::string> chatId { };
19278
19282 std::string question { };
19283
19287 std::vector<std::shared_ptr<InputPollOption>> options { };
19288
19294
19298 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
19299
19305 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19306 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19308
19312 bool isAnonymous = true;
19313
19317 std::string type = "";
19318
19323
19329 std::string explanation = "";
19330
19335 std::string explanationParseMode = "";
19336
19341 std::vector<std::shared_ptr<MessageEntity>> explanationEntities = { };
19342
19347 std::int32_t openPeriod = 0;
19348
19354 std::int32_t closeDate = 0;
19355
19360 bool isClosed = false;
19361
19367 std::int32_t messageThreadId = 0;
19368
19372 bool protectContent = false;
19373
19378 std::string businessConnectionId = "";
19379
19385
19392
19397 bool allowsRevoting = false;
19398
19403 std::vector<std::int32_t> correctOptionIds = { };
19404
19412 std::vector<std::string> countryCodes = { };
19413
19418 std::string description = "";
19419
19424 std::vector<std::shared_ptr<MessageEntity>> descriptionEntities = { };
19425
19430 std::string descriptionParseMode = "";
19431
19435 std::shared_ptr<InputPollMedia> explanationMedia = nullptr;
19436
19441
19445 std::shared_ptr<InputPollMedia> media = nullptr;
19446
19452 bool membersOnly = false;
19453
19458 std::string messageEffectId = "";
19459
19464 std::vector<std::shared_ptr<MessageEntity>> questionEntities = { };
19465
19470 std::string questionParseMode = "";
19471
19475 bool shuffleOptions = false;
19476};
19477
19487 std::variant<std::int64_t, std::string> chatId { };
19488
19492 std::shared_ptr<InputRichMessage> richMessage { };
19493
19500
19506 std::string businessConnectionId = "";
19507
19512 std::int64_t directMessagesTopicId = 0;
19513
19519
19524 std::string messageEffectId = "";
19525
19531 std::int32_t messageThreadId = 0;
19532
19536 bool protectContent = false;
19537
19543 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19544 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19546
19550 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
19551
19558 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
19559
19565 std::vector<InputFileAttachment> attachments = { };
19566
19571 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
19572};
19573
19582 std::variant<std::int64_t, std::string> chatId { };
19583
19589 std::int32_t draftId { };
19590
19595 std::shared_ptr<InputRichMessage> richMessage { };
19596
19600 std::int32_t messageThreadId = 0;
19601
19607 bool canStop = false;
19608
19615 bool keepOnStop = false;
19616};
19617
19627 std::variant<std::int64_t, std::string> chatId { };
19628
19637 std::variant<std::shared_ptr<InputFile>, std::string> sticker { };
19638
19642 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
19643
19649 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19650 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19652
19658
19664 std::int32_t messageThreadId = 0;
19665
19669 bool protectContent = false;
19670
19674 std::string emoji = "";
19675
19680 std::string businessConnectionId = "";
19681
19688
19692 std::string callbackQueryId = "";
19693
19698 std::int64_t directMessagesTopicId = 0;
19699
19704 std::string messageEffectId = "";
19705
19709 std::int64_t receiverUserId = 0;
19710
19717 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
19718
19723 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
19724};
19725
19735 std::variant<std::int64_t, std::string> chatId { };
19736
19740 double latitude { };
19741
19745 double longitude { };
19746
19750 std::string title { };
19751
19755 std::string address { };
19756
19760 std::string foursquareId = "";
19761
19767 std::string foursquareType = "";
19768
19774
19778 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
19779
19785 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19786 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19788
19792 std::string googlePlaceId = "";
19793
19797 std::string googlePlaceType = "";
19798
19804 std::int32_t messageThreadId = 0;
19805
19809 bool protectContent = false;
19810
19815 std::string businessConnectionId = "";
19816
19823
19827 std::string callbackQueryId = "";
19828
19833 std::int64_t directMessagesTopicId = 0;
19834
19839 std::string messageEffectId = "";
19840
19844 std::int64_t receiverUserId = 0;
19845
19852 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
19853
19858 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
19859};
19860
19870 std::variant<std::int64_t, std::string> chatId { };
19871
19878 std::variant<std::shared_ptr<InputFile>, std::string> video { };
19879
19883 bool supportsStreaming = false;
19884
19888 std::int32_t duration = 0;
19889
19893 std::int32_t width = 0;
19894
19898 std::int32_t height = 0;
19899
19910 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { };
19911
19916 std::string caption = "";
19917
19921 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
19922
19928 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19929 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19931
19936 std::string parseMode = "";
19937
19943
19948 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
19949
19955 std::int32_t messageThreadId = 0;
19956
19960 bool protectContent = false;
19961
19965 bool hasSpoiler = false;
19966
19971 std::string businessConnectionId = "";
19972
19979
19983 std::string callbackQueryId = "";
19984
19992 std::variant<std::shared_ptr<InputFile>, std::string> cover = { };
19993
19998 std::int64_t directMessagesTopicId = 0;
19999
20004 std::string messageEffectId = "";
20005
20009 std::int64_t receiverUserId = 0;
20010
20015
20019 std::int32_t startTimestamp = 0;
20020
20027 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
20028
20033 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
20034};
20035
20045 std::variant<std::int64_t, std::string> chatId { };
20046
20053 std::variant<std::shared_ptr<InputFile>, std::string> videoNote { };
20054
20058 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
20059
20065
20069 std::int32_t duration = 0;
20070
20074 std::int32_t length = 0;
20075
20086 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { };
20087
20093 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20094 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20096
20102 std::int32_t messageThreadId = 0;
20103
20107 bool protectContent = false;
20108
20113 std::string businessConnectionId = "";
20114
20121
20125 std::string callbackQueryId = "";
20126
20131 std::int64_t directMessagesTopicId = 0;
20132
20137 std::string messageEffectId = "";
20138
20142 std::int64_t receiverUserId = 0;
20143
20150 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
20151
20156 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
20157};
20158
20168 std::variant<std::int64_t, std::string> chatId { };
20169
20176 std::variant<std::shared_ptr<InputFile>, std::string> voice { };
20177
20181 std::string caption = "";
20182
20186 std::int32_t duration = 0;
20187
20191 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
20192
20198 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20199 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20201
20206 std::string parseMode = "";
20207
20213
20218 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
20219
20225 std::int32_t messageThreadId = 0;
20226
20230 bool protectContent = false;
20231
20236 std::string businessConnectionId = "";
20237
20244
20248 std::string callbackQueryId = "";
20249
20254 std::int64_t directMessagesTopicId = 0;
20255
20260 std::string messageEffectId = "";
20261
20265 std::int64_t receiverUserId = 0;
20266
20273 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
20274
20279 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
20280};
20281
20290 std::string businessConnectionId { };
20291
20295 std::string bio = "";
20296};
20297
20306 std::shared_ptr<AcceptedGiftTypes> acceptedGiftTypes { };
20307
20311 std::string businessConnectionId { };
20312
20318};
20319
20328 std::string businessConnectionId { };
20329
20334 std::string firstName { };
20335
20339 std::string lastName = "";
20340};
20341
20350 std::string businessConnectionId { };
20351
20355 std::shared_ptr<InputProfilePhoto> photo { };
20356
20362 bool isPublic = false;
20363
20369 std::vector<InputFileAttachment> attachments = { };
20370};
20371
20380 std::string businessConnectionId { };
20381
20385 std::string username = "";
20386};
20387
20397 std::variant<std::int64_t, std::string> chatId { };
20398
20402 std::int64_t userId { };
20403
20408 std::string customTitle { };
20409};
20410
20420 std::variant<std::int64_t, std::string> chatId { };
20421
20425 std::string description = "";
20426};
20427
20437 std::variant<std::int64_t, std::string> chatId { };
20438
20442 std::int64_t userId { };
20443
20447 std::string tag = "";
20448};
20449
20459 std::variant<std::int64_t, std::string> chatId = { };
20460
20465 std::shared_ptr<MenuButton> menuButton = nullptr;
20466};
20467
20477 std::variant<std::int64_t, std::string> chatId { };
20478
20482 std::shared_ptr<ChatPermissions> permissions { };
20483
20493};
20494
20504 std::variant<std::int64_t, std::string> chatId { };
20505
20509 std::variant<std::shared_ptr<InputFile>, std::string> photo { };
20510};
20511
20521 std::variant<std::int64_t, std::string> chatId { };
20522
20526 std::string stickerSetName { };
20527};
20528
20538 std::variant<std::int64_t, std::string> chatId { };
20539
20543 std::string title { };
20544};
20545
20554 std::string name { };
20555
20560 std::string customEmojiId = "";
20561};
20562
20571 std::int64_t userId { };
20572
20576 std::int32_t score { };
20577
20582 bool force = false;
20583
20589
20594 std::variant<std::int64_t, std::string> chatId = { };
20595
20600 std::int32_t messageId = 0;
20601
20606 std::string inlineMessageId = "";
20607};
20608
20619
20623 std::int64_t userId { };
20624
20630 std::vector<std::int32_t> addedUserIds = { };
20631};
20632
20642 std::variant<std::int64_t, std::string> chatId { };
20643
20649 std::int32_t messageId { };
20650
20658 std::vector<std::shared_ptr<ReactionType>> reaction = { };
20659
20663 bool isBig = false;
20664};
20665
20675 std::vector<std::shared_ptr<BotCommand>> commands { };
20676
20681 std::shared_ptr<BotCommandScope> scope = nullptr;
20682
20688 std::string languageCode = "";
20689};
20690
20700 std::shared_ptr<ChatAdministratorRights> rights = nullptr;
20701
20707 bool forChannels = false;
20708};
20709
20719 std::string description = "";
20720
20726 std::string languageCode = "";
20727};
20728
20738 std::string name = "";
20739
20744 std::string languageCode = "";
20745};
20746
20755 std::shared_ptr<InputProfilePhoto> photo { };
20756
20762 std::vector<InputFileAttachment> attachments = { };
20763};
20764
20774 std::string shortDescription = "";
20775
20781 std::string languageCode = "";
20782};
20783
20792 std::int64_t userId { };
20793
20797 std::vector<std::shared_ptr<PassportElementError>> errors { };
20798};
20799
20808 std::string sticker { };
20809
20813 std::vector<std::string> emojiList { };
20814};
20815
20824 std::string sticker { };
20825
20830 std::vector<std::string> keywords = { };
20831};
20832
20841 std::string sticker { };
20842
20847 std::shared_ptr<MaskPosition> maskPosition = nullptr;
20848};
20849
20858 std::string sticker { };
20859
20863 std::int32_t position { };
20864};
20865
20874 std::string name { };
20875
20879 std::int64_t userId { };
20880
20885 std::string format { };
20886
20902 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { };
20903};
20904
20913 std::string name { };
20914
20918 std::string title { };
20919};
20920
20929 std::int64_t userId { };
20930
20936
20941};
20942
20952 std::string url { };
20953
20958 std::shared_ptr<InputFile> certificate = nullptr;
20959
20966 std::int32_t maxConnections = 40;
20967
20979 std::vector<std::string> allowedUpdates = { };
20980
20985 std::string ipAddress = "";
20986
20991
20998 std::string secretToken = "";
20999};
21000
21011 std::variant<std::int64_t, std::string> chatId = { };
21012
21017 std::int32_t messageId = 0;
21018
21023 std::string inlineMessageId = "";
21024
21028 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
21029
21034 std::string businessConnectionId = "";
21035};
21036
21046 std::variant<std::int64_t, std::string> chatId { };
21047
21051 std::int32_t messageId { };
21052
21057 std::string businessConnectionId = "";
21058
21062 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
21063};
21064
21073 std::string businessConnectionId { };
21074
21078 std::int32_t starCount { };
21079};
21080
21089 std::string businessConnectionId { };
21090
21095 std::int64_t newOwnerChatId { };
21096
21100 std::string ownedGiftId { };
21101
21107 std::int32_t starCount = 0;
21108};
21109
21119 std::variant<std::int64_t, std::string> chatId { };
21120
21124 std::int64_t userId { };
21125
21129 bool onlyIfBanned = false;
21130};
21131
21141 std::variant<std::int64_t, std::string> chatId { };
21142
21146 std::int64_t senderChatId { };
21147};
21148
21158 std::variant<std::int64_t, std::string> chatId { };
21159};
21160
21170 std::variant<std::int64_t, std::string> chatId { };
21171};
21172
21182 std::variant<std::int64_t, std::string> chatId { };
21183
21187 std::int32_t messageThreadId { };
21188};
21189
21199 std::variant<std::int64_t, std::string> chatId { };
21200};
21201
21211 std::variant<std::int64_t, std::string> chatId { };
21212
21217 std::string businessConnectionId = "";
21218
21224 std::int32_t messageId = 0;
21225};
21226
21235 std::string businessConnectionId { };
21236
21241 std::string ownedGiftId { };
21242
21248
21255 std::int32_t starCount = 0;
21256};
21257
21266 std::int64_t userId { };
21267
21273 std::variant<std::shared_ptr<InputFile>, std::string> sticker { };
21274
21278 std::string stickerFormat { };
21279};
21280
21291 std::variant<std::int64_t, std::string> chatId { };
21292
21298 std::string customDescription = "";
21299};
21300
21309 std::int64_t userId { };
21310
21316 std::string customDescription = "";
21317};
21318
21319} // namespace TgBot
#define TGBOT_API
Definition export.h:5
Definition Api.h:18
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.
Definition Types.h:423
bool unlimitedGifts
True, if unlimited regular gifts are accepted.
Definition Types.h:429
bool giftsFromChannels
True, if transfers of unique gifts from channels are accepted.
Definition Types.h:445
std::shared_ptr< AcceptedGiftTypes > Ptr
Definition Types.h:424
bool limitedGifts
True, if limited regular gifts are accepted.
Definition Types.h:433
bool uniqueGifts
True, if unique gifts or gifts that can be upgraded to unique for free are accepted.
Definition Types.h:437
bool premiumSubscription
True, if a Telegram Premium subscription is accepted.
Definition Types.h:441
Arguments for Api::addStickerToSet.
Definition Types.h:14381
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:14404
std::string name
Sticker set name.
Definition Types.h:14390
std::shared_ptr< InputSticker > sticker
A JSON-serialized object with information about the added sticker. If exactly the same sticker had al...
Definition Types.h:14397
std::int64_t userId
User identifier of sticker set owner.
Definition Types.h:14385
Contains information about the affiliate that received a commission via this transaction.
Definition Types.h:455
std::int32_t commissionPerMille
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the b...
Definition Types.h:471
std::shared_ptr< Chat > affiliateChat
Optional. The chat that received an affiliate commission if it was received by a chat.
Definition Types.h:466
std::shared_ptr< AffiliateInfo > Ptr
Definition Types.h:456
std::optional< std::int32_t > nanostarAmount
Optional. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999...
Definition Types.h:481
std::int32_t amount
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be...
Definition Types.h:476
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 ...
Definition Types.h:462
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
Definition Types.h:491
std::int32_t duration
Duration of the video in seconds as defined by the sender.
Definition Types.h:514
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...
Definition Types.h:533
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:502
std::optional< std::string > fileName
Optional. Original animation filename as defined by the sender.
Definition Types.h:522
std::shared_ptr< Animation > Ptr
Definition Types.h:492
std::int32_t height
Video height as defined by the sender.
Definition Types.h:510
std::shared_ptr< PhotoSize > thumbnail
Optional. Animation thumbnail as defined by the sender.
Definition Types.h:518
std::int32_t width
Video width as defined by the sender.
Definition Types.h:506
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:526
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:497
Arguments for Api::answerCallbackQuery.
Definition Types.h:14411
std::string text
Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters.
Definition Types.h:14421
std::string url
URL that will be opened by the user's client. If you have created a Game and accepted the conditions ...
Definition Types.h:14436
std::string callbackQueryId
Unique identifier for the query to be answered.
Definition Types.h:14415
bool showAlert
If True, an alert will be shown by the client instead of a notification at the top of the chat screen...
Definition Types.h:14427
std::int32_t cacheTime
The maximum amount of time in seconds that the result of the callback query may be cached client-side...
Definition Types.h:14442
Arguments for Api::answerChatJoinRequestQuery.
Definition Types.h:14449
std::string result
Result of the query. Must be either “approve” to allow the user to join the chat, “decline” to disall...
Definition Types.h:14460
std::string chatJoinRequestQueryId
Unique identifier of the join request query.
Definition Types.h:14453
Arguments for Api::answerGuestQuery.
Definition Types.h:14467
std::shared_ptr< InlineQueryResult > result
A JSON-serialized object describing the message to be sent.
Definition Types.h:14476
std::string guestQueryId
Unique identifier for the query to be answered.
Definition Types.h:14471
Arguments for Api::answerInlineQuery.
Definition Types.h:14483
std::vector< std::shared_ptr< InlineQueryResult > > results
A JSON-serialized Array of results for the inline query.
Definition Types.h:14492
std::string inlineQueryId
Unique identifier for the answered query.
Definition Types.h:14487
std::string nextOffset
Pass the offset that a client should send in the next query with the same text to receive more result...
Definition Types.h:14513
std::int32_t cacheTime
The maximum amount of time in seconds that the result of the inline query may be cached on the server...
Definition Types.h:14498
bool isPersonal
Pass True if results may be cached on the server side only for the user that sent the query....
Definition Types.h:14505
std::shared_ptr< InlineQueryResultsButton > button
A JSON-serialized object describing a button to be shown above inline query results.
Definition Types.h:14519
Arguments for Api::answerPreCheckoutQuery.
Definition Types.h:14526
std::string errorMessage
Required if ok is False. Error message in human readable form that explains the reason for failure to...
Definition Types.h:14547
std::string preCheckoutQueryId
Unique identifier for the query to be answered.
Definition Types.h:14530
bool ok
Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed wit...
Definition Types.h:14537
Arguments for Api::answerShippingQuery.
Definition Types.h:14554
std::vector< std::shared_ptr< ShippingOption > > shippingOptions
Required if ok is True. A JSON-serialized Array of available shipping options.
Definition Types.h:14571
std::string shippingQueryId
Unique identifier for the query to be answered.
Definition Types.h:14558
std::string errorMessage
Required if ok is False. Error message in human readable form that explains why it is impossible to c...
Definition Types.h:14579
bool ok
Pass True if delivery to the specified address is possible and False if there are any problems (for e...
Definition Types.h:14565
Arguments for Api::answerWebAppQuery.
Definition Types.h:14586
std::string webAppQueryId
Unique identifier for the query to be answered.
Definition Types.h:14590
std::shared_ptr< InlineQueryResult > result
A JSON-serialized object describing the message to be sent.
Definition Types.h:14595
Arguments for Api::approveChatJoinRequest.
Definition Types.h:14602
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:14607
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:14612
Arguments for Api::approveSuggestedPost.
Definition Types.h:14619
std::int32_t messageId
Identifier of a suggested post message to approve.
Definition Types.h:14628
std::int32_t sendDate
Point in time (Unix timestamp) when the post is expected to be published; omit if the date has alread...
Definition Types.h:14636
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target direct messages chat.
Definition Types.h:14623
This object represents an audio file to be treated as music by the Telegram clients.
Definition Types.h:543
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:574
std::optional< std::string > performer
Optional. Performer of the audio as defined by the sender or by audio tags.
Definition Types.h:562
std::int32_t duration
Duration of the audio in seconds as defined by the sender.
Definition Types.h:558
std::optional< std::string > title
Optional. Title of the audio as defined by the sender or by audio tags.
Definition Types.h:566
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...
Definition Types.h:581
std::shared_ptr< Audio > Ptr
Definition Types.h:544
std::optional< std::string > fileName
Optional. Original filename as defined by the sender.
Definition Types.h:570
std::shared_ptr< PhotoSize > thumbnail
Optional. Thumbnail of the album cover to which the music file belongs.
Definition Types.h:585
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:549
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:554
The background is a freeform gradient that rotates after every message in the chat.
Definition Types.h:612
static TGBOT_API const std::string TYPE
Definition Types.h:615
std::string type
Type of the background fill, always “freeform_gradient”
Definition Types.h:620
std::shared_ptr< BackgroundFillFreeformGradient > Ptr
Definition Types.h:613
std::vector< std::int32_t > colors
A list of the 3 or 4 base colors that are used to generate the freeform gradient in the RGB24 format.
Definition Types.h:625
The background is a gradient fill.
Definition Types.h:635
static TGBOT_API const std::string TYPE
Definition Types.h:638
std::string type
Type of the background fill, always “gradient”
Definition Types.h:643
std::int32_t rotationAngle
Clockwise rotation angle of the background fill in degrees; 0-359.
Definition Types.h:655
std::int32_t topColor
Top color of the gradient in the RGB24 format.
Definition Types.h:647
std::int32_t bottomColor
Bottom color of the gradient in the RGB24 format.
Definition Types.h:651
std::shared_ptr< BackgroundFillGradient > Ptr
Definition Types.h:636
This object describes the way a background is filled based on the selected colors....
Definition Types.h:597
std::shared_ptr< BackgroundFill > Ptr
Definition Types.h:598
std::variant< std::shared_ptr< BackgroundFillSolid >, std::shared_ptr< BackgroundFillGradient >, std::shared_ptr< BackgroundFillFreeformGradient > > value
Definition Types.h:602
The background is filled using the selected color.
Definition Types.h:665
static TGBOT_API const std::string TYPE
Definition Types.h:668
std::int32_t color
The color of the background fill in the RGB24 format.
Definition Types.h:677
std::shared_ptr< BackgroundFillSolid > Ptr
Definition Types.h:666
std::string type
Type of the background fill, always “solid”
Definition Types.h:673
The background is taken directly from a built-in chat theme.
Definition Types.h:703
std::string themeName
Name of the chat theme, which is usually an emoji.
Definition Types.h:715
static TGBOT_API const std::string TYPE
Definition Types.h:706
std::string type
Type of the background, always “chat_theme”
Definition Types.h:711
std::shared_ptr< BackgroundTypeChatTheme > Ptr
Definition Types.h:704
The background is automatically filled based on the selected colors.
Definition Types.h:725
std::int32_t darkThemeDimming
Dimming of the background in dark themes, as a percentage; 0-100.
Definition Types.h:741
std::shared_ptr< BackgroundTypeFill > Ptr
Definition Types.h:726
std::shared_ptr< BackgroundFill > fill
The background fill.
Definition Types.h:737
std::string type
Type of the background, always “fill”
Definition Types.h:733
static TGBOT_API const std::string TYPE
Definition Types.h:728
This object describes the type of a background. Currently, it can be one of BackgroundTypeFill Backgr...
Definition Types.h:688
std::variant< std::shared_ptr< BackgroundTypeFill >, std::shared_ptr< BackgroundTypeWallpaper >, std::shared_ptr< BackgroundTypePattern >, std::shared_ptr< BackgroundTypeChatTheme > > value
Definition Types.h:693
std::shared_ptr< BackgroundType > Ptr
Definition Types.h:689
The background is a .PNG or .TGV (gzipped subset of SVG with MIME type “application/x-tgwallpattern”)...
Definition Types.h:753
std::int32_t intensity
Intensity of the pattern when it is shown above the filled background; 0-100.
Definition Types.h:773
std::shared_ptr< BackgroundTypePattern > Ptr
Definition Types.h:754
std::shared_ptr< BackgroundFill > fill
The background fill that is combined with the pattern.
Definition Types.h:769
std::shared_ptr< Document > document
Document with the pattern.
Definition Types.h:765
std::optional< bool > isInverted
Optional. True, if the background fill must be applied only to the pattern itself....
Definition Types.h:778
static TGBOT_API const std::string TYPE
Definition Types.h:756
std::string type
Type of the background, always “pattern”
Definition Types.h:761
std::optional< bool > isMoving
Optional. True, if the background moves slightly when the device is tilted.
Definition Types.h:782
The background is a wallpaper in the JPEG format.
Definition Types.h:792
std::optional< bool > isBlurred
Optional. True, if the wallpaper is downscaled to fit in a 450x450 square and then box- blurred with ...
Definition Types.h:813
std::optional< bool > isMoving
Optional. True, if the background moves slightly when the device is tilted.
Definition Types.h:817
std::string type
Type of the background, always “wallpaper”
Definition Types.h:800
std::int32_t darkThemeDimming
Dimming of the background in dark themes, as a percentage; 0-100.
Definition Types.h:808
std::shared_ptr< BackgroundTypeWallpaper > Ptr
Definition Types.h:793
std::shared_ptr< Document > document
Document with the wallpaper.
Definition Types.h:804
static TGBOT_API const std::string TYPE
Definition Types.h:795
Arguments for Api::banChatMember.
Definition Types.h:14643
bool revokeMessages
Pass True to delete all messages from the chat for the user that is being removed....
Definition Types.h:14669
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:14653
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...
Definition Types.h:14661
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 ...
Definition Types.h:14648
Arguments for Api::banChatSenderChat.
Definition Types.h:14676
std::int64_t senderChatId
Unique identifier of the target sender chat.
Definition Types.h:14686
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:14681
Describes the birthdate of a user.
Definition Types.h:827
std::int32_t month
Month of the user's birth; 1-12.
Definition Types.h:837
std::optional< std::int32_t > year
Optional. Year of the user's birth.
Definition Types.h:841
std::int32_t day
Day of the user's birth; 1-31.
Definition Types.h:833
std::shared_ptr< Birthdate > Ptr
Definition Types.h:828
This object describes the access settings of a bot.
Definition Types.h:851
std::shared_ptr< BotAccessSettings > Ptr
Definition Types.h:852
bool isAccessRestricted
True, if only selected users can access the bot. The bot's owner can always access it.
Definition Types.h:857
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.
Definition Types.h:861
This object represents a bot command.
Definition Types.h:871
std::string command
Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and undersco...
Definition Types.h:878
std::shared_ptr< BotCommand > Ptr
Definition Types.h:872
std::string description
Description of the command; 1-256 characters.
Definition Types.h:882
std::optional< bool > isEphemeral
Optional. True, if the command sends an ephemeral message, which can be seen only by the sender of th...
Definition Types.h:887
Represents the scope of bot commands, covering all group and supergroup chat administrators.
Definition Types.h:917
std::shared_ptr< BotCommandScopeAllChatAdministrators > Ptr
Definition Types.h:918
std::string type
Scope type, must be all_chat_administrators.
Definition Types.h:925
static TGBOT_API const std::string TYPE
Definition Types.h:920
Represents the scope of bot commands, covering all group and supergroup chats.
Definition Types.h:935
std::shared_ptr< BotCommandScopeAllGroupChats > Ptr
Definition Types.h:936
static TGBOT_API const std::string TYPE
Definition Types.h:938
std::string type
Scope type, must be all_group_chats.
Definition Types.h:943
Represents the scope of bot commands, covering all private chats.
Definition Types.h:953
std::shared_ptr< BotCommandScopeAllPrivateChats > Ptr
Definition Types.h:954
static TGBOT_API const std::string TYPE
Definition Types.h:956
std::string type
Scope type, must be all_private_chats.
Definition Types.h:961
Represents the scope of bot commands, covering all administrators of a specific group or supergroup c...
Definition Types.h:995
std::int64_t chatId
Unique identifier for the target chat or username of the target supergroup in the format @username....
Definition Types.h:1008
static TGBOT_API const std::string TYPE
Definition Types.h:998
std::string type
Scope type, must be chat_administrators.
Definition Types.h:1003
std::shared_ptr< BotCommandScopeChatAdministrators > Ptr
Definition Types.h:996
Represents the scope of bot commands, covering a specific chat.
Definition Types.h:971
std::int64_t chatId
Unique identifier for the target chat or username of the target supergroup in the format @username....
Definition Types.h:984
static TGBOT_API const std::string TYPE
Definition Types.h:974
std::shared_ptr< BotCommandScopeChat > Ptr
Definition Types.h:972
std::string type
Scope type, must be chat.
Definition Types.h:979
Represents the scope of bot commands, covering a specific member of a group or supergroup chat.
Definition Types.h:1019
std::shared_ptr< BotCommandScopeChatMember > Ptr
Definition Types.h:1020
static TGBOT_API const std::string TYPE
Definition Types.h:1022
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:1036
std::string type
Scope type, must be chat_member.
Definition Types.h:1027
std::int64_t chatId
Unique identifier for the target chat or username of the target supergroup in the format @username....
Definition Types.h:1032
Represents the default scope of bot commands. Default commands are used if no commands with a narrowe...
Definition Types.h:1047
std::shared_ptr< BotCommandScopeDefault > Ptr
Definition Types.h:1048
std::string type
Scope type, must be default.
Definition Types.h:1055
static TGBOT_API const std::string TYPE
Definition Types.h:1050
This object represents the scope to which bot commands are applied. Currently, the following 7 scopes...
Definition Types.h:900
std::shared_ptr< BotCommandScope > Ptr
Definition Types.h:901
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
Definition Types.h:907
This object represents the bot's description.
Definition Types.h:1065
std::string description
The bot's description.
Definition Types.h:1071
std::shared_ptr< BotDescription > Ptr
Definition Types.h:1066
This object represents the bot's name.
Definition Types.h:1081
std::string name
The bot's name.
Definition Types.h:1087
std::shared_ptr< BotName > Ptr
Definition Types.h:1082
This object represents the bot's short description.
Definition Types.h:1097
std::shared_ptr< BotShortDescription > Ptr
Definition Types.h:1098
std::string shortDescription
The bot's short description.
Definition Types.h:1103
This object contains information about changes to a user payment subscription toward the current bot.
Definition Types.h:1114
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:1124
std::string state
The new state of the subscription. Currently, it can be one of “canceled” if the user canceled the su...
Definition Types.h:1130
std::shared_ptr< User > user
User who subscribed for payments toward the bot.
Definition Types.h:1120
std::shared_ptr< BotSubscriptionUpdated > Ptr
Definition Types.h:1115
Represents the rights of a business bot.
Definition Types.h:1140
std::optional< bool > canViewGiftsAndStars
Optional. True, if the bot can view gifts and the amount of Telegram Stars owned by the business acco...
Definition Types.h:1185
std::shared_ptr< BusinessBotRights > Ptr
Definition Types.h:1141
std::optional< bool > canEditUsername
Optional. True, if the bot can edit the username of the business account.
Definition Types.h:1175
std::optional< bool > canDeleteAllMessages
Optional. True, if the bot can delete all private messages in managed chats.
Definition Types.h:1159
std::optional< bool > canManageStories
Optional. True, if the bot can post, edit and delete stories on behalf of the business account.
Definition Types.h:1204
std::optional< bool > canEditProfilePhoto
Optional. True, if the bot can edit the profile photo of the business account.
Definition Types.h:1171
std::optional< bool > canEditName
Optional. True, if the bot can edit the first and last name of the business account.
Definition Types.h:1163
std::optional< bool > canTransferAndUpgradeGifts
Optional. True, if the bot can transfer and upgrade gifts owned by the business account.
Definition Types.h:1194
std::optional< bool > canChangeGiftSettings
Optional. True, if the bot can change the privacy settings pertaining to gifts for the business accou...
Definition Types.h:1180
std::optional< bool > canTransferStars
Optional. True, if the bot can transfer Telegram Stars received by the business account to its own ac...
Definition Types.h:1199
std::optional< bool > canDeleteSentMessages
Optional. True, if the bot can delete messages sent by the bot.
Definition Types.h:1155
std::optional< bool > canReply
Optional. True, if the bot can send and edit messages in the private chats that had incoming messages...
Definition Types.h:1147
std::optional< bool > canConvertGiftsToStars
Optional. True, if the bot can convert regular gifts owned by the business account to Telegram Stars.
Definition Types.h:1190
std::optional< bool > canReadMessages
Optional. True, if the bot can mark incoming private messages as read.
Definition Types.h:1151
std::optional< bool > canEditBio
Optional. True, if the bot can edit the bio of the business account.
Definition Types.h:1167
Describes the connection of the bot with a business account.
Definition Types.h:1214
std::shared_ptr< User > user
Business account user that created the business connection.
Definition Types.h:1224
std::int64_t userChatId
Identifier of a private chat with the user who created the business connection. This number may have ...
Definition Types.h:1231
bool isEnabled
True, if the connection is active.
Definition Types.h:1243
std::int32_t date
Date the connection was established in Unix time.
Definition Types.h:1235
std::shared_ptr< BusinessBotRights > rights
Optional. Rights of the business bot.
Definition Types.h:1239
std::shared_ptr< BusinessConnection > Ptr
Definition Types.h:1215
Contains information about the start page settings of a Telegram Business account.
Definition Types.h:1253
std::shared_ptr< BusinessIntro > Ptr
Definition Types.h:1254
std::optional< std::string > message
Optional. Message text of the business intro.
Definition Types.h:1263
std::optional< std::string > title
Optional. Title text of the business intro.
Definition Types.h:1259
std::shared_ptr< Sticker > sticker
Optional. Sticker of the business intro.
Definition Types.h:1267
Contains information about the location of a Telegram Business account.
Definition Types.h:1277
std::shared_ptr< BusinessLocation > Ptr
Definition Types.h:1278
std::shared_ptr< Location > location
Optional. Location of the business.
Definition Types.h:1287
std::string address
Address of the business.
Definition Types.h:1283
This object is received when messages are deleted from a connected business account.
Definition Types.h:1297
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:1303
std::shared_ptr< BusinessMessagesDeleted > Ptr
Definition Types.h:1298
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...
Definition Types.h:1308
std::vector< std::int32_t > messageIds
The list of identifiers of deleted messages in the chat of the business account.
Definition Types.h:1312
Describes the opening hours of a business.
Definition Types.h:1322
std::string timeZoneName
Unique name of the time zone for which the opening hours are defined.
Definition Types.h:1328
std::shared_ptr< BusinessOpeningHours > Ptr
Definition Types.h:1323
std::vector< std::shared_ptr< BusinessOpeningHoursInterval > > openingHours
List of time intervals describing business opening hours.
Definition Types.h:1332
Describes an interval of time during which a business is open.
Definition Types.h:1342
std::int32_t openingMinute
The minute's sequence number in a week, starting on Monday, marking the start of the time interval du...
Definition Types.h:1349
std::int32_t closingMinute
The minute's sequence number in a week, starting on Monday, marking the end of the time interval duri...
Definition Types.h:1354
std::shared_ptr< BusinessOpeningHoursInterval > Ptr
Definition Types.h:1343
A placeholder, currently holds no information. Use BotFather to set up your game.
Definition Types.h:1364
std::shared_ptr< CallbackGame > Ptr
Definition Types.h:1365
This object represents an incoming callback query from a callback button in an inline keyboard....
Definition Types.h:1379
std::string chatInstance
Global identifier, uniquely corresponding to the chat to which the message with the callback button w...
Definition Types.h:1403
std::shared_ptr< CallbackQuery > Ptr
Definition Types.h:1380
std::shared_ptr< MaybeInaccessibleMessage > message
Optional. Message sent by the bot with the callback button that originated the query.
Definition Types.h:1393
std::shared_ptr< User > from
Sender.
Definition Types.h:1389
std::optional< std::string > data
Optional. Data associated with the callback button. Be aware that the message originated the query ca...
Definition Types.h:1408
std::optional< std::string > inlineMessageId
Optional. Identifier of the message sent via the bot in inline mode, that originated the query.
Definition Types.h:1398
std::optional< std::string > gameShortName
Optional. Short name of a Game to be returned, serves as the unique identifier for the game.
Definition Types.h:1413
Represents the rights of an administrator in a chat.
Definition Types.h:1475
std::optional< bool > canPinMessages
Optional. True, if the user is allowed to pin messages; for groups and supergroups only.
Definition Types.h:1542
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
Definition Types.h:1511
bool canManageVideoChats
True, if the administrator can manage video chats.
Definition Types.h:1496
bool canEditStories
True, if the administrator can edit stories posted by other users, post stories to the chat page,...
Definition Types.h:1524
std::optional< bool > canManageTopics
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergr...
Definition Types.h:1547
std::optional< bool > canManageDirectMessages
Optional. True, if the administrator can manage direct messages of the channel and decline suggested ...
Definition Types.h:1552
bool canDeleteStories
True, if the administrator can delete stories posted by other users.
Definition Types.h:1528
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
Definition Types.h:1515
std::optional< bool > canEditMessages
Optional. True, if the administrator can edit messages of other users and can pin messages; for chann...
Definition Types.h:1538
bool canSendWelcomeMessages
True, if the administrator can manage chat welcome messages or directly send them in the case of bots...
Definition Types.h:1562
bool canPromoteMembers
True, if the administrator can add new administrators with a subset of their own privileges or demote...
Definition Types.h:1507
bool canDeleteMessages
True, if the administrator can delete messages of other users.
Definition Types.h:1492
bool canManageChat
True, if the administrator can access the chat event log, get boost list, see hidden supergroup and c...
Definition Types.h:1488
std::optional< bool > canPostMessages
Optional. True, if the administrator can post messages in the channel, approve suggested posts,...
Definition Types.h:1533
std::optional< bool > canManageTags
Optional. True, if the administrator can edit the tags of regular members; for groups and supergroups...
Definition Types.h:1557
bool isAnonymous
True, if the user's presence in the chat is hidden.
Definition Types.h:1481
bool canRestrictMembers
True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics.
Definition Types.h:1501
std::shared_ptr< ChatAdministratorRights > Ptr
Definition Types.h:1476
bool canPostStories
True, if the administrator can post stories to the chat.
Definition Types.h:1519
This object represents a chat background.
Definition Types.h:1572
std::shared_ptr< BackgroundType > type
Type of the background.
Definition Types.h:1578
std::shared_ptr< ChatBackground > Ptr
Definition Types.h:1573
This object represents a service message about a user boosting a chat.
Definition Types.h:1617
std::shared_ptr< ChatBoostAdded > Ptr
Definition Types.h:1618
std::int32_t boostCount
Number of boosts added by the user.
Definition Types.h:1623
This object contains information about a chat boost.
Definition Types.h:1588
std::int32_t expirationDate
Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegra...
Definition Types.h:1603
std::string boostId
Unique identifier of the boost.
Definition Types.h:1594
std::shared_ptr< ChatBoostSource > source
Source of the added boost.
Definition Types.h:1607
std::int32_t addDate
Point in time (Unix timestamp) when the chat was boosted.
Definition Types.h:1598
std::shared_ptr< ChatBoost > Ptr
Definition Types.h:1589
This object represents a boost removed from a chat.
Definition Types.h:1633
std::shared_ptr< ChatBoostRemoved > Ptr
Definition Types.h:1634
std::shared_ptr< Chat > chat
Chat which was boosted.
Definition Types.h:1639
std::shared_ptr< ChatBoostSource > source
Source of the removed boost.
Definition Types.h:1651
std::string boostId
Unique identifier of the boost.
Definition Types.h:1643
std::int32_t removeDate
Point in time (Unix timestamp) when the boost was removed.
Definition Types.h:1647
The boost was obtained by the creation of Telegram Premium gift codes to boost a chat....
Definition Types.h:1679
std::shared_ptr< ChatBoostSourceGiftCode > Ptr
Definition Types.h:1680
std::shared_ptr< User > user
User for which the gift code was created.
Definition Types.h:1691
std::string source
Source of the boost, always “gift_code”
Definition Types.h:1687
static TGBOT_API const std::string SOURCE
Definition Types.h:1682
The boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway....
Definition Types.h:1704
std::shared_ptr< User > user
Optional. User that won the prize in the giveaway if any; for Telegram Premium giveaways only.
Definition Types.h:1722
std::optional< bool > isUnclaimed
Optional. True, if the giveaway was completed, but there was no user to win the prize.
Definition Types.h:1731
std::shared_ptr< ChatBoostSourceGiveaway > Ptr
Definition Types.h:1705
static TGBOT_API const std::string SOURCE
Definition Types.h:1707
std::string source
Source of the boost, always “giveaway”
Definition Types.h:1712
std::optional< std::int32_t > prizeStarCount
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaw...
Definition Types.h:1727
std::int32_t giveawayMessageId
Identifier of a message in the chat with the giveaway; the message could have been deleted already....
Definition Types.h:1717
This object describes the source of a chat boost. It can be one of ChatBoostSourcePremium ChatBoostSo...
Definition Types.h:1662
std::shared_ptr< ChatBoostSource > Ptr
Definition Types.h:1663
std::variant< std::shared_ptr< ChatBoostSourcePremium >, std::shared_ptr< ChatBoostSourceGiftCode >, std::shared_ptr< ChatBoostSourceGiveaway > > value
Definition Types.h:1667
The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscripti...
Definition Types.h:1742
std::shared_ptr< User > user
User that boosted the chat.
Definition Types.h:1754
std::shared_ptr< ChatBoostSourcePremium > Ptr
Definition Types.h:1743
std::string source
Source of the boost, always “premium”
Definition Types.h:1750
static TGBOT_API const std::string SOURCE
Definition Types.h:1745
This object represents a boost added to a chat or changed.
Definition Types.h:1764
std::shared_ptr< ChatBoostUpdated > Ptr
Definition Types.h:1765
std::shared_ptr< ChatBoost > boost
Information about the chat boost.
Definition Types.h:1774
std::shared_ptr< Chat > chat
Chat which was boosted.
Definition Types.h:1770
This object contains full information about a chat.
Definition Types.h:1784
std::shared_ptr< Message > pinnedMessage
Optional. The most recent pinned message (by sending date).
Definition Types.h:1929
std::string type
Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
Definition Types.h:1797
std::shared_ptr< Audio > firstProfileAudio
Optional. For private chats, the first audio added to the profile of the user.
Definition Types.h:2010
std::shared_ptr< UserRating > rating
Optional. For private chats, the rating of the user if any.
Definition Types.h:2006
std::optional< std::int64_t > linkedChatId
Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel a...
Definition Types.h:1998
std::optional< bool > hasRestrictedVoiceAndVideoMessages
Optional. True, if the privacy settings of the other party restrict sending voice and video note mess...
Definition Types.h:1908
std::shared_ptr< Chat > personalChat
Optional. For private chats, the personal channel of the user.
Definition Types.h:1859
std::optional< std::string > backgroundCustomEmojiId
Optional. Custom emoji identifier of the emoji chosen by the chat for the reply header and link previ...
Definition Types.h:1874
std::optional< std::string > inviteLink
Optional. Primary invite link, for groups, supergroups and channel chats.
Definition Types.h:1925
std::shared_ptr< ChatFullInfo > Ptr
Definition Types.h:1785
std::optional< std::string > description
Optional. Description, for groups, supergroups and channel chats.
Definition Types.h:1921
std::shared_ptr< User > guardBot
Optional. The bot that processes join request queries in the chat. The field is only available to cha...
Definition Types.h:2025
std::int32_t maxReactionCount
The maximum number of reactions that can be set on a message in the chat.
Definition Types.h:1830
std::optional< std::int32_t > messageAutoDeleteTime
Optional. The time after which all messages sent to the chat will be automatically deleted; in second...
Definition Types.h:1958
std::optional< std::int32_t > emojiStatusExpirationDate
Optional. Expiration date of the emoji status of the chat or the other party in a private chat,...
Definition Types.h:1894
std::optional< bool > hasVisibleHistory
Optional. True, if new chat members will have access to old messages; available only to chat administ...
Definition Types.h:1977
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...
Definition Types.h:1869
std::optional< std::string > customEmojiStickerSetName
Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this s...
Definition Types.h:1990
std::optional< std::int32_t > unrestrictBoostCount
Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in...
Definition Types.h:1953
std::optional< std::string > bio
Optional. Bio of the other party in a private chat.
Definition Types.h:1898
std::optional< std::string > profileBackgroundCustomEmojiId
Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background.
Definition Types.h:1884
std::optional< std::string > username
Optional. Username, for private chats, supergroups and channels if available.
Definition Types.h:1805
std::optional< std::string > title
Optional. Title, for supergroups, channels and group chats.
Definition Types.h:1801
std::shared_ptr< ChatLocation > location
Optional. For supergroups, the location to which the supergroup is connected.
Definition Types.h:2002
std::shared_ptr< AcceptedGiftTypes > acceptedGiftTypes
Information about types of gifts that are accepted by the chat or by the corresponding user for priva...
Definition Types.h:1938
std::shared_ptr< ChatPermissions > permissions
Optional. Default chat member permissions, for groups and supergroups.
Definition Types.h:1933
std::shared_ptr< Community > community
Optional. The Community to which the chat belongs.
Definition Types.h:2029
std::int32_t accentColorId
Identifier of the accent color for the chat name and backgrounds of the chat photo,...
Definition Types.h:1826
std::optional< bool > hasHiddenMembers
Optional. True, if non-administrators can only get the list of bots and administrators in the chat.
Definition Types.h:1968
std::shared_ptr< BusinessLocation > businessLocation
Optional. For private chats with business accounts, the location of the business.
Definition Types.h:1851
std::shared_ptr< Chat > parentChat
Optional. Information about the corresponding channel chat; for direct messages chats only.
Definition Types.h:1864
std::shared_ptr< UniqueGiftColors > uniqueGiftColors
Optional. The color scheme based on a unique gift that must be used for the chat's name,...
Definition Types.h:2015
std::optional< std::string > firstName
Optional. First name of the other party in a private chat.
Definition Types.h:1809
std::optional< std::int32_t > slowModeDelay
Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriv...
Definition Types.h:1948
std::optional< bool > hasProtectedContent
Optional. True, if messages from the chat can't be forwarded to other chats.
Definition Types.h:1972
std::shared_ptr< BusinessIntro > businessIntro
Optional. For private chats with business accounts, the intro of the business.
Definition Types.h:1847
std::optional< bool > hasAggressiveAntiSpamEnabled
Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only avail...
Definition Types.h:1963
std::optional< std::string > lastName
Optional. Last name of the other party in a private chat.
Definition Types.h:1813
std::shared_ptr< ChatPhoto > photo
Optional. Chat photo.
Definition Types.h:1834
std::optional< bool > isDirectMessages
Optional. True, if the chat is the direct messages chat of a channel.
Definition Types.h:1821
std::optional< bool > isForum
Optional. True, if the supergroup chat is a forum (has topics enabled).
Definition Types.h:1817
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.
Definition Types.h:2020
std::optional< std::string > emojiStatusCustomEmojiId
Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private cha...
Definition Types.h:1889
std::optional< bool > joinByRequest
Optional. True, if all users directly joining the supergroup without using an invite link need to be ...
Definition Types.h:1917
std::optional< std::vector< std::string > > activeUsernames
Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and cha...
Definition Types.h:1839
std::optional< bool > canSetStickerSet
Optional. True, if the bot can change the group sticker set.
Definition Types.h:1985
std::optional< std::string > stickerSetName
Optional. For supergroups, name of the group sticker set.
Definition Types.h:1981
std::optional< std::int32_t > profileAccentColorId
Optional. Identifier of the accent color for the chat's profile background. See profile accent colors...
Definition Types.h:1879
std::shared_ptr< Birthdate > birthdate
Optional. For private chats, the date of birth of the user.
Definition Types.h:1843
std::shared_ptr< BusinessOpeningHours > businessOpeningHours
Optional. For private chats with business accounts, the opening hours of the business.
Definition Types.h:1855
std::optional< bool > hasPrivateForwards
Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?...
Definition Types.h:1903
std::optional< bool > canSendPaidMedia
Optional. True, if paid media messages can be sent or forwarded to the channel chat....
Definition Types.h:1943
std::optional< bool > joinToSendMessages
Optional. True, if users need to join the supergroup before they can send messages.
Definition Types.h:1912
This object represents a chat.
Definition Types.h:1423
std::optional< std::string > firstName
Optional. First name of the other party in a private chat.
Definition Types.h:1450
std::optional< std::string > lastName
Optional. Last name of the other party in a private chat.
Definition Types.h:1454
std::optional< bool > isForum
Optional. True, if the supergroup chat is a forum (has topics enabled).
Definition Types.h:1458
std::optional< bool > isDirectMessages
Optional. True, if the chat is the direct messages chat of a channel.
Definition Types.h:1462
Type type
Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
Definition Types.h:1438
std::optional< std::string > title
Optional. Title, for supergroups, channels and group chats.
Definition Types.h:1442
std::shared_ptr< Chat > Ptr
Definition Types.h:1424
std::optional< std::string > username
Optional. Username, for private chats, supergroups and channels if available.
Definition Types.h:1446
Represents a join request sent to a chat.
Definition Types.h:2099
std::shared_ptr< Chat > chat
Chat to which the request was sent.
Definition Types.h:2105
std::int32_t date
Date the request was sent in Unix time.
Definition Types.h:2122
std::optional< std::string > queryId
Optional. Identifier of the join request query; for bots assigned to process join requests only....
Definition Types.h:2136
std::optional< std::string > bio
Optional. Bio of the user.
Definition Types.h:2126
std::shared_ptr< User > from
User that sent the join request.
Definition Types.h:2109
std::int64_t userChatId
Identifier of a private chat with the user who sent the join request. This number may have more than ...
Definition Types.h:2118
std::shared_ptr< ChatJoinRequest > Ptr
Definition Types.h:2100
std::shared_ptr< ChatInviteLink > inviteLink
Optional. Chat invite link that was used by the user to send the join request.
Definition Types.h:2130
Represents a location to which a chat is connected.
Definition Types.h:2146
std::shared_ptr< ChatLocation > Ptr
Definition Types.h:2147
std::shared_ptr< Location > location
The location to which the supergroup is connected. Can't be a live location.
Definition Types.h:2152
std::string address
Location address; 1-64 characters, as defined by the chat owner.
Definition Types.h:2156
Represents a chat member that has some additional privileges.
Definition Types.h:2184
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
Definition Types.h:2238
bool canManageVideoChats
True, if the administrator can manage video chats.
Definition Types.h:2219
bool canPromoteMembers
True, if the administrator can add new administrators with a subset of their own privileges or demote...
Definition Types.h:2230
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2196
std::shared_ptr< ChatMemberAdministrator > Ptr
Definition Types.h:2185
bool canSendWelcomeMessages
True, if the administrator can manage chat welcome messages or directly send them in the case of bots...
Definition Types.h:2285
std::optional< bool > canManageDirectMessages
Optional. True, if the administrator can manage direct messages of the channel and decline suggested ...
Definition Types.h:2275
std::optional< std::string > customTitle
Optional. Custom title for this user.
Definition Types.h:2289
std::string status
The member's status in the chat, always “administrator”
Definition Types.h:2192
bool isAnonymous
True, if the user's presence in the chat is hidden.
Definition Types.h:2204
static TGBOT_API const std::string STATUS
Definition Types.h:2187
std::optional< bool > canManageTags
Optional. True, if the administrator can edit the tags of regular members; for groups and supergroups...
Definition Types.h:2280
std::optional< bool > canManageTopics
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergr...
Definition Types.h:2270
bool canEditStories
True, if the administrator can edit stories posted by other users, post stories to the chat page,...
Definition Types.h:2247
bool canManageChat
True, if the administrator can access the chat event log, get boost list, see hidden supergroup and c...
Definition Types.h:2211
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
Definition Types.h:2234
bool canPostStories
True, if the administrator can post stories to the chat.
Definition Types.h:2242
std::optional< bool > canEditMessages
Optional. True, if the administrator can edit messages of other users and can pin messages; for chann...
Definition Types.h:2261
bool canBeEdited
True, if the bot is allowed to edit administrator privileges of that user.
Definition Types.h:2200
bool canRestrictMembers
True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics.
Definition Types.h:2224
std::optional< bool > canPinMessages
Optional. True, if the user is allowed to pin messages; for groups and supergroups only.
Definition Types.h:2265
bool canDeleteStories
True, if the administrator can delete stories posted by other users.
Definition Types.h:2251
bool canDeleteMessages
True, if the administrator can delete messages of other users.
Definition Types.h:2215
std::optional< bool > canPostMessages
Optional. True, if the administrator can post messages in the channel, approve suggested posts,...
Definition Types.h:2256
Represents a chat member that was banned in the chat and can't return to the chat or view chat messag...
Definition Types.h:2300
std::shared_ptr< ChatMemberBanned > Ptr
Definition Types.h:2301
std::int32_t untilDate
Date when restrictions will be lifted for this user; Unix time. If 0, then the user is banned forever...
Definition Types.h:2317
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2312
std::string status
The member's status in the chat, always “kicked”
Definition Types.h:2308
static TGBOT_API const std::string STATUS
Definition Types.h:2303
This object contains information about one member of a chat. Currently, the following 6 types of chat...
Definition Types.h:2168
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
Definition Types.h:2174
std::shared_ptr< ChatMember > Ptr
Definition Types.h:2169
Represents a chat member that isn't currently a member of the chat, but may join it themselves.
Definition Types.h:2328
std::shared_ptr< ChatMemberLeft > Ptr
Definition Types.h:2329
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2340
static TGBOT_API const std::string STATUS
Definition Types.h:2331
std::string status
The member's status in the chat, always “left”
Definition Types.h:2336
Represents a chat member that has no additional privileges or restrictions.
Definition Types.h:2350
std::shared_ptr< ChatMemberMember > Ptr
Definition Types.h:2351
std::string status
The member's status in the chat, always “member”
Definition Types.h:2358
static TGBOT_API const std::string STATUS
Definition Types.h:2353
std::optional< std::int32_t > untilDate
Optional. Date when the user's subscription will expire; Unix time.
Definition Types.h:2370
std::optional< std::string > tag
Optional. Tag of the member.
Definition Types.h:2362
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2366
Represents a chat member that owns the chat and has all administrator privileges.
Definition Types.h:2380
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2392
bool isAnonymous
True, if the user's presence in the chat is hidden.
Definition Types.h:2396
std::optional< std::string > customTitle
Optional. Custom title for this user.
Definition Types.h:2400
std::shared_ptr< ChatMemberOwner > Ptr
Definition Types.h:2381
std::string status
The member's status in the chat, always “creator”
Definition Types.h:2388
static TGBOT_API const std::string STATUS
Definition Types.h:2383
Represents a chat member that is under certain restrictions in the chat. Supergroups only.
Definition Types.h:2410
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
Definition Types.h:2483
bool canSendVideoNotes
True, if the user is allowed to send video notes.
Definition Types.h:2455
bool canSendDocuments
True, if the user is allowed to send documents.
Definition Types.h:2443
bool canSendPolls
True, if the user is allowed to send polls and checklists.
Definition Types.h:2463
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2426
std::string status
The member's status in the chat, always “restricted”
Definition Types.h:2418
bool canPinMessages
True, if the user is allowed to pin messages.
Definition Types.h:2491
bool canSendVideos
True, if the user is allowed to send videos.
Definition Types.h:2451
bool canSendPhotos
True, if the user is allowed to send photos.
Definition Types.h:2447
bool canSendVoiceNotes
True, if the user is allowed to send voice notes.
Definition Types.h:2459
bool canAddWebPagePreviews
True, if the user is allowed to add web page previews to their messages.
Definition Types.h:2471
bool isMember
True, if the user is a member of the chat at the moment of the request.
Definition Types.h:2430
std::shared_ptr< ChatMemberRestricted > Ptr
Definition Types.h:2411
bool canManageTopics
True, if the user is allowed to create forum topics.
Definition Types.h:2495
bool canSendOtherMessages
True, if the user is allowed to send animations, games, stickers and use inline bots.
Definition Types.h:2467
bool canSendMessages
True, if the user is allowed to send text messages, rich messages, contacts, giveaways,...
Definition Types.h:2435
bool canEditTag
True, if the user is allowed to edit their own tag.
Definition Types.h:2479
bool canSendAudios
True, if the user is allowed to send audios.
Definition Types.h:2439
static TGBOT_API const std::string STATUS
Definition Types.h:2413
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
Definition Types.h:2487
std::int32_t untilDate
Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted for...
Definition Types.h:2500
std::optional< std::string > tag
Optional. Tag of the member.
Definition Types.h:2422
bool canReactToMessages
True, if the user is allowed to react to messages.
Definition Types.h:2475
This object represents changes in the status of a chat member.
Definition Types.h:2510
std::int32_t date
Date the change was done in Unix time.
Definition Types.h:2524
std::shared_ptr< Chat > chat
Chat the user belongs to.
Definition Types.h:2516
std::optional< bool > viaChatFolderInviteLink
Optional. True, if the user joined the chat via a chat folder invite link.
Definition Types.h:2546
std::shared_ptr< ChatMemberUpdated > Ptr
Definition Types.h:2511
std::optional< bool > viaJoinRequest
Optional. True, if the user joined the chat after sending a direct join request without using an invi...
Definition Types.h:2542
std::shared_ptr< User > from
Performer of the action, which resulted in the change.
Definition Types.h:2520
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...
Definition Types.h:2537
std::shared_ptr< ChatMember > newChatMember
New information about the chat member.
Definition Types.h:2532
std::shared_ptr< ChatMember > oldChatMember
Previous information about the chat member.
Definition Types.h:2528
Describes a service message about an ownership change in the chat.
Definition Types.h:2556
std::shared_ptr< User > newOwner
The new owner of the chat.
Definition Types.h:2562
std::shared_ptr< ChatOwnerChanged > Ptr
Definition Types.h:2557
Describes a service message about the chat owner leaving the chat.
Definition Types.h:2572
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...
Definition Types.h:2579
std::shared_ptr< ChatOwnerLeft > Ptr
Definition Types.h:2573
Describes actions that a non-administrator user is allowed to take in a chat.
Definition Types.h:2589
std::optional< bool > canSendAudios
Optional. True, if the user is allowed to send audios.
Definition Types.h:2600
std::optional< bool > canSendDocuments
Optional. True, if the user is allowed to send documents.
Definition Types.h:2604
std::optional< bool > canInviteUsers
Optional. True, if the user is allowed to invite new users to the chat.
Definition Types.h:2652
std::optional< bool > canSendOtherMessages
Optional. True, if the user is allowed to send animations, games, stickers and use inline bots.
Definition Types.h:2629
std::optional< bool > canAddWebPagePreviews
Optional. True, if the user is allowed to add web page previews to their messages.
Definition Types.h:2633
std::optional< bool > canEditTag
Optional. True, if the user is allowed to edit their own tag. If omitted, defaults to the value of ca...
Definition Types.h:2643
std::optional< bool > canSendPolls
Optional. True, if the user is allowed to send polls and checklists.
Definition Types.h:2624
std::optional< bool > canReactToMessages
Optional. True, if the user is allowed to react to messages. If omitted, defaults to the value of can...
Definition Types.h:2638
std::optional< bool > canChangeInfo
Optional. True, if the user is allowed to change the chat title, photo and other settings....
Definition Types.h:2648
std::optional< bool > canSendMessages
Optional. True, if the user is allowed to send text messages, rich messages, contacts,...
Definition Types.h:2596
std::optional< bool > canPinMessages
Optional. True, if the user is allowed to pin messages. Ignored in public supergroups.
Definition Types.h:2656
std::optional< bool > canManageTopics
Optional. True, if the user is allowed to create forum topics. If omitted, defaults to the value of c...
Definition Types.h:2661
std::shared_ptr< ChatPermissions > Ptr
Definition Types.h:2590
std::optional< bool > canSendVideos
Optional. True, if the user is allowed to send videos.
Definition Types.h:2612
std::optional< bool > canSendVoiceNotes
Optional. True, if the user is allowed to send voice notes.
Definition Types.h:2620
std::optional< bool > canSendPhotos
Optional. True, if the user is allowed to send photos.
Definition Types.h:2608
std::optional< bool > canSendVideoNotes
Optional. True, if the user is allowed to send video notes.
Definition Types.h:2616
This object represents a chat photo.
Definition Types.h:2671
std::string smallFileUniqueId
Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and ...
Definition Types.h:2683
std::string smallFileId
File identifier of small (160x160) chat photo. This file_id can be used only for photo download and o...
Definition Types.h:2678
std::string bigFileUniqueId
Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and fo...
Definition Types.h:2693
std::string bigFileId
File identifier of big (640x640) chat photo. This file_id can be used only for photo download and onl...
Definition Types.h:2688
std::shared_ptr< ChatPhoto > Ptr
Definition Types.h:2672
This object contains information about a chat that was shared with the bot using a KeyboardButtonRequ...
Definition Types.h:2704
std::optional< std::string > username
Optional. Username of the chat, if the username was requested by the bot and available.
Definition Types.h:2727
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Available sizes of the chat photo, if the photo was requested by the bot.
Definition Types.h:2731
std::int32_t requestId
Identifier of the request.
Definition Types.h:2710
std::optional< std::string > title
Optional. Title of the chat, if the title was requested by the bot.
Definition Types.h:2723
std::int64_t chatId
Identifier of the shared chat. This number may have more than 32 significant bits and some programmin...
Definition Types.h:2719
std::shared_ptr< ChatShared > Ptr
Definition Types.h:2705
Describes a checklist.
Definition Types.h:2741
std::shared_ptr< Checklist > Ptr
Definition Types.h:2742
std::string title
Title of the checklist.
Definition Types.h:2747
std::optional< bool > othersCanAddTasks
Optional. True, if users other than the creator of the list can add tasks to the list.
Definition Types.h:2759
std::optional< bool > othersCanMarkTasksAsDone
Optional. True, if users other than the creator of the list can mark tasks as done or not done.
Definition Types.h:2764
std::vector< std::shared_ptr< ChecklistTask > > tasks
List of tasks in the checklist.
Definition Types.h:2755
std::optional< std::vector< std::shared_ptr< MessageEntity > > > titleEntities
Optional. Special entities that appear in the checklist title.
Definition Types.h:2751
Describes a task in a checklist.
Definition Types.h:2774
std::optional< std::vector< std::shared_ptr< MessageEntity > > > textEntities
Optional. Special entities that appear in the task text.
Definition Types.h:2788
std::shared_ptr< User > completedByUser
Optional. User that completed the task; omitted if the task wasn't completed by a user.
Definition Types.h:2792
std::optional< std::int32_t > completionDate
Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed.
Definition Types.h:2801
std::shared_ptr< ChecklistTask > Ptr
Definition Types.h:2775
std::shared_ptr< Chat > completedByChat
Optional. Chat that completed the task; omitted if the task wasn't completed by a chat.
Definition Types.h:2796
std::string text
Text of the task.
Definition Types.h:2784
Describes a service message about tasks added to a checklist.
Definition Types.h:2811
std::shared_ptr< ChecklistTasksAdded > Ptr
Definition Types.h:2812
std::vector< std::shared_ptr< ChecklistTask > > tasks
List of tasks added to the checklist.
Definition Types.h:2823
std::shared_ptr< Message > checklistMessage
Optional. Message containing the checklist to which the tasks were added. Note that the Message objec...
Definition Types.h:2819
Describes a service message about checklist tasks marked as done or not done.
Definition Types.h:2833
std::optional< std::vector< std::int32_t > > markedAsNotDoneTaskIds
Optional. Identifiers of the tasks that were marked as not done.
Definition Types.h:2849
std::optional< std::vector< std::int32_t > > markedAsDoneTaskIds
Optional. Identifiers of the tasks that were marked as done.
Definition Types.h:2845
std::shared_ptr< ChecklistTasksDone > Ptr
Definition Types.h:2834
std::shared_ptr< Message > checklistMessage
Optional. Message containing the checklist whose tasks were marked as done or not done....
Definition Types.h:2841
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
Definition Types.h:2860
std::string query
The query that was used to obtain the result.
Definition Types.h:2884
std::optional< std::string > inlineMessageId
Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attach...
Definition Types.h:2880
std::shared_ptr< Location > location
Optional. Sender location, only for bots that require user location.
Definition Types.h:2874
std::string resultId
The unique identifier for the result that was chosen.
Definition Types.h:2866
std::shared_ptr< ChosenInlineResult > Ptr
Definition Types.h:2861
std::shared_ptr< User > from
The user that chose the result.
Definition Types.h:2870
Arguments for Api::closeForumTopic.
Definition Types.h:14693
std::int32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
Definition Types.h:14703
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:14698
Arguments for Api::closeGeneralForumTopic.
Definition Types.h:14710
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:14715
Describes a service message about a chat or a bot being added to a community.
Definition Types.h:2917
std::shared_ptr< CommunityChatAdded > Ptr
Definition Types.h:2918
std::shared_ptr< Community > community
The new community to which the chat or the bot belongs.
Definition Types.h:2923
Describes a service message about a chat being joined by a user from a community.
Definition Types.h:2933
std::shared_ptr< Community > community
The community from which the chat was joined.
Definition Types.h:2939
std::shared_ptr< CommunityChatJoined > Ptr
Definition Types.h:2934
Describes a service message about a chat or a bot being removed from a community. Currently holds no ...
Definition Types.h:2950
std::shared_ptr< CommunityChatRemoved > Ptr
Definition Types.h:2951
Represents a community (a group of chats).
Definition Types.h:2894
std::string name
Name of the community.
Definition Types.h:2907
std::shared_ptr< Community > Ptr
Definition Types.h:2895
This object represents a phone contact.
Definition Types.h:2961
std::optional< std::string > vcard
Optional. Additional data about the contact in the form of a vCard.
Definition Types.h:2986
std::optional< std::string > lastName
Optional. Contact's last name.
Definition Types.h:2975
std::string firstName
Contact's first name.
Definition Types.h:2971
std::optional< std::int64_t > userId
Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits a...
Definition Types.h:2982
std::string phoneNumber
Contact's phone number.
Definition Types.h:2967
std::shared_ptr< Contact > Ptr
Definition Types.h:2962
Arguments for Api::convertGiftToStars.
Definition Types.h:14722
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:14726
std::string ownedGiftId
Unique identifier of the regular gift that should be converted to Telegram Stars.
Definition Types.h:14732
Arguments for Api::copyMessage.
Definition Types.h:14739
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...
Definition Types.h:14744
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...
Definition Types.h:14774
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:14785
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,...
Definition Types.h:14751
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:14819
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:14813
std::string parseMode
Mode for parsing entities in the new caption. See formatting options for more details.
Definition Types.h:14768
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media. Ignored if a new caption isn't specif...
Definition Types.h:14831
std::int32_t videoStartTimestamp
New start timestamp for the copied video in the message.
Definition Types.h:14844
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:14780
std::string messageEffectId
Unique identifier of the message effect to be added to the message; only available when copying to pr...
Definition Types.h:14825
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:14806
std::int32_t messageId
Message identifier in the chat specified in from_chat_id.
Definition Types.h:14756
std::string caption
New caption for media, 0-1024 characters after entities parsing. If not specified,...
Definition Types.h:14762
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:14799
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,...
Definition Types.h:14794
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:14839
Arguments for Api::copyMessages.
Definition Types.h:14851
std::vector< std::int32_t > messageIds
A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to copy....
Definition Types.h:14870
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,...
Definition Types.h:14863
bool disableNotification
Sends the messages silently. Users will receive a notification with no sound.
Definition Types.h:14883
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...
Definition Types.h:14856
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the messages will be sent; required if the messages ...
Definition Types.h:14899
bool removeCaption
Pass True to copy the messages without their captions.
Definition Types.h:14893
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:14877
bool protectContent
Protects the contents of the sent messages from forwarding and saving.
Definition Types.h:14888
This object represents an inline keyboard button that copies specified text to the clipboard.
Definition Types.h:2997
std::shared_ptr< CopyTextButton > Ptr
Definition Types.h:2998
std::string text
The text to be copied to the clipboard; 1-256 characters.
Definition Types.h:3003
Arguments for Api::createForumTopic.
Definition Types.h:14969
std::int32_t iconColor
Color of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0),...
Definition Types.h:14986
std::string iconCustomEmojiId
Unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get a...
Definition Types.h:14992
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:14974
std::string name
Topic name, 1-128 characters.
Definition Types.h:14979
Arguments for Api::createNewStickerSet.
Definition Types.h:15145
bool needsRepainting
Pass True if stickers in the sticker set must be repainted to the color of text when used in messages...
Definition Types.h:15183
std::int64_t userId
User identifier of created sticker set owner.
Definition Types.h:15149
std::vector< std::shared_ptr< InputSticker > > stickers
A JSON-serialized list of 1-50 initial stickers to be added to the sticker set.
Definition Types.h:15169
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:15190
std::string name
Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only Eng...
Definition Types.h:15158
std::string title
Sticker set title, 1-64 characters.
Definition Types.h:15163
Sticker::Type stickerType
Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default,...
Definition Types.h:15175
Arguments for Api::declineChatJoinRequest.
Definition Types.h:15197
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:15207
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:15202
Arguments for Api::declineSuggestedPost.
Definition Types.h:15214
std::int32_t messageId
Identifier of a suggested post message to decline.
Definition Types.h:15223
std::string comment
Comment for the creator of the suggested post; 0-128 characters.
Definition Types.h:15228
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target direct messages chat.
Definition Types.h:15218
Arguments for Api::deleteAllMessageReactions.
Definition Types.h:15235
std::int64_t userId
Identifier of the user whose reactions will be removed, if the reactions were added by a user.
Definition Types.h:15252
std::int64_t actorChatId
Identifier of the chat whose reactions will be removed, if the reactions were added by a chat.
Definition Types.h:15246
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:15240
Arguments for Api::deleteBusinessMessages.
Definition Types.h:15259
std::string businessConnectionId
Unique identifier of the business connection on behalf of which to delete the messages.
Definition Types.h:15264
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...
Definition Types.h:15271
Arguments for Api::deleteChatPhoto.
Definition Types.h:15278
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:15283
Arguments for Api::deleteChatStickerSet.
Definition Types.h:15290
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:15295
Arguments for Api::deleteEphemeralMessage.
Definition Types.h:15302
std::int32_t ephemeralMessageId
Identifier of the ephemeral message to delete.
Definition Types.h:15312
std::int64_t receiverUserId
Identifier of the user who received the message.
Definition Types.h:15317
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:15307
Arguments for Api::deleteForumTopic.
Definition Types.h:15324
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:15329
std::int32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
Definition Types.h:15334
Arguments for Api::deleteMessage.
Definition Types.h:15341
std::int32_t messageId
Identifier of the message to delete.
Definition Types.h:15351
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...
Definition Types.h:15346
Arguments for Api::deleteMessageReaction.
Definition Types.h:15358
std::int64_t actorChatId
Identifier of the chat whose reaction will be removed, if the reaction was added by a chat.
Definition Types.h:15374
std::int32_t messageId
Identifier of the target message.
Definition Types.h:15368
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:15363
std::int64_t userId
Identifier of the user whose reaction will be removed, if the reaction was added by a user.
Definition Types.h:15380
Arguments for Api::deleteMessages.
Definition Types.h:15387
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...
Definition Types.h:15392
std::vector< std::int32_t > messageIds
A JSON-serialized list of 1-100 identifiers of messages to delete. See deleteMessage for limitations ...
Definition Types.h:15398
Arguments for Api::deleteMyCommands.
Definition Types.h:15405
std::shared_ptr< BotCommandScope > scope
A JSON-serialized object, describing scope of users for which the commands are relevant....
Definition Types.h:15410
std::string languageCode
A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given ...
Definition Types.h:15417
Arguments for Api::deleteStickerFromSet.
Definition Types.h:15424
std::string sticker
File identifier of the sticker.
Definition Types.h:15428
Arguments for Api::deleteStickerSet.
Definition Types.h:15435
std::string name
Sticker set name.
Definition Types.h:15439
Arguments for Api::deleteStory.
Definition Types.h:15446
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:15450
std::int32_t storyId
Unique identifier of the story to delete.
Definition Types.h:15455
Arguments for Api::deleteWebhook.
Definition Types.h:15462
bool dropPendingUpdates
Pass True to drop all pending updates.
Definition Types.h:15466
This object represents an animated emoji that displays a random value.
Definition Types.h:3013
std::int32_t value
Value of the dice, 1-6 for “”, “” and “” base emoji, 1-5 for “” and “” base emoji,...
Definition Types.h:3024
std::shared_ptr< Dice > Ptr
Definition Types.h:3014
std::string emoji
Emoji on which the dice throw animation is based.
Definition Types.h:3019
Describes a service message about a change in the price of direct messages sent to a channel chat.
Definition Types.h:3035
bool areDirectMessagesEnabled
True, if direct messages are enabled for the channel chat; False otherwise.
Definition Types.h:3041
std::shared_ptr< DirectMessagePriceChanged > Ptr
Definition Types.h:3036
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...
Definition Types.h:3047
Describes a topic of a direct messages chat.
Definition Types.h:3057
std::int64_t topicId
Unique identifier of the topic. This number may have more than 32 significant bits and some programmi...
Definition Types.h:3066
std::shared_ptr< DirectMessagesTopic > Ptr
Definition Types.h:3058
std::shared_ptr< User > user
Optional. Information about the user that created the topic. Currently, it is always present.
Definition Types.h:3071
This object represents a disabled button which does nothing. Currently holds no information.
Definition Types.h:3081
std::shared_ptr< DisabledButton > Ptr
Definition Types.h:3082
This object represents a general file (as opposed to photos, voice messages and audio files).
Definition Types.h:3093
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...
Definition Types.h:3123
std::shared_ptr< PhotoSize > thumbnail
Optional. Document thumbnail as defined by the sender.
Definition Types.h:3108
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:3099
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:3104
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:3116
std::shared_ptr< Document > Ptr
Definition Types.h:3094
std::optional< std::string > fileName
Optional. Original filename as defined by the sender.
Definition Types.h:3112
Arguments for Api::editEphemeralMessageCaption.
Definition Types.h:15534
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media. Supported only for animation,...
Definition Types.h:15577
std::string parseMode
Mode for parsing entities in the message caption. See formatting options for more details.
Definition Types.h:15566
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:15560
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:15539
std::string caption
New caption of the message, 0-1024 characters after entities parsing.
Definition Types.h:15554
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:15571
std::int64_t receiverUserId
Identifier of the user who received the message.
Definition Types.h:15549
std::int32_t ephemeralMessageId
Identifier of the ephemeral message to edit.
Definition Types.h:15544
Arguments for Api::editEphemeralMessageMedia.
Definition Types.h:15584
std::shared_ptr< InputMedia > media
A JSON-serialized object for the new media content of the message.
Definition Types.h:15599
std::int32_t ephemeralMessageId
Identifier of the ephemeral message to edit.
Definition Types.h:15594
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:15616
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:15589
std::int64_t receiverUserId
Identifier of the user who received the message.
Definition Types.h:15604
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:15609
Arguments for Api::editEphemeralMessageReplyMarkup.
Definition Types.h:15623
std::int32_t ephemeralMessageId
Identifier of the ephemeral message to edit.
Definition Types.h:15633
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:15628
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:15643
std::int64_t receiverUserId
Identifier of the user who received the message.
Definition Types.h:15638
Arguments for Api::editEphemeralMessageText.
Definition Types.h:15650
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:15693
std::shared_ptr< InputRichMessage > richMessage
New rich content of the message; required if text isn't specified.
Definition Types.h:15698
std::int64_t receiverUserId
Identifier of the user who received the message.
Definition Types.h:15665
std::int32_t ephemeralMessageId
Identifier of the ephemeral message to edit.
Definition Types.h:15660
std::string text
New text of the message, 1-4096 characters after entity parsing; required if rich_message isn't speci...
Definition Types.h:15671
std::vector< std::shared_ptr< MessageEntity > > entities
A JSON-serialized list of special entities that appear in message text, which can be specified instea...
Definition Types.h:15677
std::string parseMode
Mode for parsing entities in the message text. See formatting options for more details.
Definition Types.h:15688
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Link preview generation options for the message.
Definition Types.h:15682
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:15655
Arguments for Api::editForumTopic.
Definition Types.h:15705
std::int32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
Definition Types.h:15715
std::string iconCustomEmojiId
New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to g...
Definition Types.h:15729
std::string name
New topic name, 0-128 characters. If not specified or empty, the current name of the topic will be ke...
Definition Types.h:15721
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:15710
Arguments for Api::editGeneralForumTopic.
Definition Types.h:15736
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:15741
std::string name
New topic name, 1-128 characters.
Definition Types.h:15746
Arguments for Api::editMessageCaption.
Definition Types.h:15753
std::string parseMode
Mode for parsing entities in the message caption. See formatting options for more details.
Definition Types.h:15787
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 ...
Definition Types.h:15759
std::int32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
Definition Types.h:15765
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
Definition Types.h:15799
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:15776
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:15781
std::string caption
New caption of the message, 0-1024 characters after entities parsing.
Definition Types.h:15770
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:15793
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media. Supported only for animation,...
Definition Types.h:15805
Arguments for Api::editMessageChecklist.
Definition Types.h:15812
std::int32_t messageId
Unique identifier for the target message.
Definition Types.h:15833
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for the new inline keyboard for the message.
Definition Types.h:15838
std::shared_ptr< InputChecklist > checklist
A JSON-serialized object for the new checklist.
Definition Types.h:15828
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:15823
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot in the format @username.
Definition Types.h:15817
Arguments for Api::editMessageLiveLocation.
Definition Types.h:15845
std::int32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
Definition Types.h:15867
double horizontalAccuracy
The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:15883
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
Definition Types.h:15901
double latitude
Latitude of new location.
Definition Types.h:15849
std::int32_t proximityAlertRadius
The maximum distance for proximity alerts about approaching another chat member, in meters....
Definition Types.h:15895
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 ...
Definition Types.h:15861
std::int32_t livePeriod
New period in seconds during which the location can be updated, starting from the message send date....
Definition Types.h:15911
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for a new inline keyboard.
Definition Types.h:15878
double longitude
Longitude of new location.
Definition Types.h:15854
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:15873
std::int32_t heading
Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
Definition Types.h:15889
Arguments for Api::editMessageMedia.
Definition Types.h:15918
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
Definition Types.h:15952
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:15959
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 ...
Definition Types.h:15929
std::shared_ptr< InputMedia > media
A JSON-serialized object for the new media content of the message.
Definition Types.h:15922
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:15941
std::int32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
Definition Types.h:15935
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for a new inline keyboard.
Definition Types.h:15946
Arguments for Api::editMessageReplyMarkup.
Definition Types.h:15966
std::int32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
Definition Types.h:15978
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:15989
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:15984
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
Definition Types.h:15995
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 ...
Definition Types.h:15972
Arguments for Api::editMessageText.
Definition Types.h:16002
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
Definition Types.h:16054
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:16026
std::shared_ptr< InputRichMessage > richMessage
New rich content of the message; required if text isn't specified. Direct upload of new files and exp...
Definition Types.h:16061
std::int32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
Definition Types.h:16020
std::string text
New text of the message, 1-4096 characters after entity parsing; required if rich_message isn't speci...
Definition Types.h:16007
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Link preview generation options for the message.
Definition Types.h:16037
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 ...
Definition Types.h:16014
std::vector< std::shared_ptr< MessageEntity > > entities
A JSON-serialized list of special entities that appear in message text, which can be specified instea...
Definition Types.h:16048
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:16068
std::string parseMode
Mode for parsing entities in the message text. See formatting options for more details.
Definition Types.h:16032
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:16042
Arguments for Api::editStory.
Definition Types.h:16075
std::string caption
Caption of the story, 0-2048 characters after entities parsing.
Definition Types.h:16099
std::string parseMode
Mode for parsing entities in the story caption. See formatting options for more details.
Definition Types.h:16111
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:16079
std::vector< std::shared_ptr< StoryArea > > areas
A JSON-serialized list of clickable areas to be shown on the story.
Definition Types.h:16094
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:16105
std::int32_t storyId
Unique identifier of the story to edit.
Definition Types.h:16089
std::shared_ptr< InputStoryContent > content
Content of the story.
Definition Types.h:16084
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:16118
Arguments for Api::editUserStarSubscription.
Definition Types.h:16125
std::int64_t userId
Identifier of the user whose subscription will be edited.
Definition Types.h:16142
std::string telegramPaymentChargeId
Telegram payment identifier for the subscription.
Definition Types.h:16137
bool isCanceled
Pass True to cancel extension of the user subscription; the subscription must be active up to the end...
Definition Types.h:16132
Describes data required for decrypting and authenticating EncryptedPassportElement....
Definition Types.h:3135
std::string data
Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets req...
Definition Types.h:3142
std::string hash
Base64-encoded data hash for data authentication.
Definition Types.h:3146
std::shared_ptr< EncryptedCredentials > Ptr
Definition Types.h:3136
std::string secret
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption.
Definition Types.h:3151
Describes documents or other Telegram Passport elements shared with the bot by the user.
Definition Types.h:3161
std::optional< std::vector< std::shared_ptr< PassportFile > > > translation
Optional. Array of encrypted files with translated versions of documents provided by the user; availa...
Definition Types.h:3219
std::shared_ptr< PassportFile > frontSide
Optional. Encrypted file with the front side of the document, provided by the user; available only fo...
Definition Types.h:3198
std::optional< std::string > email
Optional. User's verified email address; available only for “email” type.
Definition Types.h:3184
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...
Definition Types.h:3191
std::optional< std::string > phoneNumber
Optional. User's verified phone number; available only for “phone_number” type.
Definition Types.h:3180
std::string type
Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”,...
Definition Types.h:3169
std::shared_ptr< PassportFile > reverseSide
Optional. Encrypted file with the reverse side of the document, provided by the user; available only ...
Definition Types.h:3204
std::shared_ptr< EncryptedPassportElement > Ptr
Definition Types.h:3162
std::shared_ptr< PassportFile > selfie
Optional. Encrypted file with the selfie of the user holding a document, provided by the user; availa...
Definition Types.h:3211
std::optional< std::string > data
Optional. Base64-encoded encrypted Telegram Passport element data provided by the user; available onl...
Definition Types.h:3176
std::string hash
Base64-encoded element hash for using in PassportElementErrorUnspecified.
Definition Types.h:3223
std::shared_ptr< EphemeralMessageParameters > Ptr
Definition Types.h:3234
std::optional< bool > replaceCallbackQueryMessage
Optional. Pass True if the ephemeral message must be shown in place of the original message....
Definition Types.h:3250
std::int64_t receiverUserId
Identifier of the user who will receive the message. It is not guaranteed that the user will receive ...
Definition Types.h:3240
std::optional< std::string > callbackQueryId
Optional. Identifier of the callback query which triggered the message, if any.
Definition Types.h:3244
This object contains information about a message that is being replied to, which may come from anothe...
Definition Types.h:3261
std::optional< bool > hasMediaSpoiler
Optional. True, if the message media is covered by a spoiler animation.
Definition Types.h:3330
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Optional. Options used for link preview generation for the original message, if it is a text message.
Definition Types.h:3282
std::shared_ptr< Poll > poll
Optional. Message is a native poll, information about the poll.
Definition Types.h:3367
std::shared_ptr< Location > location
Optional. Message is a shared location, information about the location.
Definition Types.h:3363
std::shared_ptr< PaidMediaInfo > paidMedia
Optional. Message contains paid media; information about the paid media.
Definition Types.h:3302
std::shared_ptr< Checklist > checklist
Optional. Message is a checklist.
Definition Types.h:3334
std::shared_ptr< Audio > audio
Optional. Message is an audio file, information about the file.
Definition Types.h:3290
std::shared_ptr< VideoNote > videoNote
Optional. Message is a video note, information about the video message.
Definition Types.h:3322
std::shared_ptr< Giveaway > giveaway
Optional. Message is a scheduled giveaway, information about the giveaway.
Definition Types.h:3350
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Message is a photo, available sizes of the photo.
Definition Types.h:3306
std::shared_ptr< ExternalReplyInfo > Ptr
Definition Types.h:3262
std::optional< std::int32_t > messageId
Optional. Unique message identifier inside the original chat. Available only if the original chat is ...
Definition Types.h:3277
std::shared_ptr< Voice > voice
Optional. Message is a voice message, information about the file.
Definition Types.h:3326
std::shared_ptr< Video > video
Optional. Message is a video, information about the video.
Definition Types.h:3318
std::shared_ptr< Sticker > sticker
Optional. Message is a sticker, information about the sticker.
Definition Types.h:3310
std::shared_ptr< Venue > venue
Optional. Message is a venue, information about the venue.
Definition Types.h:3371
std::shared_ptr< Dice > dice
Optional. Message is a dice with random value.
Definition Types.h:3342
std::shared_ptr< Story > story
Optional. Message is a forwarded story.
Definition Types.h:3314
std::shared_ptr< LivePhoto > livePhoto
Optional. Message is a live photo, information about the live photo.
Definition Types.h:3298
std::shared_ptr< Chat > chat
Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a chann...
Definition Types.h:3272
std::shared_ptr< Game > game
Optional. Message is a game, information about the game. More about games »
Definition Types.h:3346
std::shared_ptr< GiveawayWinners > giveawayWinners
Optional. A giveaway with public winners was completed.
Definition Types.h:3354
std::shared_ptr< Animation > animation
Optional. Message is an animation, information about the animation.
Definition Types.h:3286
std::shared_ptr< Invoice > invoice
Optional. Message is an invoice for a payment, information about the invoice. More about payments »
Definition Types.h:3359
std::shared_ptr< MessageOrigin > origin
Origin of the message replied to by the given message.
Definition Types.h:3267
std::shared_ptr< Contact > contact
Optional. Message is a shared contact, information about the contact.
Definition Types.h:3338
std::shared_ptr< Document > document
Optional. Message is a general file, information about the file.
Definition Types.h:3294
This object represents a file ready to be downloaded. The file can be downloaded via the link https:/...
Definition Types.h:3384
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...
Definition Types.h:3402
std::optional< std::string > filePath
Optional. File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file.
Definition Types.h:3407
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:3390
std::shared_ptr< File > Ptr
Definition Types.h:3385
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:3395
Upon receiving a message with this object, Telegram clients will display a reply interface to the use...
Definition Types.h:3421
std::shared_ptr< ForceReply > Ptr
Definition Types.h:3422
bool forceReply
Shows reply interface to the user, as if they had manually selected the bot's message and tapped 'Rep...
Definition Types.h:3428
std::optional< bool > selective
Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users t...
Definition Types.h:3440
std::optional< std::string > inputFieldPlaceholder
Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters.
Definition Types.h:3433
This object represents a service message about a forum topic closed in the chat. Currently holds no i...
Definition Types.h:3484
std::shared_ptr< ForumTopicClosed > Ptr
Definition Types.h:3485
This object represents a service message about a new forum topic created in the chat.
Definition Types.h:3495
std::string name
Name of the topic.
Definition Types.h:3501
std::optional< std::string > iconCustomEmojiId
Optional. Unique identifier of the custom emoji shown as the topic icon.
Definition Types.h:3509
std::shared_ptr< ForumTopicCreated > Ptr
Definition Types.h:3496
std::optional< bool > isNameImplicit
Optional. True, if the name of the topic wasn't specified explicitly by its creator and likely needs ...
Definition Types.h:3514
std::int32_t iconColor
Color of the topic icon in RGB format.
Definition Types.h:3505
This object represents a service message about an edited forum topic.
Definition Types.h:3524
std::optional< std::string > iconCustomEmojiId
Optional. New identifier of the custom emoji shown as the topic icon, if it was edited; an empty stri...
Definition Types.h:3535
std::shared_ptr< ForumTopicEdited > Ptr
Definition Types.h:3525
std::optional< std::string > name
Optional. New name of the topic, if it was edited.
Definition Types.h:3530
This object represents a forum topic.
Definition Types.h:3450
std::string name
Name of the topic.
Definition Types.h:3460
std::int32_t messageThreadId
Unique identifier of the forum topic.
Definition Types.h:3456
std::optional< std::string > iconCustomEmojiId
Optional. Unique identifier of the custom emoji shown as the topic icon.
Definition Types.h:3468
std::int32_t iconColor
Color of the topic icon in RGB format.
Definition Types.h:3464
std::optional< bool > isNameImplicit
Optional. True, if the name of the topic wasn't specified explicitly by its creator and likely needs ...
Definition Types.h:3473
std::shared_ptr< ForumTopic > Ptr
Definition Types.h:3451
This object represents a service message about a forum topic reopened in the chat....
Definition Types.h:3546
std::shared_ptr< ForumTopicReopened > Ptr
Definition Types.h:3547
Arguments for Api::forwardMessage.
Definition Types.h:16161
bool protectContent
Protects the contents of the forwarded message from forwarding and saving.
Definition Types.h:16190
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...
Definition Types.h:16166
std::int32_t videoStartTimestamp
New start timestamp for the forwarded video in the message.
Definition Types.h:16221
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:16184
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be forwarded; required if the messa...
Definition Types.h:16204
std::string messageEffectId
Unique identifier of the message effect to be added to the message; only available when forwarding to...
Definition Types.h:16210
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:16197
std::int32_t messageId
Message identifier in the chat specified in from_chat_id.
Definition Types.h:16178
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,...
Definition Types.h:16173
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:16216
Arguments for Api::forwardMessages.
Definition Types.h:16228
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...
Definition Types.h:16233
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:16254
bool disableNotification
Sends the messages silently. Users will receive a notification with no sound.
Definition Types.h:16260
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the messages will be forwarded; required if the mess...
Definition Types.h:16273
std::vector< std::int32_t > messageIds
A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to forward....
Definition Types.h:16247
bool protectContent
Protects the contents of the forwarded messages from forwarding and saving.
Definition Types.h:16266
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,...
Definition Types.h:16240
This object represents one row of the high scores table for a game.
Definition Types.h:3598
std::shared_ptr< GameHighScore > Ptr
Definition Types.h:3599
std::shared_ptr< User > user
User.
Definition Types.h:3608
std::int32_t score
Score.
Definition Types.h:3612
std::int32_t position
Position in high score table for the game.
Definition Types.h:3604
This object represents a game. Use BotFather to create and edit games, their short names will act as ...
Definition Types.h:3558
std::optional< std::vector< std::shared_ptr< MessageEntity > > > textEntities
Optional. Special entities that appear in text, such as usernames, URLs, bot commands,...
Definition Types.h:3583
std::shared_ptr< Animation > animation
Optional. Animation that will be displayed in the game message in chats. Upload via BotFather.
Definition Types.h:3588
std::shared_ptr< Game > Ptr
Definition Types.h:3559
std::string title
Title of the game.
Definition Types.h:3564
std::string description
Description of the game.
Definition Types.h:3568
std::optional< std::string > text
Optional. Brief description of the game or high scores included in the game message....
Definition Types.h:3578
std::vector< std::shared_ptr< PhotoSize > > photo
Photo that will be displayed in the game message in chats.
Definition Types.h:3572
This object represents a service message about General forum topic hidden in the chat....
Definition Types.h:3623
std::shared_ptr< GeneralForumTopicHidden > Ptr
Definition Types.h:3624
This object represents a service message about General forum topic unhidden in the chat....
Definition Types.h:3635
std::shared_ptr< GeneralForumTopicUnhidden > Ptr
Definition Types.h:3636
Arguments for Api::getBusinessAccountGifts.
Definition Types.h:16280
bool sortByPrice
Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.
Definition Types.h:16341
bool excludeUnlimited
Pass True to exclude gifts that can be purchased an unlimited number of times.
Definition Types.h:16318
bool excludeLimitedUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to uni...
Definition Types.h:16302
std::string offset
Offset of the first entry to return as received from the previous request; use empty string to get th...
Definition Types.h:16335
bool excludeUnique
Pass True to exclude unique gifts.
Definition Types.h:16312
bool excludeSaved
Pass True to exclude gifts that are saved to the account's profile page.
Definition Types.h:16307
bool excludeFromBlockchain
Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transfer...
Definition Types.h:16290
bool excludeUnsaved
Pass True to exclude gifts that aren't saved to the account's profile page.
Definition Types.h:16324
std::int32_t limit
The maximum number of gifts to be returned; 1-100. Defaults to 100.
Definition Types.h:16329
bool excludeLimitedNonUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to u...
Definition Types.h:16296
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:16284
Arguments for Api::getBusinessAccountStarBalance.
Definition Types.h:16348
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:16352
Arguments for Api::getBusinessConnection.
Definition Types.h:16359
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:16363
Arguments for Api::getChatAdministrators.
Definition Types.h:16382
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 @...
Definition Types.h:16387
bool returnBots
Pass True to additionally receive all bots that are administrators of the chat. By default,...
Definition Types.h:16393
Arguments for Api::getChat.
Definition Types.h:16370
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 @...
Definition Types.h:16375
Arguments for Api::getChatGifts.
Definition Types.h:16400
bool excludeUnique
Pass True to exclude unique gifts.
Definition Types.h:16435
bool excludeFromBlockchain
Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transfer...
Definition Types.h:16411
bool excludeUnlimited
Pass True to exclude gifts that can be purchased an unlimited number of times.
Definition Types.h:16441
bool excludeSaved
Pass True to exclude gifts that are saved to the chat's profile page. Always False,...
Definition Types.h:16430
bool sortByPrice
Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.
Definition Types.h:16465
bool excludeLimitedNonUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to u...
Definition Types.h:16417
std::string offset
Offset of the first entry to return as received from the previous request; use an empty string to get...
Definition Types.h:16459
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:16405
std::int32_t limit
The maximum number of gifts to be returned; 1-100. Defaults to 100.
Definition Types.h:16453
bool excludeUnsaved
Pass True to exclude gifts that aren't saved to the chat's profile page. Always True,...
Definition Types.h:16448
bool excludeLimitedUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to uni...
Definition Types.h:16423
Arguments for Api::getChatMember.
Definition Types.h:16472
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 @...
Definition Types.h:16477
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:16482
Arguments for Api::getChatMemberCount.
Definition Types.h:16489
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 @...
Definition Types.h:16494
Arguments for Api::getChatMenuButton.
Definition Types.h:16501
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target private chat. If not specified, the bot's default menu button will b...
Definition Types.h:16506
Arguments for Api::getCustomEmojiStickers.
Definition Types.h:16513
std::vector< std::string > customEmojiIds
A JSON-serialized list of custom emoji identifiers. At most 200 custom emoji identifiers can be speci...
Definition Types.h:16518
Arguments for Api::getFile.
Definition Types.h:16525
std::string fileId
File identifier to get information about.
Definition Types.h:16529
Arguments for Api::getGameHighScores.
Definition Types.h:16536
std::int32_t messageId
Required if inline_message_id is not specified. Identifier of the sent message.
Definition Types.h:16552
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat.
Definition Types.h:16546
std::int64_t userId
Target user id.
Definition Types.h:16540
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:16558
Arguments for Api::getManagedBotAccessSettings.
Definition Types.h:16565
std::int64_t userId
User identifier of the managed bot whose access settings will be returned.
Definition Types.h:16570
Arguments for Api::getManagedBotToken.
Definition Types.h:16577
std::int64_t userId
User identifier of the managed bot whose token will be returned.
Definition Types.h:16581
Arguments for Api::getMyCommands.
Definition Types.h:16588
std::string languageCode
A two-letter ISO 639-1 language code or an empty string.
Definition Types.h:16598
std::shared_ptr< BotCommandScope > scope
A JSON-serialized object, describing scope of users. Defaults to BotCommandScopeDefault.
Definition Types.h:16593
Arguments for Api::getMyDefaultAdministratorRights.
Definition Types.h:16605
bool forChannels
Pass True to get default administrator rights of the bot in channels. Otherwise, default administrato...
Definition Types.h:16611
Arguments for Api::getMyDescription.
Definition Types.h:16618
std::string languageCode
A two-letter ISO 639-1 language code or an empty string.
Definition Types.h:16622
Arguments for Api::getMyName.
Definition Types.h:16629
std::string languageCode
A two-letter ISO 639-1 language code or an empty string.
Definition Types.h:16633
Arguments for Api::getMyShortDescription.
Definition Types.h:16640
std::string languageCode
A two-letter ISO 639-1 language code or an empty string.
Definition Types.h:16644
Arguments for Api::getStarTransactions.
Definition Types.h:16651
std::int32_t offset
Number of transactions to skip in the response.
Definition Types.h:16661
std::int32_t limit
The maximum number of transactions to be retrieved. Values between 1-100 are accepted....
Definition Types.h:16656
Arguments for Api::getStickerSet.
Definition Types.h:16668
std::string name
Name of the sticker set.
Definition Types.h:16672
Arguments for Api::getUpdates.
Definition Types.h:16679
std::int32_t offset
Identifier of the first update to be returned. Must be greater by one than the highest among the iden...
Definition Types.h:16689
std::vector< std::string > allowedUpdates
A JSON-serialized list of the update types you want your bot to receive. For example,...
Definition Types.h:16715
std::int32_t timeout
Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling. Should be positive,...
Definition Types.h:16702
std::int32_t limit
Limits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100.
Definition Types.h:16695
Arguments for Api::getUserChatBoosts.
Definition Types.h:16722
std::variant< std::int64_t, std::string > chatId
Unique identifier for the chat or username of the channel in the format @username.
Definition Types.h:16727
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:16732
Arguments for Api::getUserGifts.
Definition Types.h:16739
bool sortByPrice
Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.
Definition Types.h:16789
std::int64_t userId
Unique identifier of the user.
Definition Types.h:16743
bool excludeLimitedUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to uni...
Definition Types.h:16761
std::int32_t limit
The maximum number of gifts to be returned; 1-100. Defaults to 100.
Definition Types.h:16777
bool excludeLimitedNonUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to u...
Definition Types.h:16755
bool excludeUnlimited
Pass True to exclude gifts that can be purchased an unlimited number of times.
Definition Types.h:16772
bool excludeUnique
Pass True to exclude unique gifts.
Definition Types.h:16766
std::string offset
Offset of the first entry to return as received from the previous request; use an empty string to get...
Definition Types.h:16783
bool excludeFromBlockchain
Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transfer...
Definition Types.h:16749
Arguments for Api::getUserPersonalChatMessages.
Definition Types.h:16796
std::int64_t userId
Unique identifier for the target user.
Definition Types.h:16805
std::int32_t limit
The maximum number of messages to return; 1-20.
Definition Types.h:16800
Arguments for Api::getUserProfileAudios.
Definition Types.h:16812
std::int32_t offset
Sequential number of the first audio to be returned. By default, all audios are returned.
Definition Types.h:16828
std::int32_t limit
Limits the number of audios to be retrieved. Values between 1-100 are accepted. Defaults to 100.
Definition Types.h:16822
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:16816
Arguments for Api::getUserProfilePhotos.
Definition Types.h:16835
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:16839
std::int32_t limit
Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.
Definition Types.h:16851
std::int32_t offset
Sequential number of the first photo to be returned. By default, all photos are returned.
Definition Types.h:16845
This object describes the background of a gift.
Definition Types.h:3717
std::shared_ptr< GiftBackground > Ptr
Definition Types.h:3718
std::int32_t centerColor
Center color of the background in RGB format.
Definition Types.h:3723
std::int32_t textColor
Text color of the background in RGB format.
Definition Types.h:3731
std::int32_t edgeColor
Edge color of the background in RGB format.
Definition Types.h:3727
This object represents a gift that can be sent by the bot.
Definition Types.h:3646
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...
Definition Types.h:3694
std::shared_ptr< Chat > publisherChat
Optional. Information about the chat that published the gift.
Definition Types.h:3707
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...
Definition Types.h:3684
std::shared_ptr< GiftBackground > background
Optional. Background of the gift.
Definition Types.h:3698
std::optional< bool > isPremium
Optional. True, if the gift can only be purchased by Telegram Premium subscribers.
Definition Types.h:3669
std::shared_ptr< Sticker > sticker
The sticker that represents the gift.
Definition Types.h:3656
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...
Definition Types.h:3679
std::shared_ptr< Gift > Ptr
Definition Types.h:3647
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.
Definition Types.h:3689
std::optional< std::int32_t > upgradeStarCount
Optional. The number of Telegram Stars that must be paid to upgrade the gift to a unique one.
Definition Types.h:3665
std::int32_t starCount
The number of Telegram Stars that must be paid to send the sticker.
Definition Types.h:3660
std::optional< bool > hasColors
Optional. True, if the gift can be used (after being upgraded) to customize a user's appearance.
Definition Types.h:3674
std::optional< std::int32_t > uniqueGiftVariantCount
Optional. The total number of different unique gifts that can be obtained by upgrading the gift.
Definition Types.h:3703
Describes a service message about a regular gift that was sent or received.
Definition Types.h:3741
std::optional< std::string > ownedGiftId
Optional. Unique identifier of the received gift for the bot; only present for gifts received on beha...
Definition Types.h:3752
std::optional< bool > canBeUpgraded
Optional. True, if the gift can be upgraded to a unique gift.
Definition Types.h:3769
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the text.
Definition Types.h:3777
std::optional< std::int32_t > uniqueGiftNumber
Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift.
Definition Types.h:3787
std::optional< bool > isUpgradeSeparate
Optional. True, if the gift's upgrade was purchased after the gift was sent.
Definition Types.h:3765
std::optional< std::string > text
Optional. Text of the message that was added to the gift.
Definition Types.h:3773
std::optional< std::int32_t > convertStarCount
Optional. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitte...
Definition Types.h:3757
std::optional< std::int32_t > prepaidUpgradeStarCount
Optional. Number of Telegram Stars that were prepaid for the ability to upgrade the gift.
Definition Types.h:3761
std::optional< bool > isPrivate
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise,...
Definition Types.h:3782
std::shared_ptr< GiftInfo > Ptr
Definition Types.h:3742
std::shared_ptr< Gift > gift
Information about the gift.
Definition Types.h:3747
Arguments for Api::giftPremiumSubscription.
Definition Types.h:16858
std::int32_t starCount
Number of Telegram Stars to pay for the Telegram Premium subscription; must be 1000 for 3 months,...
Definition Types.h:16869
std::int64_t userId
Unique identifier of the target user who will receive a Telegram Premium subscription.
Definition Types.h:16875
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 ...
Definition Types.h:16889
std::string text
Text that will be shown along with the service message about the subscription; 0-128 characters.
Definition Types.h:16881
std::string textParseMode
Mode for parsing entities in the text. See formatting options for more details. Entities other than “...
Definition Types.h:16896
std::int32_t monthCount
Number of months the Telegram Premium subscription will be active for the user; must be one of 3,...
Definition Types.h:16863
This object represent a list of gifts.
Definition Types.h:3797
std::vector< std::shared_ptr< Gift > > gifts
The list of gifts.
Definition Types.h:3803
std::shared_ptr< Gifts > Ptr
Definition Types.h:3798
This object represents a service message about the completion of a giveaway without public winners.
Definition Types.h:3868
std::optional< std::int32_t > unclaimedPrizeCount
Optional. Number of undistributed prizes.
Definition Types.h:3878
std::shared_ptr< GiveawayCompleted > Ptr
Definition Types.h:3869
std::shared_ptr< Message > giveawayMessage
Optional. Message with the giveaway that was completed, if it wasn't deleted.
Definition Types.h:3882
std::int32_t winnerCount
Number of winners in the giveaway.
Definition Types.h:3874
std::optional< bool > isStarGiveaway
Optional. True, if the giveaway is a Telegram Star giveaway. Otherwise, currently,...
Definition Types.h:3887
This object represents a service message about the creation of a scheduled giveaway.
Definition Types.h:3897
std::optional< std::int32_t > prizeStarCount
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaw...
Definition Types.h:3904
std::shared_ptr< GiveawayCreated > Ptr
Definition Types.h:3898
This object represents a message about a scheduled giveaway.
Definition Types.h:3813
std::vector< std::shared_ptr< Chat > > chats
The list of chats which the user must join to participate in the giveaway.
Definition Types.h:3819
std::optional< std::int32_t > prizeStarCount
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaw...
Definition Types.h:3852
std::optional< bool > onlyNewMembers
Optional. True, if only users who join the chats after the giveaway started should be eligible to win...
Definition Types.h:3832
std::int32_t winnerCount
The number of users which are supposed to be selected as winners of the giveaway.
Definition Types.h:3827
std::int32_t winnersSelectionDate
Point in time (Unix timestamp) when winners of the giveaway will be selected.
Definition Types.h:3823
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...
Definition Types.h:3847
std::shared_ptr< Giveaway > Ptr
Definition Types.h:3814
std::optional< bool > hasPublicWinners
Optional. True, if the list of giveaway winners will be visible to everyone.
Definition Types.h:3836
std::optional< std::string > prizeDescription
Optional. Description of additional giveaway prize.
Definition Types.h:3840
std::optional< std::int32_t > premiumSubscriptionMonthCount
Optional. The number of months the Telegram Premium subscription won from the giveaway will be active...
Definition Types.h:3857
This object represents a message about the completion of a giveaway with public winners.
Definition Types.h:3914
std::optional< std::int32_t > premiumSubscriptionMonthCount
Optional. The number of months the Telegram Premium subscription won from the giveaway will be active...
Definition Types.h:3951
std::optional< std::string > prizeDescription
Optional. Description of additional giveaway prize.
Definition Types.h:3968
std::optional< bool > onlyNewMembers
Optional. True, if only users who had joined the chats after the giveaway started were eligible to wi...
Definition Types.h:3960
std::int32_t giveawayMessageId
Identifier of the message with the giveaway in the chat.
Definition Types.h:3924
std::optional< std::int32_t > prizeStarCount
Optional. The number of Telegram Stars that were split between giveaway winners; for Telegram Star gi...
Definition Types.h:3946
std::optional< std::int32_t > unclaimedPrizeCount
Optional. Number of undistributed prizes.
Definition Types.h:3955
std::shared_ptr< Chat > chat
The chat that created the giveaway.
Definition Types.h:3920
std::optional< bool > wasRefunded
Optional. True, if the giveaway was canceled because the payment for it was refunded.
Definition Types.h:3964
std::int32_t winnerCount
Total number of winners in the giveaway.
Definition Types.h:3932
std::int32_t winnersSelectionDate
Point in time (Unix timestamp) when winners of the giveaway were selected.
Definition Types.h:3928
std::vector< std::shared_ptr< User > > winners
List of up to 100 winners of the giveaway.
Definition Types.h:3936
std::shared_ptr< GiveawayWinners > Ptr
Definition Types.h:3915
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.
Definition Types.h:3941
Arguments for Api::hideGeneralForumTopic.
Definition Types.h:16903
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:16908
This object describes a message that was deleted or is otherwise inaccessible to the bot.
Definition Types.h:3978
std::shared_ptr< InaccessibleMessage > Ptr
Definition Types.h:3979
std::int32_t date
Always 0. The field can be used to differentiate regular and inaccessible messages.
Definition Types.h:3992
std::shared_ptr< Chat > chat
Chat the message belonged to.
Definition Types.h:3984
std::int32_t messageId
Unique message identifier inside the chat.
Definition Types.h:3988
This object represents one button of an inline keyboard. Exactly one of the fields other than text,...
Definition Types.h:4003
std::shared_ptr< SwitchInlineQueryChosenChat > switchInlineQueryChosenChat
Optional. If set, pressing the button will prompt the user to select one of their chats of the specif...
Definition Types.h:4068
std::shared_ptr< LoginUrl > loginUrl
Optional. An HTTPS URL used to automatically authorize the user. Can be used as a replacement for the...
Definition Types.h:4044
std::optional< std::string > iconCustomEmojiId
Optional. Unique identifier of the custom emoji shown before the text of the button....
Definition Types.h:4016
std::optional< bool > pay
Optional. Specify True, to send a Pay button. Substrings “” and “XTR” in the buttons's text will be r...
Definition Types.h:4083
std::shared_ptr< CopyTextButton > copyText
Optional. Description of the button that copies the specified text to the clipboard.
Definition Types.h:4072
std::optional< std::string > switchInlineQueryCurrentChat
Optional. If set, pressing the button will insert the bot's username and the specified inline query i...
Definition Types.h:4061
std::optional< std::string > callbackData
Optional. Data to be sent in a callback query to the bot when the button is pressed,...
Definition Types.h:4032
std::optional< std::string > style
Optional. Style of the button. Must be one of “danger” (red), “success” (green) or “primary” (blue)....
Definition Types.h:4021
std::shared_ptr< CallbackGame > callbackGame
Optional. Description of the game that will be launched when the user presses the button....
Definition Types.h:4077
std::optional< std::string > switchInlineQuery
Optional. If set, pressing the button will prompt the user to select one of their chats,...
Definition Types.h:4052
std::string text
Label text on the button.
Definition Types.h:4009
std::shared_ptr< DisabledButton > disabled
Optional. If set, then the button is disabled and does nothing.
Definition Types.h:4087
std::shared_ptr< WebAppInfo > webApp
Optional. Description of the Web App that will be launched when the user presses the button....
Definition Types.h:4039
std::shared_ptr< InlineKeyboardButton > Ptr
Definition Types.h:4004
std::optional< std::string > url
Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?...
Definition Types.h:4027
This object represents an inline keyboard that appears right next to the message it belongs to.
Definition Types.h:4098
std::optional< bool > forceReply
Optional. Pass True if the reply interface must be shown to the user, as if they had manually selecte...
Definition Types.h:4110
std::vector< std::vector< std::shared_ptr< InlineKeyboardButton > > > inlineKeyboard
Array of button rows, each represented by an Array of InlineKeyboardButton objects.
Definition Types.h:4104
std::shared_ptr< InlineKeyboardMarkup > Ptr
Definition Types.h:4099
This object represents an incoming inline query. When the user sends an empty query,...
Definition Types.h:4121
std::string offset
Offset of the results to be returned, can be controlled by the bot.
Definition Types.h:4139
std::shared_ptr< InlineQuery > Ptr
Definition Types.h:4122
std::shared_ptr< Location > location
Optional. Sender location, only for bots that request user location.
Definition Types.h:4150
std::optional< std::string > chatType
Optional. Type of the chat from which the inline query was sent. Can be either “sender” for a private...
Definition Types.h:4146
std::string query
Text of the query (up to 256 characters).
Definition Types.h:4135
std::shared_ptr< User > from
Sender.
Definition Types.h:4131
Represents a link to an article or web page.
Definition Types.h:4192
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:4224
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4216
std::shared_ptr< InputMessageContent > inputMessageContent
Content of the message to be sent.
Definition Types.h:4212
std::shared_ptr< InlineQueryResultArticle > Ptr
Definition Types.h:4193
std::string type
Type of the result, must be article.
Definition Types.h:4200
static TGBOT_API const std::string TYPE
Definition Types.h:4195
std::optional< std::string > url
Optional. URL of the result.
Definition Types.h:4220
std::string title
Title of the result.
Definition Types.h:4208
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
Definition Types.h:4228
std::optional< std::int32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:4232
std::optional< std::int32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:4236
Represents a link to an MP3 audio file. By default, this audio file will be sent by the user....
Definition Types.h:4248
std::string audioUrl
A valid URL for the audio file.
Definition Types.h:4264
std::shared_ptr< InlineQueryResultAudio > Ptr
Definition Types.h:4249
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
Definition Types.h:4272
std::string title
Title.
Definition Types.h:4268
std::optional< std::string > performer
Optional. Performer.
Definition Types.h:4286
std::string type
Type of the result, must be audio.
Definition Types.h:4256
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the audio.
Definition Types.h:4298
std::optional< std::int32_t > audioDuration
Optional. Audio duration in seconds.
Definition Types.h:4290
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...
Definition Types.h:4282
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
Definition Types.h:4277
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4294
static TGBOT_API const std::string TYPE
Definition Types.h:4251
Represents a link to an MP3 audio file stored on the Telegram servers. By default,...
Definition Types.h:4310
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...
Definition Types.h:4340
std::string type
Type of the result, must be audio.
Definition Types.h:4318
std::string audioFileId
A valid file identifier for the audio file.
Definition Types.h:4326
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4344
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the audio.
Definition Types.h:4348
static TGBOT_API const std::string TYPE
Definition Types.h:4313
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
Definition Types.h:4335
std::shared_ptr< InlineQueryResultCachedAudio > Ptr
Definition Types.h:4311
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
Definition Types.h:4330
Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the...
Definition Types.h:4360
static TGBOT_API const std::string TYPE
Definition Types.h:4363
std::shared_ptr< InlineQueryResultCachedDocument > Ptr
Definition Types.h:4361
std::string title
Title for the result.
Definition Types.h:4376
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:4384
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...
Definition Types.h:4398
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the document caption. See formatting options for more details.
Definition Types.h:4393
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the file.
Definition Types.h:4406
std::string type
Type of the result, must be document.
Definition Types.h:4368
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4402
std::string documentFileId
A valid file identifier for the file.
Definition Types.h:4380
std::optional< std::string > caption
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4388
Represents a link to an animated GIF file stored on the Telegram servers. By default,...
Definition Types.h:4418
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4460
std::shared_ptr< InlineQueryResultCachedGif > Ptr
Definition Types.h:4419
std::string type
Type of the result, must be gif.
Definition Types.h:4426
static TGBOT_API const std::string TYPE
Definition Types.h:4421
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:4456
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the GIF animation.
Definition Types.h:4464
std::optional< std::string > caption
Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4442
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Definition Types.h:4447
std::string gifFileId
A valid file identifier for the GIF file.
Definition Types.h:4434
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...
Definition Types.h:4452
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:4438
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram ...
Definition Types.h:4477
std::optional< std::string > caption
Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4502
std::string mpeg4FileId
A valid file identifier for the MPEG4 file.
Definition Types.h:4493
static TGBOT_API const std::string TYPE
Definition Types.h:4480
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the video animation.
Definition Types.h:4524
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4520
std::shared_ptr< InlineQueryResultCachedMpeg4Gif > Ptr
Definition Types.h:4478
std::string type
Type of the result, must be mpeg4_gif.
Definition Types.h:4485
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:4497
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...
Definition Types.h:4512
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Definition Types.h:4507
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:4516
Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by t...
Definition Types.h:4536
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:4578
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:4556
std::optional< std::string > caption
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4564
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4582
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
Definition Types.h:4569
static TGBOT_API const std::string TYPE
Definition Types.h:4539
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:4560
std::string photoFileId
A valid file identifier of the photo.
Definition Types.h:4552
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...
Definition Types.h:4574
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the photo.
Definition Types.h:4586
std::string type
Type of the result, must be photo.
Definition Types.h:4544
std::shared_ptr< InlineQueryResultCachedPhoto > Ptr
Definition Types.h:4537
Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent ...
Definition Types.h:4598
std::string type
Type of the result, must be sticker.
Definition Types.h:4606
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4618
std::shared_ptr< InlineQueryResultCachedSticker > Ptr
Definition Types.h:4599
std::string stickerFileId
A valid file identifier of the sticker.
Definition Types.h:4614
static TGBOT_API const std::string TYPE
Definition Types.h:4601
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the sticker.
Definition Types.h:4622
Represents a link to a video file stored on the Telegram servers. By default, this video file will be...
Definition Types.h:4634
std::shared_ptr< InlineQueryResultCachedVideo > Ptr
Definition Types.h:4635
std::string title
Title for the result.
Definition Types.h:4654
std::optional< std::string > caption
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4662
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4680
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:4658
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...
Definition Types.h:4672
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:4676
std::string type
Type of the result, must be video.
Definition Types.h:4642
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
Definition Types.h:4667
std::string videoFileId
A valid file identifier for the video file.
Definition Types.h:4650
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the video.
Definition Types.h:4684
static TGBOT_API const std::string TYPE
Definition Types.h:4637
Represents a link to a voice message stored on the Telegram servers. By default, this voice message w...
Definition Types.h:4696
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4734
static TGBOT_API const std::string TYPE
Definition Types.h:4699
std::shared_ptr< InlineQueryResultCachedVoice > Ptr
Definition Types.h:4697
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the voice message caption. See formatting options for more det...
Definition Types.h:4725
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the voice message.
Definition Types.h:4738
std::string voiceFileId
A valid file identifier for the voice message.
Definition Types.h:4712
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
Definition Types.h:4720
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...
Definition Types.h:4730
std::string title
Voice message title.
Definition Types.h:4716
std::string type
Type of the result, must be voice.
Definition Types.h:4704
Represents a contact with a phone number. By default, this contact will be sent by the user....
Definition Types.h:4750
std::string type
Type of the result, must be contact.
Definition Types.h:4758
std::optional< std::string > vcard
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.
Definition Types.h:4778
std::optional< std::int32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:4794
std::optional< std::int32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:4798
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the contact.
Definition Types.h:4786
std::optional< std::string > lastName
Optional. Contact's last name.
Definition Types.h:4774
std::string firstName
Contact's first name.
Definition Types.h:4770
std::string phoneNumber
Contact's phone number.
Definition Types.h:4766
std::shared_ptr< InlineQueryResultContact > Ptr
Definition Types.h:4751
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4782
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
Definition Types.h:4790
static TGBOT_API const std::string TYPE
Definition Types.h:4753
Represents a link to a file. By default, this file will be sent by the user with an optional caption....
Definition Types.h:4811
std::optional< std::int32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:4873
std::string title
Title for the result.
Definition Types.h:4827
std::optional< std::int32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:4869
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the document caption. See formatting options for more details.
Definition Types.h:4836
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4857
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the file.
Definition Types.h:4861
std::string mimeType
MIME type of the content of the file, either “application/pdf” or “application/zip”
Definition Types.h:4849
std::string type
Type of the result, must be document.
Definition Types.h:4819
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:4853
static TGBOT_API const std::string TYPE
Definition Types.h:4814
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...
Definition Types.h:4841
std::optional< std::string > caption
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4831
std::shared_ptr< InlineQueryResultDocument > Ptr
Definition Types.h:4812
std::optional< std::string > thumbnailUrl
Optional. URL of the thumbnail (JPEG only) for the file.
Definition Types.h:4865
std::string documentUrl
A valid URL for the file.
Definition Types.h:4845
Represents a Game.
Definition Types.h:4883
std::string gameShortName
Short name of the game.
Definition Types.h:4899
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4903
std::shared_ptr< InlineQueryResultGame > Ptr
Definition Types.h:4884
std::string type
Type of the result, must be game.
Definition Types.h:4891
static TGBOT_API const std::string TYPE
Definition Types.h:4886
Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the use...
Definition Types.h:4915
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:4956
static TGBOT_API const std::string TYPE
Definition Types.h:4918
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4978
std::shared_ptr< InlineQueryResultGif > Ptr
Definition Types.h:4916
std::optional< std::int32_t > gifHeight
Optional. Height of the GIF.
Definition Types.h:4939
std::string gifUrl
A valid URL for the GIF file.
Definition Types.h:4931
std::string type
Type of the result, must be gif.
Definition Types.h:4923
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Definition Types.h:4965
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...
Definition Types.h:4970
std::optional< std::string > thumbnailMimeType
Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”....
Definition Types.h:4952
std::optional< std::string > caption
Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4960
std::string thumbnailUrl
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
Definition Types.h:4947
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the GIF animation.
Definition Types.h:4982
std::optional< std::int32_t > gifDuration
Optional. Duration of the GIF in seconds.
Definition Types.h:4943
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:4974
std::optional< std::int32_t > gifWidth
Optional. Width of the GIF.
Definition Types.h:4935
This object represents one result of an inline query. Telegram clients currently support results of t...
Definition Types.h:4169
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
Definition Types.h:4182
std::shared_ptr< InlineQueryResult > Ptr
Definition Types.h:4170
Represents a location on a map. By default, the location will be sent by the user....
Definition Types.h:4994
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5041
std::optional< std::int32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:5057
std::optional< std::int32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:5053
std::optional< std::int32_t > proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat ...
Definition Types.h:5037
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
Definition Types.h:5049
double latitude
Location latitude in degrees.
Definition Types.h:5010
std::optional< std::int32_t > heading
Optional. For live locations, a direction in which the user is moving, in degrees....
Definition Types.h:5032
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the location.
Definition Types.h:5045
static TGBOT_API const std::string TYPE
Definition Types.h:4997
double longitude
Location longitude in degrees.
Definition Types.h:5014
std::string title
Location title.
Definition Types.h:5018
std::shared_ptr< InlineQueryResultLocation > Ptr
Definition Types.h:4995
std::optional< std::int32_t > livePeriod
Optional. Period in seconds during which the location can be updated, must be between 60 and 86400,...
Definition Types.h:5027
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:5022
std::string type
Type of the result, must be location.
Definition Types.h:5002
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default,...
Definition Types.h:5070
std::optional< std::string > caption
Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5116
static TGBOT_API const std::string TYPE
Definition Types.h:5073
std::string mpeg4Url
A valid URL for the MPEG4 file.
Definition Types.h:5086
std::string type
Type of the result, must be mpeg4_gif.
Definition Types.h:5078
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Definition Types.h:5121
std::shared_ptr< InlineQueryResultMpeg4Gif > Ptr
Definition Types.h:5071
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:5111
std::optional< std::int32_t > mpeg4Width
Optional. Video width.
Definition Types.h:5090
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5134
std::optional< std::int32_t > mpeg4Duration
Optional. Video duration in seconds.
Definition Types.h:5098
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...
Definition Types.h:5126
std::optional< std::string > thumbnailMimeType
Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”....
Definition Types.h:5107
std::optional< std::int32_t > mpeg4Height
Optional. Video height.
Definition Types.h:5094
std::string thumbnailUrl
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
Definition Types.h:5102
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:5130
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the video animation.
Definition Types.h:5138
Represents a link to a photo. By default, this photo will be sent by the user with optional caption....
Definition Types.h:5150
static TGBOT_API const std::string TYPE
Definition Types.h:5153
std::string photoUrl
A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB.
Definition Types.h:5166
std::shared_ptr< InlineQueryResultPhoto > Ptr
Definition Types.h:5151
std::string thumbnailUrl
URL of the thumbnail for the photo.
Definition Types.h:5170
std::optional< std::int32_t > photoWidth
Optional. Width of the photo.
Definition Types.h:5174
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...
Definition Types.h:5200
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
Definition Types.h:5195
std::optional< std::string > caption
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5190
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the photo.
Definition Types.h:5212
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:5186
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:5204
std::optional< std::int32_t > photoHeight
Optional. Height of the photo.
Definition Types.h:5178
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:5182
std::string type
Type of the result, must be photo.
Definition Types.h:5158
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5208
Represents a venue. By default, the venue will be sent by the user. Alternatively,...
Definition Types.h:5223
std::optional< std::int32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:5288
std::string address
Address of the venue.
Definition Types.h:5251
std::string type
Type of the result, must be venue.
Definition Types.h:5231
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
Definition Types.h:5264
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
Definition Types.h:5280
std::optional< std::int32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:5284
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the venue.
Definition Types.h:5276
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5272
double latitude
Latitude of the venue location in degrees.
Definition Types.h:5239
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue if known.
Definition Types.h:5255
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,...
Definition Types.h:5260
double longitude
Longitude of the venue location in degrees.
Definition Types.h:5243
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
Definition Types.h:5268
std::string title
Title of the venue.
Definition Types.h:5247
static TGBOT_API const std::string TYPE
Definition Types.h:5226
std::shared_ptr< InlineQueryResultVenue > Ptr
Definition Types.h:5224
Represents a link to a page containing an embedded video player or a video file. By default,...
Definition Types.h:5300
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...
Definition Types.h:5342
static TGBOT_API const std::string TYPE
Definition Types.h:5303
std::shared_ptr< InlineQueryResultVideo > Ptr
Definition Types.h:5301
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
Definition Types.h:5337
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:5346
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:5362
std::optional< std::int32_t > videoHeight
Optional. Video height.
Definition Types.h:5354
std::string thumbnailUrl
URL of the thumbnail (JPEG only) for the video.
Definition Types.h:5324
std::optional< std::int32_t > videoWidth
Optional. Video width.
Definition Types.h:5350
std::string title
Title for the result.
Definition Types.h:5328
std::string mimeType
MIME type of the content of the video URL, “text/html” or “video/mp4”
Definition Types.h:5320
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the video. This field is required if InlineQue...
Definition Types.h:5372
std::optional< std::string > caption
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5332
std::optional< std::int32_t > videoDuration
Optional. Video duration in seconds.
Definition Types.h:5358
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5366
std::string videoUrl
A valid URL for the embedded video player or video file.
Definition Types.h:5316
std::string type
Type of the result, must be video.
Definition Types.h:5308
Represents a link to a voice recording in an .OGG container encoded with OPUS. By default,...
Definition Types.h:5385
std::string title
Recording title.
Definition Types.h:5405
std::string type
Type of the result, must be voice.
Definition Types.h:5393
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...
Definition Types.h:5419
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5427
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the voice recording.
Definition Types.h:5431
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
Definition Types.h:5409
std::optional< std::int32_t > voiceDuration
Optional. Recording duration in seconds.
Definition Types.h:5423
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the voice message caption. See formatting options for more det...
Definition Types.h:5414
static TGBOT_API const std::string TYPE
Definition Types.h:5388
std::shared_ptr< InlineQueryResultVoice > Ptr
Definition Types.h:5386
std::string voiceUrl
A valid URL for the voice recording.
Definition Types.h:5401
This object represents a button to be shown above inline query results. You must use exactly one of t...
Definition Types.h:5442
std::shared_ptr< InlineQueryResultsButton > Ptr
Definition Types.h:5443
std::string text
Label text on the button.
Definition Types.h:5448
std::optional< std::string > startParameter
Optional. Deep-linking parameter for the /start message sent to the bot when a user presses the butto...
Definition Types.h:5466
std::shared_ptr< WebAppInfo > webApp
Optional. Description of the Web App that will be launched when the user presses the button....
Definition Types.h:5454
Describes a checklist to create.
Definition Types.h:5476
std::string title
Title of the checklist; 1-255 characters after entities parsing.
Definition Types.h:5482
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the title. See formatting options for more details.
Definition Types.h:5487
std::vector< std::shared_ptr< InputChecklistTask > > tasks
List of 1-30 tasks in the checklist.
Definition Types.h:5497
std::shared_ptr< InputChecklist > Ptr
Definition Types.h:5477
std::optional< std::vector< std::shared_ptr< MessageEntity > > > titleEntities
Optional. List of special entities that appear in the title, which can be specified instead of parse_...
Definition Types.h:5493
std::optional< bool > othersCanMarkTasksAsDone
Optional. Pass True if other users can mark tasks as done or not done in the checklist.
Definition Types.h:5505
std::optional< bool > othersCanAddTasks
Optional. Pass True if other users can add tasks to the checklist.
Definition Types.h:5501
Describes a task to add to a checklist.
Definition Types.h:5515
std::string text
Text of the task; 1-100 characters after entities parsing.
Definition Types.h:5526
std::shared_ptr< InputChecklistTask > Ptr
Definition Types.h:5516
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the text. See formatting options for more details.
Definition Types.h:5531
std::optional< std::vector< std::shared_ptr< MessageEntity > > > textEntities
Optional. List of special entities that appear in the text, which can be specified instead of parse_m...
Definition Types.h:5537
Represents the content of a contact message to be sent as the result of an inline query.
Definition Types.h:5547
std::optional< std::string > lastName
Optional. Contact's last name.
Definition Types.h:5561
std::string firstName
Contact's first name.
Definition Types.h:5557
std::string phoneNumber
Contact's phone number.
Definition Types.h:5553
std::shared_ptr< InputContactMessageContent > Ptr
Definition Types.h:5548
std::optional< std::string > vcard
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.
Definition Types.h:5565
Represents the content of an invoice message to be sent as the result of an inline query.
Definition Types.h:5575
std::optional< std::int32_t > photoWidth
Optional. Photo width.
Definition Types.h:5640
std::optional< bool > needEmail
Optional. Pass True if you require the user's email address to complete the order....
Definition Types.h:5659
std::vector< std::shared_ptr< LabeledPrice > > prices
Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount,...
Definition Types.h:5606
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 ...
Definition Types.h:5632
std::optional< std::string > providerData
Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment ...
Definition Types.h:5627
std::optional< bool > isFlexible
Optional. Pass True if the final price depends on the shipping method. Ignored for payments in Telegr...
Definition Types.h:5679
std::shared_ptr< InputInvoiceMessageContent > Ptr
Definition Types.h:5576
std::optional< std::int32_t > photoHeight
Optional. Photo height.
Definition Types.h:5644
std::string title
Product name, 1-32 characters.
Definition Types.h:5581
std::optional< bool > sendPhoneNumberToProvider
Optional. Pass True if the user's phone number should be sent to the provider. Ignored for payments i...
Definition Types.h:5669
std::optional< bool > needShippingAddress
Optional. Pass True if you require the user's shipping address to complete the order....
Definition Types.h:5664
std::string currency
Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Star...
Definition Types.h:5600
std::optional< bool > needPhoneNumber
Optional. Pass True if you require the user's phone number to complete the order. Ignored for payment...
Definition Types.h:5654
std::optional< std::int32_t > maxTipAmount
Optional. The maximum accepted amount for tips in the smallest units of the currency (integer,...
Definition Types.h:5614
std::string payload
Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your int...
Definition Types.h:5590
std::optional< std::int32_t > photoSize
Optional. Photo size in bytes.
Definition Types.h:5636
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 (...
Definition Types.h:5621
std::optional< bool > sendEmailToProvider
Optional. Pass True if the user's email address should be sent to the provider. Ignored for payments ...
Definition Types.h:5674
std::optional< std::string > providerToken
Optional. Payment provider token, obtained via @BotFather. Pass an empty string for payments in Teleg...
Definition Types.h:5595
std::optional< bool > needName
Optional. Pass True if you require the user's full name to complete the order. Ignored for payments i...
Definition Types.h:5649
std::string description
Product description, 1-255 characters.
Definition Types.h:5585
Represents the content of a location message to be sent as the result of an inline query.
Definition Types.h:5689
double longitude
Longitude of the location in degrees.
Definition Types.h:5699
std::optional< std::int32_t > livePeriod
Optional. Period in seconds during which the location can be updated, must be between 60 and 86400,...
Definition Types.h:5708
double latitude
Latitude of the location in degrees.
Definition Types.h:5695
std::optional< std::int32_t > proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat ...
Definition Types.h:5718
std::shared_ptr< InputLocationMessageContent > Ptr
Definition Types.h:5690
std::optional< std::int32_t > heading
Optional. For live locations, a direction in which the user is moving, in degrees....
Definition Types.h:5713
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:5703
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
Definition Types.h:5746
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:5761
std::optional< std::string > thumbnail
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supporte...
Definition Types.h:5771
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the animation caption. See formatting options for more details...
Definition Types.h:5780
std::optional< std::int32_t > height
Optional. Animation height.
Definition Types.h:5797
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...
Definition Types.h:5785
std::optional< std::int32_t > duration
Optional. Animation duration in seconds.
Definition Types.h:5801
std::shared_ptr< InputMediaAnimation > Ptr
Definition Types.h:5747
std::optional< bool > hasSpoiler
Optional. Pass True if the animation needs to be covered with a spoiler animation.
Definition Types.h:5805
std::optional< std::int32_t > width
Optional. Animation width.
Definition Types.h:5793
std::optional< std::string > caption
Optional. Caption of the animation to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5775
std::string type
Type of the media, must be animation.
Definition Types.h:5754
static TGBOT_API const std::string TYPE
Definition Types.h:5749
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:5789
Represents an audio file to be treated as music to be sent.
Definition Types.h:5815
std::optional< std::string > thumbnail
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supporte...
Definition Types.h:5840
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...
Definition Types.h:5854
static TGBOT_API const std::string TYPE
Definition Types.h:5818
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
Definition Types.h:5849
std::optional< std::int32_t > duration
Optional. Duration of the audio in seconds.
Definition Types.h:5858
std::optional< std::string > performer
Optional. Performer of the audio.
Definition Types.h:5862
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:5830
std::shared_ptr< InputMediaAudio > Ptr
Definition Types.h:5816
std::optional< std::string > caption
Optional. Caption of the audio to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5844
std::optional< std::string > title
Optional. Title of the audio.
Definition Types.h:5866
std::string type
Type of the media, must be audio.
Definition Types.h:5823
Represents a general file to be sent.
Definition Types.h:5876
static TGBOT_API const std::string TYPE
Definition Types.h:5879
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...
Definition Types.h:5915
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the document caption. See formatting options for more details.
Definition Types.h:5910
std::string type
Type of the media, must be document.
Definition Types.h:5884
std::optional< bool > disableContentTypeDetection
Optional. Disables automatic server-side content type detection for files uploaded using multipart/fo...
Definition Types.h:5920
std::optional< std::string > thumbnail
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supporte...
Definition Types.h:5901
std::optional< std::string > caption
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5905
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:5891
std::shared_ptr< InputMediaDocument > Ptr
Definition Types.h:5877
This object represents the content of a media message to be sent. It should be one of InputMediaAnima...
Definition Types.h:5730
std::shared_ptr< InputMedia > Ptr
Definition Types.h:5731
std::variant< std::shared_ptr< InputMediaAnimation >, std::shared_ptr< InputMediaAudio >, std::shared_ptr< InputMediaDocument >, std::shared_ptr< InputMediaLivePhoto >, std::shared_ptr< InputMediaPhoto >, std::shared_ptr< InputMediaVideo > > value
Definition Types.h:5736
Represents a live photo to be sent.
Definition Types.h:5952
std::optional< std::string > caption
Optional. Caption of the live photo to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5978
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the live photo caption. See formatting options for more detail...
Definition Types.h:5983
std::string type
Type of the media, must be live_photo.
Definition Types.h:5960
std::shared_ptr< InputMediaLivePhoto > Ptr
Definition Types.h:5953
static TGBOT_API const std::string TYPE
Definition Types.h:5955
std::string media
Video of the live photo to send. Pass a file_id to send a file that exists on the Telegram servers (r...
Definition Types.h:5967
std::string photo
The static photo to send. Pass a file_id to send a file that exists on the Telegram servers (recommen...
Definition Types.h:5974
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:5992
std::optional< bool > hasSpoiler
Optional. Pass True if the live photo needs to be covered with a spoiler animation.
Definition Types.h:5996
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...
Definition Types.h:5988
Represents a location to be sent.
Definition Types.h:6006
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:6026
std::shared_ptr< InputMediaLocation > Ptr
Definition Types.h:6007
double latitude
Latitude of the location.
Definition Types.h:6018
std::string type
Type of the media, must be location.
Definition Types.h:6014
static TGBOT_API const std::string TYPE
Definition Types.h:6009
double longitude
Longitude of the location.
Definition Types.h:6022
Represents a photo to be sent.
Definition Types.h:6036
std::string type
Type of the media, must be photo.
Definition Types.h:6044
static TGBOT_API const std::string TYPE
Definition Types.h:6039
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...
Definition Types.h:6065
std::shared_ptr< InputMediaPhoto > Ptr
Definition Types.h:6037
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
Definition Types.h:6060
std::optional< std::string > caption
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6055
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:6069
std::optional< bool > hasSpoiler
Optional. Pass True if the photo needs to be covered with a spoiler animation.
Definition Types.h:6073
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6051
Represents a sticker file to be sent.
Definition Types.h:6083
std::string type
Type of the media, must be sticker.
Definition Types.h:6091
static TGBOT_API const std::string TYPE
Definition Types.h:6086
std::optional< std::string > emoji
Optional. Emoji associated with the sticker; only for just uploaded stickers.
Definition Types.h:6103
std::shared_ptr< InputMediaSticker > Ptr
Definition Types.h:6084
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6099
Represents a venue to be sent.
Definition Types.h:6113
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,...
Definition Types.h:6146
double longitude
Longitude of the location.
Definition Types.h:6129
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
Definition Types.h:6150
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
Definition Types.h:6154
std::string title
Name of the venue.
Definition Types.h:6133
double latitude
Latitude of the location.
Definition Types.h:6125
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue.
Definition Types.h:6141
static TGBOT_API const std::string TYPE
Definition Types.h:6116
std::shared_ptr< InputMediaVenue > Ptr
Definition Types.h:6114
std::string address
Address of the venue.
Definition Types.h:6137
std::string type
Type of the media, must be venue.
Definition Types.h:6121
Represents a video to be sent.
Definition Types.h:6164
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:6218
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6179
std::optional< std::string > thumbnail
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supporte...
Definition Types.h:6189
std::optional< std::string > caption
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6204
std::optional< std::int32_t > startTimestamp
Optional. Start timestamp for the video in the message.
Definition Types.h:6200
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
Definition Types.h:6209
std::optional< std::int32_t > width
Optional. Video width.
Definition Types.h:6222
std::optional< std::int32_t > height
Optional. Video height.
Definition Types.h:6226
static TGBOT_API const std::string TYPE
Definition Types.h:6167
std::optional< bool > hasSpoiler
Optional. Pass True if the video needs to be covered with a spoiler animation.
Definition Types.h:6238
std::string type
Type of the media, must be video.
Definition Types.h:6172
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...
Definition Types.h:6214
std::optional< bool > supportsStreaming
Optional. Pass True if the uploaded video is suitable for streaming.
Definition Types.h:6234
std::shared_ptr< InputMediaVideo > Ptr
Definition Types.h:6165
std::optional< std::string > cover
Optional. Cover for the video in the message. Pass a file_id to send a file that exists on the Telegr...
Definition Types.h:6196
std::optional< std::int32_t > duration
Optional. Video duration in seconds.
Definition Types.h:6230
Represents a voice message file to be sent.
Definition Types.h:6248
std::string type
Type of the media, must be voice_note.
Definition Types.h:6256
std::optional< std::string > caption
Optional. Caption of the voice message to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6268
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the voice message caption. See formatting options for more det...
Definition Types.h:6273
std::shared_ptr< InputMediaVoiceNote > Ptr
Definition Types.h:6249
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6263
std::optional< std::int32_t > duration
Optional. Duration of the voice message in seconds.
Definition Types.h:6282
static TGBOT_API const std::string TYPE
Definition Types.h:6251
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...
Definition Types.h:6278
This object represents the content of a message to be sent as a result of an inline query....
Definition Types.h:6295
std::shared_ptr< InputMessageContent > Ptr
Definition Types.h:6296
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
Definition Types.h:6301
This object describes the paid media to be sent. Currently, it can be one of InputPaidMediaLivePhoto ...
Definition Types.h:6312
std::variant< std::shared_ptr< InputPaidMediaLivePhoto >, std::shared_ptr< InputPaidMediaPhoto >, std::shared_ptr< InputPaidMediaVideo > > value
Definition Types.h:6317
std::shared_ptr< InputPaidMedia > Ptr
Definition Types.h:6313
The paid media to send is a live photo.
Definition Types.h:6327
std::string photo
The static photo to send. Pass a file_id to send a file that exists on the Telegram servers (recommen...
Definition Types.h:6349
std::string type
Type of the media, must be live_photo.
Definition Types.h:6335
std::shared_ptr< InputPaidMediaLivePhoto > Ptr
Definition Types.h:6328
std::string media
Video of the live photo to send. Pass a file_id to send a file that exists on the Telegram servers (r...
Definition Types.h:6342
static TGBOT_API const std::string TYPE
Definition Types.h:6330
The paid media to send is a photo.
Definition Types.h:6359
static TGBOT_API const std::string TYPE
Definition Types.h:6362
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6374
std::string type
Type of the media, must be photo.
Definition Types.h:6367
std::shared_ptr< InputPaidMediaPhoto > Ptr
Definition Types.h:6360
The paid media to send is a video.
Definition Types.h:6384
std::optional< std::int32_t > startTimestamp
Optional. Start timestamp for the video in the message.
Definition Types.h:6420
std::string type
Type of the media, must be video.
Definition Types.h:6392
std::optional< std::int32_t > duration
Optional. Video duration in seconds.
Definition Types.h:6432
std::optional< bool > supportsStreaming
Optional. Pass True if the uploaded video is suitable for streaming.
Definition Types.h:6436
std::optional< std::string > cover
Optional. Cover for the video in the message. Pass a file_id to send a file that exists on the Telegr...
Definition Types.h:6416
static TGBOT_API const std::string TYPE
Definition Types.h:6387
std::shared_ptr< InputPaidMediaVideo > Ptr
Definition Types.h:6385
std::optional< std::int32_t > height
Optional. Video height.
Definition Types.h:6428
std::optional< std::int32_t > width
Optional. Video width.
Definition Types.h:6424
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6399
std::optional< std::string > thumbnail
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supporte...
Definition Types.h:6409
This object represents the content of a poll description or a quiz explanation to be sent....
Definition Types.h:6448
std::shared_ptr< InputPollMedia > Ptr
Definition Types.h:6449
std::variant< std::shared_ptr< InputMediaAnimation >, std::shared_ptr< InputMediaAudio >, std::shared_ptr< InputMediaDocument >, std::shared_ptr< InputMediaLivePhoto >, std::shared_ptr< InputMediaLocation >, std::shared_ptr< InputMediaPhoto >, std::shared_ptr< InputMediaVenue >, std::shared_ptr< InputMediaVideo > > value
Definition Types.h:6455
This object contains information about one answer option in a poll to be sent.
Definition Types.h:6465
std::string text
Option text, 1-100 characters.
Definition Types.h:6471
std::shared_ptr< InputPollOptionMedia > media
Optional. Media added to the poll option.
Definition Types.h:6485
std::shared_ptr< InputPollOption > Ptr
Definition Types.h:6466
std::optional< std::vector< std::shared_ptr< MessageEntity > > > textEntities
Optional. A JSON-serialized list of special entities that appear in the poll option text....
Definition Types.h:6481
std::optional< std::string > textParseMode
Optional. Mode for parsing entities in the text. See formatting options for more details....
Definition Types.h:6476
This object represents the content of a poll option to be sent. It should be one of InputMediaAnimati...
Definition Types.h:6497
std::shared_ptr< InputPollOptionMedia > Ptr
Definition Types.h:6498
std::variant< std::shared_ptr< InputMediaAnimation >, std::shared_ptr< InputMediaLink >, std::shared_ptr< InputMediaLivePhoto >, std::shared_ptr< InputMediaLocation >, std::shared_ptr< InputMediaPhoto >, std::shared_ptr< InputMediaSticker >, std::shared_ptr< InputMediaVenue >, std::shared_ptr< InputMediaVideo > > value
Definition Types.h:6504
An animated profile photo in the MPEG4 format.
Definition Types.h:6528
std::shared_ptr< InputProfilePhotoAnimated > Ptr
Definition Types.h:6529
std::string type
Type of the profile photo, must be animated.
Definition Types.h:6536
static TGBOT_API const std::string TYPE
Definition Types.h:6531
std::string animation
The animated profile photo. Profile photos can't be reused and can only be uploaded as a new file,...
Definition Types.h:6542
std::optional< double > mainFrameTimestamp
Optional. Timestamp in seconds of the frame that will be used as the static profile photo....
Definition Types.h:6547
This object describes a profile photo to set. Currently, it can be one of InputProfilePhotoStatic Inp...
Definition Types.h:6515
std::variant< std::shared_ptr< InputProfilePhotoStatic >, std::shared_ptr< InputProfilePhotoAnimated > > value
Definition Types.h:6518
std::shared_ptr< InputProfilePhoto > Ptr
Definition Types.h:6516
A static profile photo in the .JPG format.
Definition Types.h:6557
static TGBOT_API const std::string TYPE
Definition Types.h:6560
std::string photo
The static profile photo. Profile photos can't be reused and can only be uploaded as a new file,...
Definition Types.h:6571
std::string type
Type of the profile photo, must be static.
Definition Types.h:6565
std::shared_ptr< InputProfilePhotoStatic > Ptr
Definition Types.h:6558
A block with an anchor, corresponding to the HTML tag with the attribute name.
Definition Types.h:6614
static TGBOT_API const std::string TYPE
Definition Types.h:6617
std::shared_ptr< InputRichBlockAnchor > Ptr
Definition Types.h:6615
std::string name
The name of the anchor.
Definition Types.h:6626
std::string type
Type of the block, always “anchor”
Definition Types.h:6622
A block with an animation, corresponding to the HTML tag <video>.
Definition Types.h:6636
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:6652
std::string type
Type of the block, always “animation”
Definition Types.h:6644
std::shared_ptr< InputRichBlockAnimation > Ptr
Definition Types.h:6637
static TGBOT_API const std::string TYPE
Definition Types.h:6639
std::shared_ptr< InputMediaAnimation > animation
The animation. Caption is ignored.
Definition Types.h:6648
A block with a music file, corresponding to the HTML tag <audio>.
Definition Types.h:6662
static TGBOT_API const std::string TYPE
Definition Types.h:6665
std::shared_ptr< InputMediaAudio > audio
The audio. Caption is ignored.
Definition Types.h:6674
std::shared_ptr< InputRichBlockAudio > Ptr
Definition Types.h:6663
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:6678
std::string type
Type of the block, always “audio”
Definition Types.h:6670
A block quotation, corresponding to the HTML tag.
Definition Types.h:6688
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:6704
std::vector< std::shared_ptr< InputRichBlock > > blocks
Content of the block.
Definition Types.h:6700
static TGBOT_API const std::string TYPE
Definition Types.h:6691
std::shared_ptr< InputRichBlockBlockQuotation > Ptr
Definition Types.h:6689
std::string type
Type of the block, always “blockquote”
Definition Types.h:6696
A block containing a list of buttons that are shown in one row, corresponding to the custom HTML tag ...
Definition Types.h:6715
std::vector< std::shared_ptr< RichMessageButton > > buttons
List of 1-8 buttons to send.
Definition Types.h:6727
std::string type
Type of the block, always “buttons”
Definition Types.h:6723
std::optional< std::string > align
Optional. Horizontal alignment of the buttons. Currently, must be one of “left”, “center”,...
Definition Types.h:6732
std::shared_ptr< InputRichBlockButtons > Ptr
Definition Types.h:6716
static TGBOT_API const std::string TYPE
Definition Types.h:6718
A collage, corresponding to the custom HTML tag <tg-collage>.
Definition Types.h:6742
static TGBOT_API const std::string TYPE
Definition Types.h:6745
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:6758
std::vector< std::shared_ptr< InputRichBlock > > blocks
Elements of the collage.
Definition Types.h:6754
std::string type
Type of the block, always “collage”
Definition Types.h:6750
std::shared_ptr< InputRichBlockCollage > Ptr
Definition Types.h:6743
An expandable block for details disclosure, corresponding to the HTML tag.
Definition Types.h:6768
std::vector< std::shared_ptr< InputRichBlock > > blocks
Content of the block.
Definition Types.h:6784
std::string type
Type of the block, always “details”
Definition Types.h:6776
std::shared_ptr< InputRichBlockDetails > Ptr
Definition Types.h:6769
static TGBOT_API const std::string TYPE
Definition Types.h:6771
std::optional< bool > isOpen
Optional. Pass True if the content of the block is visible by default.
Definition Types.h:6788
std::shared_ptr< RichText > summary
Always shown summary of the block.
Definition Types.h:6780
A divider, corresponding to the HTML tag .
Definition Types.h:6798
std::shared_ptr< InputRichBlockDivider > Ptr
Definition Types.h:6799
std::string type
Type of the block, always “divider”
Definition Types.h:6806
static TGBOT_API const std::string TYPE
Definition Types.h:6801
A block with a general file, corresponding to the custom HTML tag <tg-document>.
Definition Types.h:6816
std::shared_ptr< InputRichBlockDocument > Ptr
Definition Types.h:6817
std::shared_ptr< InputMediaDocument > document
The document. Caption is ignored.
Definition Types.h:6828
std::string type
Type of the block, always “document”
Definition Types.h:6824
static TGBOT_API const std::string TYPE
Definition Types.h:6819
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:6832
A block quotation, corresponding to the HTML tag.
Definition Types.h:6843
std::shared_ptr< InputRichBlockExpandableBlockQuotation > Ptr
Definition Types.h:6844
std::string type
Type of the block, always “expandable_blockquote”
Definition Types.h:6851
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:6859
static TGBOT_API const std::string TYPE
Definition Types.h:6846
std::shared_ptr< RichText > text
Content of the block.
Definition Types.h:6855
This object represents a block in a rich formatted message to be sent. Currently, it can be any of th...
Definition Types.h:6589
std::shared_ptr< InputRichBlock > Ptr
Definition Types.h:6590
std::variant< std::shared_ptr< InputRichBlockParagraph >, std::shared_ptr< InputRichBlockSectionHeading >, std::shared_ptr< InputRichBlockPreformatted >, std::shared_ptr< InputRichBlockFooter >, std::shared_ptr< InputRichBlockDivider >, std::shared_ptr< InputRichBlockMathematicalExpression >, std::shared_ptr< InputRichBlockAnchor >, std::shared_ptr< InputRichBlockList >, std::shared_ptr< InputRichBlockBlockQuotation >, std::shared_ptr< InputRichBlockExpandableBlockQuotation >, std::shared_ptr< InputRichBlockPullQuotation >, std::shared_ptr< InputRichBlockCollage >, std::shared_ptr< InputRichBlockSlideshow >, std::shared_ptr< InputRichBlockTable >, std::shared_ptr< InputRichBlockDetails >, std::shared_ptr< InputRichBlockMap >, std::shared_ptr< InputRichBlockButtons >, std::shared_ptr< InputRichBlockAnimation >, std::shared_ptr< InputRichBlockAudio >, std::shared_ptr< InputRichBlockDocument >, std::shared_ptr< InputRichBlockPhoto >, std::shared_ptr< InputRichBlockVideo >, std::shared_ptr< InputRichBlockVoiceNote >, std::shared_ptr< InputRichBlockThinking > > value
Definition Types.h:6604
A list of blocks, corresponding to the HTML tag.
Definition Types.h:6891
static TGBOT_API const std::string TYPE
Definition Types.h:6894
std::string type
Type of the block, always “list”
Definition Types.h:6899
std::vector< std::shared_ptr< InputRichBlockListItem > > items
Items of the list.
Definition Types.h:6903
std::shared_ptr< InputRichBlockList > Ptr
Definition Types.h:6892
An item of a list to be sent.
Definition Types.h:6913
std::optional< bool > isChecked
Optional. Pass True if the item has a checked checkbox.
Definition Types.h:6927
std::shared_ptr< InputRichBlockListItem > Ptr
Definition Types.h:6914
std::optional< bool > hasCheckbox
Optional. Pass True if the item has a checkbox.
Definition Types.h:6923
std::vector< std::shared_ptr< InputRichBlock > > blocks
The content of the item.
Definition Types.h:6919
std::optional< std::int32_t > value
Optional. For ordered lists, the numeric value of the item label.
Definition Types.h:6931
std::optional< std::string > type
Optional. For ordered lists, the type of the item label; must be one of “a” for lowercase letters,...
Definition Types.h:6937
A block with a map, corresponding to the custom HTML tag <tg-map>. The map's width and height must no...
Definition Types.h:6948
std::shared_ptr< Location > location
Location of the center of the map.
Definition Types.h:6960
static TGBOT_API const std::string TYPE
Definition Types.h:6951
std::optional< std::int32_t > zoom
Optional. Map zoom level; 0-24.
Definition Types.h:6964
std::shared_ptr< InputRichBlockMap > Ptr
Definition Types.h:6949
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:6976
std::optional< std::int32_t > height
Optional. Map height; 0-10000.
Definition Types.h:6972
std::optional< std::int32_t > width
Optional. Map width; 0-10000.
Definition Types.h:6968
std::string type
Type of the block, always “map”
Definition Types.h:6956
A block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag <tg-math...
Definition Types.h:6987
std::string type
Type of the block, always “mathematical_expression”
Definition Types.h:6995
std::shared_ptr< InputRichBlockMathematicalExpression > Ptr
Definition Types.h:6988
std::string expression
The mathematical expression in LaTeX format.
Definition Types.h:6999
static TGBOT_API const std::string TYPE
Definition Types.h:6990
A text paragraph, corresponding to the HTML tag.
Definition Types.h:7009
std::shared_ptr< InputRichBlockParagraph > Ptr
Definition Types.h:7010
std::string type
Type of the block, always “paragraph”
Definition Types.h:7017
static TGBOT_API const std::string TYPE
Definition Types.h:7012
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:7021
A block with a photo, corresponding to the HTML tag.
Definition Types.h:7031
std::string type
Type of the block, always “photo”
Definition Types.h:7039
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7047
std::shared_ptr< InputMediaPhoto > photo
The photo. Caption is ignored.
Definition Types.h:7043
std::shared_ptr< InputRichBlockPhoto > Ptr
Definition Types.h:7032
static TGBOT_API const std::string TYPE
Definition Types.h:7034
A preformatted text block, corresponding to the nested HTML tags.
Definition Types.h:7057
std::string type
Type of the block, always “pre”
Definition Types.h:7065
static TGBOT_API const std::string TYPE
Definition Types.h:7060
std::optional< std::string > language
Optional. The programming language of the text.
Definition Types.h:7073
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:7069
std::shared_ptr< InputRichBlockPreformatted > Ptr
Definition Types.h:7058
A quotation with centered text, loosely corresponding to the HTML tag <aside>.
Definition Types.h:7083
std::string type
Type of the block, always “pullquote”
Definition Types.h:7091
std::shared_ptr< InputRichBlockPullQuotation > Ptr
Definition Types.h:7084
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:7095
static TGBOT_API const std::string TYPE
Definition Types.h:7086
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:7099
A section heading, corresponding to the HTML tags.
Definition Types.h:7109
std::shared_ptr< InputRichBlockSectionHeading > Ptr
Definition Types.h:7110
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:7121
std::string type
Type of the block, always “heading”
Definition Types.h:7117
static TGBOT_API const std::string TYPE
Definition Types.h:7112
std::int32_t size
Relative size of the text font; 1-6, 1 is the largest, 6 is the smallest.
Definition Types.h:7125
A slideshow, corresponding to the custom HTML tag <tg-slideshow>.
Definition Types.h:7135
std::string type
Type of the block, always “slideshow”
Definition Types.h:7143
static TGBOT_API const std::string TYPE
Definition Types.h:7138
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7151
std::vector< std::shared_ptr< InputRichBlock > > blocks
Elements of the slideshow.
Definition Types.h:7147
std::shared_ptr< InputRichBlockSlideshow > Ptr
Definition Types.h:7136
A table, corresponding to the HTML tag.
Definition Types.h:7161
std::string type
Type of the block, always “table”
Definition Types.h:7169
std::shared_ptr< RichText > caption
Optional. Caption of the table.
Definition Types.h:7189
std::vector< std::vector< std::shared_ptr< RichBlockTableCell > > > cells
Cells of the table.
Definition Types.h:7173
static TGBOT_API const std::string TYPE
Definition Types.h:7164
std::optional< bool > isBordered
Optional. Pass True if the table has borders.
Definition Types.h:7177
std::shared_ptr< InputRichBlockTable > Ptr
Definition Types.h:7162
std::optional< bool > isCompact
Optional. Pass True if table cells must have smaller indents.
Definition Types.h:7185
std::optional< bool > isStriped
Optional. Pass True if the table is striped.
Definition Types.h:7181
A block with a “Thinking…” placeholder, corresponding to the custom HTML tag <tg-thinking>....
Definition Types.h:7202
std::shared_ptr< InputRichBlockThinking > Ptr
Definition Types.h:7203
std::shared_ptr< RichText > text
Text of the block. See https://t.me/addemoji/AIActions for examples of custom emoji that are recommen...
Definition Types.h:7215
static TGBOT_API const std::string TYPE
Definition Types.h:7205
std::string type
Type of the block, always “thinking”
Definition Types.h:7210
A block with a video, corresponding to the HTML tag <video>.
Definition Types.h:7225
std::shared_ptr< InputRichBlockVideo > Ptr
Definition Types.h:7226
static TGBOT_API const std::string TYPE
Definition Types.h:7228
std::shared_ptr< InputMediaVideo > video
The video. Caption is ignored.
Definition Types.h:7237
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7241
std::string type
Type of the block, always “video”
Definition Types.h:7233
A block with a voice note, corresponding to the HTML tag <audio>.
Definition Types.h:7251
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7267
std::shared_ptr< InputRichBlockVoiceNote > Ptr
Definition Types.h:7252
std::string type
Type of the block, always “voice_note”
Definition Types.h:7259
std::shared_ptr< InputMediaVoiceNote > voiceNote
The voice note. Caption is ignored.
Definition Types.h:7263
static TGBOT_API const std::string TYPE
Definition Types.h:7254
Represents the content of a rich message to be sent as the result of an inline query.
Definition Types.h:7321
std::shared_ptr< InputRichMessage > richMessage
The message to be sent. Only previously uploaded files may be used in the message.
Definition Types.h:7327
std::shared_ptr< InputRichMessageContent > Ptr
Definition Types.h:7322
Describes a rich message to be sent. Exactly one of the fields html, markdown, or blocks must be used...
Definition Types.h:7278
std::optional< std::string > html
Optional. Content of the rich message to send described using HTML formatting. See rich message forma...
Definition Types.h:7290
std::optional< std::vector< std::shared_ptr< InputRichBlock > > > blocks
Optional. Content of the rich message to send described as a list of blocks.
Definition Types.h:7284
std::shared_ptr< InputRichMessage > Ptr
Definition Types.h:7279
std::optional< std::string > markdown
Optional. Content of the rich message to send described using Markdown formatting....
Definition Types.h:7296
std::optional< bool > skipEntityDetection
Optional. Pass True to skip automatic detection of entities (e.g., URLs, email addresses,...
Definition Types.h:7311
std::optional< bool > isRtl
Optional. Pass True if the rich message must be shown right-to-left.
Definition Types.h:7305
std::optional< std::vector< std::shared_ptr< InputRichMessageMedia > > > media
Optional. List of media that are specified in the markdown or html fields using tg://photo?...
Definition Types.h:7301
Describes a media element embedded in an outgoing rich message.
Definition Types.h:7337
std::variant< std::shared_ptr< InputMediaAnimation >, std::shared_ptr< InputMediaAudio >, std::shared_ptr< InputMediaDocument >, std::shared_ptr< InputMediaPhoto >, std::shared_ptr< InputMediaVideo >, std::shared_ptr< InputMediaVoiceNote > > media
The media to be sent. Everything except the media itself and its properties is ignored.
Definition Types.h:7352
std::shared_ptr< InputRichMessageMedia > Ptr
Definition Types.h:7338
This object describes a sticker to be added to a sticker set.
Definition Types.h:7362
std::string format
Format of the added sticker, must be one of “static” for a .WEBP or .PNG image, “animated” for a ....
Definition Types.h:7377
std::vector< std::string > emojiList
List of 1-20 emoji associated with the sticker.
Definition Types.h:7381
std::optional< std::vector< std::string > > keywords
Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters....
Definition Types.h:7390
std::shared_ptr< MaskPosition > maskPosition
Optional. Position where the mask should be placed on faces. For “mask” stickers only.
Definition Types.h:7385
std::shared_ptr< InputSticker > Ptr
Definition Types.h:7363
std::string sticker
The added sticker. Pass a file_id as a String to send a file that already exists on the Telegram serv...
Definition Types.h:7372
This object describes the content of a story to post. Currently, it can be one of InputStoryContentPh...
Definition Types.h:7401
std::shared_ptr< InputStoryContent > Ptr
Definition Types.h:7402
std::variant< std::shared_ptr< InputStoryContentPhoto >, std::shared_ptr< InputStoryContentVideo > > value
Definition Types.h:7404
Describes a photo to post as a story.
Definition Types.h:7414
std::shared_ptr< InputStoryContentPhoto > Ptr
Definition Types.h:7415
std::string photo
The photo to post as a story. The photo must be of the size 1080x1920 and must not exceed 10 MB....
Definition Types.h:7429
static TGBOT_API const std::string TYPE
Definition Types.h:7417
std::string type
Type of the content, must be photo.
Definition Types.h:7422
Describes a video to post as a story.
Definition Types.h:7439
std::optional< bool > isAnimation
Optional. Pass True if the video has no sound.
Definition Types.h:7468
std::optional< double > duration
Optional. Precise duration of the video in seconds; 0-60.
Definition Types.h:7459
std::optional< double > coverFrameTimestamp
Optional. Timestamp in seconds of the frame that will be used as the static cover for the story....
Definition Types.h:7464
std::string video
The video to post as a story. The video must be of the size 720x1280, streamable, encoded with H....
Definition Types.h:7455
std::shared_ptr< InputStoryContentVideo > Ptr
Definition Types.h:7440
static TGBOT_API const std::string TYPE
Definition Types.h:7442
std::string type
Type of the content, must be video.
Definition Types.h:7447
Represents the content of a text message to be sent as the result of an inline query.
Definition Types.h:7478
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Optional. Link preview generation options for the message.
Definition Types.h:7498
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...
Definition Types.h:7494
std::string messageText
Text of the message to be sent, 1-4096 characters.
Definition Types.h:7484
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the message text. See formatting options for more details.
Definition Types.h:7489
std::shared_ptr< InputTextMessageContent > Ptr
Definition Types.h:7479
Represents the content of a venue message to be sent as the result of an inline query.
Definition Types.h:7508
double latitude
Latitude of the venue in degrees.
Definition Types.h:7514
std::string address
Address of the venue.
Definition Types.h:7526
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
Definition Types.h:7543
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,...
Definition Types.h:7535
std::shared_ptr< InputVenueMessageContent > Ptr
Definition Types.h:7509
double longitude
Longitude of the venue in degrees.
Definition Types.h:7518
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue, if known.
Definition Types.h:7530
std::string title
Name of the venue.
Definition Types.h:7522
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
Definition Types.h:7539
This object contains basic information about an invoice.
Definition Types.h:7553
std::shared_ptr< Invoice > Ptr
Definition Types.h:7554
std::string title
Product name.
Definition Types.h:7559
std::string startParameter
Unique bot deep-linking parameter that can be used to generate this invoice.
Definition Types.h:7567
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
Definition Types.h:7571
std::string description
Product description.
Definition Types.h:7563
std::int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
Definition Types.h:7578
This object represents one button of the reply keyboard. At most one of the fields other than text,...
Definition Types.h:7591
std::optional< std::string > style
Optional. Style of the button. Must be one of “danger” (red), “success” (green) or “primary” (blue)....
Definition Types.h:7610
std::shared_ptr< KeyboardButtonRequestChat > requestChat
Optional. If specified, pressing the button will open a list of suitable chats. Tapping on a chat wil...
Definition Types.h:7622
std::optional< bool > requestLocation
Optional. If True, the user's current location will be sent when the button is pressed....
Definition Types.h:7638
std::optional< std::string > iconCustomEmojiId
Optional. Unique identifier of the custom emoji shown before the text of the button....
Definition Types.h:7605
std::shared_ptr< KeyboardButtonPollType > requestPoll
Optional. If specified, the user will be asked to create a poll and send it to the bot when the butto...
Definition Types.h:7643
std::shared_ptr< KeyboardButton > Ptr
Definition Types.h:7592
std::shared_ptr< KeyboardButtonRequestManagedBot > requestManagedBot
Optional. If specified, pressing the button will ask the user to create and share a bot that will be ...
Definition Types.h:7628
std::optional< bool > requestContact
Optional. If True, the user's phone number will be sent as a contact when the button is pressed....
Definition Types.h:7633
std::string text
Text of the button. If none of the fields other than text, icon_custom_emoji_id, and style are used,...
Definition Types.h:7598
std::shared_ptr< KeyboardButtonRequestUsers > requestUsers
Optional. If specified, pressing the button will open a list of suitable users. Identifiers of select...
Definition Types.h:7616
std::shared_ptr< WebAppInfo > webApp
Optional. If specified, the described Web App will be launched when the button is pressed....
Definition Types.h:7649
This object represents type of a poll, which is allowed to be created and sent when the corresponding...
Definition Types.h:7660
std::optional< std::string > type
Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode....
Definition Types.h:7668
std::shared_ptr< KeyboardButtonPollType > Ptr
Definition Types.h:7661
This object defines the criteria used to request a suitable chat. Information about the selected chat...
Definition Types.h:7680
std::optional< bool > chatHasUsername
Optional. Pass True to request a supergroup or a channel with a username, pass False to request a cha...
Definition Types.h:7702
std::optional< bool > chatIsForum
Optional. Pass True to request a forum supergroup, pass False to request a non-forum chat....
Definition Types.h:7696
std::optional< bool > requestPhoto
Optional. Pass True to request the chat's photo.
Definition Types.h:7736
std::int32_t requestId
Signed 32-bit identifier of the request, which will be received back in the ChatShared object....
Definition Types.h:7687
std::optional< bool > chatIsCreated
Optional. Pass True to request a chat owned by the user. Otherwise, no additional restrictions are ap...
Definition Types.h:7707
std::shared_ptr< ChatAdministratorRights > userAdministratorRights
Optional. A JSON-serialized object listing the required administrator rights of the user in the chat....
Definition Types.h:7713
std::optional< bool > requestUsername
Optional. Pass True to request the chat's username.
Definition Types.h:7732
std::shared_ptr< KeyboardButtonRequestChat > Ptr
Definition Types.h:7681
std::shared_ptr< ChatAdministratorRights > botAdministratorRights
Optional. A JSON-serialized object listing the required administrator rights of the bot in the chat....
Definition Types.h:7719
std::optional< bool > botIsMember
Optional. Pass True to request a chat with the bot as a member. Otherwise, no additional restrictions...
Definition Types.h:7724
bool chatIsChannel
Pass True to request a channel chat, pass False to request a group or a supergroup chat.
Definition Types.h:7691
std::optional< bool > requestTitle
Optional. Pass True to request the chat's title.
Definition Types.h:7728
This object defines the parameters for the creation of a managed bot. Information about the created b...
Definition Types.h:7748
std::optional< std::string > suggestedUsername
Optional. Suggested username for the bot.
Definition Types.h:7762
std::shared_ptr< KeyboardButtonRequestManagedBot > Ptr
Definition Types.h:7749
std::optional< std::string > suggestedName
Optional. Suggested name for the bot.
Definition Types.h:7758
std::int32_t requestId
Signed 32-bit identifier of the request. Must be unique within the message.
Definition Types.h:7754
This object defines the criteria used to request suitable users. Information about the selected users...
Definition Types.h:7774
std::optional< std::int32_t > maxQuantity
Optional. The maximum number of users to be selected; 1-10. Defaults to 1.
Definition Types.h:7795
std::optional< bool > userIsBot
Optional. Pass True to request bots, pass False to request regular users. If not specified,...
Definition Types.h:7786
std::shared_ptr< KeyboardButtonRequestUsers > Ptr
Definition Types.h:7775
std::int32_t requestId
Signed 32-bit identifier of the request that will be received back in the UsersShared object....
Definition Types.h:7781
std::optional< bool > userIsPremium
Optional. Pass True to request premium users, pass False to request non-premium users....
Definition Types.h:7791
std::optional< bool > requestPhoto
Optional. Pass True to request the users' photos.
Definition Types.h:7807
std::optional< bool > requestName
Optional. Pass True to request the users' first and last names.
Definition Types.h:7799
std::optional< bool > requestUsername
Optional. Pass True to request the users' usernames.
Definition Types.h:7803
This object represents a portion of the price for goods or services.
Definition Types.h:7817
std::shared_ptr< LabeledPrice > Ptr
Definition Types.h:7818
std::string label
Portion label.
Definition Types.h:7823
std::int32_t amount
Price of the product in the smallest units of the currency (integer, not float/double)....
Definition Types.h:7830
Arguments for Api::leaveChat.
Definition Types.h:16915
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 @...
Definition Types.h:16921
This object represents a live photo.
Definition Types.h:7892
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Available sizes of the corresponding static photo.
Definition Types.h:7898
std::string fileId
Identifier for the video file which can be used to download or reuse the file.
Definition Types.h:7902
std::int32_t width
Video width as defined by the sender.
Definition Types.h:7911
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...
Definition Types.h:7930
std::int32_t height
Video height as defined by the sender.
Definition Types.h:7915
std::int32_t duration
Duration of the video in seconds as defined by the sender.
Definition Types.h:7919
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:7923
std::shared_ptr< LivePhoto > Ptr
Definition Types.h:7893
std::string fileUniqueId
Unique identifier for the video file which is supposed to be the same over time and for different bot...
Definition Types.h:7907
Describes the physical address of a location.
Definition Types.h:7979
std::optional< std::string > state
Optional. State of the location.
Definition Types.h:7990
std::shared_ptr< LocationAddress > Ptr
Definition Types.h:7980
std::optional< std::string > street
Optional. Street address of the location.
Definition Types.h:7998
std::optional< std::string > city
Optional. City of the location.
Definition Types.h:7994
std::string countryCode
The two-letter ISO 3166-1 alpha-2 country code of the country where the location is located.
Definition Types.h:7986
This object represents a point on the map.
Definition Types.h:7940
std::optional< std::int32_t > heading
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
Definition Types.h:7964
double latitude
Latitude as defined by the sender.
Definition Types.h:7946
double longitude
Longitude as defined by the sender.
Definition Types.h:7950
std::shared_ptr< Location > Ptr
Definition Types.h:7941
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:7954
std::optional< std::int32_t > proximityAlertRadius
Optional. The maximum distance for proximity alerts about approaching another chat member,...
Definition Types.h:7969
std::optional< std::int32_t > livePeriod
Optional. Time relative to the message sending date, during which the location can be updated; in sec...
Definition Types.h:7959
This object represents a parameter of the inline keyboard button used to automatically authorize a us...
Definition Types.h:8011
std::shared_ptr< LoginUrl > Ptr
Definition Types.h:8012
std::optional< std::string > forwardText
Optional. New text of the button in forwarded messages.
Definition Types.h:8026
std::optional< std::string > botUsername
Optional. Username of a bot, which will be used for user authorization; not supported in RichMessageB...
Definition Types.h:8033
std::optional< bool > requestWriteAccess
Optional. Pass True to request the permission for your bot to send messages to the user.
Definition Types.h:8037
std::string url
An HTTPS URL to be opened with user authorization data added to the query string when the button is p...
Definition Types.h:8022
This object contains information about the bot that was created to be managed by the current bot.
Definition Types.h:8048
std::shared_ptr< User > bot
Information about the bot. The bot's token can be fetched using the method getManagedBotToken.
Definition Types.h:8055
std::shared_ptr< ManagedBotCreated > Ptr
Definition Types.h:8049
This object contains information about the creation, token update, or owner update of a bot that is m...
Definition Types.h:8066
std::shared_ptr< User > bot
Information about the bot. Token of the bot can be fetched using the method getManagedBotToken.
Definition Types.h:8077
std::shared_ptr< User > user
User that created the bot.
Definition Types.h:8072
std::shared_ptr< ManagedBotUpdated > Ptr
Definition Types.h:8067
This object describes the position on faces where a mask should be placed by default.
Definition Types.h:8087
double scale
Mask scaling coefficient. For example, 2.0 means double size.
Definition Types.h:8109
double yShift
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom....
Definition Types.h:8105
std::string point
The part of the face relative to which the mask should be placed. One of “forehead”,...
Definition Types.h:8094
std::shared_ptr< MaskPosition > Ptr
Definition Types.h:8088
double xShift
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right....
Definition Types.h:8100
This object describes a message that can be inaccessible to the bot. It can be one of Message Inacces...
Definition Types.h:8120
std::shared_ptr< MaybeInaccessibleMessage > Ptr
Definition Types.h:8121
std::variant< std::shared_ptr< Message >, std::shared_ptr< InaccessibleMessage > > value
Definition Types.h:8123
Represents a menu button, which opens the bot's list of commands.
Definition Types.h:8151
static TGBOT_API const std::string TYPE
Definition Types.h:8154
std::shared_ptr< MenuButtonCommands > Ptr
Definition Types.h:8152
std::string type
Type of the button, must be commands.
Definition Types.h:8159
Describes that no specific value for the menu button was set.
Definition Types.h:8169
std::shared_ptr< MenuButtonDefault > Ptr
Definition Types.h:8170
static TGBOT_API const std::string TYPE
Definition Types.h:8172
std::string type
Type of the button, must be default.
Definition Types.h:8177
This object describes the bot's menu button in a private chat. It should be one of MenuButtonCommands...
Definition Types.h:8136
std::shared_ptr< MenuButton > Ptr
Definition Types.h:8137
std::variant< std::shared_ptr< MenuButtonCommands >, std::shared_ptr< MenuButtonWebApp >, std::shared_ptr< MenuButtonDefault > > value
Definition Types.h:8141
Represents a menu button, which launches a Web App.
Definition Types.h:8187
static TGBOT_API const std::string TYPE
Definition Types.h:8190
std::string type
Type of the button, must be web_app.
Definition Types.h:8195
std::string text
Text on the button.
Definition Types.h:8199
std::shared_ptr< MenuButtonWebApp > Ptr
Definition Types.h:8188
std::shared_ptr< WebAppInfo > webApp
Description of the Web App that will be launched when the user presses the button....
Definition Types.h:8207
This object represents a service message about a change in auto-delete timer settings.
Definition Types.h:8778
std::shared_ptr< MessageAutoDeleteTimerChanged > Ptr
Definition Types.h:8779
std::int32_t messageAutoDeleteTime
New auto-delete time for messages in the chat; in seconds.
Definition Types.h:8784
This object represents one special entity in a text message. For example, hashtags,...
Definition Types.h:8795
std::optional< std::int32_t > unixTime
Optional. For “date_time” only, the Unix time associated with the entity.
Definition Types.h:8861
std::shared_ptr< MessageEntity > Ptr
Definition Types.h:8796
std::int32_t offset
Offset in UTF-16 code units to the start of the entity.
Definition Types.h:8836
std::optional< std::string > customEmojiId
Optional. For “custom_emoji” only, unique identifier of the custom emoji. Use getCustomEmojiStickers ...
Definition Types.h:8857
std::optional< std::string > dateTimeFormat
Optional. For “date_time” only, the string that defines the formatting of the date and time....
Definition Types.h:8866
std::shared_ptr< User > user
Optional. For “text_mention” only, the mentioned user.
Definition Types.h:8848
std::optional< std::string > language
Optional. For “pre” only, the programming language of the entity text.
Definition Types.h:8852
Type type
Type of the entity. Currently, can be “mention” (@username), “hashtag” (hashtag or hashtag@chatuserna...
Definition Types.h:8832
std::optional< std::string > url
Optional. For “text_link” only, URL that will be opened after user taps on the text.
Definition Types.h:8844
std::int32_t length
Length of the entity in UTF-16 code units.
Definition Types.h:8840
This object describes an update about a user stopping message generation.
Definition Types.h:8879
std::optional< std::int32_t > messageThreadId
Optional. Unique identifier of the message thread in which the message is generated.
Definition Types.h:8889
std::shared_ptr< MessageGenerationStopped > Ptr
Definition Types.h:8880
std::int32_t draftId
Unique identifier of the message draft which was stopped.
Definition Types.h:8893
std::shared_ptr< Chat > chat
Chat in which the message is generated.
Definition Types.h:8885
This object represents a message.
Definition Types.h:8217
std::shared_ptr< Sticker > sticker
Optional. Message is a sticker, information about the sticker.
Definition Types.h:8444
std::shared_ptr< RichMessage > richMessage
Optional. Message is a rich formatted message.
Definition Types.h:8414
std::optional< bool > channelChatCreated
Optional. Service message: the channel has been created. This field can't be received in a message co...
Definition Types.h:8554
std::shared_ptr< GiftInfo > gift
Optional. Service message: a regular gift was sent or received.
Definition Types.h:8606
std::shared_ptr< CommunityChatRemoved > communityChatRemoved
Optional. Service message: chat or bot removed from a Community.
Definition Types.h:8662
std::shared_ptr< Giveaway > giveaway
Optional. The message is a scheduled giveaway message.
Definition Types.h:8699
std::shared_ptr< Animation > animation
Optional. Message is an animation, information about the animation. For backward compatibility,...
Definition Types.h:8419
std::shared_ptr< PassportData > passportData
Optional. Telegram Passport data.
Definition Types.h:8629
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Optional. Options used for link preview generation for the message, if it is a text message and link ...
Definition Types.h:8400
std::shared_ptr< ForumTopicEdited > forumTopicEdited
Optional. Service message: forum topic edited.
Definition Types.h:8675
std::shared_ptr< Chat > guestBotCallerChat
Optional. For a message sent by a guest bot, this is the chat whose original message triggered the bo...
Definition Types.h:8353
std::shared_ptr< GiftInfo > giftUpgradeSent
Optional. Service message: upgrade of a gift was purchased after the gift was sent.
Definition Types.h:8614
std::optional< std::string > authorSignature
Optional. Signature of the post author for messages in channels, or the custom title of an anonymous ...
Definition Types.h:8381
std::shared_ptr< WebAppData > webAppData
Optional. Service message: data sent by a Web App.
Definition Types.h:8763
std::shared_ptr< UsersShared > usersShared
Optional. Service message: users were shared with the bot.
Definition Types.h:8598
std::shared_ptr< ChatBackground > chatBackgroundSet
Optional. Service message: chat background set.
Definition Types.h:8642
std::shared_ptr< GiveawayWinners > giveawayWinners
Optional. A giveaway with public winners was completed.
Definition Types.h:8703
std::shared_ptr< Venue > venue
Optional. Message is a venue, information about the venue. For backward compatibility,...
Definition Types.h:8502
std::shared_ptr< Video > video
Optional. Message is a video, information about the video.
Definition Types.h:8452
std::shared_ptr< TextQuote > quote
Optional. For replies that quote part of the original message, the quoted part of the message.
Definition Types.h:8327
std::shared_ptr< RefundedPayment > refundedPayment
Optional. Message is a service message about a refunded payment, information about the payment....
Definition Types.h:8594
std::shared_ptr< GeneralForumTopicHidden > generalForumTopicHidden
Optional. Service message: the 'General' forum topic hidden.
Definition Types.h:8687
std::shared_ptr< Message > Ptr
Definition Types.h:8218
std::shared_ptr< VideoChatParticipantsInvited > videoChatParticipantsInvited
Optional. Service message: new participants invited to a video chat.
Definition Types.h:8759
std::shared_ptr< Location > location
Optional. Message is a shared location, information about the location.
Definition Types.h:8506
std::shared_ptr< ForumTopicClosed > forumTopicClosed
Optional. Service message: forum topic closed.
Definition Types.h:8679
std::shared_ptr< ExternalReplyInfo > externalReply
Optional. Information about the message that is being replied to, which may come from another chat or...
Definition Types.h:8322
std::shared_ptr< MessageOrigin > forwardOrigin
Optional. Information about the original message for forwarded messages.
Definition Types.h:8300
std::int32_t messageId
Unique message identifier inside this chat; 0 for ephemeral messages. In specific instances (e....
Definition Types.h:8226
std::shared_ptr< ChatBoostAdded > boostAdded
Optional. Service message: user boosted the chat.
Definition Types.h:8638
std::optional< bool > isAutomaticForward
Optional. True, if the message is a channel post that was automatically forwarded to the connected di...
Definition Types.h:8310
std::optional< bool > supergroupChatCreated
Optional. Service message: the supergroup has been created. This field can't be received in a message...
Definition Types.h:8547
std::shared_ptr< PaidMediaInfo > paidMedia
Optional. Message contains paid media; information about the paid media.
Definition Types.h:8436
std::optional< std::int32_t > messageThreadId
Optional. Unique identifier of a message thread or forum topic to which the message belongs; for supe...
Definition Types.h:8231
std::optional< std::vector< std::shared_ptr< PhotoSize > > > newChatPhoto
Optional. A chat photo was change to this value.
Definition Types.h:8532
std::shared_ptr< Invoice > invoice
Optional. Message is an invoice for a payment, information about the invoice. More about payments »
Definition Types.h:8584
std::shared_ptr< CommunityChatAdded > communityChatAdded
Optional. Service message: chat or bot added to a Community.
Definition Types.h:8654
std::optional< std::string > mediaGroupId
Optional. The unique identifier inside this chat of a media message group this message belongs to.
Definition Types.h:8376
std::shared_ptr< Story > replyToStory
Optional. For replies to a story, the original story.
Definition Types.h:8331
std::shared_ptr< ChatOwnerLeft > chatOwnerLeft
Optional. Service message: chat owner has left.
Definition Types.h:8520
std::shared_ptr< Audio > audio
Optional. Message is an audio file, information about the file.
Definition Types.h:8423
std::shared_ptr< Contact > contact
Optional. Message is a shared contact, information about the contact.
Definition Types.h:8485
std::shared_ptr< GiveawayCreated > giveawayCreated
Optional. Service message: a scheduled giveaway was created.
Definition Types.h:8695
std::shared_ptr< Story > story
Optional. Message is a forwarded story.
Definition Types.h:8448
std::shared_ptr< VideoChatScheduled > videoChatScheduled
Optional. Service message: video chat scheduled.
Definition Types.h:8747
std::shared_ptr< Checklist > checklist
Optional. Message is a checklist.
Definition Types.h:8481
std::optional< bool > showCaptionAboveMedia
Optional. True, if the caption must be shown above the message media.
Definition Types.h:8473
std::optional< std::int32_t > replyToChecklistTaskId
Optional. Identifier of the specific checklist task that is being replied to.
Definition Types.h:8335
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities
Optional. For messages with a caption, special entities like usernames, URLs, bot commands,...
Definition Types.h:8469
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. For text messages, special entities like usernames, URLs, bot commands, etc....
Definition Types.h:8395
std::shared_ptr< User > guestBotCallerUser
Optional. For a message sent by a guest bot, this is the user whose original message triggered the bo...
Definition Types.h:8348
std::optional< std::string > text
Optional. For text messages, the actual UTF-8 text of the message.
Definition Types.h:8390
std::shared_ptr< Message > replyToMessage
Optional. For replies in the same chat and message thread, the original message. Note that the Messag...
Definition Types.h:8317
std::shared_ptr< CommunityChatJoined > communityChatJoined
Optional. Service message: chat was joined by a user from a Community.
Definition Types.h:8658
std::int32_t date
Date the message was sent in Unix time. It is always a positive number, representing a valid date.
Definition Types.h:8278
std::shared_ptr< UniqueGiftInfo > uniqueGift
Optional. Service message: a unique gift was sent or received.
Definition Types.h:8610
std::optional< bool > groupChatCreated
Optional. Service message: the group has been created.
Definition Types.h:8540
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 ...
Definition Types.h:8511
std::optional< std::string > businessConnectionId
Optional. Unique identifier of the business connection from which the message was received....
Definition Types.h:8292
std::shared_ptr< ManagedBotCreated > managedBotCreated
Optional. Service message: user created a bot that will be managed by the current bot.
Definition Types.h:8711
std::shared_ptr< VideoChatStarted > videoChatStarted
Optional. Service message: video chat started.
Definition Types.h:8751
std::shared_ptr< LivePhoto > livePhoto
Optional. Message is a live photo, information about the live photo. For backward compatibility,...
Definition Types.h:8432
std::shared_ptr< ForumTopicReopened > forumTopicReopened
Optional. Service message: forum topic reopened.
Definition Types.h:8683
std::shared_ptr< User > from
Optional. Sender of the message; may be empty for messages sent to channels. For backward compatibili...
Definition Types.h:8241
std::optional< std::int64_t > migrateFromChatId
Optional. The supergroup has been migrated from a group with the specified identifier....
Definition Types.h:8574
std::optional< std::int32_t > editDate
Optional. Date the message was last edited in Unix time.
Definition Types.h:8357
std::shared_ptr< Document > document
Optional. Message is a general file, information about the file.
Definition Types.h:8427
std::shared_ptr< SuccessfulPayment > successfulPayment
Optional. Message is a service message about a successful payment, information about the payment....
Definition Types.h:8589
std::optional< std::int64_t > migrateToChatId
Optional. The group has been migrated to a supergroup with the specified identifier....
Definition Types.h:8566
std::shared_ptr< PaidMessagePriceChanged > paidMessagePriceChanged
Optional. Service message: the price for paid messages has changed in the chat.
Definition Types.h:8715
std::optional< bool > hasMediaSpoiler
Optional. True, if the message media is covered by a spoiler animation.
Definition Types.h:8477
std::shared_ptr< VideoChatEnded > videoChatEnded
Optional. Service message: video chat ended.
Definition Types.h:8755
std::shared_ptr< PollOptionAdded > pollOptionAdded
Optional. Service message: answer option was added to a poll.
Definition Types.h:8719
std::shared_ptr< GiveawayCompleted > giveawayCompleted
Optional. Service message: a giveaway without public winners was completed.
Definition Types.h:8707
std::shared_ptr< WriteAccessAllowed > writeAccessAllowed
Optional. Service message: the user allowed the bot to write messages after adding it to the attachme...
Definition Types.h:8625
std::shared_ptr< Poll > poll
Optional. Message is a native poll, information about the poll.
Definition Types.h:8497
std::shared_ptr< DirectMessagePriceChanged > directMessagePriceChanged
Optional. Service message: the price for paid messages in the corresponding direct messages chat of a...
Definition Types.h:8667
std::optional< bool > hasProtectedContent
Optional. True, if the message can't be forwarded.
Definition Types.h:8361
std::shared_ptr< PollOptionDeleted > pollOptionDeleted
Optional. Service message: answer option was deleted from a poll.
Definition Types.h:8723
std::shared_ptr< User > receiverUser
Optional. For ephemeral messages, the user who received the message.
Definition Types.h:8267
std::optional< std::int32_t > paidStarCount
Optional. The number of Telegram Stars that were paid by the sender of the message to send it.
Definition Types.h:8386
std::optional< bool > deleteChatPhoto
Optional. Service message: the chat photo was deleted.
Definition Types.h:8536
std::shared_ptr< SuggestedPostApproved > suggestedPostApproved
Optional. Service message: a suggested post was approved.
Definition Types.h:8727
std::optional< bool > isFromOffline
Optional. True, if the message was sent by an implicit action, for example, as an away or a greeting ...
Definition Types.h:8366
std::shared_ptr< SuggestedPostInfo > suggestedPostInfo
Optional. Information about suggested post parameters if the message is a suggested post in a channel...
Definition Types.h:8406
std::shared_ptr< GeneralForumTopicUnhidden > generalForumTopicUnhidden
Optional. Service message: the 'General' forum topic unhidden.
Definition Types.h:8691
std::shared_ptr< SuggestedPostRefunded > suggestedPostRefunded
Optional. Service message: payment for a suggested post was refunded.
Definition Types.h:8743
std::shared_ptr< User > leftChatMember
Optional. A member was removed from the group, information about them (this member may be the bot its...
Definition Types.h:8516
std::optional< std::int32_t > senderBoostCount
Optional. If the sender of the message boosted the chat, the number of boosts added by the user.
Definition Types.h:8254
std::shared_ptr< MessageAutoDeleteTimerChanged > messageAutoDeleteTimerChanged
Optional. Service message: auto-delete timer settings changed in the chat.
Definition Types.h:8558
std::shared_ptr< SuggestedPostPaid > suggestedPostPaid
Optional. Service message: payment for a suggested post was received.
Definition Types.h:8739
std::shared_ptr< ChatShared > chatShared
Optional. Service message: a chat was shared with the bot.
Definition Types.h:8602
std::optional< std::int32_t > ephemeralMessageId
Optional. For ephemeral messages, identifier of the ephemeral message inside this chat....
Definition Types.h:8273
std::shared_ptr< SuggestedPostApprovalFailed > suggestedPostApprovalFailed
Optional. Service message: approval of a suggested post has failed.
Definition Types.h:8731
std::shared_ptr< Dice > dice
Optional. Message is a dice with random value.
Definition Types.h:8489
std::shared_ptr< DirectMessagesTopic > directMessagesTopic
Optional. Information about the direct messages chat topic that contains the message.
Definition Types.h:8235
std::shared_ptr< ChecklistTasksDone > checklistTasksDone
Optional. Service message: some tasks in a checklist were marked as done or not done.
Definition Types.h:8646
std::shared_ptr< Voice > voice
Optional. Message is a voice message, information about the file.
Definition Types.h:8460
std::optional< std::string > replyToPollOptionId
Optional. Persistent identifier of the specific poll option that is being replied to.
Definition Types.h:8339
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url ...
Definition Types.h:8768
std::shared_ptr< Chat > senderChat
Optional. Sender of the message when sent on behalf of a chat. For example, the supergroup itself for...
Definition Types.h:8249
std::optional< std::string > newChatTitle
Optional. A chat title was changed to this value.
Definition Types.h:8528
std::optional< bool > isPaidPost
Optional. True, if the message is a paid post. Note that such posts must not be deleted for 24 hours ...
Definition Types.h:8371
std::shared_ptr< ChatOwnerChanged > chatOwnerChanged
Optional. Service message: chat owner has changed.
Definition Types.h:8524
std::shared_ptr< VideoNote > videoNote
Optional. Message is a video note, information about the video message.
Definition Types.h:8456
std::optional< std::string > senderTag
Optional. Tag or custom title of the sender of the message; for supergroups only.
Definition Types.h:8263
std::shared_ptr< ProximityAlertTriggered > proximityAlertTriggered
Optional. Service message: a user in the chat triggered another user's proximity alert while sharing ...
Definition Types.h:8634
std::optional< std::string > effectId
Optional. Unique identifier of the message effect added to the message.
Definition Types.h:8410
std::shared_ptr< Chat > chat
Chat the message belongs to.
Definition Types.h:8296
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...
Definition Types.h:8305
std::shared_ptr< ChecklistTasksAdded > checklistTasksAdded
Optional. Service message: tasks were added to a checklist.
Definition Types.h:8650
std::shared_ptr< User > senderBusinessBot
Optional. The bot that actually sent the message on behalf of the business account....
Definition Types.h:8259
std::shared_ptr< User > viaBot
Optional. Bot through which the message was sent.
Definition Types.h:8343
std::shared_ptr< ForumTopicCreated > forumTopicCreated
Optional. Service message: forum topic created.
Definition Types.h:8671
std::shared_ptr< MaybeInaccessibleMessage > pinnedMessage
Optional. Specified message was pinned. Note that the Message object in this field will not contain f...
Definition Types.h:8579
std::optional< std::string > caption
Optional. Caption for the animation, audio, document, paid media, photo, video or voice.
Definition Types.h:8464
std::optional< std::string > connectedWebsite
Optional. The domain name of the website on which the user has logged in. More about Telegram Login »
Definition Types.h:8619
std::shared_ptr< Game > game
Optional. Message is a game, information about the game. More about games »
Definition Types.h:8493
std::optional< std::string > guestQueryId
Optional. The unique identifier for the guest query. Use this identifier with the method answerGuestQ...
Definition Types.h:8285
std::shared_ptr< SuggestedPostDeclined > suggestedPostDeclined
Optional. Service message: a suggested post was declined.
Definition Types.h:8735
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Message is a photo, available sizes of the photo.
Definition Types.h:8440
This object represents a unique message identifier.
Definition Types.h:8903
std::int32_t messageId
Unique message identifier. In specific instances (e.g., message containing a video sent to a big chat...
Definition Types.h:8912
std::shared_ptr< MessageId > Ptr
Definition Types.h:8904
The message was originally sent to a channel chat.
Definition Types.h:8938
std::optional< std::string > authorSignature
Optional. Signature of the original post author.
Definition Types.h:8962
std::shared_ptr< MessageOriginChannel > Ptr
Definition Types.h:8939
std::int32_t date
Date the message was sent originally in Unix time.
Definition Types.h:8950
static TGBOT_API const std::string TYPE
Definition Types.h:8941
std::int32_t messageId
Unique message identifier inside the chat.
Definition Types.h:8958
std::shared_ptr< Chat > chat
Channel chat to which the message was originally sent.
Definition Types.h:8954
std::string type
Type of the message origin, always “channel”
Definition Types.h:8946
The message was originally sent on behalf of a chat to a group chat.
Definition Types.h:8972
std::optional< std::string > authorSignature
Optional. For messages originally sent by an anonymous chat administrator, original message author si...
Definition Types.h:8993
std::string type
Type of the message origin, always “chat”
Definition Types.h:8980
std::shared_ptr< MessageOriginChat > Ptr
Definition Types.h:8973
std::int32_t date
Date the message was sent originally in Unix time.
Definition Types.h:8984
static TGBOT_API const std::string TYPE
Definition Types.h:8975
std::shared_ptr< Chat > senderChat
Chat that sent the message originally.
Definition Types.h:8988
The message was originally sent by an unknown user.
Definition Types.h:9003
std::shared_ptr< MessageOriginHiddenUser > Ptr
Definition Types.h:9004
static TGBOT_API const std::string TYPE
Definition Types.h:9006
std::int32_t date
Date the message was sent originally in Unix time.
Definition Types.h:9015
std::string senderUserName
Name of the user that sent the message originally.
Definition Types.h:9019
std::string type
Type of the message origin, always “hidden_user”
Definition Types.h:9011
This object describes the origin of a message. It can be one of MessageOriginUser MessageOriginHidden...
Definition Types.h:8923
std::shared_ptr< MessageOrigin > Ptr
Definition Types.h:8924
std::variant< std::shared_ptr< MessageOriginUser >, std::shared_ptr< MessageOriginHiddenUser >, std::shared_ptr< MessageOriginChat >, std::shared_ptr< MessageOriginChannel > > value
Definition Types.h:8928
The message was originally sent by a known user.
Definition Types.h:9029
static TGBOT_API const std::string TYPE
Definition Types.h:9032
std::string type
Type of the message origin, always “user”
Definition Types.h:9037
std::shared_ptr< MessageOriginUser > Ptr
Definition Types.h:9030
std::int32_t date
Date the message was sent originally in Unix time.
Definition Types.h:9041
std::shared_ptr< User > senderUser
User that sent the message originally.
Definition Types.h:9045
This object represents reaction changes on a message with anonymous reactions.
Definition Types.h:9055
std::int32_t messageId
Unique message identifier inside the chat.
Definition Types.h:9065
std::vector< std::shared_ptr< ReactionCount > > reactions
List of reactions that are present on the message.
Definition Types.h:9073
std::int32_t date
Date of the change in Unix time.
Definition Types.h:9069
std::shared_ptr< Chat > chat
The chat containing the message.
Definition Types.h:9061
std::shared_ptr< MessageReactionCountUpdated > Ptr
Definition Types.h:9056
This object represents a change of a reaction on a message performed by a user.
Definition Types.h:9083
std::vector< std::shared_ptr< ReactionType > > newReaction
New list of reaction types that have been set by the user.
Definition Types.h:9113
std::int32_t messageId
Unique identifier of the message inside the chat.
Definition Types.h:9093
std::vector< std::shared_ptr< ReactionType > > oldReaction
Previous list of reaction types that were set by the user.
Definition Types.h:9109
std::shared_ptr< Chat > actorChat
Optional. The chat on behalf of which the reaction was changed, if the user is anonymous.
Definition Types.h:9101
std::shared_ptr< User > user
Optional. The user that changed the reaction, if the user isn't anonymous.
Definition Types.h:9097
std::int32_t date
Date of the change in Unix time.
Definition Types.h:9105
std::shared_ptr< MessageReactionUpdated > Ptr
Definition Types.h:9084
std::shared_ptr< Chat > chat
The chat containing the message the user reacted to.
Definition Types.h:9089
This object represents information about an order.
Definition Types.h:9123
std::optional< std::string > phoneNumber
Optional. User's phone number.
Definition Types.h:9133
std::optional< std::string > name
Optional. User name.
Definition Types.h:9129
std::optional< std::string > email
Optional. User email.
Definition Types.h:9137
std::shared_ptr< ShippingAddress > shippingAddress
Optional. User shipping address.
Definition Types.h:9141
std::shared_ptr< OrderInfo > Ptr
Definition Types.h:9124
This object describes a gift received and owned by a user or a chat. Currently, it can be one of Owne...
Definition Types.h:9152
std::shared_ptr< OwnedGift > Ptr
Definition Types.h:9153
std::variant< std::shared_ptr< OwnedGiftRegular >, std::shared_ptr< OwnedGiftUnique > > value
Definition Types.h:9155
Describes a regular gift owned by a user or a chat.
Definition Types.h:9165
static TGBOT_API const std::string TYPE
Definition Types.h:9168
std::optional< bool > wasRefunded
Optional. True, if the gift was refunded and isn't available anymore.
Definition Types.h:9217
std::optional< bool > isSaved
Optional. True, if the gift is displayed on the account's profile page; for gifts received on behalf ...
Definition Types.h:9208
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the text.
Definition Types.h:9198
std::optional< std::int32_t > convertStarCount
Optional. Number of Telegram Stars that can be claimed by the receiver instead of the gift; omitted i...
Definition Types.h:9223
std::optional< bool > isPrivate
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise,...
Definition Types.h:9203
std::optional< std::int32_t > uniqueGiftNumber
Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift.
Definition Types.h:9237
std::optional< std::string > ownedGiftId
Optional. Unique identifier of the gift for the bot; for gifts received on behalf of business account...
Definition Types.h:9182
std::optional< bool > canBeUpgraded
Optional. True, if the gift can be upgraded to a unique gift; for gifts received on behalf of busines...
Definition Types.h:9213
std::string type
Type of the gift, always “regular”
Definition Types.h:9173
std::optional< bool > isUpgradeSeparate
Optional. True, if the gift's upgrade was purchased after the gift was sent; for gifts received on be...
Definition Types.h:9232
std::optional< std::string > text
Optional. Text of the message that was added to the gift.
Definition Types.h:9194
std::shared_ptr< User > senderUser
Optional. Sender of the gift if it is a known user.
Definition Types.h:9186
std::shared_ptr< Gift > gift
Information about the regular gift.
Definition Types.h:9177
std::shared_ptr< OwnedGiftRegular > Ptr
Definition Types.h:9166
std::optional< std::int32_t > prepaidUpgradeStarCount
Optional. Number of Telegram Stars that were paid for the ability to upgrade the gift.
Definition Types.h:9227
std::int32_t sendDate
Date the gift was sent in Unix time.
Definition Types.h:9190
Describes a unique gift received and owned by a user or a chat.
Definition Types.h:9247
std::shared_ptr< OwnedGiftUnique > Ptr
Definition Types.h:9248
std::optional< std::string > ownedGiftId
Optional. Unique identifier of the received gift for the bot; for gifts received on behalf of busines...
Definition Types.h:9264
std::string type
Type of the gift, always “unique”
Definition Types.h:9255
std::optional< std::int32_t > nextTransferDate
Optional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past,...
Definition Types.h:9292
std::shared_ptr< UniqueGift > gift
Information about the unique gift.
Definition Types.h:9259
std::optional< bool > isSaved
Optional. True, if the gift is displayed on the account's profile page; for gifts received on behalf ...
Definition Types.h:9277
std::optional< bool > canBeTransferred
Optional. True, if the gift can be transferred to another owner; for gifts received on behalf of busi...
Definition Types.h:9282
std::int32_t sendDate
Date the gift was sent in Unix time.
Definition Types.h:9272
std::shared_ptr< User > senderUser
Optional. Sender of the gift if it is a known user.
Definition Types.h:9268
static TGBOT_API const std::string TYPE
Definition Types.h:9250
std::optional< std::int32_t > transferStarCount
Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot ...
Definition Types.h:9287
Contains the list of gifts received and owned by a user or a chat.
Definition Types.h:9302
std::vector< std::shared_ptr< OwnedGift > > gifts
The list of gifts.
Definition Types.h:9312
std::int32_t totalCount
The total number of gifts owned by the user or the chat.
Definition Types.h:9308
std::shared_ptr< OwnedGifts > Ptr
Definition Types.h:9303
std::optional< std::string > nextOffset
Optional. Offset for the next request. If empty, then there are no more results.
Definition Types.h:9316
This object describes paid media. Currently, it can be one of PaidMediaLivePhoto PaidMediaPhoto PaidM...
Definition Types.h:9327
std::shared_ptr< PaidMedia > Ptr
Definition Types.h:9328
std::variant< std::shared_ptr< PaidMediaLivePhoto >, std::shared_ptr< PaidMediaPhoto >, std::shared_ptr< PaidMediaPreview >, std::shared_ptr< PaidMediaVideo > > value
Definition Types.h:9332
Describes the paid media added to a message.
Definition Types.h:9342
std::int32_t starCount
The number of Telegram Stars that must be paid to buy access to the media.
Definition Types.h:9348
std::vector< std::shared_ptr< PaidMedia > > paidMedia
Information about the paid media.
Definition Types.h:9352
std::shared_ptr< PaidMediaInfo > Ptr
Definition Types.h:9343
The paid media is a live photo.
Definition Types.h:9362
std::shared_ptr< PaidMediaLivePhoto > Ptr
Definition Types.h:9363
std::shared_ptr< LivePhoto > livePhoto
The photo.
Definition Types.h:9374
static TGBOT_API const std::string TYPE
Definition Types.h:9365
std::string type
Type of the paid media, always “live_photo”
Definition Types.h:9370
The paid media is a photo.
Definition Types.h:9384
static TGBOT_API const std::string TYPE
Definition Types.h:9387
std::string type
Type of the paid media, always “photo”
Definition Types.h:9392
std::vector< std::shared_ptr< PhotoSize > > photo
The photo.
Definition Types.h:9396
std::shared_ptr< PaidMediaPhoto > Ptr
Definition Types.h:9385
The paid media isn't available before the payment.
Definition Types.h:9406
std::optional< std::int32_t > duration
Optional. Duration of the media in seconds as defined by the sender.
Definition Types.h:9426
std::optional< std::int32_t > height
Optional. Media height as defined by the sender.
Definition Types.h:9422
std::shared_ptr< PaidMediaPreview > Ptr
Definition Types.h:9407
static TGBOT_API const std::string TYPE
Definition Types.h:9409
std::optional< std::int32_t > width
Optional. Media width as defined by the sender.
Definition Types.h:9418
std::string type
Type of the paid media, always “preview”
Definition Types.h:9414
This object contains information about a paid media purchase.
Definition Types.h:9436
std::shared_ptr< User > from
User who purchased the media.
Definition Types.h:9442
std::string paidMediaPayload
Bot-specified paid media payload.
Definition Types.h:9446
std::shared_ptr< PaidMediaPurchased > Ptr
Definition Types.h:9437
The paid media is a video.
Definition Types.h:9456
std::shared_ptr< PaidMediaVideo > Ptr
Definition Types.h:9457
static TGBOT_API const std::string TYPE
Definition Types.h:9459
std::shared_ptr< Video > video
The video.
Definition Types.h:9468
std::string type
Type of the paid media, always “video”
Definition Types.h:9464
Describes a service message about a change in the price of paid messages within a chat.
Definition Types.h:9478
std::int32_t paidMessageStarCount
The new number of Telegram Stars that must be paid by non-administrator users of the supergroup chat ...
Definition Types.h:9485
std::shared_ptr< PaidMessagePriceChanged > Ptr
Definition Types.h:9479
Describes Telegram Passport data shared with the bot by the user.
Definition Types.h:9495
std::vector< std::shared_ptr< EncryptedPassportElement > > data
Array with information about documents and other Telegram Passport elements that was shared with the ...
Definition Types.h:9502
std::shared_ptr< EncryptedCredentials > credentials
Encrypted credentials required to decrypt the data.
Definition Types.h:9506
std::shared_ptr< PassportData > Ptr
Definition Types.h:9496
Represents an issue in one of the data fields that was provided by the user. The error is considered ...
Definition Types.h:9540
std::string source
Error source, must be data.
Definition Types.h:9548
std::string message
Error message.
Definition Types.h:9566
static TGBOT_API const std::string SOURCE
Definition Types.h:9543
std::shared_ptr< PassportElementErrorDataField > Ptr
Definition Types.h:9541
std::string type
The section of the user's Telegram Passport which has the error, one of “personal_details”,...
Definition Types.h:9554
std::string dataHash
Base64-encoded data hash.
Definition Types.h:9562
std::string fieldName
Name of the data field which has the error.
Definition Types.h:9558
Represents an issue with a document scan. The error is considered resolved when the file with the doc...
Definition Types.h:9577
std::string type
The section of the user's Telegram Passport which has the issue, one of “utility_bill”,...
Definition Types.h:9590
std::string message
Error message.
Definition Types.h:9598
std::shared_ptr< PassportElementErrorFile > Ptr
Definition Types.h:9578
static TGBOT_API const std::string SOURCE
Definition Types.h:9580
std::string fileHash
Base64-encoded file hash.
Definition Types.h:9594
std::string source
Error source, must be file.
Definition Types.h:9585
Represents an issue with a list of scans. The error is considered resolved when the list of files con...
Definition Types.h:9609
std::string message
Error message.
Definition Types.h:9630
std::string source
Error source, must be files.
Definition Types.h:9617
std::shared_ptr< PassportElementErrorFiles > Ptr
Definition Types.h:9610
static TGBOT_API const std::string SOURCE
Definition Types.h:9612
std::string type
The section of the user's Telegram Passport which has the issue, one of “utility_bill”,...
Definition Types.h:9622
std::vector< std::string > fileHashes
List of base64-encoded file hashes.
Definition Types.h:9626
Represents an issue with the front side of a document. The error is considered resolved when the file...
Definition Types.h:9641
std::string fileHash
Base64-encoded hash of the file with the front side of the document.
Definition Types.h:9658
std::string message
Error message.
Definition Types.h:9662
std::shared_ptr< PassportElementErrorFrontSide > Ptr
Definition Types.h:9642
static TGBOT_API const std::string SOURCE
Definition Types.h:9644
std::string source
Error source, must be front_side.
Definition Types.h:9649
std::string type
The section of the user's Telegram Passport which has the issue, one of “passport”,...
Definition Types.h:9654
This object represents an error in the Telegram Passport element which was submitted that should be r...
Definition Types.h:9520
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
Definition Types.h:9529
std::shared_ptr< PassportElementError > Ptr
Definition Types.h:9521
Represents an issue with the reverse side of a document. The error is considered resolved when the fi...
Definition Types.h:9673
std::string source
Error source, must be reverse_side.
Definition Types.h:9681
std::shared_ptr< PassportElementErrorReverseSide > Ptr
Definition Types.h:9674
static TGBOT_API const std::string SOURCE
Definition Types.h:9676
std::string message
Error message.
Definition Types.h:9694
std::string type
The section of the user's Telegram Passport which has the issue, one of “driver_license”,...
Definition Types.h:9686
std::string fileHash
Base64-encoded hash of the file with the reverse side of the document.
Definition Types.h:9690
Represents an issue with the selfie with a document. The error is considered resolved when the file w...
Definition Types.h:9705
std::string fileHash
Base64-encoded hash of the file with the selfie.
Definition Types.h:9722
static TGBOT_API const std::string SOURCE
Definition Types.h:9708
std::shared_ptr< PassportElementErrorSelfie > Ptr
Definition Types.h:9706
std::string type
The section of the user's Telegram Passport which has the issue, one of “passport”,...
Definition Types.h:9718
std::string source
Error source, must be selfie.
Definition Types.h:9713
std::string message
Error message.
Definition Types.h:9726
Represents an issue with one of the files that constitute the translation of a document....
Definition Types.h:9737
std::string source
Error source, must be translation_file.
Definition Types.h:9745
std::string fileHash
Base64-encoded file hash.
Definition Types.h:9755
std::shared_ptr< PassportElementErrorTranslationFile > Ptr
Definition Types.h:9738
std::string message
Error message.
Definition Types.h:9759
static TGBOT_API const std::string SOURCE
Definition Types.h:9740
std::string type
Type of element of the user's Telegram Passport which has the issue, one of “passport”,...
Definition Types.h:9751
Represents an issue with the translated version of a document. The error is considered resolved when ...
Definition Types.h:9770
static TGBOT_API const std::string SOURCE
Definition Types.h:9773
std::vector< std::string > fileHashes
List of base64-encoded file hashes.
Definition Types.h:9788
std::shared_ptr< PassportElementErrorTranslationFiles > Ptr
Definition Types.h:9771
std::string message
Error message.
Definition Types.h:9792
std::string source
Error source, must be translation_files.
Definition Types.h:9778
std::string type
Type of element of the user's Telegram Passport which has the issue, one of “passport”,...
Definition Types.h:9784
Represents an issue in an unspecified place. The error is considered resolved when new data is added.
Definition Types.h:9803
std::string elementHash
Base64-encoded element hash.
Definition Types.h:9819
std::string message
Error message.
Definition Types.h:9823
static TGBOT_API const std::string SOURCE
Definition Types.h:9806
std::string source
Error source, must be unspecified.
Definition Types.h:9811
std::shared_ptr< PassportElementErrorUnspecified > Ptr
Definition Types.h:9804
std::string type
Type of element of the user's Telegram Passport which has the issue.
Definition Types.h:9815
This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files ar...
Definition Types.h:9834
std::int32_t fileDate
Unix time when the file was uploaded.
Definition Types.h:9853
std::int32_t fileSize
File size in bytes.
Definition Types.h:9849
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:9840
std::shared_ptr< PassportFile > Ptr
Definition Types.h:9835
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:9845
This object represents one size of a photo or a file / sticker thumbnail.
Definition Types.h:9863
std::int32_t width
Photo width.
Definition Types.h:9878
std::int32_t height
Photo height.
Definition Types.h:9882
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:9874
std::optional< std::int32_t > fileSize
Optional. File size in bytes.
Definition Types.h:9886
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:9869
std::shared_ptr< PhotoSize > Ptr
Definition Types.h:9864
Arguments for Api::pinChatMessage.
Definition Types.h:16928
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:16933
bool disableNotification
Pass True if it is not necessary to send a notification to all chat members about the new pinned mess...
Definition Types.h:16951
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be pinned.
Definition Types.h:16944
std::int32_t messageId
Identifier of a message to pin.
Definition Types.h:16938
This object represents an answer of a user in a non-anonymous poll.
Definition Types.h:10001
std::shared_ptr< User > user
Optional. The user that changed the answer to the poll, if the voter isn't anonymous.
Definition Types.h:10015
std::string pollId
Unique poll identifier.
Definition Types.h:10007
std::shared_ptr< Chat > voterChat
Optional. The chat that changed the answer to the poll, if the voter is anonymous.
Definition Types.h:10011
std::vector< std::int32_t > optionIds
0-based identifiers of chosen answer options. May be empty if the vote was retracted.
Definition Types.h:10019
std::vector< std::string > optionPersistentIds
Persistent identifiers of the chosen answer options. May be empty if the vote was retracted.
Definition Types.h:10024
std::shared_ptr< PollAnswer > Ptr
Definition Types.h:10002
This object contains information about a poll.
Definition Types.h:9896
bool isAnonymous
True, if the poll is anonymous.
Definition Types.h:9927
std::optional< std::int32_t > closeDate
Optional. Point in time (Unix timestamp) when the poll will be automatically closed.
Definition Types.h:9978
bool isClosed
True, if the poll is closed.
Definition Types.h:9923
std::optional< std::vector< std::shared_ptr< MessageEntity > > > descriptionEntities
Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the description.
Definition Types.h:9987
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...
Definition Types.h:9961
std::vector< std::shared_ptr< PollOption > > options
List of poll options.
Definition Types.h:9915
std::optional< std::string > description
Optional. Description of the poll; for polls inside the Message object only.
Definition Types.h:9982
bool membersOnly
True if voting is limited to users who have been members of the chat where the poll was originally se...
Definition Types.h:9944
bool allowsMultipleAnswers
True, if the poll allows multiple answers.
Definition Types.h:9935
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...
Definition Types.h:9956
std::shared_ptr< PollMedia > explanationMedia
Optional. Media added to the quiz explanation.
Definition Types.h:9970
std::shared_ptr< PollMedia > media
Optional. Media added to the poll description; for polls inside the Message object only.
Definition Types.h:9991
std::optional< std::int32_t > openPeriod
Optional. Amount of time in seconds the poll will be active after creation.
Definition Types.h:9974
std::optional< std::vector< std::shared_ptr< MessageEntity > > > explanationEntities
Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation.
Definition Types.h:9966
bool allowsRevoting
True, if the poll allows to change the chosen answer options.
Definition Types.h:9939
std::optional< std::vector< std::shared_ptr< MessageEntity > > > questionEntities
Optional. Special entities that appear in the question. Currently, only custom emoji entities are all...
Definition Types.h:9911
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...
Definition Types.h:9950
std::string type
Poll type, currently can be “regular” or “quiz”
Definition Types.h:9931
std::shared_ptr< Poll > Ptr
Definition Types.h:9897
std::string question
Poll question, 1-300 characters.
Definition Types.h:9906
std::int32_t totalVoterCount
Total number of users that voted in the poll.
Definition Types.h:9919
At most one of the optional fields can be present in any given object.
Definition Types.h:10034
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Media is a photo, available sizes of the photo.
Definition Types.h:10066
std::shared_ptr< Location > location
Optional. Media is a shared location, information about the location.
Definition Types.h:10062
std::shared_ptr< PollMedia > Ptr
Definition Types.h:10035
std::shared_ptr< Animation > animation
Optional. Media is an animation, information about the animation.
Definition Types.h:10040
std::shared_ptr< Venue > venue
Optional. Media is a venue, information about the venue.
Definition Types.h:10075
std::shared_ptr< Link > link
Optional. The HTTP link attached to the poll option.
Definition Types.h:10054
std::shared_ptr< Document > document
Optional. Media is a general file, information about the file; currently, can't be received in a poll...
Definition Types.h:10050
std::shared_ptr< Sticker > sticker
Optional. Media is a sticker, information about the sticker; currently, for poll options only.
Definition Types.h:10071
std::shared_ptr< LivePhoto > livePhoto
Optional. Media is a live photo, information about the live photo.
Definition Types.h:10058
std::shared_ptr< Audio > audio
Optional. Media is an audio file, information about the file; currently, can't be received in a poll ...
Definition Types.h:10045
std::shared_ptr< Video > video
Optional. Media is a video, information about the video.
Definition Types.h:10079
Describes a service message about an option added to a poll.
Definition Types.h:10137
std::optional< std::vector< std::shared_ptr< MessageEntity > > > optionTextEntities
Optional. Special entities that appear in the option_text.
Definition Types.h:10157
std::string optionPersistentId
Unique identifier of the added option.
Definition Types.h:10149
std::shared_ptr< MaybeInaccessibleMessage > pollMessage
Optional. Message containing the poll to which the option was added, if known. Note that the Message ...
Definition Types.h:10145
std::string optionText
Option text.
Definition Types.h:10153
std::shared_ptr< PollOptionAdded > Ptr
Definition Types.h:10138
Describes a service message about an option deleted from a poll.
Definition Types.h:10167
std::optional< std::vector< std::shared_ptr< MessageEntity > > > optionTextEntities
Optional. Special entities that appear in the option_text.
Definition Types.h:10187
std::shared_ptr< MaybeInaccessibleMessage > pollMessage
Optional. Message containing the poll from which the option was deleted, if known....
Definition Types.h:10175
std::string optionText
Option text.
Definition Types.h:10183
std::shared_ptr< PollOptionDeleted > Ptr
Definition Types.h:10168
std::string optionPersistentId
Unique identifier of the deleted option.
Definition Types.h:10179
This object contains information about one answer option in a poll.
Definition Types.h:10089
std::string text
Option text, 1-100 characters.
Definition Types.h:10099
std::optional< std::int32_t > additionDate
Optional. Point in time (Unix timestamp) when the option was added; omitted if the option existed in ...
Definition Types.h:10127
std::string persistentId
Unique identifier of the option, persistent on option addition and deletion.
Definition Types.h:10095
std::shared_ptr< PollOption > Ptr
Definition Types.h:10090
std::shared_ptr< PollMedia > media
Optional. Media added to the poll option.
Definition Types.h:10108
std::optional< std::vector< std::shared_ptr< MessageEntity > > > textEntities
Optional. Special entities that appear in the option text. Currently, only custom emoji entities are ...
Definition Types.h:10104
std::int32_t voterCount
Number of users who voted for this option; may be 0 if unknown.
Definition Types.h:10112
std::shared_ptr< Chat > addedByChat
Optional. Chat that added the option; omitted if the option wasn't added by a chat after poll creatio...
Definition Types.h:10122
std::shared_ptr< User > addedByUser
Optional. User who added the option; omitted if the option wasn't added by a user after poll creation...
Definition Types.h:10117
Arguments for Api::postStory.
Definition Types.h:16958
std::vector< std::shared_ptr< StoryArea > > areas
A JSON-serialized list of clickable areas to be shown on the story.
Definition Types.h:16978
bool protectContent
Pass True if the content of the story must be protected from forwarding and screenshotting.
Definition Types.h:17006
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:16989
std::string caption
Caption of the story, 0-2048 characters after entities parsing.
Definition Types.h:16983
bool postToChatPage
Pass True to keep the story accessible after it expires.
Definition Types.h:17000
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:17013
std::shared_ptr< InputStoryContent > content
Content of the story.
Definition Types.h:16973
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:16968
std::int32_t activePeriod
Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600,...
Definition Types.h:16963
std::string parseMode
Mode for parsing entities in the story caption. See formatting options for more details.
Definition Types.h:16995
This object contains information about an incoming pre-checkout query.
Definition Types.h:10197
std::int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
Definition Types.h:10218
std::shared_ptr< PreCheckoutQuery > Ptr
Definition Types.h:10198
std::optional< std::string > shippingOptionId
Optional. Identifier of the shipping option chosen by the user.
Definition Types.h:10226
std::shared_ptr< OrderInfo > orderInfo
Optional. Order information provided by the user.
Definition Types.h:10230
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:10222
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
Definition Types.h:10211
std::shared_ptr< User > from
User who sent the query.
Definition Types.h:10207
Describes an inline message to be sent by a user of a Mini App.
Definition Types.h:10240
std::shared_ptr< PreparedInlineMessage > Ptr
Definition Types.h:10241
std::int32_t expirationDate
Expiration date of the prepared message, in Unix time. Expired prepared messages can no longer be use...
Definition Types.h:10251
Describes a keyboard button to be used by a user of a Mini App.
Definition Types.h:10261
std::shared_ptr< PreparedKeyboardButton > Ptr
Definition Types.h:10262
Arguments for Api::promoteChatMember.
Definition Types.h:17020
bool canManageDirectMessages
Pass True if the administrator can manage direct messages within the channel and decline suggested po...
Definition Types.h:17125
bool canInviteUsers
Pass True if the administrator can invite new users to the chat.
Definition Types.h:17058
bool canRestrictMembers
Pass True if the administrator can restrict, ban or unban chat members, or access supergroup statisti...
Definition Types.h:17096
bool canPromoteMembers
Pass True if the administrator can add new administrators with a subset of their own privileges or de...
Definition Types.h:17071
bool canDeleteMessages
Pass True if the administrator can delete messages of other users.
Definition Types.h:17053
bool canChangeInfo
Pass True if the administrator can change chat title, photo and other settings.
Definition Types.h:17036
bool canPostStories
Pass True if the administrator can post stories to the chat.
Definition Types.h:17107
bool canSendWelcomeMessages
Pass True if the administrator can manage chat welcome messages or directly send them in the case of ...
Definition Types.h:17137
bool canDeleteStories
Pass True if the administrator can delete stories posted by other users.
Definition Types.h:17119
bool isAnonymous
Pass True if the administrator's presence in the chat is hidden.
Definition Types.h:17076
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:17025
bool canManageTags
Pass True if the administrator can edit the tags of regular members; for groups and supergroups only.
Definition Types.h:17131
bool canPostMessages
Pass True if the administrator can post messages in the channel, approve suggested posts,...
Definition Types.h:17042
bool canEditMessages
Pass True if the administrator can edit messages of other users and can pin messages; for channels on...
Definition Types.h:17048
bool canManageVideoChats
Pass True if the administrator can manage video chats.
Definition Types.h:17089
bool canManageTopics
Pass True if the user is allowed to create, rename, close, and reopen forum topics; for supergroups o...
Definition Types.h:17102
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:17030
bool canManageChat
Pass True if the administrator can access the chat event log, get boost list, see hidden supergroup a...
Definition Types.h:17084
bool canEditStories
Pass True if the administrator can edit stories posted by other users, post stories to the chat page,...
Definition Types.h:17114
bool canPinMessages
Pass True if the administrator can pin messages; for supergroups only.
Definition Types.h:17063
This object represents the content of a service message, sent whenever a user in the chat triggers a ...
Definition Types.h:10278
std::shared_ptr< ProximityAlertTriggered > Ptr
Definition Types.h:10279
std::shared_ptr< User > watcher
User that set the alert.
Definition Types.h:10288
std::shared_ptr< User > traveler
User that triggered the alert.
Definition Types.h:10284
std::int32_t distance
The distance between the users.
Definition Types.h:10292
Represents a reaction added to a message along with the number of times it was added.
Definition Types.h:10302
std::shared_ptr< ReactionType > type
Type of the reaction.
Definition Types.h:10308
std::int32_t totalCount
Number of times the reaction was added.
Definition Types.h:10312
std::shared_ptr< ReactionCount > Ptr
Definition Types.h:10303
The reaction is based on a custom emoji.
Definition Types.h:10338
static TGBOT_API const std::string TYPE
Definition Types.h:10341
std::string customEmojiId
Custom emoji identifier.
Definition Types.h:10350
std::shared_ptr< ReactionTypeCustomEmoji > Ptr
Definition Types.h:10339
std::string type
Type of the reaction, always “custom_emoji”
Definition Types.h:10346
The reaction is based on an emoji.
Definition Types.h:10360
static TGBOT_API const std::string TYPE
Definition Types.h:10363
std::string type
Type of the reaction, always “emoji”
Definition Types.h:10368
std::shared_ptr< ReactionTypeEmoji > Ptr
Definition Types.h:10361
std::string emoji
Reaction emoji. Currently, it can be one of "", "", "", "", "", "", "", "", "", "",...
Definition Types.h:10375
This object describes the type of a reaction. Currently, it can be one of ReactionTypeEmoji ReactionT...
Definition Types.h:10323
std::variant< std::shared_ptr< ReactionTypeEmoji >, std::shared_ptr< ReactionTypeCustomEmoji >, std::shared_ptr< ReactionTypePaid > > value
Definition Types.h:10328
std::shared_ptr< ReactionType > Ptr
Definition Types.h:10324
The reaction is paid.
Definition Types.h:10385
std::string type
Type of the reaction, always “paid”
Definition Types.h:10393
std::shared_ptr< ReactionTypePaid > Ptr
Definition Types.h:10386
static TGBOT_API const std::string TYPE
Definition Types.h:10388
Arguments for Api::readBusinessMessage.
Definition Types.h:17144
std::string businessConnectionId
Unique identifier of the business connection on behalf of which to read the message.
Definition Types.h:17155
std::int32_t messageId
Unique identifier of the message to mark as read.
Definition Types.h:17160
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...
Definition Types.h:17149
Arguments for Api::refundStarPayment.
Definition Types.h:17167
std::string telegramPaymentChargeId
Telegram payment identifier.
Definition Types.h:17171
std::int64_t userId
Identifier of the user whose payment will be refunded.
Definition Types.h:17176
This object contains basic information about a refunded payment.
Definition Types.h:10403
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:10421
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently,...
Definition Types.h:10410
std::int32_t totalAmount
Total refunded price in the smallest units of the currency (integer, not float/double)....
Definition Types.h:10417
std::optional< std::string > providerPaymentChargeId
Optional. Provider payment identifier.
Definition Types.h:10429
std::string telegramPaymentChargeId
Telegram payment identifier.
Definition Types.h:10425
std::shared_ptr< RefundedPayment > Ptr
Definition Types.h:10404
Arguments for Api::removeBusinessAccountProfilePhoto.
Definition Types.h:17183
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:17187
bool isPublic
Pass True to remove the public photo, which is visible even if the main photo is hidden by the busine...
Definition Types.h:17195
Arguments for Api::removeChatVerification.
Definition Types.h:17202
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...
Definition Types.h:17207
Arguments for Api::removeUserVerification.
Definition Types.h:17214
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:17218
Arguments for Api::reopenForumTopic.
Definition Types.h:17225
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:17230
std::int32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
Definition Types.h:17235
Arguments for Api::reopenGeneralForumTopic.
Definition Types.h:17242
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:17247
Arguments for Api::replaceManagedBotToken.
Definition Types.h:17254
std::int64_t userId
User identifier of the managed bot whose token will be replaced.
Definition Types.h:17258
Arguments for Api::replaceStickerInSet.
Definition Types.h:17265
std::string name
Sticker set name.
Definition Types.h:17274
std::string oldSticker
File identifier of the replaced sticker.
Definition Types.h:17279
std::int64_t userId
User identifier of the sticker set owner.
Definition Types.h:17269
std::shared_ptr< InputSticker > sticker
A JSON-serialized object with information about the added sticker. If exactly the same sticker had al...
Definition Types.h:17286
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:17293
This object represents a custom keyboard with reply options (see Introduction to bots for details and...
Definition Types.h:10441
std::optional< std::string > inputFieldPlaceholder
Optional. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters...
Definition Types.h:10471
std::optional< bool > forceReply
Optional. Pass True if the reply interface must be shown to the user, as if they had manually selecte...
Definition Types.h:10485
std::shared_ptr< ReplyKeyboardMarkup > Ptr
Definition Types.h:10442
std::vector< std::vector< std::shared_ptr< KeyboardButton > > > keyboard
Array of button rows, each represented by an Array of KeyboardButton objects.
Definition Types.h:10447
std::optional< bool > selective
Optional. Use this parameter if you want to show the keyboard to specific users only....
Definition Types.h:10480
std::optional< bool > isPersistent
Optional. Requests clients to always show the keyboard when the regular keyboard is hidden....
Definition Types.h:10453
std::optional< bool > resizeKeyboard
Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g....
Definition Types.h:10459
std::optional< bool > oneTimeKeyboard
Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be...
Definition Types.h:10466
Upon receiving a message with this object, Telegram clients will remove the current custom keyboard a...
Definition Types.h:10499
bool removeKeyboard
Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you...
Definition Types.h:10507
std::optional< bool > selective
Optional. Use this parameter if you want to remove the keyboard for specific users only....
Definition Types.h:10516
std::shared_ptr< ReplyKeyboardRemove > Ptr
Definition Types.h:10500
Describes reply parameters for the message that is being sent.
Definition Types.h:10526
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...
Definition Types.h:10540
std::optional< std::string > pollOptionId
Optional. Persistent identifier of the specific poll option to be replied to.
Definition Types.h:10583
std::optional< std::int32_t > quotePosition
Optional. Position of the quote in the original message in UTF-16 code units.
Definition Types.h:10575
std::optional< std::string > quote
Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing....
Definition Types.h:10561
std::optional< bool > allowSendingWithoutReply
Optional. Pass True if the message should be sent even if the specified message to be replied to is n...
Definition Types.h:10553
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...
Definition Types.h:10571
std::optional< std::string > quoteParseMode
Optional. Mode for parsing entities in the quote. See formatting options for more details.
Definition Types.h:10566
std::optional< std::int32_t > checklistTaskId
Optional. Identifier of the specific checklist task to be replied to.
Definition Types.h:10579
std::optional< std::int32_t > ephemeralMessageId
Optional. Identifier of the incoming ephemeral message that will be replied to in the current chat....
Definition Types.h:10547
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_...
Definition Types.h:10533
std::shared_ptr< ReplyParameters > Ptr
Definition Types.h:10527
Arguments for Api::repostStory.
Definition Types.h:17300
std::int32_t fromStoryId
Unique identifier of the story that should be reposted.
Definition Types.h:17321
bool postToChatPage
Pass True to keep the story accessible after it expires.
Definition Types.h:17326
std::int32_t activePeriod
Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600,...
Definition Types.h:17305
bool protectContent
Pass True if the content of the story must be protected from forwarding and screenshotting.
Definition Types.h:17332
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:17310
std::variant< std::int64_t, std::string > fromChatId
Unique identifier of the chat which posted the story that should be reposted.
Definition Types.h:17316
Describes why a request was unsuccessful.
Definition Types.h:10593
std::optional< std::int64_t > migrateToChatId
Optional. The group has been migrated to a supergroup with the specified identifier....
Definition Types.h:10603
std::optional< std::int32_t > retryAfter
Optional. In case of exceeding flood control, the number of seconds left to wait before the request c...
Definition Types.h:10608
std::shared_ptr< ResponseParameters > Ptr
Definition Types.h:10594
Arguments for Api::restrictChatMember.
Definition Types.h:17339
std::int32_t untilDate
Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 36...
Definition Types.h:17361
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:17349
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:17344
bool useIndependentChatPermissions
Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_a...
Definition Types.h:17371
std::shared_ptr< ChatPermissions > permissions
A JSON-serialized object for new user permissions.
Definition Types.h:17354
The withdrawal failed and the transaction was refunded.
Definition Types.h:10635
std::shared_ptr< RevenueWithdrawalStateFailed > Ptr
Definition Types.h:10636
static TGBOT_API const std::string TYPE
Definition Types.h:10638
std::string type
Type of the state, always “failed”
Definition Types.h:10643
This object describes the state of a revenue withdrawal operation. Currently, it can be one of Revenu...
Definition Types.h:10620
std::variant< std::shared_ptr< RevenueWithdrawalStatePending >, std::shared_ptr< RevenueWithdrawalStateSucceeded >, std::shared_ptr< RevenueWithdrawalStateFailed > > value
Definition Types.h:10625
std::shared_ptr< RevenueWithdrawalState > Ptr
Definition Types.h:10621
The withdrawal is in progress.
Definition Types.h:10653
std::shared_ptr< RevenueWithdrawalStatePending > Ptr
Definition Types.h:10654
static TGBOT_API const std::string TYPE
Definition Types.h:10656
std::string type
Type of the state, always “pending”
Definition Types.h:10661
The withdrawal succeeded.
Definition Types.h:10671
std::string type
Type of the state, always “succeeded”
Definition Types.h:10679
std::shared_ptr< RevenueWithdrawalStateSucceeded > Ptr
Definition Types.h:10672
static TGBOT_API const std::string TYPE
Definition Types.h:10674
std::int32_t date
Date the withdrawal was completed in Unix time.
Definition Types.h:10683
std::string url
An HTTPS URL that can be used to see transaction details.
Definition Types.h:10687
A block with an anchor, corresponding to the HTML tag with the attribute name.
Definition Types.h:10727
static TGBOT_API const std::string TYPE
Definition Types.h:10730
std::shared_ptr< RichBlockAnchor > Ptr
Definition Types.h:10728
std::string name
The name of the anchor.
Definition Types.h:10739
std::string type
Type of the block, always “anchor”
Definition Types.h:10735
A block with an animation, corresponding to the HTML tag <video>.
Definition Types.h:10749
std::string type
Type of the block, always “animation”
Definition Types.h:10757
std::optional< bool > hasSpoiler
Optional. True, if the media preview is covered by a spoiler animation.
Definition Types.h:10765
std::shared_ptr< RichBlockAnimation > Ptr
Definition Types.h:10750
static TGBOT_API const std::string TYPE
Definition Types.h:10752
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:10769
std::shared_ptr< Animation > animation
The animation.
Definition Types.h:10761
A block with a music file, corresponding to the HTML tag <audio>.
Definition Types.h:10779
std::shared_ptr< RichBlockAudio > Ptr
Definition Types.h:10780
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:10795
std::string type
Type of the block, always “audio”
Definition Types.h:10787
static TGBOT_API const std::string TYPE
Definition Types.h:10782
std::shared_ptr< Audio > audio
The audio.
Definition Types.h:10791
A block quotation, corresponding to the HTML tag.
Definition Types.h:10805
std::vector< std::shared_ptr< RichBlock > > blocks
Content of the block.
Definition Types.h:10817
static TGBOT_API const std::string TYPE
Definition Types.h:10808
std::string type
Type of the block, always “blockquote”
Definition Types.h:10813
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:10821
std::shared_ptr< RichBlockBlockQuotation > Ptr
Definition Types.h:10806
A block containing a list of buttons that are shown in one row, corresponding to the custom HTML tag ...
Definition Types.h:10832
static TGBOT_API const std::string TYPE
Definition Types.h:10835
std::shared_ptr< RichBlockButtons > Ptr
Definition Types.h:10833
std::vector< std::shared_ptr< RichMessageButton > > buttons
The buttons.
Definition Types.h:10844
std::string type
Type of the block, always “buttons”
Definition Types.h:10840
std::optional< std::string > align
Optional. Horizontal alignment of the buttons. Currently, must be one of “left”, “center”,...
Definition Types.h:10849
Caption of a rich formatted block.
Definition Types.h:10859
std::shared_ptr< RichText > text
Block caption.
Definition Types.h:10865
std::shared_ptr< RichBlockCaption > Ptr
Definition Types.h:10860
std::shared_ptr< RichText > credit
Optional. Block credit which corresponds to the HTML tag .
Definition Types.h:10869
A collage, corresponding to the custom HTML tag <tg-collage>.
Definition Types.h:10879
std::vector< std::shared_ptr< RichBlock > > blocks
Elements of the collage.
Definition Types.h:10891
std::string type
Type of the block, always “collage”
Definition Types.h:10887
static TGBOT_API const std::string TYPE
Definition Types.h:10882
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:10895
std::shared_ptr< RichBlockCollage > Ptr
Definition Types.h:10880
An expandable block for details disclosure, corresponding to the HTML tag.
Definition Types.h:10905
std::shared_ptr< RichBlockDetails > Ptr
Definition Types.h:10906
std::string type
Type of the block, always “details”
Definition Types.h:10913
std::shared_ptr< RichText > summary
Always shown summary of the block.
Definition Types.h:10917
std::vector< std::shared_ptr< RichBlock > > blocks
Content of the block.
Definition Types.h:10921
static TGBOT_API const std::string TYPE
Definition Types.h:10908
std::optional< bool > isOpen
Optional. True, if the content of the block is visible by default.
Definition Types.h:10925
A divider, corresponding to the HTML tag .
Definition Types.h:10935
std::string type
Type of the block, always “divider”
Definition Types.h:10943
static TGBOT_API const std::string TYPE
Definition Types.h:10938
std::shared_ptr< RichBlockDivider > Ptr
Definition Types.h:10936
A block with a general file, corresponding to the custom HTML tag <tg-document>.
Definition Types.h:10953
std::shared_ptr< Document > document
The document.
Definition Types.h:10965
std::shared_ptr< RichBlockDocument > Ptr
Definition Types.h:10954
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:10969
std::string type
Type of the block, always “document”
Definition Types.h:10961
static TGBOT_API const std::string TYPE
Definition Types.h:10956
A block quotation, corresponding to the HTML tag.
Definition Types.h:10980
std::shared_ptr< RichBlockExpandableBlockQuotation > Ptr
Definition Types.h:10981
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:10996
static TGBOT_API const std::string TYPE
Definition Types.h:10983
std::shared_ptr< RichText > text
Content of the block.
Definition Types.h:10992
std::string type
Type of the block, always “expandable_blockquote”
Definition Types.h:10988
This object represents a block in a rich formatted message. Currently, it can be any of the following...
Definition Types.h:10703
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
Definition Types.h:10717
std::shared_ptr< RichBlock > Ptr
Definition Types.h:10704
A list of blocks, corresponding to the HTML tag.
Definition Types.h:11028
static TGBOT_API const std::string TYPE
Definition Types.h:11031
std::vector< std::shared_ptr< RichBlockListItem > > items
Items of the list.
Definition Types.h:11040
std::string type
Type of the block, always “list”
Definition Types.h:11036
std::shared_ptr< RichBlockList > Ptr
Definition Types.h:11029
An item of a list.
Definition Types.h:11050
std::string label
Label of the item.
Definition Types.h:11056
std::shared_ptr< RichBlockListItem > Ptr
Definition Types.h:11051
std::optional< bool > hasCheckbox
Optional. True, if the item has a checkbox.
Definition Types.h:11064
std::optional< std::string > type
Optional. For ordered lists, the type of the item label; must be one of “a” for lowercase letters,...
Definition Types.h:11078
std::vector< std::shared_ptr< RichBlock > > blocks
The content of the item.
Definition Types.h:11060
std::optional< bool > isChecked
Optional. True, if the item has a checked checkbox.
Definition Types.h:11068
std::optional< std::int32_t > value
Optional. For ordered lists, the numeric value of the item label.
Definition Types.h:11072
A block with a map, corresponding to the custom HTML tag <tg-map>.
Definition Types.h:11088
std::shared_ptr< Location > location
Location of the center of the map.
Definition Types.h:11100
static TGBOT_API const std::string TYPE
Definition Types.h:11091
std::shared_ptr< RichBlockMap > Ptr
Definition Types.h:11089
std::int32_t zoom
Map zoom level.
Definition Types.h:11104
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11116
std::int32_t width
Expected width of the map.
Definition Types.h:11108
std::string type
Type of the block, always “map”
Definition Types.h:11096
std::int32_t height
Expected height of the map.
Definition Types.h:11112
A block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag <tg-math...
Definition Types.h:11127
std::string type
Type of the block, always “mathematical_expression”
Definition Types.h:11135
std::shared_ptr< RichBlockMathematicalExpression > Ptr
Definition Types.h:11128
static TGBOT_API const std::string TYPE
Definition Types.h:11130
std::string expression
The mathematical expression in LaTeX format.
Definition Types.h:11139
A text paragraph, corresponding to the HTML tag.
Definition Types.h:11149
std::shared_ptr< RichBlockParagraph > Ptr
Definition Types.h:11150
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:11161
static TGBOT_API const std::string TYPE
Definition Types.h:11152
std::string type
Type of the block, always “paragraph”
Definition Types.h:11157
A block with a photo, corresponding to the HTML tag.
Definition Types.h:11171
std::optional< bool > hasSpoiler
Optional. True, if the media preview is covered by a spoiler animation.
Definition Types.h:11187
static TGBOT_API const std::string TYPE
Definition Types.h:11174
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11191
std::shared_ptr< RichBlockPhoto > Ptr
Definition Types.h:11172
std::string type
Type of the block, always “photo”
Definition Types.h:11179
std::vector< std::shared_ptr< PhotoSize > > photo
Available sizes of the photo.
Definition Types.h:11183
A preformatted text block, corresponding to the nested HTML tags.
Definition Types.h:11201
static TGBOT_API const std::string TYPE
Definition Types.h:11204
std::shared_ptr< RichBlockPreformatted > Ptr
Definition Types.h:11202
std::string type
Type of the block, always “pre”
Definition Types.h:11209
std::optional< std::string > language
Optional. The programming language of the text.
Definition Types.h:11217
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:11213
A quotation with centered text, loosely corresponding to the HTML tag <aside>.
Definition Types.h:11227
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:11239
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:11243
std::shared_ptr< RichBlockPullQuotation > Ptr
Definition Types.h:11228
static TGBOT_API const std::string TYPE
Definition Types.h:11230
std::string type
Type of the block, always “pullquote”
Definition Types.h:11235
A section heading, corresponding to the HTML tags.
Definition Types.h:11253
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:11265
std::shared_ptr< RichBlockSectionHeading > Ptr
Definition Types.h:11254
static TGBOT_API const std::string TYPE
Definition Types.h:11256
std::string type
Type of the block, always “heading”
Definition Types.h:11261
std::int32_t size
Relative size of the text font; 1-6, 1 is the largest, 6 is the smallest.
Definition Types.h:11269
A slideshow, corresponding to the custom HTML tag <tg-slideshow>.
Definition Types.h:11279
std::vector< std::shared_ptr< RichBlock > > blocks
Elements of the slideshow.
Definition Types.h:11291
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11295
std::string type
Type of the block, always “slideshow”
Definition Types.h:11287
static TGBOT_API const std::string TYPE
Definition Types.h:11282
std::shared_ptr< RichBlockSlideshow > Ptr
Definition Types.h:11280
Cell in a table.
Definition Types.h:11343
std::string align
Horizontal cell content alignment. Currently, must be one of “left”, “center”, or “right”.
Definition Types.h:11366
std::optional< std::int32_t > colspan
Optional. The number of columns the cell spans if it is bigger than 1.
Definition Types.h:11357
std::shared_ptr< RichBlockTableCell > Ptr
Definition Types.h:11344
std::optional< bool > isHeader
Optional. True, if the cell is a header cell.
Definition Types.h:11353
std::string valign
Vertical cell content alignment. Currently, must be one of “top”, “middle”, or “bottom”.
Definition Types.h:11370
std::optional< std::int32_t > rowspan
Optional. The number of rows the cell spans if it is bigger than 1.
Definition Types.h:11361
std::shared_ptr< RichText > text
Optional. Text in the cell. If omitted, then the cell is invisible.
Definition Types.h:11349
A table, corresponding to the HTML tag.
Definition Types.h:11305
std::vector< std::vector< std::shared_ptr< RichBlockTableCell > > > cells
Cells of the table.
Definition Types.h:11317
std::shared_ptr< RichText > caption
Optional. Caption of the table.
Definition Types.h:11333
std::string type
Type of the block, always “table”
Definition Types.h:11313
std::optional< bool > isStriped
Optional. True, if the table is striped.
Definition Types.h:11325
std::optional< bool > isCompact
Optional. True, if table cells have smaller indents.
Definition Types.h:11329
static TGBOT_API const std::string TYPE
Definition Types.h:11308
std::shared_ptr< RichBlockTable > Ptr
Definition Types.h:11306
std::optional< bool > isBordered
Optional. True, if the table has borders.
Definition Types.h:11321
A block with a “Thinking…” placeholder, corresponding to the custom HTML tag <tg-thinking>....
Definition Types.h:11383
std::shared_ptr< RichBlockThinking > Ptr
Definition Types.h:11384
std::string type
Type of the block, always “thinking”
Definition Types.h:11391
std::shared_ptr< RichText > text
Text of the block. See https://t.me/addemoji/AIActions for examples of custom emoji that are recommen...
Definition Types.h:11396
static TGBOT_API const std::string TYPE
Definition Types.h:11386
A block with a video, corresponding to the HTML tag <video>.
Definition Types.h:11406
std::shared_ptr< RichBlockVideo > Ptr
Definition Types.h:11407
static TGBOT_API const std::string TYPE
Definition Types.h:11409
std::string type
Type of the block, always “video”
Definition Types.h:11414
std::optional< bool > hasSpoiler
Optional. True, if the media preview is covered by a spoiler animation.
Definition Types.h:11422
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11426
std::shared_ptr< Video > video
The video.
Definition Types.h:11418
A block with a voice note, corresponding to the HTML tag <audio>.
Definition Types.h:11436
static TGBOT_API const std::string TYPE
Definition Types.h:11439
std::shared_ptr< RichBlockVoiceNote > Ptr
Definition Types.h:11437
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11452
std::shared_ptr< Voice > voiceNote
The voice note.
Definition Types.h:11448
std::string type
Type of the block, always “voice_note”
Definition Types.h:11444
This object represents a button in a RichMessage. Exactly one of the fields other than text and style...
Definition Types.h:11483
std::shared_ptr< LoginUrl > loginUrl
Optional. An HTTPS URL used to automatically authorize the user. Can be used as a replacement for the...
Definition Types.h:11520
std::optional< std::string > url
Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?...
Definition Types.h:11503
std::shared_ptr< SwitchInlineQueryChosenChat > switchInlineQueryChosenChat
Optional. If set, pressing the button will prompt the user to select one of their chats of the specif...
Definition Types.h:11542
std::optional< std::string > callbackData
Optional. Data to be sent in a callback query to the bot when the button is pressed,...
Definition Types.h:11508
std::shared_ptr< RichMessageButton > Ptr
Definition Types.h:11484
std::shared_ptr< CopyTextButton > copyText
Optional. A button that copies the specified text to the clipboard.
Definition Types.h:11546
std::optional< std::string > switchInlineQueryCurrentChat
Optional. If set, pressing the button will insert the bot's username and the specified inline query i...
Definition Types.h:11535
std::optional< std::string > switchInlineQuery
Optional. If set, pressing the button will prompt the user to select one of their chats,...
Definition Types.h:11528
std::shared_ptr< RichText > text
Text of the button. May contain only plain text, RichTextCustomEmoji and RichTextDateTime entities.
Definition Types.h:11490
std::shared_ptr< WebAppInfo > webApp
Optional. Description of the Web App that will be launched when the user presses the button....
Definition Types.h:11515
std::shared_ptr< DisabledButton > disabled
Optional. If set, then the button is disabled and does nothing.
Definition Types.h:11550
std::optional< std::string > style
Optional. Style of the button. Must be one of “danger”, “success”, “primary”, or “link” (the button i...
Definition Types.h:11497
Rich formatted message.
Definition Types.h:11462
std::shared_ptr< RichMessage > Ptr
Definition Types.h:11463
std::optional< bool > isRtl
Optional. True, if the rich message must be shown right-to-left.
Definition Types.h:11472
std::vector< std::shared_ptr< RichBlock > > blocks
Content of the message.
Definition Types.h:11468
std::string type
Type of the rich text, always “anchor”
Definition Types.h:11598
std::shared_ptr< RichTextAnchor > Ptr
Definition Types.h:11591
static TGBOT_API const std::string TYPE
Definition Types.h:11593
std::string name
The name of the anchor.
Definition Types.h:11602
A text with a bank card number.
Definition Types.h:11639
std::shared_ptr< RichTextBankCardNumber > Ptr
Definition Types.h:11640
static TGBOT_API const std::string TYPE
Definition Types.h:11642
std::shared_ptr< RichText > text
The text.
Definition Types.h:11651
std::string bankCardNumber
The bank card number.
Definition Types.h:11655
std::string type
Type of the rich text, always “bank_card_number”
Definition Types.h:11647
A bold text.
Definition Types.h:11665
std::shared_ptr< RichTextBold > Ptr
Definition Types.h:11666
static TGBOT_API const std::string TYPE
Definition Types.h:11668
std::shared_ptr< RichText > text
The text.
Definition Types.h:11677
std::string type
Type of the rich text, always “bold”
Definition Types.h:11673
static TGBOT_API const std::string TYPE
Definition Types.h:11690
std::string botCommand
The bot command.
Definition Types.h:11703
std::shared_ptr< RichTextBotCommand > Ptr
Definition Types.h:11688
std::string type
Type of the rich text, always “bot_command”
Definition Types.h:11695
std::shared_ptr< RichText > text
The text.
Definition Types.h:11699
static TGBOT_API const std::string TYPE
Definition Types.h:11716
std::shared_ptr< RichTextButton > Ptr
Definition Types.h:11714
std::string type
Type of the rich text, always “button”
Definition Types.h:11721
std::shared_ptr< RichMessageButton > button
The button.
Definition Types.h:11725
static TGBOT_API const std::string TYPE
Definition Types.h:11738
std::string cashtag
The cashtag.
Definition Types.h:11751
std::shared_ptr< RichText > text
The text.
Definition Types.h:11747
std::string type
Type of the rich text, always “cashtag”
Definition Types.h:11743
std::shared_ptr< RichTextCashtag > Ptr
Definition Types.h:11736
A monowidth text.
Definition Types.h:11761
static TGBOT_API const std::string TYPE
Definition Types.h:11764
std::shared_ptr< RichTextCode > Ptr
Definition Types.h:11762
std::string type
Type of the rich text, always “code”
Definition Types.h:11769
std::shared_ptr< RichText > text
The text.
Definition Types.h:11773
A custom emoji.
Definition Types.h:11783
std::string type
Type of the rich text, always “custom_emoji”
Definition Types.h:11791
std::string alternativeText
Alternative emoji for the custom emoji.
Definition Types.h:11800
std::string customEmojiId
Unique identifier of the custom emoji. Use getCustomEmojiStickers to get full information about the s...
Definition Types.h:11796
std::shared_ptr< RichTextCustomEmoji > Ptr
Definition Types.h:11784
static TGBOT_API const std::string TYPE
Definition Types.h:11786
Formatted date and time.
Definition Types.h:11810
static TGBOT_API const std::string TYPE
Definition Types.h:11813
std::string dateTimeFormat
The string that defines the formatting of the date and time. See date-time entity formatting for more...
Definition Types.h:11831
std::shared_ptr< RichTextDateTime > Ptr
Definition Types.h:11811
std::shared_ptr< RichText > text
The text.
Definition Types.h:11822
std::int32_t unixTime
The Unix time associated with the entity.
Definition Types.h:11826
std::string type
Type of the rich text, always “date_time”
Definition Types.h:11818
A text with an email address.
Definition Types.h:11841
std::shared_ptr< RichTextEmailAddress > Ptr
Definition Types.h:11842
std::string emailAddress
The email address.
Definition Types.h:11857
static TGBOT_API const std::string TYPE
Definition Types.h:11844
std::string type
Type of the rich text, always “email_address”
Definition Types.h:11849
std::shared_ptr< RichText > text
The text.
Definition Types.h:11853
static TGBOT_API const std::string TYPE
Definition Types.h:11870
std::shared_ptr< RichTextHashtag > Ptr
Definition Types.h:11868
std::string type
Type of the rich text, always “hashtag”
Definition Types.h:11875
std::string hashtag
The hashtag.
Definition Types.h:11883
std::shared_ptr< RichText > text
The text.
Definition Types.h:11879
This object represents a rich formatted text. Currently, it can be either a String for plain text,...
Definition Types.h:11566
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
Definition Types.h:11580
std::shared_ptr< RichText > Ptr
Definition Types.h:11567
An italicized text.
Definition Types.h:11893
std::string type
Type of the rich text, always “italic”
Definition Types.h:11901
static TGBOT_API const std::string TYPE
Definition Types.h:11896
std::shared_ptr< RichText > text
The text.
Definition Types.h:11905
std::shared_ptr< RichTextItalic > Ptr
Definition Types.h:11894
A marked text.
Definition Types.h:11915
static TGBOT_API const std::string TYPE
Definition Types.h:11918
std::shared_ptr< RichText > text
The text.
Definition Types.h:11927
std::string type
Type of the rich text, always “marked”
Definition Types.h:11923
std::shared_ptr< RichTextMarked > Ptr
Definition Types.h:11916
A mathematical expression.
Definition Types.h:11937
std::string type
Type of the rich text, always “mathematical_expression”
Definition Types.h:11945
std::string expression
The expression in LaTeX format.
Definition Types.h:11949
std::shared_ptr< RichTextMathematicalExpression > Ptr
Definition Types.h:11938
static TGBOT_API const std::string TYPE
Definition Types.h:11940
A mention by a username.
Definition Types.h:11959
static TGBOT_API const std::string TYPE
Definition Types.h:11962
std::shared_ptr< RichTextMention > Ptr
Definition Types.h:11960
std::string username
The username.
Definition Types.h:11975
std::shared_ptr< RichText > text
The text.
Definition Types.h:11971
std::string type
Type of the rich text, always “mention”
Definition Types.h:11967
A text with a phone number.
Definition Types.h:11985
std::shared_ptr< RichText > text
The text.
Definition Types.h:11997
std::shared_ptr< RichTextPhoneNumber > Ptr
Definition Types.h:11986
std::string phoneNumber
The phone number.
Definition Types.h:12001
std::string type
Type of the rich text, always “phone_number”
Definition Types.h:11993
static TGBOT_API const std::string TYPE
Definition Types.h:11988
std::string type
Type of the rich text, always “reference”
Definition Types.h:12019
std::string name
The name of the reference.
Definition Types.h:12027
static TGBOT_API const std::string TYPE
Definition Types.h:12014
std::shared_ptr< RichText > text
Text of the reference.
Definition Types.h:12023
std::shared_ptr< RichTextReference > Ptr
Definition Types.h:12012
A text covered by a spoiler.
Definition Types.h:12063
static TGBOT_API const std::string TYPE
Definition Types.h:12066
std::string type
Type of the rich text, always “spoiler”
Definition Types.h:12071
std::shared_ptr< RichTextSpoiler > Ptr
Definition Types.h:12064
std::shared_ptr< RichText > text
The text.
Definition Types.h:12075
A strikethrough text.
Definition Types.h:12085
static TGBOT_API const std::string TYPE
Definition Types.h:12088
std::string type
Type of the rich text, always “strikethrough”
Definition Types.h:12093
std::shared_ptr< RichText > text
The text.
Definition Types.h:12097
std::shared_ptr< RichTextStrikethrough > Ptr
Definition Types.h:12086
A subscript text.
Definition Types.h:12107
std::string type
Type of the rich text, always “subscript”
Definition Types.h:12115
std::shared_ptr< RichText > text
The text.
Definition Types.h:12119
static TGBOT_API const std::string TYPE
Definition Types.h:12110
std::shared_ptr< RichTextSubscript > Ptr
Definition Types.h:12108
A superscript text.
Definition Types.h:12129
std::shared_ptr< RichText > text
The text.
Definition Types.h:12141
static TGBOT_API const std::string TYPE
Definition Types.h:12132
std::string type
Type of the rich text, always “superscript”
Definition Types.h:12137
std::shared_ptr< RichTextSuperscript > Ptr
Definition Types.h:12130
A mention of a Telegram user by their identifier.
Definition Types.h:12151
static TGBOT_API const std::string TYPE
Definition Types.h:12154
std::string type
Type of the rich text, always “text_mention”
Definition Types.h:12159
std::shared_ptr< RichText > text
The text.
Definition Types.h:12163
std::shared_ptr< RichTextTextMention > Ptr
Definition Types.h:12152
std::shared_ptr< User > user
The mentioned user.
Definition Types.h:12167
An underlined text.
Definition Types.h:12177
std::shared_ptr< RichText > text
The text.
Definition Types.h:12189
std::string type
Type of the rich text, always “underline”
Definition Types.h:12185
std::shared_ptr< RichTextUnderline > Ptr
Definition Types.h:12178
static TGBOT_API const std::string TYPE
Definition Types.h:12180
A text with a link.
Definition Types.h:12199
std::string type
Type of the rich text, always “url”
Definition Types.h:12207
static TGBOT_API const std::string TYPE
Definition Types.h:12202
std::string url
URL of the link.
Definition Types.h:12215
std::shared_ptr< RichText > text
The text.
Definition Types.h:12211
std::shared_ptr< RichTextUrl > Ptr
Definition Types.h:12200
Arguments for Api::savePreparedInlineMessage.
Definition Types.h:17395
bool allowGroupChats
Pass True if the message can be sent to group and supergroup chats.
Definition Types.h:17419
bool allowBotChats
Pass True if the message can be sent to private chats with bots.
Definition Types.h:17409
bool allowUserChats
Pass True if the message can be sent to private chats with users.
Definition Types.h:17424
std::shared_ptr< InlineQueryResult > result
A JSON-serialized object describing the message to be sent.
Definition Types.h:17399
std::int64_t userId
Unique identifier of the target user that can use the prepared message.
Definition Types.h:17404
bool allowChannelChats
Pass True if the message can be sent to channel chats.
Definition Types.h:17414
Arguments for Api::savePreparedKeyboardButton.
Definition Types.h:17431
std::int64_t userId
Unique identifier of the target user that can use the button.
Definition Types.h:17441
std::shared_ptr< KeyboardButton > button
A JSON-serialized object describing the button to be saved. The button must be of the type request_us...
Definition Types.h:17436
Arguments for Api::sendAnimation.
Definition Types.h:17448
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,...
Definition Types.h:17509
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:17598
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:17500
std::int32_t duration
Duration of sent animation in seconds.
Definition Types.h:17467
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:17539
std::int32_t height
Animation height.
Definition Types.h:17477
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:17568
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 ...
Definition Types.h:17462
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:17574
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:17592
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:17521
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...
Definition Types.h:17453
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:17527
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:17579
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:17557
std::string parseMode
Mode for parsing entities in the animation caption. See formatting options for more details.
Definition Types.h:17515
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:17534
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...
Definition Types.h:17489
std::int32_t width
Animation width.
Definition Types.h:17472
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:17550
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
Definition Types.h:17584
std::string caption
Animation caption (may also be used when resending animation by file_id), 0-1024 characters after ent...
Definition Types.h:17495
bool hasSpoiler
Pass True if the animation needs to be covered with a spoiler animation.
Definition Types.h:17544
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:17562
Arguments for Api::sendAudio.
Definition Types.h:17605
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...
Definition Types.h:17650
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:17682
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:17724
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,...
Definition Types.h:17664
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:17707
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...
Definition Types.h:17618
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:17694
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:17743
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:17729
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:17737
std::string caption
Audio caption, 0-1024 characters after entities parsing.
Definition Types.h:17623
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:17689
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:17700
std::string title
Track name.
Definition Types.h:17638
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:17655
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:17676
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:17712
std::string parseMode
Mode for parsing entities in the audio caption. See formatting options for more details.
Definition Types.h:17670
std::string performer
Performer.
Definition Types.h:17633
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:17718
std::int32_t duration
Duration of the audio in seconds.
Definition Types.h:17628
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...
Definition Types.h:17610
Arguments for Api::sendChatAction.
Definition Types.h:17750
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the action will be sent.
Definition Types.h:17778
std::int32_t messageThreadId
Unique identifier for the target message thread or topic of a forum; for supergroups and private chat...
Definition Types.h:17772
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...
Definition Types.h:17756
std::string action
Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for t...
Definition Types.h:17766
Arguments for Api::sendChatJoinRequestWebApp.
Definition Types.h:17785
std::string chatJoinRequestQueryId
Unique identifier of the join request query.
Definition Types.h:17789
std::string webAppUrl
An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps.
Definition Types.h:17795
Arguments for Api::sendChecklist.
Definition Types.h:17802
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:17824
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:17839
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot in the format @username.
Definition Types.h:17807
std::string messageEffectId
Unique identifier of the message effect to be added to the message.
Definition Types.h:17829
std::shared_ptr< ReplyParameters > replyParameters
A JSON-serialized object for description of the message to reply to.
Definition Types.h:17844
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:17834
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:17813
std::shared_ptr< InputChecklist > checklist
A JSON-serialized object for the checklist to send.
Definition Types.h:17818
Arguments for Api::sendContact.
Definition Types.h:17851
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:17957
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:17932
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:17921
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:17914
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:17926
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...
Definition Types.h:17856
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:17882
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:17908
std::string vcard
Additional data about the contact in the form of a vCard, 0-2048 bytes.
Definition Types.h:17876
std::string firstName
Contact's first name.
Definition Types.h:17866
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:17903
std::string lastName
Contact's last name.
Definition Types.h:17871
std::string phoneNumber
Contact's phone number.
Definition Types.h:17861
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:17938
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:17951
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:17943
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:17887
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,...
Definition Types.h:17896
Arguments for Api::sendDice.
Definition Types.h:17964
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:18033
bool protectContent
Protects the contents of the sent message from forwarding.
Definition Types.h:18008
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,...
Definition Types.h:17989
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...
Definition Types.h:17969
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:18027
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:17975
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:18021
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:18014
std::string emoji
Emoji on which the dice throw animation is based. Currently, must be one of “”, “”,...
Definition Types.h:17996
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:18003
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:17980
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:18041
Arguments for Api::sendDocument.
Definition Types.h:18048
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...
Definition Types.h:18053
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:18111
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:18153
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:18159
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:18142
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:18172
std::string parseMode
Mode for parsing entities in the document caption. See formatting options for more details.
Definition Types.h:18099
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:18105
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:18135
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...
Definition Types.h:18073
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,...
Definition Types.h:18093
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:18084
std::string caption
Document caption (may also be used when resending documents by file_id), 0-1024 characters after enti...
Definition Types.h:18079
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:18147
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:18164
bool disableContentTypeDetection
Disables automatic server-side content type detection for files uploaded using multipart/form-data.
Definition Types.h:18117
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:18178
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...
Definition Types.h:18061
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:18124
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:18129
Arguments for Api::sendGame.
Definition Types.h:18185
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot in the format @username....
Definition Types.h:18191
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:18240
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:18202
std::string gameShortName
Short name of the game, serves as the unique identifier for the game. Set up your games via @BotFathe...
Definition Types.h:18197
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:18227
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard. If empty, one 'Play game_title' button will be shown...
Definition Types.h:18209
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:18233
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:18215
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:18222
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:18246
Arguments for Api::sendGift.
Definition Types.h:18253
std::int64_t userId
Required if chat_id is not specified. Unique identifier of the target user who will receive the gift.
Definition Types.h:18296
std::string text
Text that will be shown along with the gift; 0-128 characters.
Definition Types.h:18275
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...
Definition Types.h:18264
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 ...
Definition Types.h:18283
std::string textParseMode
Mode for parsing entities in the text. See formatting options for more details. Entities other than “...
Definition Types.h:18290
std::string giftId
Identifier of the gift; limited gifts can't be sent to channel chats.
Definition Types.h:18257
bool payForUpgrade
Pass True to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the...
Definition Types.h:18270
Arguments for Api::sendInvoice.
Definition Types.h:18303
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:18492
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:18419
std::int32_t photoSize
Photo size in bytes.
Definition Types.h:18362
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:18473
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:18500
std::string currency
Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Star...
Definition Types.h:18336
std::string description
Product description, 1-255 characters.
Definition Types.h:18318
bool needShippingAddress
Pass True if you require the user's shipping address to complete the order. Ignored for payments in T...
Definition Types.h:18396
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...
Definition Types.h:18357
bool isFlexible
Pass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars.
Definition Types.h:18414
std::string title
Product name, 1-32 characters.
Definition Types.h:18313
std::string payload
Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your int...
Definition Types.h:18324
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:18480
bool sendPhoneNumberToProvider
Pass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram...
Definition Types.h:18402
std::vector< std::shared_ptr< LabeledPrice > > prices
Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount,...
Definition Types.h:18343
std::string providerToken
Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars.
Definition Types.h:18330
bool needEmail
Pass True if you require the user's email address to complete the order. Ignored for payments in Tele...
Definition Types.h:18390
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown...
Definition Types.h:18426
bool needPhoneNumber
Pass True if you require the user's phone number to complete the order. Ignored for payments in Teleg...
Definition Types.h:18384
std::int32_t maxTipAmount
The maximum accepted amount for tips in the smallest units of the currency (integer,...
Definition Types.h:18449
std::string providerData
JSON-serialized data about the invoice, which will be shared with the payment provider....
Definition Types.h:18350
std::vector< std::int32_t > suggestedTipAmounts
A JSON-serialized Array of suggested amounts of tips in the smallest units of the currency (integer,...
Definition Types.h:18458
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:18432
std::int32_t photoHeight
Photo height.
Definition Types.h:18372
std::string startParameter
Unique deep-linking parameter. If left empty, forwarded copies of the sent message will have a Pay bu...
Definition Types.h:18468
bool sendEmailToProvider
Pass True if the user's email address should be sent to the provider. Ignored for payments in Telegra...
Definition Types.h:18408
bool needName
Pass True if you require the user's full name to complete the order. Ignored for payments in Telegram...
Definition Types.h:18378
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...
Definition Types.h:18308
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:18439
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:18486
std::int32_t photoWidth
Photo width.
Definition Types.h:18367
Arguments for Api::sendLivePhoto.
Definition Types.h:18507
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...
Definition Types.h:18521
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:18582
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,...
Definition Types.h:18614
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:18605
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:18619
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:18565
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:18559
bool hasSpoiler
Pass True if the video needs to be covered with a spoiler animation.
Definition Types.h:18576
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:18536
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
Definition Types.h:18624
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel (in the format @channeluserna...
Definition Types.h:18512
std::string caption
Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities p...
Definition Types.h:18553
std::string parseMode
Mode for parsing entities in the video caption. See formatting options for more details.
Definition Types.h:18595
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:18547
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:18632
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:18571
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:18589
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:18600
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:18638
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...
Definition Types.h:18529
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:18542
Arguments for Api::sendLocation.
Definition Types.h:18645
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:18673
double horizontalAccuracy
The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:18693
std::int32_t heading
For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if...
Definition Types.h:18699
double longitude
Longitude of the location.
Definition Types.h:18660
std::int32_t proximityAlertRadius
For live locations, a maximum distance for proximity alerts about approaching another chat member,...
Definition Types.h:18706
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:18724
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:18748
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:18742
double latitude
Latitude of the location.
Definition Types.h:18655
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:18731
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...
Definition Types.h:18650
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:18713
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:18688
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:18736
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:18753
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:18761
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,...
Definition Types.h:18682
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:18767
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:18718
std::int32_t livePeriod
Period in seconds during which the location will be updated (see Live Locations), must be between 60 ...
Definition Types.h:18668
Arguments for Api::sendMediaGroup.
Definition Types.h:18774
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:18817
std::vector< std::variant< std::shared_ptr< InputMediaAudio >, std::shared_ptr< InputMediaDocument >, std::shared_ptr< InputMediaLivePhoto >, std::shared_ptr< InputMediaPhoto >, std::shared_ptr< InputMediaVideo > > > media
A JSON-serialized Array describing messages to be sent, must include 2-10 items.
Definition Types.h:18788
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:18824
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:18799
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:18843
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:18836
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:18806
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...
Definition Types.h:18779
bool protectContent
Protects the contents of the sent messages from forwarding and saving.
Definition Types.h:18811
bool disableNotification
Sends messages silently. Users will receive a notification with no sound.
Definition Types.h:18794
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the messages will be sent; required if the messages ...
Definition Types.h:18830
Arguments for Api::sendMessage.
Definition Types.h:18850
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:18904
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...
Definition Types.h:18855
std::vector< std::shared_ptr< MessageEntity > > entities
A JSON-serialized list of special entities that appear in message text, which can be specified instea...
Definition Types.h:18897
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:18922
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,...
Definition Types.h:18879
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:18909
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:18915
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:18927
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:18891
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:18952
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:18933
std::string text
Text of the message to be sent, 1-4096 characters after entities parsing.
Definition Types.h:18860
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Link preview generation options for the message.
Definition Types.h:18865
std::string parseMode
Mode for parsing entities in the message text. See formatting options for more details.
Definition Types.h:18885
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:18939
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:18870
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:18958
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:18944
Arguments for Api::sendMessageDraft.
Definition Types.h:18965
std::vector< std::shared_ptr< MessageEntity > > entities
A JSON-serialized list of special entities that appear in message text, which can be specified instea...
Definition Types.h:18982
std::int32_t draftId
Unique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier ...
Definition Types.h:18976
std::string parseMode
Mode for parsing entities in the message text. See formatting options for more details.
Definition Types.h:18993
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target private chat.
Definition Types.h:18969
std::string text
Text of the message to be sent, 0-4096 characters after entities parsing. Pass an empty text to show ...
Definition Types.h:18999
std::int32_t messageThreadId
Unique identifier for the target message thread.
Definition Types.h:18987
bool keepOnStop
Pass True to keep the draft in the chat when the button is pressed. The draft will still disappear af...
Definition Types.h:19014
bool canStop
Pass True to show the user a button to stop further drafts. The bot will receive an Update “stopped_m...
Definition Types.h:19006
Arguments for Api::sendPaidMedia.
Definition Types.h:19021
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:19052
std::int32_t starCount
The number of Telegram Stars that must be paid to buy access to the media; 1-25000.
Definition Types.h:19039
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:19063
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,...
Definition Types.h:19108
std::string payload
Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user,...
Definition Types.h:19094
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:19126
std::string parseMode
Mode for parsing entities in the media caption. See formatting options for more details.
Definition Types.h:19088
std::vector< std::shared_ptr< InputPaidMedia > > media
A JSON-serialized Array describing the media to be sent; up to 10 items.
Definition Types.h:19033
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:19113
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
Definition Types.h:19118
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:19069
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19046
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...
Definition Types.h:19028
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:19133
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:19099
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:19075
std::string caption
Media caption, 0-1024 characters after entities parsing.
Definition Types.h:19057
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:19082
Arguments for Api::sendPhoto.
Definition Types.h:19140
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:19240
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:19187
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:19264
std::string caption
Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities p...
Definition Types.h:19161
std::string parseMode
Mode for parsing entities in the photo caption. See formatting options for more details.
Definition Types.h:19181
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:19228
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
Definition Types.h:19250
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...
Definition Types.h:19145
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:19216
bool hasSpoiler
Pass True if the photo needs to be covered with a spoiler animation.
Definition Types.h:19210
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19223
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:19245
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...
Definition Types.h:19155
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:19205
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:19258
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:19166
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,...
Definition Types.h:19175
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:19200
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:19193
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:19234
Arguments for Api::sendPoll.
Definition Types.h:19271
std::string description
Description of the poll to be sent, 0-1024 characters after entities parsing.
Definition Types.h:19418
std::string explanationParseMode
Mode for parsing entities in the explanation. See formatting options for more details.
Definition Types.h:19335
bool allowAddingOptions
Pass True if answer options can be added to the poll after creation; not supported for anonymous poll...
Definition Types.h:19384
bool hideResultsUntilCloses
Pass True if poll results must be shown only after the poll closes.
Definition Types.h:19440
std::string descriptionParseMode
Mode for parsing entities in the poll description. See formatting options for more details.
Definition Types.h:19430
std::vector< std::shared_ptr< InputPollOption > > options
A JSON-serialized list of 1-12 answer options.
Definition Types.h:19287
std::vector< std::int32_t > correctOptionIds
A JSON-serialized list of monotonically increasing 0-based identifiers of the correct answer options,...
Definition Types.h:19403
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...
Definition Types.h:19412
std::vector< std::shared_ptr< MessageEntity > > descriptionEntities
A JSON-serialized list of special entities that appear in the poll description, which can be specifie...
Definition Types.h:19424
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,...
Definition Types.h:19307
std::string questionParseMode
Mode for parsing entities in the question. See formatting options for more details....
Definition Types.h:19470
std::shared_ptr< InputPollMedia > explanationMedia
Media added to the quiz explanation.
Definition Types.h:19435
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...
Definition Types.h:19464
bool allowsMultipleAnswers
Pass True if the poll allows multiple answers, defaults to False.
Definition Types.h:19322
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:19372
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19391
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:19367
bool membersOnly
Pass True if voting is limited to users who have been members of the chat where the poll is being sen...
Definition Types.h:19452
bool isAnonymous
True, if the poll needs to be anonymous, defaults to True.
Definition Types.h:19312
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:19298
std::shared_ptr< InputPollMedia > media
Media added to the poll description.
Definition Types.h:19445
std::int32_t openPeriod
Amount of time in seconds the poll will be active after creation, 5-2628000. Can't be used together w...
Definition Types.h:19347
std::string type
Poll type, “quiz” or “regular”, defaults to “regular”
Definition Types.h:19317
std::string question
Poll question, 1-300 characters.
Definition Types.h:19282
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...
Definition Types.h:19341
bool isClosed
Pass True if the poll needs to be immediately closed. This can be useful for poll preview.
Definition Types.h:19360
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:19378
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:19293
std::int32_t closeDate
Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no ...
Definition Types.h:19354
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:19458
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...
Definition Types.h:19277
bool shuffleOptions
Pass True if the poll options must be shown in random order.
Definition Types.h:19475
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...
Definition Types.h:19329
bool allowsRevoting
Pass True if the poll allows to change chosen answer options, defaults to False for quizzes and to Tr...
Definition Types.h:19397
Arguments for Api::sendRichMessage.
Definition Types.h:19482
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:19565
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:19558
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:19512
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...
Definition Types.h:19487
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,...
Definition Types.h:19545
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:19518
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent....
Definition Types.h:19506
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:19536
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19499
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:19550
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:19531
std::shared_ptr< InputRichMessage > richMessage
The message to be sent.
Definition Types.h:19492
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:19571
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:19524
Arguments for Api::sendRichMessageDraft.
Definition Types.h:19578
std::int32_t messageThreadId
Unique identifier for the target message thread.
Definition Types.h:19600
bool canStop
Pass True to show the user a button to stop further drafts. The bot will receive an Update “stopped_m...
Definition Types.h:19607
bool keepOnStop
Pass True to keep the draft in the chat when the button is pressed. The draft will still disappear af...
Definition Types.h:19615
std::shared_ptr< InputRichMessage > richMessage
The partial message to be streamed. Direct upload of new files and explicit upload of files by a URL ...
Definition Types.h:19595
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target private chat.
Definition Types.h:19582
std::int32_t draftId
Unique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier ...
Definition Types.h:19589
Arguments for Api::sendSticker.
Definition Types.h:19622
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...
Definition Types.h:19627
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:19657
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:19717
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19687
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:19669
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...
Definition Types.h:19637
std::string emoji
Emoji associated with the sticker; only for just uploaded stickers.
Definition Types.h:19674
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:19704
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:19642
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:19664
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:19698
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:19709
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:19692
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:19723
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:19680
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,...
Definition Types.h:19651
Arguments for Api::sendVenue.
Definition Types.h:19730
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:19844
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19822
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:19773
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:19852
double latitude
Latitude of the venue.
Definition Types.h:19740
std::string googlePlaceType
Google Places type of the venue. (See supported types.).
Definition Types.h:19797
std::string foursquareId
Foursquare identifier of the venue.
Definition Types.h:19760
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:19809
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...
Definition Types.h:19735
std::string googlePlaceId
Google Places identifier of the venue.
Definition Types.h:19792
std::string address
Address of the venue.
Definition Types.h:19755
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:19815
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:19778
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:19827
std::string title
Name of the venue.
Definition Types.h:19750
std::string foursquareType
Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,...
Definition Types.h:19767
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:19839
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:19858
double longitude
Longitude of the venue.
Definition Types.h:19745
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:19804
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,...
Definition Types.h:19787
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:19833
Arguments for Api::sendVideo.
Definition Types.h:19865
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...
Definition Types.h:19870
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,...
Definition Types.h:19930
std::int32_t width
Video width.
Definition Types.h:19893
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:19955
bool hasSpoiler
Pass True if the video needs to be covered with a spoiler animation.
Definition Types.h:19965
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:20027
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:19942
std::int32_t startTimestamp
Start timestamp for the video in the message.
Definition Types.h:20019
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19978
std::string caption
Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities p...
Definition Types.h:19916
std::string parseMode
Mode for parsing entities in the video caption. See formatting options for more details.
Definition Types.h:19936
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:19921
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:20009
std::int32_t duration
Duration of sent video in seconds.
Definition Types.h:19888
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
Definition Types.h:20014
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:19998
bool supportsStreaming
Pass True if the uploaded video is suitable for streaming.
Definition Types.h:19883
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...
Definition Types.h:19878
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...
Definition Types.h:19992
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:20004
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:20033
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:19960
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:19971
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:19948
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...
Definition Types.h:19910
std::int32_t height
Video height.
Definition Types.h:19898
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:19983
Arguments for Api::sendVideoNote.
Definition Types.h:20040
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...
Definition Types.h:20086
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:20156
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:20131
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:20120
std::int32_t duration
Duration of sent video in seconds.
Definition Types.h:20069
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:20113
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:20064
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...
Definition Types.h:20053
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,...
Definition Types.h:20095
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:20142
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:20150
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:20125
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:20102
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:20107
std::int32_t length
Video width and height, i.e. diameter of the video message.
Definition Types.h:20074
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:20137
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:20058
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...
Definition Types.h:20045
Arguments for Api::sendVoice.
Definition Types.h:20163
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...
Definition Types.h:20168
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,...
Definition Types.h:20200
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:20212
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:20273
std::int64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:20254
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:20218
std::int32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:20225
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:20243
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:20236
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:20260
std::int64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:20265
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:20191
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:20248
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:20279
std::string parseMode
Mode for parsing entities in the voice message caption. See formatting options for more details.
Definition Types.h:20206
std::int32_t duration
Duration of the voice message in seconds.
Definition Types.h:20186
std::string caption
Voice message caption, 0-1024 characters after entities parsing.
Definition Types.h:20181
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...
Definition Types.h:20176
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:20230
Describes an inline message sent by a guest bot.
Definition Types.h:12225
std::shared_ptr< SentGuestMessage > Ptr
Definition Types.h:12226
std::string inlineMessageId
Identifier of the sent inline message.
Definition Types.h:12231
Describes an inline message sent by a Web App on behalf of a user.
Definition Types.h:12241
std::optional< std::string > inlineMessageId
Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attach...
Definition Types.h:12248
std::shared_ptr< SentWebAppMessage > Ptr
Definition Types.h:12242
Arguments for Api::setBusinessAccountBio.
Definition Types.h:20286
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:20290
std::string bio
The new value of the bio for the business account; 0-140 characters.
Definition Types.h:20295
Arguments for Api::setBusinessAccountGiftSettings.
Definition Types.h:20302
bool showGiftButton
Pass True if a button for sending a gift to the user or by the business account must always be shown ...
Definition Types.h:20317
std::shared_ptr< AcceptedGiftTypes > acceptedGiftTypes
Types of gifts accepted by the business account.
Definition Types.h:20306
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:20311
Arguments for Api::setBusinessAccountName.
Definition Types.h:20324
std::string firstName
The new value of the first name for the business account; 1-64 characters.
Definition Types.h:20334
std::string lastName
The new value of the last name for the business account; 0-64 characters.
Definition Types.h:20339
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:20328
Arguments for Api::setBusinessAccountProfilePhoto.
Definition Types.h:20346
std::shared_ptr< InputProfilePhoto > photo
The new profile photo to set.
Definition Types.h:20355
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:20350
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:20369
bool isPublic
Pass True to set the public photo, which will be visible even if the main photo is hidden by the busi...
Definition Types.h:20362
Arguments for Api::setBusinessAccountUsername.
Definition Types.h:20376
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:20380
std::string username
The new value of the username for the business account; 0-32 characters.
Definition Types.h:20385
Arguments for Api::setChatAdministratorCustomTitle.
Definition Types.h:20392
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:20402
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:20397
std::string customTitle
New custom title for the administrator; 0-16 characters, emoji are not allowed.
Definition Types.h:20408
Arguments for Api::setChatDescription.
Definition Types.h:20415
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:20420
std::string description
New chat description, 0-255 characters.
Definition Types.h:20425
Arguments for Api::setChatMemberTag.
Definition Types.h:20432
std::string tag
New tag for the member; 0-16 characters, emoji are not allowed.
Definition Types.h:20447
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:20442
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:20437
Arguments for Api::setChatMenuButton.
Definition Types.h:20454
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target private chat. If not specified, the bot's default menu button will b...
Definition Types.h:20459
std::shared_ptr< MenuButton > menuButton
A JSON-serialized object for the bot's new menu button. Defaults to MenuButtonDefault.
Definition Types.h:20465
Arguments for Api::setChatPermissions.
Definition Types.h:20472
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:20477
bool useIndependentChatPermissions
Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_a...
Definition Types.h:20492
std::shared_ptr< ChatPermissions > permissions
A JSON-serialized object for new default chat permissions.
Definition Types.h:20482
Arguments for Api::setChatPhoto.
Definition Types.h:20499
std::variant< std::shared_ptr< InputFile >, std::string > photo
New chat photo, uploaded using multipart/form-data.
Definition Types.h:20509
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:20504
Arguments for Api::setChatStickerSet.
Definition Types.h:20516
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:20521
std::string stickerSetName
Name of the sticker set to be set as the group sticker set.
Definition Types.h:20526
Arguments for Api::setChatTitle.
Definition Types.h:20533
std::string title
New chat title, 1-128 characters.
Definition Types.h:20543
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:20538
Arguments for Api::setCustomEmojiStickerSetThumbnail.
Definition Types.h:20550
std::string name
Sticker set name.
Definition Types.h:20554
std::string customEmojiId
Custom emoji identifier of a sticker from the sticker set; pass an empty string to drop the thumbnail...
Definition Types.h:20560
Arguments for Api::setGameScore.
Definition Types.h:20567
bool disableEditMessage
Pass True if the game message should not be automatically edited to include the current scoreboard.
Definition Types.h:20588
std::int64_t userId
User identifier.
Definition Types.h:20571
std::int32_t messageId
Required if inline_message_id is not specified. Identifier of the sent message.
Definition Types.h:20600
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:20606
std::int32_t score
New score, must be non-negative.
Definition Types.h:20576
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat.
Definition Types.h:20594
bool force
Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or bannin...
Definition Types.h:20582
Arguments for Api::setManagedBotAccessSettings.
Definition Types.h:20613
bool isAccessRestricted
Pass True if only selected users can access the bot. The bot's owner can always access it.
Definition Types.h:20618
std::int64_t userId
User identifier of the managed bot whose access settings will be changed.
Definition Types.h:20623
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...
Definition Types.h:20630
Arguments for Api::setMessageReaction.
Definition Types.h:20637
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...
Definition Types.h:20642
std::int32_t messageId
Identifier of the target message. If the message belongs to a media group, the reaction is set to the...
Definition Types.h:20649
bool isBig
Pass True to set the reaction with a big animation.
Definition Types.h:20663
std::vector< std::shared_ptr< ReactionType > > reaction
A JSON-serialized list of reaction types to set on the message. Currently, as non-premium users,...
Definition Types.h:20658
Arguments for Api::setMyCommands.
Definition Types.h:20670
std::shared_ptr< BotCommandScope > scope
A JSON-serialized object, describing scope of users for which the commands are relevant....
Definition Types.h:20681
std::string languageCode
A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given ...
Definition Types.h:20688
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....
Definition Types.h:20675
Arguments for Api::setMyDefaultAdministratorRights.
Definition Types.h:20695
bool forChannels
Pass True to change the default administrator rights of the bot in channels. Otherwise,...
Definition Types.h:20707
std::shared_ptr< ChatAdministratorRights > rights
A JSON-serialized object describing new default administrator rights. If not specified,...
Definition Types.h:20700
Arguments for Api::setMyDescription.
Definition Types.h:20714
std::string description
New bot description; 0-512 characters. Pass an empty string to remove the dedicated description for t...
Definition Types.h:20719
std::string languageCode
A two-letter ISO 639-1 language code. If empty, the description will be applied to all users for whos...
Definition Types.h:20726
Arguments for Api::setMyName.
Definition Types.h:20733
std::string name
New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given langua...
Definition Types.h:20738
std::string languageCode
A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose languag...
Definition Types.h:20744
Arguments for Api::setMyProfilePhoto.
Definition Types.h:20751
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:20762
std::shared_ptr< InputProfilePhoto > photo
The new profile photo to set.
Definition Types.h:20755
Arguments for Api::setMyShortDescription.
Definition Types.h:20769
std::string languageCode
A two-letter ISO 639-1 language code. If empty, the short description will be applied to all users fo...
Definition Types.h:20781
std::string shortDescription
New short description for the bot; 0-120 characters. Pass an empty string to remove the dedicated sho...
Definition Types.h:20774
Arguments for Api::setPassportDataErrors.
Definition Types.h:20788
std::int64_t userId
User identifier.
Definition Types.h:20792
std::vector< std::shared_ptr< PassportElementError > > errors
A JSON-serialized Array describing the errors.
Definition Types.h:20797
Arguments for Api::setStickerEmojiList.
Definition Types.h:20804
std::string sticker
File identifier of the sticker.
Definition Types.h:20808
std::vector< std::string > emojiList
A JSON-serialized list of 1-20 emoji associated with the sticker.
Definition Types.h:20813
Arguments for Api::setStickerKeywords.
Definition Types.h:20820
std::string sticker
File identifier of the sticker.
Definition Types.h:20824
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...
Definition Types.h:20830
Arguments for Api::setStickerMaskPosition.
Definition Types.h:20837
std::string sticker
File identifier of the sticker.
Definition Types.h:20841
std::shared_ptr< MaskPosition > maskPosition
A JSON-serialized object with the position where the mask should be placed on faces....
Definition Types.h:20847
Arguments for Api::setStickerPositionInSet.
Definition Types.h:20854
std::string sticker
File identifier of the sticker.
Definition Types.h:20858
std::int32_t position
New sticker position in the set, zero-based.
Definition Types.h:20863
Arguments for Api::setStickerSetThumbnail.
Definition Types.h:20870
std::string format
Format of the thumbnail, must be one of “static” for a .WEBP or .PNG image, “animated” for a ....
Definition Types.h:20885
std::string name
Sticker set name.
Definition Types.h:20874
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...
Definition Types.h:20902
std::int64_t userId
User identifier of the sticker set owner.
Definition Types.h:20879
Arguments for Api::setStickerSetTitle.
Definition Types.h:20909
std::string name
Sticker set name.
Definition Types.h:20913
std::string title
Sticker set title, 1-64 characters.
Definition Types.h:20918
Arguments for Api::setUserEmojiStatus.
Definition Types.h:20925
std::int32_t emojiStatusExpirationDate
Expiration date of the emoji status, if any.
Definition Types.h:20940
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:20929
std::string emojiStatusCustomEmojiId
Custom emoji identifier of the emoji status to set. Pass an empty string to remove the status.
Definition Types.h:20935
Arguments for Api::setWebhook.
Definition Types.h:20947
std::string ipAddress
The fixed IP address which will be used to send webhook requests instead of the IP address resolved t...
Definition Types.h:20985
bool dropPendingUpdates
Pass True to drop all pending updates.
Definition Types.h:20990
std::string secretToken
A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” in every webhook request,...
Definition Types.h:20998
std::int32_t maxConnections
The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery,...
Definition Types.h:20966
std::vector< std::string > allowedUpdates
A JSON-serialized list of the update types you want your bot to receive. For example,...
Definition Types.h:20979
std::string url
HTTPS URL to send updates to. Use an empty string to remove webhook integration.
Definition Types.h:20952
std::shared_ptr< InputFile > certificate
Upload your public key certificate so that the root certificate in use can be checked....
Definition Types.h:20958
This object contains information about a user that was shared with the bot using a KeyboardButtonRequ...
Definition Types.h:12259
std::optional< std::string > firstName
Optional. First name of the user, if the name was requested by the bot.
Definition Types.h:12274
std::int64_t userId
Identifier of the shared user. This number may have more than 32 significant bits and some programmin...
Definition Types.h:12270
std::optional< std::string > lastName
Optional. Last name of the user, if the name was requested by the bot.
Definition Types.h:12278
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Available sizes of the chat photo, if the photo was requested by the bot.
Definition Types.h:12286
std::shared_ptr< SharedUser > Ptr
Definition Types.h:12260
std::optional< std::string > username
Optional. Username of the user, if the username was requested by the bot.
Definition Types.h:12282
This object represents a shipping address.
Definition Types.h:12296
std::string streetLine2
Second line for the address.
Definition Types.h:12318
std::string countryCode
Two-letter ISO 3166-1 alpha-2 country code.
Definition Types.h:12302
std::string state
State, if applicable.
Definition Types.h:12306
std::string postCode
Address post code.
Definition Types.h:12322
std::string city
City.
Definition Types.h:12310
std::shared_ptr< ShippingAddress > Ptr
Definition Types.h:12297
std::string streetLine1
First line for the address.
Definition Types.h:12314
This object represents one shipping option.
Definition Types.h:12332
std::vector< std::shared_ptr< LabeledPrice > > prices
List of price portions.
Definition Types.h:12346
std::string title
Option title.
Definition Types.h:12342
std::shared_ptr< ShippingOption > Ptr
Definition Types.h:12333
This object contains information about an incoming shipping query.
Definition Types.h:12356
std::shared_ptr< ShippingAddress > shippingAddress
User specified shipping address.
Definition Types.h:12374
std::shared_ptr< ShippingQuery > Ptr
Definition Types.h:12357
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:12370
std::shared_ptr< User > from
User who sent the query.
Definition Types.h:12366
Describes an amount of Telegram Stars.
Definition Types.h:12384
std::shared_ptr< StarAmount > Ptr
Definition Types.h:12385
std::int32_t amount
Integer amount of Telegram Stars, rounded to 0; can be negative.
Definition Types.h:12390
std::optional< std::int32_t > nanostarAmount
Optional. The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999; can be n...
Definition Types.h:12395
Describes a Telegram Star transaction. Note that if the buyer initiates a chargeback with the payment...
Definition Types.h:12408
std::shared_ptr< TransactionPartner > source
Optional. Source of an incoming transaction (e.g., a user purchasing goods or services,...
Definition Types.h:12435
std::shared_ptr< StarTransaction > Ptr
Definition Types.h:12409
std::int32_t amount
Integer amount of Telegram Stars transferred by the transaction.
Definition Types.h:12421
std::int32_t date
Date the transaction was created in Unix time.
Definition Types.h:12430
std::shared_ptr< TransactionPartner > receiver
Optional. Receiver of an outgoing transaction (e.g., a user for a purchase refund,...
Definition Types.h:12440
std::optional< std::int32_t > nanostarAmount
Optional. The number of 1/1000000000 shares of Telegram Stars transferred by the transaction; from 0 ...
Definition Types.h:12426
Contains a list of Telegram Star transactions.
Definition Types.h:12450
std::vector< std::shared_ptr< StarTransaction > > transactions
The list of transactions.
Definition Types.h:12456
std::shared_ptr< StarTransactions > Ptr
Definition Types.h:12451
This object represents a sticker.
Definition Types.h:12466
Type type
Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is i...
Definition Types.h:12485
std::optional< std::string > emoji
Optional. Emoji associated with the sticker.
Definition Types.h:12509
std::int32_t width
Sticker width.
Definition Types.h:12489
std::shared_ptr< File > premiumAnimation
Optional. For premium regular stickers, premium animation for the sticker.
Definition Types.h:12517
std::optional< std::string > setName
Optional. Name of the sticker set to which the sticker belongs.
Definition Types.h:12513
std::shared_ptr< MaskPosition > maskPosition
Optional. For mask stickers, the position where the mask should be placed.
Definition Types.h:12521
bool isVideo
True, if the sticker is a video sticker.
Definition Types.h:12501
std::int32_t height
Sticker height.
Definition Types.h:12493
std::optional< std::string > customEmojiId
Optional. For custom emoji stickers, unique identifier of the custom emoji.
Definition Types.h:12525
bool isAnimated
True, if the sticker is animated.
Definition Types.h:12497
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:12479
std::shared_ptr< Sticker > Ptr
Definition Types.h:12467
std::optional< bool > needsRepainting
Optional. True, if the sticker must be repainted to a text color in messages, the color of the Telegr...
Definition Types.h:12531
std::optional< std::int32_t > fileSize
Optional. File size in bytes.
Definition Types.h:12535
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:12474
std::shared_ptr< PhotoSize > thumbnail
Optional. Sticker thumbnail in the .WEBP or .JPG format.
Definition Types.h:12505
This object represents a sticker set.
Definition Types.h:12548
std::vector< std::shared_ptr< Sticker > > stickers
List of all set stickers.
Definition Types.h:12568
std::string name
Sticker set name.
Definition Types.h:12556
std::shared_ptr< PhotoSize > thumbnail
Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format.
Definition Types.h:12572
Type stickerType
Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”
Definition Types.h:12564
std::string title
Sticker set title.
Definition Types.h:12560
std::shared_ptr< StickerSet > Ptr
Definition Types.h:12549
Arguments for Api::stopMessageLiveLocation.
Definition Types.h:21005
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:21023
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for a new inline keyboard.
Definition Types.h:21028
std::int32_t messageId
Required if inline_message_id is not specified. Identifier of the message with live location to stop.
Definition Types.h:21017
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
Definition Types.h:21034
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 ...
Definition Types.h:21011
Arguments for Api::stopPoll.
Definition Types.h:21041
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...
Definition Types.h:21046
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
Definition Types.h:21057
std::int32_t messageId
Identifier of the original message with the poll.
Definition Types.h:21051
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for a new message inline keyboard.
Definition Types.h:21062
Describes a clickable area on a story media.
Definition Types.h:12605
std::shared_ptr< StoryAreaPosition > position
Position of the area.
Definition Types.h:12611
std::shared_ptr< StoryAreaType > type
Type of the area.
Definition Types.h:12615
std::shared_ptr< StoryArea > Ptr
Definition Types.h:12606
Describes the position of a clickable area within a story.
Definition Types.h:12625
double heightPercentage
The height of the area's rectangle, as a percentage of the media height.
Definition Types.h:12643
double yPercentage
The ordinate of the area's center, as a percentage of the media height.
Definition Types.h:12635
std::shared_ptr< StoryAreaPosition > Ptr
Definition Types.h:12626
double cornerRadiusPercentage
The radius of the rectangle corner rounding, as a percentage of the media width.
Definition Types.h:12651
double widthPercentage
The width of the area's rectangle, as a percentage of the media width.
Definition Types.h:12639
double rotationAngle
The clockwise rotation angle of the rectangle, in degrees; 0-360.
Definition Types.h:12647
double xPercentage
The abscissa of the area's center, as a percentage of the media width.
Definition Types.h:12631
Describes the type of a clickable area on a story. Currently, it can be one of StoryAreaTypeLocation ...
Definition Types.h:12663
std::variant< std::shared_ptr< StoryAreaTypeLocation >, std::shared_ptr< StoryAreaTypeSuggestedReaction >, std::shared_ptr< StoryAreaTypeLink >, std::shared_ptr< StoryAreaTypeWeather >, std::shared_ptr< StoryAreaTypeUniqueGift > > value
Definition Types.h:12669
std::shared_ptr< StoryAreaType > Ptr
Definition Types.h:12664
Describes a story area pointing to an HTTP or tg:// link. Currently, a story can have up to 3 link ar...
Definition Types.h:12680
std::string type
Type of the area, always “link”
Definition Types.h:12688
static TGBOT_API const std::string TYPE
Definition Types.h:12683
std::shared_ptr< StoryAreaTypeLink > Ptr
Definition Types.h:12681
std::string url
HTTP or tg:// URL to be opened when the area is clicked.
Definition Types.h:12692
Describes a story area pointing to a location. Currently, a story can have up to 10 location areas.
Definition Types.h:12703
double longitude
Location longitude in degrees.
Definition Types.h:12719
static TGBOT_API const std::string TYPE
Definition Types.h:12706
std::shared_ptr< LocationAddress > address
Optional. Address of the location.
Definition Types.h:12723
std::string type
Type of the area, always “location”
Definition Types.h:12711
double latitude
Location latitude in degrees.
Definition Types.h:12715
std::shared_ptr< StoryAreaTypeLocation > Ptr
Definition Types.h:12704
Describes a story area pointing to a suggested reaction. Currently, a story can have up to 5 suggeste...
Definition Types.h:12734
std::shared_ptr< StoryAreaTypeSuggestedReaction > Ptr
Definition Types.h:12735
std::string type
Type of the area, always “suggested_reaction”
Definition Types.h:12742
std::shared_ptr< ReactionType > reactionType
Type of the reaction.
Definition Types.h:12746
static TGBOT_API const std::string TYPE
Definition Types.h:12737
std::optional< bool > isFlipped
Optional. Pass True if reaction area corner is flipped.
Definition Types.h:12754
std::optional< bool > isDark
Optional. Pass True if the reaction area has a dark background.
Definition Types.h:12750
Describes a story area pointing to a unique gift. Currently, a story can have at most 1 unique gift a...
Definition Types.h:12765
static TGBOT_API const std::string TYPE
Definition Types.h:12768
std::shared_ptr< StoryAreaTypeUniqueGift > Ptr
Definition Types.h:12766
std::string name
Unique name of the gift.
Definition Types.h:12777
std::string type
Type of the area, always “unique_gift”
Definition Types.h:12773
Describes a story area containing weather information. Currently, a story can have up to 3 weather ar...
Definition Types.h:12788
std::string type
Type of the area, always “weather”
Definition Types.h:12796
std::int32_t backgroundColor
A color of the area background in the ARGB format.
Definition Types.h:12808
static TGBOT_API const std::string TYPE
Definition Types.h:12791
double temperature
Temperature, in degree Celsius.
Definition Types.h:12800
std::string emoji
Emoji representing the weather.
Definition Types.h:12804
std::shared_ptr< StoryAreaTypeWeather > Ptr
Definition Types.h:12789
This object represents a story.
Definition Types.h:12585
std::shared_ptr< Chat > chat
Chat that posted the story.
Definition Types.h:12591
std::shared_ptr< Story > Ptr
Definition Types.h:12586
This object contains basic information about a successful payment. Note that if the buyer initiates a...
Definition Types.h:12820
std::string providerPaymentChargeId
Provider payment identifier.
Definition Types.h:12865
std::optional< bool > isFirstRecurring
Optional. True, if the payment is the first payment for a subscription.
Definition Types.h:12849
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:12837
std::string telegramPaymentChargeId
Telegram payment identifier.
Definition Types.h:12861
std::int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
Definition Types.h:12833
std::optional< std::int32_t > subscriptionExpirationDate
Optional. Expiration date of the subscription, in Unix time; for recurring payments only.
Definition Types.h:12841
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
Definition Types.h:12826
std::shared_ptr< OrderInfo > orderInfo
Optional. Order information provided by the user.
Definition Types.h:12857
std::optional< std::string > shippingOptionId
Optional. Identifier of the shipping option chosen by the user.
Definition Types.h:12853
std::shared_ptr< SuccessfulPayment > Ptr
Definition Types.h:12821
std::optional< bool > isRecurring
Optional. True, if the payment is a recurring payment for a subscription.
Definition Types.h:12845
Describes a service message about the failed approval of a suggested post. Currently,...
Definition Types.h:12876
std::shared_ptr< SuggestedPostPrice > price
Expected price of the post.
Definition Types.h:12888
std::shared_ptr< SuggestedPostApprovalFailed > Ptr
Definition Types.h:12877
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post whose approval has failed. Note that the Message obje...
Definition Types.h:12884
Describes a service message about the approval of a suggested post.
Definition Types.h:12898
std::shared_ptr< SuggestedPostApproved > Ptr
Definition Types.h:12899
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
Definition Types.h:12905
std::int32_t sendDate
Date when the post will be published.
Definition Types.h:12913
std::shared_ptr< SuggestedPostPrice > price
Optional. Amount paid for the post.
Definition Types.h:12909
Describes a service message about the rejection of a suggested post.
Definition Types.h:12923
std::shared_ptr< SuggestedPostDeclined > Ptr
Definition Types.h:12924
std::optional< std::string > comment
Optional. Comment with which the post was declined.
Definition Types.h:12934
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
Definition Types.h:12930
Contains information about a suggested post.
Definition Types.h:12944
std::string state
State of the suggested post. Currently, it can be one of “pending”, “approved”, “declined”.
Definition Types.h:12951
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 ...
Definition Types.h:12961
std::shared_ptr< SuggestedPostPrice > price
Optional. Proposed price of the post. If the field is omitted, then the post is unpaid.
Definition Types.h:12955
std::shared_ptr< SuggestedPostInfo > Ptr
Definition Types.h:12945
Describes a service message about a successful payment for a suggested post.
Definition Types.h:12971
std::shared_ptr< SuggestedPostPaid > Ptr
Definition Types.h:12972
std::shared_ptr< StarAmount > starAmount
Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Sta...
Definition Types.h:12993
std::string currency
Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for TON g...
Definition Types.h:12983
std::optional< std::int32_t > amount
Optional. The amount of the currency that was received by the channel in nanograms; for payments in T...
Definition Types.h:12988
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
Definition Types.h:12978
Contains parameters of a post that is being suggested by the bot.
Definition Types.h:13003
std::shared_ptr< SuggestedPostParameters > Ptr
Definition Types.h:13004
std::shared_ptr< SuggestedPostPrice > price
Optional. Proposed price for the post. If the field is omitted, then the post is unpaid.
Definition Types.h:13009
std::optional< std::int32_t > sendDate
Optional. Proposed send date of the post. If specified, then the date must be between 300 second and ...
Definition Types.h:13016
Describes the price of a suggested post.
Definition Types.h:13026
std::string currency
Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” ...
Definition Types.h:13033
std::int32_t amount
The amount of the currency that will be paid for the post in the smallest units of the currency,...
Definition Types.h:13040
std::shared_ptr< SuggestedPostPrice > Ptr
Definition Types.h:13027
Describes a service message about a payment refund for a suggested post.
Definition Types.h:13050
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
Definition Types.h:13057
std::shared_ptr< SuggestedPostRefunded > Ptr
Definition Types.h:13051
std::string reason
Reason for the refund. Currently, one of “post_deleted” if the post was deleted within 24 hours of be...
Definition Types.h:13063
This object represents an inline button that switches the current user to inline mode in a chosen cha...
Definition Types.h:13074
std::optional< bool > allowGroupChats
Optional. True, if group and supergroup chats can be chosen.
Definition Types.h:13093
std::shared_ptr< SwitchInlineQueryChosenChat > Ptr
Definition Types.h:13075
std::optional< bool > allowBotChats
Optional. True, if private chats with bots can be chosen.
Definition Types.h:13089
std::optional< bool > allowChannelChats
Optional. True, if channel chats can be chosen.
Definition Types.h:13097
std::optional< std::string > query
Optional. The default inline query to be inserted in the input field. If left empty,...
Definition Types.h:13081
std::optional< bool > allowUserChats
Optional. True, if private chats with users can be chosen.
Definition Types.h:13085
This object contains information about the quoted part of a message that is replied to by the given m...
Definition Types.h:13108
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the quote. Currently, only bold, italic,...
Definition Types.h:13120
std::int32_t position
Approximate quote position in the original message in UTF-16 code units as specified by the sender.
Definition Types.h:13125
std::shared_ptr< TextQuote > Ptr
Definition Types.h:13109
std::string text
Text of the quoted part of a message that is replied to by the given message.
Definition Types.h:13114
std::optional< bool > isManual
Optional. True, if the quote was chosen manually by the message sender. Otherwise,...
Definition Types.h:13130
Describes the affiliate program that issued the affiliate commission received via this transaction.
Definition Types.h:13161
std::shared_ptr< TransactionPartnerAffiliateProgram > Ptr
Definition Types.h:13162
std::int32_t commissionPerMille
The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affilia...
Definition Types.h:13178
std::string type
Type of the transaction partner, always “affiliate_program”
Definition Types.h:13169
std::shared_ptr< User > sponsorUser
Optional. Information about the bot that sponsored the affiliate program.
Definition Types.h:13173
static TGBOT_API const std::string TYPE
Definition Types.h:13164
Describes a transaction with a chat.
Definition Types.h:13188
std::shared_ptr< Gift > gift
Optional. The gift sent to the chat by the bot.
Definition Types.h:13204
std::shared_ptr< Chat > chat
Information about the chat.
Definition Types.h:13200
static TGBOT_API const std::string TYPE
Definition Types.h:13191
std::shared_ptr< TransactionPartnerChat > Ptr
Definition Types.h:13189
std::string type
Type of the transaction partner, always “chat”
Definition Types.h:13196
Describes a withdrawal transaction with Fragment.
Definition Types.h:13214
std::shared_ptr< TransactionPartnerFragment > Ptr
Definition Types.h:13215
std::shared_ptr< RevenueWithdrawalState > withdrawalState
Optional. State of the transaction if the transaction is outgoing.
Definition Types.h:13226
static TGBOT_API const std::string TYPE
Definition Types.h:13217
std::string type
Type of the transaction partner, always “fragment”
Definition Types.h:13222
This object describes the source of a transaction, or its recipient for outgoing transactions....
Definition Types.h:13143
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
Definition Types.h:13150
std::shared_ptr< TransactionPartner > Ptr
Definition Types.h:13144
Describes a transaction with an unknown source or recipient.
Definition Types.h:13236
std::shared_ptr< TransactionPartnerOther > Ptr
Definition Types.h:13237
std::string type
Type of the transaction partner, always “other”
Definition Types.h:13244
static TGBOT_API const std::string TYPE
Definition Types.h:13239
Describes a withdrawal transaction to the Telegram Ads platform.
Definition Types.h:13254
std::string type
Type of the transaction partner, always “telegram_ads”
Definition Types.h:13262
std::shared_ptr< TransactionPartnerTelegramAds > Ptr
Definition Types.h:13255
static TGBOT_API const std::string TYPE
Definition Types.h:13257
Describes a transaction with payment for paid broadcasting.
Definition Types.h:13272
std::int32_t requestCount
The number of successful requests that exceeded regular limits and were therefore billed.
Definition Types.h:13284
std::shared_ptr< TransactionPartnerTelegramApi > Ptr
Definition Types.h:13273
static TGBOT_API const std::string TYPE
Definition Types.h:13275
std::string type
Type of the transaction partner, always “telegram_api”
Definition Types.h:13280
Describes a transaction with a user.
Definition Types.h:13294
std::shared_ptr< User > user
Information about the user.
Definition Types.h:13313
std::optional< std::string > paidMediaPayload
Optional. Bot-specified paid media payload. Can be available only for “paid_media_payment” transactio...
Definition Types.h:13339
std::optional< std::string > invoicePayload
Optional. Bot-specified invoice payload. Can be available only for “invoice_payment” transactions.
Definition Types.h:13324
std::optional< std::int32_t > premiumSubscriptionDuration
Optional. Number of months the gifted Telegram Premium subscription will be active for; for “premium_...
Definition Types.h:13348
std::optional< std::int32_t > subscriptionPeriod
Optional. The duration of the paid subscription. Can be available only for “invoice_payment” transact...
Definition Types.h:13329
std::shared_ptr< AffiliateInfo > affiliate
Optional. Information about the affiliate that received a commission via this transaction....
Definition Types.h:13319
std::string transactionType
Type of the transaction, currently one of “invoice_payment” for payments via invoices,...
Definition Types.h:13309
std::optional< std::vector< std::shared_ptr< PaidMedia > > > paidMedia
Optional. Information about the paid media bought by the user; for “paid_media_payment” transactions ...
Definition Types.h:13334
std::string type
Type of the transaction partner, always “user”
Definition Types.h:13302
std::shared_ptr< TransactionPartnerUser > Ptr
Definition Types.h:13295
static TGBOT_API const std::string TYPE
Definition Types.h:13297
std::shared_ptr< Gift > gift
Optional. The gift sent to the user by the bot; for “gift_purchase” transactions only.
Definition Types.h:13343
Arguments for Api::transferBusinessAccountStars.
Definition Types.h:21069
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:21073
std::int32_t starCount
Number of Telegram Stars to transfer; 1-10000.
Definition Types.h:21078
Arguments for Api::transferGift.
Definition Types.h:21085
std::int32_t starCount
The amount of Telegram Stars that will be paid for the transfer from the business account balance....
Definition Types.h:21107
std::string ownedGiftId
Unique identifier of the regular gift that should be transferred.
Definition Types.h:21100
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:21089
std::int64_t newOwnerChatId
Unique identifier of the chat which will own the gift. The chat must be active in the last 24 hours.
Definition Types.h:21095
Arguments for Api::unbanChatMember.
Definition Types.h:21114
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 ...
Definition Types.h:21119
bool onlyIfBanned
Do nothing if the user is not banned.
Definition Types.h:21129
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:21124
Arguments for Api::unbanChatSenderChat.
Definition Types.h:21136
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:21141
std::int64_t senderChatId
Unique identifier of the target sender chat.
Definition Types.h:21146
Arguments for Api::unhideGeneralForumTopic.
Definition Types.h:21153
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:21158
This object describes the colors of the backdrop of a unique gift.
Definition Types.h:13447
std::int32_t edgeColor
The color on the edges of the backdrop in RGB format.
Definition Types.h:13457
std::shared_ptr< UniqueGiftBackdropColors > Ptr
Definition Types.h:13448
std::int32_t symbolColor
The color to be applied to the symbol in RGB format.
Definition Types.h:13461
std::int32_t textColor
The color for the text on the backdrop in RGB format.
Definition Types.h:13465
std::int32_t centerColor
The color in the center of the backdrop in RGB format.
Definition Types.h:13453
This object describes the backdrop of a unique gift.
Definition Types.h:13423
std::int32_t rarityPerMille
The number of unique gifts that receive this backdrop for every 1000 gifts upgraded.
Definition Types.h:13437
std::string name
Name of the backdrop.
Definition Types.h:13429
std::shared_ptr< UniqueGiftBackdrop > Ptr
Definition Types.h:13424
std::shared_ptr< UniqueGiftBackdropColors > colors
Colors of the backdrop.
Definition Types.h:13433
This object contains information about the color scheme for a user's name, message replies and link p...
Definition Types.h:13476
std::int32_t darkThemeMainColor
Main color used in dark themes; RGB format.
Definition Types.h:13498
std::string modelCustomEmojiId
Custom emoji identifier of the unique gift's model.
Definition Types.h:13482
std::vector< std::int32_t > darkThemeOtherColors
List of 1-3 additional colors used in dark themes; RGB format.
Definition Types.h:13502
std::shared_ptr< UniqueGiftColors > Ptr
Definition Types.h:13477
std::int32_t lightThemeMainColor
Main color used in light themes; RGB format.
Definition Types.h:13490
std::string symbolCustomEmojiId
Custom emoji identifier of the unique gift's symbol.
Definition Types.h:13486
std::vector< std::int32_t > lightThemeOtherColors
List of 1-3 additional colors used in light themes; RGB format.
Definition Types.h:13494
This object describes a unique gift that was upgraded from a regular gift.
Definition Types.h:13358
std::optional< bool > isFromBlockchain
Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in...
Definition Types.h:13403
std::shared_ptr< UniqueGift > Ptr
Definition Types.h:13359
std::shared_ptr< UniqueGiftBackdrop > backdrop
Backdrop of the gift.
Definition Types.h:13389
std::int32_t number
Unique number of the upgraded gift among gifts upgraded from the same regular gift.
Definition Types.h:13377
std::string baseName
Human-readable name of the regular gift from which this unique gift was upgraded.
Definition Types.h:13368
std::shared_ptr< UniqueGiftColors > colors
Optional. The color scheme that can be used by the gift's owner for the chat's name,...
Definition Types.h:13409
std::shared_ptr< Chat > publisherChat
Optional. Information about the chat that published the gift.
Definition Types.h:13413
std::shared_ptr< UniqueGiftSymbol > symbol
Symbol of the gift.
Definition Types.h:13385
std::string giftId
Identifier of the regular gift from which the gift was upgraded.
Definition Types.h:13364
std::optional< bool > isPremium
Optional. True, if the original regular gift was exclusively purchaseable by Telegram Premium subscri...
Definition Types.h:13394
std::optional< bool > isBurned
Optional. True, if the gift was used to craft another gift and isn't available anymore.
Definition Types.h:13398
std::string name
Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas.
Definition Types.h:13373
std::shared_ptr< UniqueGiftModel > model
Model of the gift.
Definition Types.h:13381
Describes a service message about a unique gift that was sent or received.
Definition Types.h:13512
std::optional< std::string > lastResaleCurrency
Optional. For gifts bought from other users, the currency in which the payment for the gift was done....
Definition Types.h:13543
std::shared_ptr< UniqueGift > gift
Information about the gift.
Definition Types.h:13518
std::shared_ptr< UniqueGiftInfo > Ptr
Definition Types.h:13513
std::optional< std::int32_t > transferStarCount
Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot ...
Definition Types.h:13558
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the text.
Definition Types.h:13533
std::optional< bool > isPrivate
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise,...
Definition Types.h:13538
std::optional< std::string > ownedGiftId
Optional. Unique identifier of the received gift for the bot; only present for gifts received on beha...
Definition Types.h:13553
std::string origin
Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts,...
Definition Types.h:13525
std::optional< std::string > text
Optional. Text of the message that was added to the gift.
Definition Types.h:13529
std::optional< std::int32_t > lastResaleAmount
Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or ...
Definition Types.h:13548
std::optional< std::int32_t > nextTransferDate
Optional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past,...
Definition Types.h:13563
This object describes the model of a unique gift.
Definition Types.h:13573
std::optional< std::string > rarity
Optional. Rarity of the model if it is a crafted model. Currently, can be “uncommon”,...
Definition Types.h:13593
std::shared_ptr< UniqueGiftModel > Ptr
Definition Types.h:13574
std::int32_t rarityPerMille
The number of unique gifts that receive this model for every 1000 gift upgrades. Always 0 for crafted...
Definition Types.h:13588
std::string name
Name of the model.
Definition Types.h:13579
std::shared_ptr< Sticker > sticker
The sticker that represents the unique gift.
Definition Types.h:13583
This object describes the symbol shown on the pattern of a unique gift.
Definition Types.h:13603
std::int32_t rarityPerMille
The number of unique gifts that receive this model for every 1000 gifts upgraded.
Definition Types.h:13617
std::shared_ptr< Sticker > sticker
The sticker that represents the unique gift.
Definition Types.h:13613
std::shared_ptr< UniqueGiftSymbol > Ptr
Definition Types.h:13604
std::string name
Name of the symbol.
Definition Types.h:13609
Arguments for Api::unpinAllChatMessages.
Definition Types.h:21165
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:21170
Arguments for Api::unpinAllForumTopicMessages.
Definition Types.h:21177
std::int32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
Definition Types.h:21187
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:21182
Arguments for Api::unpinAllGeneralForumTopicMessages.
Definition Types.h:21194
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:21199
Arguments for Api::unpinChatMessage.
Definition Types.h:21206
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:21211
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be unpinned.
Definition Types.h:21217
std::int32_t messageId
Identifier of the message to unpin. Required if business_connection_id is specified....
Definition Types.h:21224
This object represents an incoming update.At most one of the optional fields can be present in any gi...
Definition Types.h:13628
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 ...
Definition Types.h:13649
std::shared_ptr< Message > channelPost
Optional. New incoming channel post of any kind - text, photo, sticker, etc.
Definition Types.h:13653
std::shared_ptr< CallbackQuery > callbackQuery
Optional. New incoming callback query.
Definition Types.h:13709
std::shared_ptr< BotSubscriptionUpdated > subscription
Optional. User payment subscription has changed.
Definition Types.h:13767
std::shared_ptr< ChatBoostUpdated > chatBoost
Optional. A chat boost was added or changed. The bot must be an administrator in the chat to receive ...
Definition Types.h:13753
std::shared_ptr< Message > message
Optional. New incoming message of any kind - text, photo, sticker, etc.
Definition Types.h:13643
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...
Definition Types.h:13758
std::shared_ptr< ChosenInlineResult > chosenInlineResult
Optional. The result of an inline query that was chosen by a user and sent to their chat partner....
Definition Types.h:13705
std::shared_ptr< ShippingQuery > shippingQuery
Optional. New incoming shipping query. Only for invoices with flexible price.
Definition Types.h:13713
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...
Definition Types.h:13688
std::shared_ptr< ChatJoinRequest > chatJoinRequest
Optional. A request to join the chat has been sent. The bot must have the can_invite_users administra...
Definition Types.h:13748
std::shared_ptr< Update > Ptr
Definition Types.h:13629
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 ...
Definition Types.h:13743
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...
Definition Types.h:13722
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...
Definition Types.h:13763
std::shared_ptr< PreCheckoutQuery > preCheckoutQuery
Optional. New incoming pre-checkout query. Contains full information about checkout.
Definition Types.h:13717
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...
Definition Types.h:13659
std::shared_ptr< Message > guestMessage
Optional. New guest message. The bot can use the field Message.guest_query_id and the method answerGu...
Definition Types.h:13681
std::int32_t updateId
The update's unique identifier. Update identifiers start from a certain positive number and increase ...
Definition Types.h:13639
std::shared_ptr< MessageReactionCountUpdated > messageReactionCount
Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administra...
Definition Types.h:13695
std::shared_ptr< PollAnswer > pollAnswer
Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls t...
Definition Types.h:13732
std::shared_ptr< BusinessConnection > businessConnection
Optional. The bot was connected to or disconnected from a business account, or a user edited an exist...
Definition Types.h:13664
std::shared_ptr< BusinessMessagesDeleted > deletedBusinessMessages
Optional. Messages were deleted from a connected business account.
Definition Types.h:13676
std::shared_ptr< Message > editedBusinessMessage
Optional. New version of a message from a connected business account.
Definition Types.h:13672
std::shared_ptr< MessageGenerationStopped > stoppedMessageGeneration
Optional. A user asked the bot to stop the generation of a message.
Definition Types.h:13771
std::shared_ptr< ChatMemberUpdated > myChatMember
Optional. The bot's chat member status was updated in a chat. For private chats, this update is recei...
Definition Types.h:13737
std::shared_ptr< InlineQuery > inlineQuery
Optional. New incoming inline query.
Definition Types.h:13699
std::shared_ptr< Message > businessMessage
Optional. New message from a connected business account.
Definition Types.h:13668
std::shared_ptr< Poll > poll
Optional. New poll state. Bots receive only updates about manually stopped polls and polls,...
Definition Types.h:13727
Arguments for Api::upgradeGift.
Definition Types.h:21231
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:21235
std::int32_t starCount
The amount of Telegram Stars that will be paid for the upgrade from the business account balance....
Definition Types.h:21255
bool keepOriginalDetails
Pass True to keep the original gift text, sender and receiver in the upgraded gift.
Definition Types.h:21247
std::string ownedGiftId
Unique identifier of the regular gift that should be upgraded to a unique one.
Definition Types.h:21241
Arguments for Api::uploadStickerFile.
Definition Types.h:21262
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....
Definition Types.h:21273
std::int64_t userId
User identifier of sticker file owner.
Definition Types.h:21266
std::string stickerFormat
Format of the sticker, must be one of “static”, “animated”, “video”
Definition Types.h:21278
This object represents a list of boosts added to a chat by a user.
Definition Types.h:13874
std::vector< std::shared_ptr< ChatBoost > > boosts
The list of boosts added to the chat by the user.
Definition Types.h:13880
std::shared_ptr< UserChatBoosts > Ptr
Definition Types.h:13875
This object represents a Telegram user or bot.
Definition Types.h:13781
std::optional< std::string > lastName
Optional. User's or bot's last name.
Definition Types.h:13802
std::optional< bool > hasMainWebApp
Optional. True, if the bot has a main Web App. Returned only in getMe.
Definition Types.h:13844
std::optional< bool > allowsUsersToCreateTopics
Optional. True, if the bot allows users to create and delete topics in private chats....
Definition Types.h:13854
std::optional< bool > canJoinGroups
Optional. True, if the bot can be invited to groups. Returned only in getMe.
Definition Types.h:13822
std::optional< bool > supportsInlineQueries
Optional. True, if the bot supports inline queries. Returned only in getMe.
Definition Types.h:13835
std::optional< bool > isPremium
Optional. True, if this user is a Telegram Premium user.
Definition Types.h:13814
std::optional< bool > canManageBots
Optional. True, if other bots can be created to be controlled by the bot. Returned only in getMe.
Definition Types.h:13859
std::optional< bool > supportsGuestQueries
Optional. True, if the bot supports guest queries from chats it is not a member of....
Definition Types.h:13831
std::string firstName
User's or bot's first name.
Definition Types.h:13798
std::optional< bool > canReadAllGroupMessages
Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.
Definition Types.h:13826
std::optional< std::string > username
Optional. User's or bot's username.
Definition Types.h:13806
std::optional< bool > canConnectToBusiness
Optional. True, if the bot can be connected to a user account to manage it. Returned only in getMe.
Definition Types.h:13840
std::optional< bool > hasTopicsEnabled
Optional. True, if the bot has forum topic mode enabled in private chats. Returned only in getMe.
Definition Types.h:13849
bool isBot
True, if this user is a bot.
Definition Types.h:13794
std::optional< bool > addedToAttachmentMenu
Optional. True, if this user added the bot to the attachment menu.
Definition Types.h:13818
std::shared_ptr< User > Ptr
Definition Types.h:13782
std::optional< std::string > languageCode
Optional. IETF language tag of the user's language.
Definition Types.h:13810
std::optional< bool > supportsJoinRequestQueries
Optional. True, if the bot supports join request queries and can be assigned to process them....
Definition Types.h:13864
This object represents the audios displayed on a user's profile.
Definition Types.h:13890
std::int32_t totalCount
Total number of profile audios for the target user.
Definition Types.h:13896
std::vector< std::shared_ptr< Audio > > audios
Requested profile audios.
Definition Types.h:13900
std::shared_ptr< UserProfileAudios > Ptr
Definition Types.h:13891
This object represent a user's profile pictures.
Definition Types.h:13910
std::vector< std::vector< std::shared_ptr< PhotoSize > > > photos
Requested profile pictures (in up to 4 sizes each).
Definition Types.h:13920
std::int32_t totalCount
Total number of profile pictures the target user has.
Definition Types.h:13916
std::shared_ptr< UserProfilePhotos > Ptr
Definition Types.h:13911
This object describes the rating of a user based on their Telegram Star spendings.
Definition Types.h:13930
std::int32_t level
Current level of the user, indicating their reliability when purchasing digital goods and services....
Definition Types.h:13938
std::shared_ptr< UserRating > Ptr
Definition Types.h:13931
std::optional< std::int32_t > nextLevelRating
Optional. The rating value required to get to the next level; omitted if the maximum level was reache...
Definition Types.h:13951
std::int32_t currentLevelRating
The rating value required to get the current level.
Definition Types.h:13946
std::int32_t rating
Numerical value of the user's rating; the higher the rating, the better.
Definition Types.h:13942
This object contains information about the users whose identifiers were shared with the bot using a K...
Definition Types.h:13962
std::vector< std::shared_ptr< SharedUser > > users
Information about users shared with the bot.
Definition Types.h:13972
std::shared_ptr< UsersShared > Ptr
Definition Types.h:13963
std::int32_t requestId
Identifier of the request.
Definition Types.h:13968
This object represents a venue.
Definition Types.h:13982
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue.
Definition Types.h:14000
std::string address
Address of the venue.
Definition Types.h:13996
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
Definition Types.h:14013
std::shared_ptr< Location > location
Venue location. Can't be a live location.
Definition Types.h:13988
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”,...
Definition Types.h:14005
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
Definition Types.h:14009
std::shared_ptr< Venue > Ptr
Definition Types.h:13983
std::string title
Name of the venue.
Definition Types.h:13992
Arguments for Api::verifyChat.
Definition Types.h:21285
std::string customDescription
Custom description for the verification; 0-70 characters. Must be empty if the organization isn't all...
Definition Types.h:21298
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...
Definition Types.h:21291
Arguments for Api::verifyUser.
Definition Types.h:21305
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:21309
std::string customDescription
Custom description for the verification; 0-70 characters. Must be empty if the organization isn't all...
Definition Types.h:21316
This object represents a service message about a video chat ended in the chat.
Definition Types.h:14087
std::int32_t duration
Video chat duration in seconds.
Definition Types.h:14093
std::shared_ptr< VideoChatEnded > Ptr
Definition Types.h:14088
This object represents a service message about new members invited to a video chat.
Definition Types.h:14103
std::shared_ptr< VideoChatParticipantsInvited > Ptr
Definition Types.h:14104
std::vector< std::shared_ptr< User > > users
New members that were invited to the video chat.
Definition Types.h:14109
This object represents a service message about a video chat scheduled in the chat.
Definition Types.h:14119
std::int32_t startDate
Point in time (Unix timestamp) when the video chat is supposed to be started by a chat administrator.
Definition Types.h:14126
std::shared_ptr< VideoChatScheduled > Ptr
Definition Types.h:14120
This object represents a service message about a video chat started in the chat. Currently holds no i...
Definition Types.h:14137
std::shared_ptr< VideoChatStarted > Ptr
Definition Types.h:14138
This object represents a video file.
Definition Types.h:14023
std::optional< std::string > fileName
Optional. Original filename as defined by the sender.
Definition Types.h:14066
std::optional< std::int32_t > startTimestamp
Optional. Timestamp in seconds from which the video will play in the message.
Definition Types.h:14058
std::optional< std::vector< std::shared_ptr< VideoQuality > > > qualities
Optional. List of available qualities of the video.
Definition Types.h:14062
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:14029
std::shared_ptr< PhotoSize > thumbnail
Optional. Video thumbnail.
Definition Types.h:14050
std::int32_t width
Video width as defined by the sender.
Definition Types.h:14038
std::shared_ptr< Video > Ptr
Definition Types.h:14024
std::int32_t duration
Duration of the video in seconds as defined by the sender.
Definition Types.h:14046
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:14034
std::int32_t height
Video height as defined by the sender.
Definition Types.h:14042
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:14070
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...
Definition Types.h:14077
std::optional< std::vector< std::shared_ptr< PhotoSize > > > cover
Optional. Available sizes of the cover of the video in the message.
Definition Types.h:14054
This object represents a video message.
Definition Types.h:14148
std::int32_t duration
Duration of the video in seconds as defined by the sender.
Definition Types.h:14167
std::shared_ptr< PhotoSize > thumbnail
Optional. Video thumbnail.
Definition Types.h:14171
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:14154
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:14159
std::optional< std::int32_t > fileSize
Optional. File size in bytes.
Definition Types.h:14175
std::int32_t length
Video width and height (diameter of the video message) as defined by the sender.
Definition Types.h:14163
std::shared_ptr< VideoNote > Ptr
Definition Types.h:14149
This object represents a video file of a specific quality.
Definition Types.h:14185
std::shared_ptr< VideoQuality > Ptr
Definition Types.h:14186
std::int32_t width
Video width.
Definition Types.h:14200
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:14196
std::string codec
Codec that was used to encode the video, for example, “h264”, “h265”, or “av01”
Definition Types.h:14208
std::int32_t height
Video height.
Definition Types.h:14204
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:14191
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...
Definition Types.h:14215
This object represents a voice note.
Definition Types.h:14225
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:14231
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...
Definition Types.h:14251
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:14244
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:14236
std::int32_t duration
Duration of the audio in seconds as defined by the sender.
Definition Types.h:14240
std::shared_ptr< Voice > Ptr
Definition Types.h:14226
Describes data sent from a Web App to the bot.
Definition Types.h:14261
std::shared_ptr< WebAppData > Ptr
Definition Types.h:14262
std::string buttonText
Text of the web_app keyboard button from which the Web App was opened. Be aware that a bad client can...
Definition Types.h:14272
std::string data
The data. Be aware that a bad client can send arbitrary data in this field.
Definition Types.h:14267
Describes a Web App.
Definition Types.h:14282
std::string url
An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps.
Definition Types.h:14289
std::shared_ptr< WebAppInfo > Ptr
Definition Types.h:14283
Describes the current status of a webhook.
Definition Types.h:14299
std::optional< std::string > lastErrorMessage
Optional. Error message in human-readable format for the most recent error that happened when trying ...
Definition Types.h:14327
std::optional< std::string > ipAddress
Optional. Currently used webhook IP address.
Definition Types.h:14317
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...
Definition Types.h:14342
std::string url
Webhook URL, may be empty if webhook is not set up.
Definition Types.h:14305
std::optional< std::int32_t > lastSynchronizationErrorDate
Optional. Unix time of the most recent error that happened when trying to synchronize available updat...
Definition Types.h:14332
std::optional< std::int32_t > maxConnections
Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update deli...
Definition Types.h:14337
std::int32_t pendingUpdateCount
Number of updates awaiting delivery.
Definition Types.h:14313
std::shared_ptr< WebhookInfo > Ptr
Definition Types.h:14300
std::optional< std::int32_t > lastErrorDate
Optional. Unix time for the most recent error that happened when trying to deliver an update via webh...
Definition Types.h:14322
bool hasCustomCertificate
True, if a custom certificate was provided for webhook certificate checks.
Definition Types.h:14309
This object represents a service message about a user allowing a bot to write messages after adding i...
Definition Types.h:14354
std::optional< bool > fromAttachmentMenu
Optional. True, if the access was granted when the bot was added to the attachment or side menu.
Definition Types.h:14371
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.
Definition Types.h:14366
std::shared_ptr< WriteAccessAllowed > Ptr
Definition Types.h:14355
std::optional< bool > fromRequest
Optional. True, if the access was granted after the user accepted an explicit request from a Web App ...
Definition Types.h:14361