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/export.h"
6
7#include <nlohmann/json_fwd.hpp>
8
9#include <cstdint>
10#include <memory>
11#include <optional>
12#include <string>
13#include <variant>
14#include <vector>
15
16namespace TgBot {
17
19struct AffiliateInfo;
20struct Animation;
21struct Audio;
22struct BackgroundFill;
26struct BackgroundType;
31struct Birthdate;
33struct BotCommand;
34struct BotCommandScope;
42struct BotDescription;
43struct BotName;
48struct BusinessIntro;
49struct BusinessLocation;
53struct CallbackGame;
54struct CallbackQuery;
55struct Chat;
57struct ChatBackground;
58struct ChatBoost;
59struct ChatBoostAdded;
60struct ChatBoostRemoved;
61struct ChatBoostSource;
65struct ChatBoostUpdated;
66struct ChatFullInfo;
67struct ChatInviteLink;
68struct ChatJoinRequest;
69struct ChatLocation;
70struct ChatMember;
72struct ChatMemberBanned;
73struct ChatMemberLeft;
74struct ChatMemberMember;
75struct ChatMemberOwner;
78struct ChatOwnerChanged;
79struct ChatOwnerLeft;
80struct ChatPermissions;
81struct ChatPhoto;
82struct ChatShared;
83struct Checklist;
84struct ChecklistTask;
88struct Community;
91struct Contact;
92struct CopyTextButton;
93struct Dice;
96struct Document;
100struct File;
101struct ForceReply;
102struct ForumTopic;
103struct ForumTopicClosed;
104struct ForumTopicCreated;
105struct ForumTopicEdited;
106struct ForumTopicReopened;
107struct Game;
108struct GameHighScore;
111struct Gift;
112struct GiftBackground;
113struct GiftInfo;
114struct Gifts;
115struct Giveaway;
116struct GiveawayCompleted;
117struct GiveawayCreated;
118struct GiveawayWinners;
122struct InlineQuery;
123struct InlineQueryResult;
145struct InputChecklist;
146struct InputChecklistTask;
150struct InputMedia;
152struct InputMediaAudio;
153struct InputMediaDocument;
154struct InputMediaLink;
156struct InputMediaLocation;
157struct InputMediaPhoto;
158struct InputMediaSticker;
159struct InputMediaVenue;
160struct InputMediaVideo;
163struct InputPaidMedia;
167struct InputPollMedia;
168struct InputPollOption;
170struct InputProfilePhoto;
173struct InputRichBlock;
182struct InputRichBlockList;
184struct InputRichBlockMap;
196struct InputRichMessage;
199struct InputSticker;
200struct InputStoryContent;
205struct Invoice;
206struct KeyboardButton;
211struct LabeledPrice;
212struct Link;
213struct LinkPreviewOptions;
214struct LivePhoto;
215struct Location;
216struct LocationAddress;
217struct LoginUrl;
218struct ManagedBotCreated;
219struct ManagedBotUpdated;
220struct MaskPosition;
222struct MenuButton;
223struct MenuButtonCommands;
224struct MenuButtonDefault;
225struct MenuButtonWebApp;
226struct Message;
228struct MessageEntity;
229struct MessageId;
230struct MessageOrigin;
232struct MessageOriginChat;
234struct MessageOriginUser;
237struct OrderInfo;
238struct OwnedGift;
239struct OwnedGiftRegular;
240struct OwnedGiftUnique;
241struct OwnedGifts;
242struct PaidMedia;
243struct PaidMediaInfo;
244struct PaidMediaLivePhoto;
245struct PaidMediaPhoto;
246struct PaidMediaPreview;
247struct PaidMediaPurchased;
248struct PaidMediaVideo;
250struct PassportData;
261struct PassportFile;
262struct PhotoSize;
263struct Poll;
264struct PollAnswer;
265struct PollMedia;
266struct PollOption;
267struct PollOptionAdded;
268struct PollOptionDeleted;
269struct PreCheckoutQuery;
273struct ReactionCount;
274struct ReactionType;
276struct ReactionTypeEmoji;
277struct ReactionTypePaid;
278struct RefundedPayment;
281struct ReplyParameters;
282struct ResponseParameters;
287struct RichBlock;
288struct RichBlockAnchor;
289struct RichBlockAnimation;
290struct RichBlockAudio;
292struct RichBlockCaption;
293struct RichBlockCollage;
294struct RichBlockDetails;
295struct RichBlockDivider;
296struct RichBlockFooter;
297struct RichBlockList;
298struct RichBlockListItem;
299struct RichBlockMap;
301struct RichBlockParagraph;
302struct RichBlockPhoto;
306struct RichBlockSlideshow;
307struct RichBlockTable;
308struct RichBlockTableCell;
309struct RichBlockThinking;
310struct RichBlockVideo;
311struct RichBlockVoiceNote;
312struct RichMessage;
313struct RichText;
314struct RichTextAnchor;
315struct RichTextAnchorLink;
317struct RichTextBold;
318struct RichTextBotCommand;
319struct RichTextCashtag;
320struct RichTextCode;
322struct RichTextDateTime;
324struct RichTextHashtag;
325struct RichTextItalic;
326struct RichTextMarked;
328struct RichTextMention;
330struct RichTextReference;
332struct RichTextSpoiler;
334struct RichTextSubscript;
337struct RichTextUnderline;
338struct RichTextUrl;
339struct SentGuestMessage;
340struct SentWebAppMessage;
341struct SharedUser;
342struct ShippingAddress;
343struct ShippingOption;
344struct ShippingQuery;
345struct StarAmount;
346struct StarTransaction;
347struct StarTransactions;
348struct Sticker;
349struct StickerSet;
350struct Story;
351struct StoryArea;
352struct StoryAreaPosition;
353struct StoryAreaType;
354struct StoryAreaTypeLink;
359struct SuccessfulPayment;
363struct SuggestedPostInfo;
364struct SuggestedPostPaid;
366struct SuggestedPostPrice;
369struct TextQuote;
370struct TransactionPartner;
378struct UniqueGift;
379struct UniqueGiftBackdrop;
381struct UniqueGiftColors;
382struct UniqueGiftInfo;
383struct UniqueGiftModel;
384struct UniqueGiftSymbol;
385struct Update;
386struct User;
387struct UserChatBoosts;
388struct UserProfileAudios;
389struct UserProfilePhotos;
390struct UserRating;
391struct UsersShared;
392struct Venue;
393struct Video;
394struct VideoChatEnded;
396struct VideoChatScheduled;
397struct VideoChatStarted;
398struct VideoNote;
399struct VideoQuality;
400struct Voice;
401struct WebAppData;
402struct WebAppInfo;
403struct WebhookInfo;
404struct WriteAccessAllowed;
405
411 using Ptr = std::shared_ptr<AcceptedGiftTypes>;
412
417
421 bool limitedGifts { };
422
426 bool uniqueGifts { };
427
432
437};
438
439TGBOT_API void from_json(const nlohmann::json& json, AcceptedGiftTypes& value);
440TGBOT_API void to_json(nlohmann::json& json, const AcceptedGiftTypes& value);
441
447 using Ptr = std::shared_ptr<AffiliateInfo>;
448
453 std::shared_ptr<User> affiliateUser { };
454
458 std::shared_ptr<Chat> affiliateChat { };
459
464 std::int32_t commissionPerMille { };
465
470 std::int32_t amount { };
471
476 std::optional<std::int32_t> nanostarAmount { };
477};
478
479TGBOT_API void from_json(const nlohmann::json& json, AffiliateInfo& value);
480TGBOT_API void to_json(nlohmann::json& json, const AffiliateInfo& value);
481
486struct Animation {
487 using Ptr = std::shared_ptr<Animation>;
488
492 std::string fileId { };
493
498 std::string fileUniqueId { };
499
503 std::int32_t width { };
504
508 std::int32_t height { };
509
513 std::int32_t duration { };
514
518 std::shared_ptr<PhotoSize> thumbnail { };
519
523 std::optional<std::string> fileName { };
524
528 std::optional<std::string> mimeType { };
529
536 std::optional<std::int64_t> fileSize { };
537};
538
539TGBOT_API void from_json(const nlohmann::json& json, Animation& value);
540TGBOT_API void to_json(nlohmann::json& json, const Animation& value);
541
546struct Audio {
547 using Ptr = std::shared_ptr<Audio>;
548
552 std::string fileId { };
553
558 std::string fileUniqueId { };
559
563 std::int32_t duration { };
564
568 std::optional<std::string> performer { };
569
573 std::optional<std::string> title { };
574
578 std::optional<std::string> fileName { };
579
583 std::optional<std::string> mimeType { };
584
591 std::optional<std::int64_t> fileSize { };
592
596 std::shared_ptr<PhotoSize> thumbnail { };
597};
598
599TGBOT_API void from_json(const nlohmann::json& json, Audio& value);
600TGBOT_API void to_json(nlohmann::json& json, const Audio& value);
601
609 using Ptr = std::shared_ptr<BackgroundFill>;
610
611 std::variant<std::shared_ptr<BackgroundFillSolid>, std::shared_ptr<BackgroundFillGradient>,
612 std::shared_ptr<BackgroundFillFreeformGradient>>
614};
615
616TGBOT_API void from_json(const nlohmann::json& json, BackgroundFill& value);
617TGBOT_API void to_json(nlohmann::json& json, const BackgroundFill& value);
618
624 using Ptr = std::shared_ptr<BackgroundFillFreeformGradient>;
625
626 static TGBOT_API const std::string TYPE;
627
631 std::string type { TYPE };
632
637 std::vector<std::int32_t> colors { };
638};
639
640TGBOT_API void from_json(const nlohmann::json& json, BackgroundFillFreeformGradient& value);
641TGBOT_API void to_json(nlohmann::json& json, const BackgroundFillFreeformGradient& value);
642
648 using Ptr = std::shared_ptr<BackgroundFillGradient>;
649
650 static TGBOT_API const std::string TYPE;
651
655 std::string type { TYPE };
656
660 std::int32_t topColor { };
661
665 std::int32_t bottomColor { };
666
670 std::int32_t rotationAngle { };
671};
672
673TGBOT_API void from_json(const nlohmann::json& json, BackgroundFillGradient& value);
674TGBOT_API void to_json(nlohmann::json& json, const BackgroundFillGradient& value);
675
681 using Ptr = std::shared_ptr<BackgroundFillSolid>;
682
683 static TGBOT_API const std::string TYPE;
684
688 std::string type { TYPE };
689
693 std::int32_t color { };
694};
695
696TGBOT_API void from_json(const nlohmann::json& json, BackgroundFillSolid& value);
697TGBOT_API void to_json(nlohmann::json& json, const BackgroundFillSolid& value);
698
705 using Ptr = std::shared_ptr<BackgroundType>;
706
707 std::variant<std::shared_ptr<BackgroundTypeFill>, std::shared_ptr<BackgroundTypeWallpaper>,
708 std::shared_ptr<BackgroundTypePattern>, std::shared_ptr<BackgroundTypeChatTheme>>
710};
711
712TGBOT_API void from_json(const nlohmann::json& json, BackgroundType& value);
713TGBOT_API void to_json(nlohmann::json& json, const BackgroundType& value);
714
720 using Ptr = std::shared_ptr<BackgroundTypeChatTheme>;
721
722 static TGBOT_API const std::string TYPE;
723
727 std::string type { TYPE };
728
732 std::string themeName { };
733};
734
735TGBOT_API void from_json(const nlohmann::json& json, BackgroundTypeChatTheme& value);
736TGBOT_API void to_json(nlohmann::json& json, const BackgroundTypeChatTheme& value);
737
743 using Ptr = std::shared_ptr<BackgroundTypeFill>;
744
745 static TGBOT_API const std::string TYPE;
746
750 std::string type { TYPE };
751
755 std::shared_ptr<BackgroundFill> fill { };
756
760 std::int32_t darkThemeDimming { };
761};
762
763TGBOT_API void from_json(const nlohmann::json& json, BackgroundTypeFill& value);
764TGBOT_API void to_json(nlohmann::json& json, const BackgroundTypeFill& value);
765
773 using Ptr = std::shared_ptr<BackgroundTypePattern>;
774
775 static TGBOT_API const std::string TYPE;
776
780 std::string type { TYPE };
781
785 std::shared_ptr<Document> document { };
786
790 std::shared_ptr<BackgroundFill> fill { };
791
795 std::int32_t intensity { };
796
801 std::optional<bool> isInverted { };
802
806 std::optional<bool> isMoving { };
807};
808
809TGBOT_API void from_json(const nlohmann::json& json, BackgroundTypePattern& value);
810TGBOT_API void to_json(nlohmann::json& json, const BackgroundTypePattern& value);
811
817 using Ptr = std::shared_ptr<BackgroundTypeWallpaper>;
818
819 static TGBOT_API const std::string TYPE;
820
824 std::string type { TYPE };
825
829 std::shared_ptr<Document> document { };
830
834 std::int32_t darkThemeDimming { };
835
840 std::optional<bool> isBlurred { };
841
845 std::optional<bool> isMoving { };
846};
847
848TGBOT_API void from_json(const nlohmann::json& json, BackgroundTypeWallpaper& value);
849TGBOT_API void to_json(nlohmann::json& json, const BackgroundTypeWallpaper& value);
850
855struct Birthdate {
856 using Ptr = std::shared_ptr<Birthdate>;
857
861 std::int32_t day { };
862
866 std::int32_t month { };
867
871 std::optional<std::int32_t> year { };
872};
873
874TGBOT_API void from_json(const nlohmann::json& json, Birthdate& value);
875TGBOT_API void to_json(nlohmann::json& json, const Birthdate& value);
876
882 using Ptr = std::shared_ptr<BotAccessSettings>;
883
888
892 std::optional<std::vector<std::shared_ptr<User>>> addedUsers { };
893};
894
895TGBOT_API void from_json(const nlohmann::json& json, BotAccessSettings& value);
896TGBOT_API void to_json(nlohmann::json& json, const BotAccessSettings& value);
897
903 using Ptr = std::shared_ptr<BotCommand>;
904
909 std::string command { };
910
914 std::string description { };
915
920 std::optional<bool> isEphemeral { };
921};
922
923TGBOT_API void from_json(const nlohmann::json& json, BotCommand& value);
924TGBOT_API void to_json(nlohmann::json& json, const BotCommand& value);
925
934 using Ptr = std::shared_ptr<BotCommandScope>;
935
936 std::variant<std::shared_ptr<BotCommandScopeDefault>, std::shared_ptr<BotCommandScopeAllPrivateChats>,
937 std::shared_ptr<BotCommandScopeAllGroupChats>, std::shared_ptr<BotCommandScopeAllChatAdministrators>,
938 std::shared_ptr<BotCommandScopeChat>, std::shared_ptr<BotCommandScopeChatAdministrators>,
939 std::shared_ptr<BotCommandScopeChatMember>>
941};
942
943TGBOT_API void from_json(const nlohmann::json& json, BotCommandScope& value);
944TGBOT_API void to_json(nlohmann::json& json, const BotCommandScope& value);
945
951 using Ptr = std::shared_ptr<BotCommandScopeAllChatAdministrators>;
952
953 static TGBOT_API const std::string TYPE;
954
958 std::string type { TYPE };
959};
960
961TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeAllChatAdministrators& value);
962TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeAllChatAdministrators& value);
963
969 using Ptr = std::shared_ptr<BotCommandScopeAllGroupChats>;
970
971 static TGBOT_API const std::string TYPE;
972
976 std::string type { TYPE };
977};
978
979TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeAllGroupChats& value);
980TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeAllGroupChats& value);
981
987 using Ptr = std::shared_ptr<BotCommandScopeAllPrivateChats>;
988
989 static TGBOT_API const std::string TYPE;
990
994 std::string type { TYPE };
995};
996
997TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeAllPrivateChats& value);
998TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeAllPrivateChats& value);
999
1005 using Ptr = std::shared_ptr<BotCommandScopeChat>;
1006
1007 static TGBOT_API const std::string TYPE;
1008
1012 std::string type { TYPE };
1013
1018 std::int64_t chatId { };
1019};
1020
1021TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeChat& value);
1022TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeChat& value);
1023
1030 using Ptr = std::shared_ptr<BotCommandScopeChatAdministrators>;
1031
1032 static TGBOT_API const std::string TYPE;
1033
1037 std::string type { TYPE };
1038
1043 std::int64_t chatId { };
1044};
1045
1046TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeChatAdministrators& value);
1047TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeChatAdministrators& value);
1048
1055 using Ptr = std::shared_ptr<BotCommandScopeChatMember>;
1056
1057 static TGBOT_API const std::string TYPE;
1058
1062 std::string type { TYPE };
1063
1068 std::int64_t chatId { };
1069
1073 std::int64_t userId { };
1074};
1075
1076TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeChatMember& value);
1077TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeChatMember& value);
1078
1085 using Ptr = std::shared_ptr<BotCommandScopeDefault>;
1086
1087 static TGBOT_API const std::string TYPE;
1088
1092 std::string type { TYPE };
1093};
1094
1095TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeDefault& value);
1096TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeDefault& value);
1097
1103 using Ptr = std::shared_ptr<BotDescription>;
1104
1108 std::string description { };
1109};
1110
1111TGBOT_API void from_json(const nlohmann::json& json, BotDescription& value);
1112TGBOT_API void to_json(nlohmann::json& json, const BotDescription& value);
1113
1118struct BotName {
1119 using Ptr = std::shared_ptr<BotName>;
1120
1124 std::string name { };
1125};
1126
1127TGBOT_API void from_json(const nlohmann::json& json, BotName& value);
1128TGBOT_API void to_json(nlohmann::json& json, const BotName& value);
1129
1135 using Ptr = std::shared_ptr<BotShortDescription>;
1136
1140 std::string shortDescription { };
1141};
1142
1143TGBOT_API void from_json(const nlohmann::json& json, BotShortDescription& value);
1144TGBOT_API void to_json(nlohmann::json& json, const BotShortDescription& value);
1145
1152 using Ptr = std::shared_ptr<BotSubscriptionUpdated>;
1153
1157 std::shared_ptr<User> user { };
1158
1162 std::string invoicePayload { };
1163
1169 std::string state { };
1170};
1171
1172TGBOT_API void from_json(const nlohmann::json& json, BotSubscriptionUpdated& value);
1173TGBOT_API void to_json(nlohmann::json& json, const BotSubscriptionUpdated& value);
1174
1180 using Ptr = std::shared_ptr<BusinessBotRights>;
1181
1186 std::optional<bool> canReply { };
1187
1191 std::optional<bool> canReadMessages { };
1192
1196 std::optional<bool> canDeleteSentMessages { };
1197
1201 std::optional<bool> canDeleteAllMessages { };
1202
1206 std::optional<bool> canEditName { };
1207
1211 std::optional<bool> canEditBio { };
1212
1216 std::optional<bool> canEditProfilePhoto { };
1217
1221 std::optional<bool> canEditUsername { };
1222
1227 std::optional<bool> canChangeGiftSettings { };
1228
1233 std::optional<bool> canViewGiftsAndStars { };
1234
1239 std::optional<bool> canConvertGiftsToStars { };
1240
1244 std::optional<bool> canTransferAndUpgradeGifts { };
1245
1250 std::optional<bool> canTransferStars { };
1251
1256 std::optional<bool> canManageStories { };
1257};
1258
1259TGBOT_API void from_json(const nlohmann::json& json, BusinessBotRights& value);
1260TGBOT_API void to_json(nlohmann::json& json, const BusinessBotRights& value);
1261
1267 using Ptr = std::shared_ptr<BusinessConnection>;
1268
1272 std::string id { };
1273
1277 std::shared_ptr<User> user { };
1278
1285 std::int64_t userChatId { };
1286
1290 std::int32_t date { };
1291
1295 std::shared_ptr<BusinessBotRights> rights { };
1296
1300 bool isEnabled { };
1301};
1302
1303TGBOT_API void from_json(const nlohmann::json& json, BusinessConnection& value);
1304TGBOT_API void to_json(nlohmann::json& json, const BusinessConnection& value);
1305
1311 using Ptr = std::shared_ptr<BusinessIntro>;
1312
1316 std::optional<std::string> title { };
1317
1321 std::optional<std::string> message { };
1322
1326 std::shared_ptr<Sticker> sticker { };
1327};
1328
1329TGBOT_API void from_json(const nlohmann::json& json, BusinessIntro& value);
1330TGBOT_API void to_json(nlohmann::json& json, const BusinessIntro& value);
1331
1337 using Ptr = std::shared_ptr<BusinessLocation>;
1338
1342 std::string address { };
1343
1347 std::shared_ptr<Location> location { };
1348};
1349
1350TGBOT_API void from_json(const nlohmann::json& json, BusinessLocation& value);
1351TGBOT_API void to_json(nlohmann::json& json, const BusinessLocation& value);
1352
1358 using Ptr = std::shared_ptr<BusinessMessagesDeleted>;
1359
1363 std::string businessConnectionId { };
1364
1369 std::shared_ptr<Chat> chat { };
1370
1374 std::vector<std::int32_t> messageIds { };
1375};
1376
1377TGBOT_API void from_json(const nlohmann::json& json, BusinessMessagesDeleted& value);
1378TGBOT_API void to_json(nlohmann::json& json, const BusinessMessagesDeleted& value);
1379
1385 using Ptr = std::shared_ptr<BusinessOpeningHours>;
1386
1390 std::string timeZoneName { };
1391
1395 std::vector<std::shared_ptr<BusinessOpeningHoursInterval>> openingHours { };
1396};
1397
1398TGBOT_API void from_json(const nlohmann::json& json, BusinessOpeningHours& value);
1399TGBOT_API void to_json(nlohmann::json& json, const BusinessOpeningHours& value);
1400
1406 using Ptr = std::shared_ptr<BusinessOpeningHoursInterval>;
1407
1412 std::int32_t openingMinute { };
1413
1418 std::int32_t closingMinute { };
1419};
1420
1421TGBOT_API void from_json(const nlohmann::json& json, BusinessOpeningHoursInterval& value);
1422TGBOT_API void to_json(nlohmann::json& json, const BusinessOpeningHoursInterval& value);
1423
1429 using Ptr = std::shared_ptr<CallbackGame>;
1430};
1431
1432TGBOT_API void from_json(const nlohmann::json& json, CallbackGame& value);
1433TGBOT_API void to_json(nlohmann::json& json, const CallbackGame& value);
1434
1444 using Ptr = std::shared_ptr<CallbackQuery>;
1445
1449 std::string id { };
1450
1454 std::shared_ptr<User> from { };
1455
1459 std::shared_ptr<MaybeInaccessibleMessage> message { };
1460
1465 std::optional<std::string> inlineMessageId { };
1466
1471 std::string chatInstance { };
1472
1477 std::optional<std::string> data { };
1478
1483 std::optional<std::string> gameShortName { };
1484};
1485
1486TGBOT_API void from_json(const nlohmann::json& json, CallbackQuery& value);
1487TGBOT_API void to_json(nlohmann::json& json, const CallbackQuery& value);
1488
1493struct Chat {
1494 using Ptr = std::shared_ptr<Chat>;
1495
1497
1504 std::int64_t id { };
1505
1510
1514 std::optional<std::string> title { };
1515
1519 std::optional<std::string> username { };
1520
1524 std::optional<std::string> firstName { };
1525
1529 std::optional<std::string> lastName { };
1530
1534 std::optional<bool> isForum { };
1535
1539 std::optional<bool> isDirectMessages { };
1540};
1541
1542TGBOT_API void from_json(const nlohmann::json& json, Chat::Type& value);
1543TGBOT_API void to_json(nlohmann::json& json, const Chat::Type& value);
1544
1545TGBOT_API void from_json(const nlohmann::json& json, Chat& value);
1546TGBOT_API void to_json(nlohmann::json& json, const Chat& value);
1547
1553 using Ptr = std::shared_ptr<ChatAdministratorRights>;
1554
1558 bool isAnonymous { };
1559
1567
1572
1577
1583
1590
1595
1600
1605
1611
1616
1621 std::optional<bool> canPostMessages { };
1622
1627 std::optional<bool> canEditMessages { };
1628
1632 std::optional<bool> canPinMessages { };
1633
1638 std::optional<bool> canManageTopics { };
1639
1644 std::optional<bool> canManageDirectMessages { };
1645
1650 std::optional<bool> canManageTags { };
1651};
1652
1653TGBOT_API void from_json(const nlohmann::json& json, ChatAdministratorRights& value);
1654TGBOT_API void to_json(nlohmann::json& json, const ChatAdministratorRights& value);
1655
1661 using Ptr = std::shared_ptr<ChatBackground>;
1662
1666 std::shared_ptr<BackgroundType> type { };
1667};
1668
1669TGBOT_API void from_json(const nlohmann::json& json, ChatBackground& value);
1670TGBOT_API void to_json(nlohmann::json& json, const ChatBackground& value);
1671
1677 using Ptr = std::shared_ptr<ChatBoost>;
1678
1682 std::string boostId { };
1683
1687 std::int32_t addDate { };
1688
1693 std::int32_t expirationDate { };
1694
1698 std::shared_ptr<ChatBoostSource> source { };
1699};
1700
1701TGBOT_API void from_json(const nlohmann::json& json, ChatBoost& value);
1702TGBOT_API void to_json(nlohmann::json& json, const ChatBoost& value);
1703
1709 using Ptr = std::shared_ptr<ChatBoostAdded>;
1710
1714 std::int32_t boostCount { };
1715};
1716
1717TGBOT_API void from_json(const nlohmann::json& json, ChatBoostAdded& value);
1718TGBOT_API void to_json(nlohmann::json& json, const ChatBoostAdded& value);
1719
1725 using Ptr = std::shared_ptr<ChatBoostRemoved>;
1726
1730 std::shared_ptr<Chat> chat { };
1731
1735 std::string boostId { };
1736
1740 std::int32_t removeDate { };
1741
1745 std::shared_ptr<ChatBoostSource> source { };
1746};
1747
1748TGBOT_API void from_json(const nlohmann::json& json, ChatBoostRemoved& value);
1749TGBOT_API void to_json(nlohmann::json& json, const ChatBoostRemoved& value);
1750
1757 using Ptr = std::shared_ptr<ChatBoostSource>;
1758
1759 std::variant<std::shared_ptr<ChatBoostSourcePremium>, std::shared_ptr<ChatBoostSourceGiftCode>,
1760 std::shared_ptr<ChatBoostSourceGiveaway>>
1762};
1763
1764TGBOT_API void from_json(const nlohmann::json& json, ChatBoostSource& value);
1765TGBOT_API void to_json(nlohmann::json& json, const ChatBoostSource& value);
1766
1774 using Ptr = std::shared_ptr<ChatBoostSourceGiftCode>;
1775
1776 static TGBOT_API const std::string SOURCE;
1777
1781 std::string source { SOURCE };
1782
1786 std::shared_ptr<User> user { };
1787};
1788
1789TGBOT_API void from_json(const nlohmann::json& json, ChatBoostSourceGiftCode& value);
1790TGBOT_API void to_json(nlohmann::json& json, const ChatBoostSourceGiftCode& value);
1791
1800 using Ptr = std::shared_ptr<ChatBoostSourceGiveaway>;
1801
1802 static TGBOT_API const std::string SOURCE;
1803
1807 std::string source { SOURCE };
1808
1813 std::int32_t giveawayMessageId { };
1814
1819 std::shared_ptr<User> user { };
1820
1825 std::optional<std::int32_t> prizeStarCount { };
1826
1830 std::optional<bool> isUnclaimed { };
1831};
1832
1833TGBOT_API void from_json(const nlohmann::json& json, ChatBoostSourceGiveaway& value);
1834TGBOT_API void to_json(nlohmann::json& json, const ChatBoostSourceGiveaway& value);
1835
1842 using Ptr = std::shared_ptr<ChatBoostSourcePremium>;
1843
1844 static TGBOT_API const std::string SOURCE;
1845
1849 std::string source { SOURCE };
1850
1854 std::shared_ptr<User> user { };
1855};
1856
1857TGBOT_API void from_json(const nlohmann::json& json, ChatBoostSourcePremium& value);
1858TGBOT_API void to_json(nlohmann::json& json, const ChatBoostSourcePremium& value);
1859
1865 using Ptr = std::shared_ptr<ChatBoostUpdated>;
1866
1870 std::shared_ptr<Chat> chat { };
1871
1875 std::shared_ptr<ChatBoost> boost { };
1876};
1877
1878TGBOT_API void from_json(const nlohmann::json& json, ChatBoostUpdated& value);
1879TGBOT_API void to_json(nlohmann::json& json, const ChatBoostUpdated& value);
1880
1886 using Ptr = std::shared_ptr<ChatFullInfo>;
1887
1894 std::int64_t id { };
1895
1899 std::string type { };
1900
1904 std::optional<std::string> title { };
1905
1909 std::optional<std::string> username { };
1910
1914 std::optional<std::string> firstName { };
1915
1919 std::optional<std::string> lastName { };
1920
1924 std::optional<bool> isForum { };
1925
1929 std::optional<bool> isDirectMessages { };
1930
1935 std::int32_t accentColorId { };
1936
1940 std::int32_t maxReactionCount { };
1941
1945 std::shared_ptr<ChatPhoto> photo { };
1946
1951 std::optional<std::vector<std::string>> activeUsernames { };
1952
1956 std::shared_ptr<Birthdate> birthdate { };
1957
1961 std::shared_ptr<BusinessIntro> businessIntro { };
1962
1966 std::shared_ptr<BusinessLocation> businessLocation { };
1967
1971 std::shared_ptr<BusinessOpeningHours> businessOpeningHours { };
1972
1976 std::shared_ptr<Chat> personalChat { };
1977
1982 std::shared_ptr<Chat> parentChat { };
1983
1988 std::optional<std::vector<std::shared_ptr<ReactionType>>> availableReactions { };
1989
1994 std::optional<std::string> backgroundCustomEmojiId { };
1995
2000 std::optional<std::int32_t> profileAccentColorId { };
2001
2006 std::optional<std::string> profileBackgroundCustomEmojiId { };
2007
2012 std::optional<std::string> emojiStatusCustomEmojiId { };
2013
2018 std::optional<std::int32_t> emojiStatusExpirationDate { };
2019
2023 std::optional<std::string> bio { };
2024
2029 std::optional<bool> hasPrivateForwards { };
2030
2035 std::optional<bool> hasRestrictedVoiceAndVideoMessages { };
2036
2040 std::optional<bool> joinToSendMessages { };
2041
2046 std::optional<bool> joinByRequest { };
2047
2051 std::optional<std::string> description { };
2052
2056 std::optional<std::string> inviteLink { };
2057
2061 std::shared_ptr<Message> pinnedMessage { };
2062
2066 std::shared_ptr<ChatPermissions> permissions { };
2067
2072 std::shared_ptr<AcceptedGiftTypes> acceptedGiftTypes { };
2073
2078 std::optional<bool> canSendPaidMedia { };
2079
2084 std::optional<std::int32_t> slowModeDelay { };
2085
2090 std::optional<std::int32_t> unrestrictBoostCount { };
2091
2096 std::optional<std::int32_t> messageAutoDeleteTime { };
2097
2102 std::optional<bool> hasAggressiveAntiSpamEnabled { };
2103
2108 std::optional<bool> hasHiddenMembers { };
2109
2113 std::optional<bool> hasProtectedContent { };
2114
2119 std::optional<bool> hasVisibleHistory { };
2120
2124 std::optional<std::string> stickerSetName { };
2125
2129 std::optional<bool> canSetStickerSet { };
2130
2135 std::optional<std::string> customEmojiStickerSetName { };
2136
2144 std::optional<std::int64_t> linkedChatId { };
2145
2149 std::shared_ptr<ChatLocation> location { };
2150
2154 std::shared_ptr<UserRating> rating { };
2155
2159 std::shared_ptr<Audio> firstProfileAudio { };
2160
2165 std::shared_ptr<UniqueGiftColors> uniqueGiftColors { };
2166
2171 std::optional<std::int32_t> paidMessageStarCount { };
2172
2177 std::shared_ptr<User> guardBot { };
2178
2182 std::shared_ptr<Community> community { };
2183};
2184
2185TGBOT_API void from_json(const nlohmann::json& json, ChatFullInfo& value);
2186TGBOT_API void to_json(nlohmann::json& json, const ChatFullInfo& value);
2187
2193 using Ptr = std::shared_ptr<ChatInviteLink>;
2194
2199 std::string inviteLink { };
2200
2204 std::shared_ptr<User> creator { };
2205
2210
2214 bool isPrimary { };
2215
2219 bool isRevoked { };
2220
2224 std::optional<std::string> name { };
2225
2229 std::optional<std::int32_t> expireDate { };
2230
2235 std::optional<std::int32_t> memberLimit { };
2236
2240 std::optional<std::int32_t> pendingJoinRequestCount { };
2241
2246 std::optional<std::int32_t> subscriptionPeriod { };
2247
2252 std::optional<std::int32_t> subscriptionPrice { };
2253};
2254
2255TGBOT_API void from_json(const nlohmann::json& json, ChatInviteLink& value);
2256TGBOT_API void to_json(nlohmann::json& json, const ChatInviteLink& value);
2257
2263 using Ptr = std::shared_ptr<ChatJoinRequest>;
2264
2268 std::shared_ptr<Chat> chat { };
2269
2273 std::shared_ptr<User> from { };
2274
2283 std::int64_t userChatId { };
2284
2288 std::int32_t date { };
2289
2293 std::optional<std::string> bio { };
2294
2298 std::shared_ptr<ChatInviteLink> inviteLink { };
2299
2305 std::optional<std::string> queryId { };
2306};
2307
2308TGBOT_API void from_json(const nlohmann::json& json, ChatJoinRequest& value);
2309TGBOT_API void to_json(nlohmann::json& json, const ChatJoinRequest& value);
2310
2316 using Ptr = std::shared_ptr<ChatLocation>;
2317
2321 std::shared_ptr<Location> location { };
2322
2326 std::string address { };
2327};
2328
2329TGBOT_API void from_json(const nlohmann::json& json, ChatLocation& value);
2330TGBOT_API void to_json(nlohmann::json& json, const ChatLocation& value);
2331
2339 using Ptr = std::shared_ptr<ChatMember>;
2340
2341 std::variant<std::shared_ptr<ChatMemberOwner>, std::shared_ptr<ChatMemberAdministrator>,
2342 std::shared_ptr<ChatMemberMember>, std::shared_ptr<ChatMemberRestricted>,
2343 std::shared_ptr<ChatMemberLeft>, std::shared_ptr<ChatMemberBanned>>
2345};
2346
2347TGBOT_API void from_json(const nlohmann::json& json, ChatMember& value);
2348TGBOT_API void to_json(nlohmann::json& json, const ChatMember& value);
2349
2355 using Ptr = std::shared_ptr<ChatMemberAdministrator>;
2356
2357 static TGBOT_API const std::string STATUS;
2358
2362 std::string status { STATUS };
2363
2367 std::shared_ptr<User> user { };
2368
2372 bool canBeEdited { };
2373
2377 bool isAnonymous { };
2378
2386
2391
2396
2402
2409
2414
2419
2424
2430
2435
2440 std::optional<bool> canPostMessages { };
2441
2446 std::optional<bool> canEditMessages { };
2447
2451 std::optional<bool> canPinMessages { };
2452
2457 std::optional<bool> canManageTopics { };
2458
2463 std::optional<bool> canManageDirectMessages { };
2464
2469 std::optional<bool> canManageTags { };
2470
2474 std::optional<std::string> customTitle { };
2475};
2476
2477TGBOT_API void from_json(const nlohmann::json& json, ChatMemberAdministrator& value);
2478TGBOT_API void to_json(nlohmann::json& json, const ChatMemberAdministrator& value);
2479
2486 using Ptr = std::shared_ptr<ChatMemberBanned>;
2487
2488 static TGBOT_API const std::string STATUS;
2489
2493 std::string status { STATUS };
2494
2498 std::shared_ptr<User> user { };
2499
2504 std::int32_t untilDate { };
2505};
2506
2507TGBOT_API void from_json(const nlohmann::json& json, ChatMemberBanned& value);
2508TGBOT_API void to_json(nlohmann::json& json, const ChatMemberBanned& value);
2509
2516 using Ptr = std::shared_ptr<ChatMemberLeft>;
2517
2518 static TGBOT_API const std::string STATUS;
2519
2523 std::string status { STATUS };
2524
2528 std::shared_ptr<User> user { };
2529};
2530
2531TGBOT_API void from_json(const nlohmann::json& json, ChatMemberLeft& value);
2532TGBOT_API void to_json(nlohmann::json& json, const ChatMemberLeft& value);
2533
2539 using Ptr = std::shared_ptr<ChatMemberMember>;
2540
2541 static TGBOT_API const std::string STATUS;
2542
2546 std::string status { STATUS };
2547
2551 std::optional<std::string> tag { };
2552
2556 std::shared_ptr<User> user { };
2557
2561 std::optional<std::int32_t> untilDate { };
2562};
2563
2564TGBOT_API void from_json(const nlohmann::json& json, ChatMemberMember& value);
2565TGBOT_API void to_json(nlohmann::json& json, const ChatMemberMember& value);
2566
2572 using Ptr = std::shared_ptr<ChatMemberOwner>;
2573
2574 static TGBOT_API const std::string STATUS;
2575
2579 std::string status { STATUS };
2580
2584 std::shared_ptr<User> user { };
2585
2589 bool isAnonymous { };
2590
2594 std::optional<std::string> customTitle { };
2595};
2596
2597TGBOT_API void from_json(const nlohmann::json& json, ChatMemberOwner& value);
2598TGBOT_API void to_json(nlohmann::json& json, const ChatMemberOwner& value);
2599
2605 using Ptr = std::shared_ptr<ChatMemberRestricted>;
2606
2607 static TGBOT_API const std::string STATUS;
2608
2612 std::string status { STATUS };
2613
2617 std::optional<std::string> tag { };
2618
2622 std::shared_ptr<User> user { };
2623
2627 bool isMember { };
2628
2634
2639
2644
2649
2654
2659
2664
2669
2674
2679
2684
2688 bool canEditTag { };
2689
2694
2699
2704
2709
2714 std::int32_t untilDate { };
2715};
2716
2717TGBOT_API void from_json(const nlohmann::json& json, ChatMemberRestricted& value);
2718TGBOT_API void to_json(nlohmann::json& json, const ChatMemberRestricted& value);
2719
2725 using Ptr = std::shared_ptr<ChatMemberUpdated>;
2726
2730 std::shared_ptr<Chat> chat { };
2731
2735 std::shared_ptr<User> from { };
2736
2740 std::int32_t date { };
2741
2745 std::shared_ptr<ChatMember> oldChatMember { };
2746
2750 std::shared_ptr<ChatMember> newChatMember { };
2751
2756 std::shared_ptr<ChatInviteLink> inviteLink { };
2757
2762 std::optional<bool> viaJoinRequest { };
2763
2767 std::optional<bool> viaChatFolderInviteLink { };
2768};
2769
2770TGBOT_API void from_json(const nlohmann::json& json, ChatMemberUpdated& value);
2771TGBOT_API void to_json(nlohmann::json& json, const ChatMemberUpdated& value);
2772
2778 using Ptr = std::shared_ptr<ChatOwnerChanged>;
2779
2783 std::shared_ptr<User> newOwner { };
2784};
2785
2786TGBOT_API void from_json(const nlohmann::json& json, ChatOwnerChanged& value);
2787TGBOT_API void to_json(nlohmann::json& json, const ChatOwnerChanged& value);
2788
2794 using Ptr = std::shared_ptr<ChatOwnerLeft>;
2795
2800 std::shared_ptr<User> newOwner { };
2801};
2802
2803TGBOT_API void from_json(const nlohmann::json& json, ChatOwnerLeft& value);
2804TGBOT_API void to_json(nlohmann::json& json, const ChatOwnerLeft& value);
2805
2811 using Ptr = std::shared_ptr<ChatPermissions>;
2812
2817 std::optional<bool> canSendMessages { };
2818
2822 std::optional<bool> canSendAudios { };
2823
2827 std::optional<bool> canSendDocuments { };
2828
2832 std::optional<bool> canSendPhotos { };
2833
2837 std::optional<bool> canSendVideos { };
2838
2842 std::optional<bool> canSendVideoNotes { };
2843
2847 std::optional<bool> canSendVoiceNotes { };
2848
2852 std::optional<bool> canSendPolls { };
2853
2858 std::optional<bool> canSendOtherMessages { };
2859
2863 std::optional<bool> canAddWebPagePreviews { };
2864
2869 std::optional<bool> canReactToMessages { };
2870
2875 std::optional<bool> canEditTag { };
2876
2881 std::optional<bool> canChangeInfo { };
2882
2886 std::optional<bool> canInviteUsers { };
2887
2891 std::optional<bool> canPinMessages { };
2892
2897 std::optional<bool> canManageTopics { };
2898};
2899
2900TGBOT_API void from_json(const nlohmann::json& json, ChatPermissions& value);
2901TGBOT_API void to_json(nlohmann::json& json, const ChatPermissions& value);
2902
2908 using Ptr = std::shared_ptr<ChatPhoto>;
2909
2914 std::string smallFileId { };
2915
2920 std::string smallFileUniqueId { };
2921
2926 std::string bigFileId { };
2927
2932 std::string bigFileUniqueId { };
2933};
2934
2935TGBOT_API void from_json(const nlohmann::json& json, ChatPhoto& value);
2936TGBOT_API void to_json(nlohmann::json& json, const ChatPhoto& value);
2937
2944 using Ptr = std::shared_ptr<ChatShared>;
2945
2949 std::int32_t requestId { };
2950
2959 std::int64_t chatId { };
2960
2964 std::optional<std::string> title { };
2965
2969 std::optional<std::string> username { };
2970
2974 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
2975};
2976
2977TGBOT_API void from_json(const nlohmann::json& json, ChatShared& value);
2978TGBOT_API void to_json(nlohmann::json& json, const ChatShared& value);
2979
2985 using Ptr = std::shared_ptr<Checklist>;
2986
2990 std::string title { };
2991
2995 std::optional<std::vector<std::shared_ptr<MessageEntity>>> titleEntities { };
2996
3000 std::vector<std::shared_ptr<ChecklistTask>> tasks { };
3001
3005 std::optional<bool> othersCanAddTasks { };
3006
3011 std::optional<bool> othersCanMarkTasksAsDone { };
3012};
3013
3014TGBOT_API void from_json(const nlohmann::json& json, Checklist& value);
3015TGBOT_API void to_json(nlohmann::json& json, const Checklist& value);
3016
3022 using Ptr = std::shared_ptr<ChecklistTask>;
3023
3027 std::int32_t id { };
3028
3032 std::string text { };
3033
3037 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
3038
3042 std::shared_ptr<User> completedByUser { };
3043
3047 std::shared_ptr<Chat> completedByChat { };
3048
3053 std::optional<std::int32_t> completionDate { };
3054};
3055
3056TGBOT_API void from_json(const nlohmann::json& json, ChecklistTask& value);
3057TGBOT_API void to_json(nlohmann::json& json, const ChecklistTask& value);
3058
3064 using Ptr = std::shared_ptr<ChecklistTasksAdded>;
3065
3071 std::shared_ptr<Message> checklistMessage { };
3072
3076 std::vector<std::shared_ptr<ChecklistTask>> tasks { };
3077};
3078
3079TGBOT_API void from_json(const nlohmann::json& json, ChecklistTasksAdded& value);
3080TGBOT_API void to_json(nlohmann::json& json, const ChecklistTasksAdded& value);
3081
3087 using Ptr = std::shared_ptr<ChecklistTasksDone>;
3088
3094 std::shared_ptr<Message> checklistMessage { };
3095
3099 std::optional<std::vector<std::int32_t>> markedAsDoneTaskIds { };
3100
3104 std::optional<std::vector<std::int32_t>> markedAsNotDoneTaskIds { };
3105};
3106
3107TGBOT_API void from_json(const nlohmann::json& json, ChecklistTasksDone& value);
3108TGBOT_API void to_json(nlohmann::json& json, const ChecklistTasksDone& value);
3109
3116 using Ptr = std::shared_ptr<ChosenInlineResult>;
3117
3121 std::string resultId { };
3122
3126 std::shared_ptr<User> from { };
3127
3131 std::shared_ptr<Location> location { };
3132
3138 std::optional<std::string> inlineMessageId { };
3139
3143 std::string query { };
3144};
3145
3146TGBOT_API void from_json(const nlohmann::json& json, ChosenInlineResult& value);
3147TGBOT_API void to_json(nlohmann::json& json, const ChosenInlineResult& value);
3148
3154 using Ptr = std::shared_ptr<Community>;
3155
3162 std::int64_t id { };
3163
3167 std::string name { };
3168};
3169
3170TGBOT_API void from_json(const nlohmann::json& json, Community& value);
3171TGBOT_API void to_json(nlohmann::json& json, const Community& value);
3172
3178 using Ptr = std::shared_ptr<CommunityChatAdded>;
3179
3183 std::shared_ptr<Community> community { };
3184};
3185
3186TGBOT_API void from_json(const nlohmann::json& json, CommunityChatAdded& value);
3187TGBOT_API void to_json(nlohmann::json& json, const CommunityChatAdded& value);
3188
3195 using Ptr = std::shared_ptr<CommunityChatRemoved>;
3196};
3197
3198TGBOT_API void from_json(const nlohmann::json& json, CommunityChatRemoved& value);
3199TGBOT_API void to_json(nlohmann::json& json, const CommunityChatRemoved& value);
3200
3205struct Contact {
3206 using Ptr = std::shared_ptr<Contact>;
3207
3211 std::string phoneNumber { };
3212
3216 std::string firstName { };
3217
3221 std::optional<std::string> lastName { };
3222
3229 std::optional<std::int64_t> userId { };
3230
3234 std::optional<std::string> vcard { };
3235};
3236
3237TGBOT_API void from_json(const nlohmann::json& json, Contact& value);
3238TGBOT_API void to_json(nlohmann::json& json, const Contact& value);
3239
3246 using Ptr = std::shared_ptr<CopyTextButton>;
3247
3251 std::string text { };
3252};
3253
3254TGBOT_API void from_json(const nlohmann::json& json, CopyTextButton& value);
3255TGBOT_API void to_json(nlohmann::json& json, const CopyTextButton& value);
3256
3261struct Dice {
3262 using Ptr = std::shared_ptr<Dice>;
3263
3267 std::string emoji { };
3268
3273 std::int32_t value { };
3274};
3275
3276TGBOT_API void from_json(const nlohmann::json& json, Dice& value);
3277TGBOT_API void to_json(nlohmann::json& json, const Dice& value);
3278
3285 using Ptr = std::shared_ptr<DirectMessagePriceChanged>;
3286
3291
3297 std::optional<std::int32_t> directMessageStarCount { };
3298};
3299
3300TGBOT_API void from_json(const nlohmann::json& json, DirectMessagePriceChanged& value);
3301TGBOT_API void to_json(nlohmann::json& json, const DirectMessagePriceChanged& value);
3302
3308 using Ptr = std::shared_ptr<DirectMessagesTopic>;
3309
3316 std::int64_t topicId { };
3317
3322 std::shared_ptr<User> user { };
3323};
3324
3325TGBOT_API void from_json(const nlohmann::json& json, DirectMessagesTopic& value);
3326TGBOT_API void to_json(nlohmann::json& json, const DirectMessagesTopic& value);
3327
3333struct Document {
3334 using Ptr = std::shared_ptr<Document>;
3335
3339 std::string fileId { };
3340
3345 std::string fileUniqueId { };
3346
3350 std::shared_ptr<PhotoSize> thumbnail { };
3351
3355 std::optional<std::string> fileName { };
3356
3360 std::optional<std::string> mimeType { };
3361
3368 std::optional<std::int64_t> fileSize { };
3369};
3370
3371TGBOT_API void from_json(const nlohmann::json& json, Document& value);
3372TGBOT_API void to_json(nlohmann::json& json, const Document& value);
3373
3381 using Ptr = std::shared_ptr<EncryptedCredentials>;
3382
3387 std::string data { };
3388
3392 std::string hash { };
3393
3398 std::string secret { };
3399};
3400
3401TGBOT_API void from_json(const nlohmann::json& json, EncryptedCredentials& value);
3402TGBOT_API void to_json(nlohmann::json& json, const EncryptedCredentials& value);
3403
3409 using Ptr = std::shared_ptr<EncryptedPassportElement>;
3410
3416 std::string type { };
3417
3424 std::optional<std::string> data { };
3425
3429 std::optional<std::string> phoneNumber { };
3430
3434 std::optional<std::string> email { };
3435
3442 std::optional<std::vector<std::shared_ptr<PassportFile>>> files { };
3443
3450 std::shared_ptr<PassportFile> frontSide { };
3451
3457 std::shared_ptr<PassportFile> reverseSide { };
3458
3465 std::shared_ptr<PassportFile> selfie { };
3466
3474 std::optional<std::vector<std::shared_ptr<PassportFile>>> translation { };
3475
3479 std::string hash { };
3480};
3481
3482TGBOT_API void from_json(const nlohmann::json& json, EncryptedPassportElement& value);
3483TGBOT_API void to_json(nlohmann::json& json, const EncryptedPassportElement& value);
3484
3491 using Ptr = std::shared_ptr<ExternalReplyInfo>;
3492
3496 std::shared_ptr<MessageOrigin> origin { };
3497
3502 std::shared_ptr<Chat> chat { };
3503
3508 std::optional<std::int32_t> messageId { };
3509
3514 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions { };
3515
3519 std::shared_ptr<Animation> animation { };
3520
3524 std::shared_ptr<Audio> audio { };
3525
3529 std::shared_ptr<Document> document { };
3530
3534 std::shared_ptr<LivePhoto> livePhoto { };
3535
3539 std::shared_ptr<PaidMediaInfo> paidMedia { };
3540
3544 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
3545
3549 std::shared_ptr<Sticker> sticker { };
3550
3554 std::shared_ptr<Story> story { };
3555
3559 std::shared_ptr<Video> video { };
3560
3564 std::shared_ptr<VideoNote> videoNote { };
3565
3569 std::shared_ptr<Voice> voice { };
3570
3574 std::optional<bool> hasMediaSpoiler { };
3575
3579 std::shared_ptr<Checklist> checklist { };
3580
3584 std::shared_ptr<Contact> contact { };
3585
3589 std::shared_ptr<Dice> dice { };
3590
3594 std::shared_ptr<Game> game { };
3595
3599 std::shared_ptr<Giveaway> giveaway { };
3600
3604 std::shared_ptr<GiveawayWinners> giveawayWinners { };
3605
3610 std::shared_ptr<Invoice> invoice { };
3611
3615 std::shared_ptr<Location> location { };
3616
3620 std::shared_ptr<Poll> poll { };
3621
3625 std::shared_ptr<Venue> venue { };
3626};
3627
3628TGBOT_API void from_json(const nlohmann::json& json, ExternalReplyInfo& value);
3629TGBOT_API void to_json(nlohmann::json& json, const ExternalReplyInfo& value);
3630
3638struct File {
3639 using Ptr = std::shared_ptr<File>;
3640
3644 std::string fileId { };
3645
3650 std::string fileUniqueId { };
3651
3658 std::optional<std::int64_t> fileSize { };
3659
3664 std::optional<std::string> filePath { };
3665};
3666
3667TGBOT_API void from_json(const nlohmann::json& json, File& value);
3668TGBOT_API void to_json(nlohmann::json& json, const File& value);
3669
3679 using Ptr = std::shared_ptr<ForceReply>;
3680
3685 bool forceReply { };
3686
3691 std::optional<std::string> inputFieldPlaceholder { };
3692
3699 std::optional<bool> selective { };
3700};
3701
3702TGBOT_API void from_json(const nlohmann::json& json, ForceReply& value);
3703TGBOT_API void to_json(nlohmann::json& json, const ForceReply& value);
3704
3710 using Ptr = std::shared_ptr<ForumTopic>;
3711
3715 std::int32_t messageThreadId { };
3716
3720 std::string name { };
3721
3725 std::int32_t iconColor { };
3726
3730 std::optional<std::string> iconCustomEmojiId { };
3731
3736 std::optional<bool> isNameImplicit { };
3737};
3738
3739TGBOT_API void from_json(const nlohmann::json& json, ForumTopic& value);
3740TGBOT_API void to_json(nlohmann::json& json, const ForumTopic& value);
3741
3748 using Ptr = std::shared_ptr<ForumTopicClosed>;
3749};
3750
3751TGBOT_API void from_json(const nlohmann::json& json, ForumTopicClosed& value);
3752TGBOT_API void to_json(nlohmann::json& json, const ForumTopicClosed& value);
3753
3759 using Ptr = std::shared_ptr<ForumTopicCreated>;
3760
3764 std::string name { };
3765
3769 std::int32_t iconColor { };
3770
3774 std::optional<std::string> iconCustomEmojiId { };
3775
3780 std::optional<bool> isNameImplicit { };
3781};
3782
3783TGBOT_API void from_json(const nlohmann::json& json, ForumTopicCreated& value);
3784TGBOT_API void to_json(nlohmann::json& json, const ForumTopicCreated& value);
3785
3791 using Ptr = std::shared_ptr<ForumTopicEdited>;
3792
3796 std::optional<std::string> name { };
3797
3802 std::optional<std::string> iconCustomEmojiId { };
3803};
3804
3805TGBOT_API void from_json(const nlohmann::json& json, ForumTopicEdited& value);
3806TGBOT_API void to_json(nlohmann::json& json, const ForumTopicEdited& value);
3807
3814 using Ptr = std::shared_ptr<ForumTopicReopened>;
3815};
3816
3817TGBOT_API void from_json(const nlohmann::json& json, ForumTopicReopened& value);
3818TGBOT_API void to_json(nlohmann::json& json, const ForumTopicReopened& value);
3819
3825struct Game {
3826 using Ptr = std::shared_ptr<Game>;
3827
3831 std::string title { };
3832
3836 std::string description { };
3837
3841 std::vector<std::shared_ptr<PhotoSize>> photo { };
3842
3848 std::optional<std::string> text { };
3849
3854 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
3855
3860 std::shared_ptr<Animation> animation { };
3861};
3862
3863TGBOT_API void from_json(const nlohmann::json& json, Game& value);
3864TGBOT_API void to_json(nlohmann::json& json, const Game& value);
3865
3871 using Ptr = std::shared_ptr<GameHighScore>;
3872
3876 std::int32_t position { };
3877
3881 std::shared_ptr<User> user { };
3882
3886 std::int32_t score { };
3887};
3888
3889TGBOT_API void from_json(const nlohmann::json& json, GameHighScore& value);
3890TGBOT_API void to_json(nlohmann::json& json, const GameHighScore& value);
3891
3898 using Ptr = std::shared_ptr<GeneralForumTopicHidden>;
3899};
3900
3901TGBOT_API void from_json(const nlohmann::json& json, GeneralForumTopicHidden& value);
3902TGBOT_API void to_json(nlohmann::json& json, const GeneralForumTopicHidden& value);
3903
3910 using Ptr = std::shared_ptr<GeneralForumTopicUnhidden>;
3911};
3912
3913TGBOT_API void from_json(const nlohmann::json& json, GeneralForumTopicUnhidden& value);
3914TGBOT_API void to_json(nlohmann::json& json, const GeneralForumTopicUnhidden& value);
3915
3920struct Gift {
3921 using Ptr = std::shared_ptr<Gift>;
3922
3926 std::string id { };
3927
3931 std::shared_ptr<Sticker> sticker { };
3932
3936 std::int32_t starCount { };
3937
3942 std::optional<std::int32_t> upgradeStarCount { };
3943
3947 std::optional<bool> isPremium { };
3948
3953 std::optional<bool> hasColors { };
3954
3959 std::optional<std::int32_t> totalCount { };
3960
3965 std::optional<std::int32_t> remainingCount { };
3966
3971 std::optional<std::int32_t> personalTotalCount { };
3972
3977 std::optional<std::int32_t> personalRemainingCount { };
3978
3982 std::shared_ptr<GiftBackground> background { };
3983
3988 std::optional<std::int32_t> uniqueGiftVariantCount { };
3989
3993 std::shared_ptr<Chat> publisherChat { };
3994};
3995
3996TGBOT_API void from_json(const nlohmann::json& json, Gift& value);
3997TGBOT_API void to_json(nlohmann::json& json, const Gift& value);
3998
4004 using Ptr = std::shared_ptr<GiftBackground>;
4005
4009 std::int32_t centerColor { };
4010
4014 std::int32_t edgeColor { };
4015
4019 std::int32_t textColor { };
4020};
4021
4022TGBOT_API void from_json(const nlohmann::json& json, GiftBackground& value);
4023TGBOT_API void to_json(nlohmann::json& json, const GiftBackground& value);
4024
4029struct GiftInfo {
4030 using Ptr = std::shared_ptr<GiftInfo>;
4031
4035 std::shared_ptr<Gift> gift { };
4036
4041 std::optional<std::string> ownedGiftId { };
4042
4047 std::optional<std::int32_t> convertStarCount { };
4048
4052 std::optional<std::int32_t> prepaidUpgradeStarCount { };
4053
4057 std::optional<bool> isUpgradeSeparate { };
4058
4062 std::optional<bool> canBeUpgraded { };
4063
4067 std::optional<std::string> text { };
4068
4072 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
4073
4078 std::optional<bool> isPrivate { };
4079
4084 std::optional<std::int32_t> uniqueGiftNumber { };
4085};
4086
4087TGBOT_API void from_json(const nlohmann::json& json, GiftInfo& value);
4088TGBOT_API void to_json(nlohmann::json& json, const GiftInfo& value);
4089
4094struct Gifts {
4095 using Ptr = std::shared_ptr<Gifts>;
4096
4100 std::vector<std::shared_ptr<Gift>> gifts { };
4101};
4102
4103TGBOT_API void from_json(const nlohmann::json& json, Gifts& value);
4104TGBOT_API void to_json(nlohmann::json& json, const Gifts& value);
4105
4110struct Giveaway {
4111 using Ptr = std::shared_ptr<Giveaway>;
4112
4116 std::vector<std::shared_ptr<Chat>> chats { };
4117
4121 std::int32_t winnersSelectionDate { };
4122
4126 std::int32_t winnerCount { };
4127
4132 std::optional<bool> onlyNewMembers { };
4133
4137 std::optional<bool> hasPublicWinners { };
4138
4142 std::optional<std::string> prizeDescription { };
4143
4150 std::optional<std::vector<std::string>> countryCodes { };
4151
4156 std::optional<std::int32_t> prizeStarCount { };
4157
4162 std::optional<std::int32_t> premiumSubscriptionMonthCount { };
4163};
4164
4165TGBOT_API void from_json(const nlohmann::json& json, Giveaway& value);
4166TGBOT_API void to_json(nlohmann::json& json, const Giveaway& value);
4167
4174 using Ptr = std::shared_ptr<GiveawayCompleted>;
4175
4179 std::int32_t winnerCount { };
4180
4184 std::optional<std::int32_t> unclaimedPrizeCount { };
4185
4189 std::shared_ptr<Message> giveawayMessage { };
4190
4195 std::optional<bool> isStarGiveaway { };
4196};
4197
4198TGBOT_API void from_json(const nlohmann::json& json, GiveawayCompleted& value);
4199TGBOT_API void to_json(nlohmann::json& json, const GiveawayCompleted& value);
4200
4206 using Ptr = std::shared_ptr<GiveawayCreated>;
4207
4212 std::optional<std::int32_t> prizeStarCount { };
4213};
4214
4215TGBOT_API void from_json(const nlohmann::json& json, GiveawayCreated& value);
4216TGBOT_API void to_json(nlohmann::json& json, const GiveawayCreated& value);
4217
4223 using Ptr = std::shared_ptr<GiveawayWinners>;
4224
4228 std::shared_ptr<Chat> chat { };
4229
4233 std::int32_t giveawayMessageId { };
4234
4238 std::int32_t winnersSelectionDate { };
4239
4243 std::int32_t winnerCount { };
4244
4248 std::vector<std::shared_ptr<User>> winners { };
4249
4254 std::optional<std::int32_t> additionalChatCount { };
4255
4260 std::optional<std::int32_t> prizeStarCount { };
4261
4266 std::optional<std::int32_t> premiumSubscriptionMonthCount { };
4267
4271 std::optional<std::int32_t> unclaimedPrizeCount { };
4272
4277 std::optional<bool> onlyNewMembers { };
4278
4282 std::optional<bool> wasRefunded { };
4283
4287 std::optional<std::string> prizeDescription { };
4288};
4289
4290TGBOT_API void from_json(const nlohmann::json& json, GiveawayWinners& value);
4291TGBOT_API void to_json(nlohmann::json& json, const GiveawayWinners& value);
4292
4298 using Ptr = std::shared_ptr<InaccessibleMessage>;
4299
4303 std::shared_ptr<Chat> chat { };
4304
4308 std::int32_t messageId { };
4309
4313 std::int32_t date { };
4314};
4315
4316TGBOT_API void from_json(const nlohmann::json& json, InaccessibleMessage& value);
4317TGBOT_API void to_json(nlohmann::json& json, const InaccessibleMessage& value);
4318
4325 using Ptr = std::shared_ptr<InlineKeyboardButton>;
4326
4330 std::string text { };
4331
4338 std::optional<std::string> iconCustomEmojiId { };
4339
4344 std::optional<std::string> style { };
4345
4351 std::optional<std::string> url { };
4352
4357 std::optional<std::string> callbackData { };
4358
4365 std::shared_ptr<WebAppInfo> webApp { };
4366
4371 std::shared_ptr<LoginUrl> loginUrl { };
4372
4380 std::optional<std::string> switchInlineQuery { };
4381
4390 std::optional<std::string> switchInlineQueryCurrentChat { };
4391
4398 std::shared_ptr<SwitchInlineQueryChosenChat> switchInlineQueryChosenChat { };
4399
4403 std::shared_ptr<CopyTextButton> copyText { };
4404
4409 std::shared_ptr<CallbackGame> callbackGame { };
4410
4416 std::optional<bool> pay { };
4417};
4418
4419TGBOT_API void from_json(const nlohmann::json& json, InlineKeyboardButton& value);
4420TGBOT_API void to_json(nlohmann::json& json, const InlineKeyboardButton& value);
4421
4428 using Ptr = std::shared_ptr<InlineKeyboardMarkup>;
4429
4433 std::vector<std::vector<std::shared_ptr<InlineKeyboardButton>>> inlineKeyboard { };
4434};
4435
4436TGBOT_API void from_json(const nlohmann::json& json, InlineKeyboardMarkup& value);
4437TGBOT_API void to_json(nlohmann::json& json, const InlineKeyboardMarkup& value);
4438
4445 using Ptr = std::shared_ptr<InlineQuery>;
4446
4450 std::string id { };
4451
4455 std::shared_ptr<User> from { };
4456
4460 std::string query { };
4461
4465 std::string offset { };
4466
4473 std::optional<std::string> chatType { };
4474
4478 std::shared_ptr<Location> location { };
4479};
4480
4481TGBOT_API void from_json(const nlohmann::json& json, InlineQuery& value);
4482TGBOT_API void to_json(nlohmann::json& json, const InlineQuery& value);
4483
4498 using Ptr = std::shared_ptr<InlineQueryResult>;
4499
4500 std::variant<std::shared_ptr<InlineQueryResultCachedAudio>, std::shared_ptr<InlineQueryResultCachedDocument>,
4501 std::shared_ptr<InlineQueryResultCachedGif>, std::shared_ptr<InlineQueryResultCachedMpeg4Gif>,
4502 std::shared_ptr<InlineQueryResultCachedPhoto>, std::shared_ptr<InlineQueryResultCachedSticker>,
4503 std::shared_ptr<InlineQueryResultCachedVideo>, std::shared_ptr<InlineQueryResultCachedVoice>,
4504 std::shared_ptr<InlineQueryResultArticle>, std::shared_ptr<InlineQueryResultAudio>,
4505 std::shared_ptr<InlineQueryResultContact>, std::shared_ptr<InlineQueryResultGame>,
4506 std::shared_ptr<InlineQueryResultDocument>, std::shared_ptr<InlineQueryResultGif>,
4507 std::shared_ptr<InlineQueryResultLocation>, std::shared_ptr<InlineQueryResultMpeg4Gif>,
4508 std::shared_ptr<InlineQueryResultPhoto>, std::shared_ptr<InlineQueryResultVenue>,
4509 std::shared_ptr<InlineQueryResultVideo>, std::shared_ptr<InlineQueryResultVoice>>
4511};
4512
4513TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResult& value);
4514TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResult& value);
4515
4521 using Ptr = std::shared_ptr<InlineQueryResultArticle>;
4522
4523 static TGBOT_API const std::string TYPE;
4524
4528 std::string type { TYPE };
4529
4533 std::string id { };
4534
4538 std::string title { };
4539
4543 std::shared_ptr<InputMessageContent> inputMessageContent { };
4544
4548 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4549
4553 std::optional<std::string> url { };
4554
4558 std::optional<std::string> description { };
4559
4563 std::optional<std::string> thumbnailUrl { };
4564
4568 std::optional<std::int32_t> thumbnailWidth { };
4569
4573 std::optional<std::int32_t> thumbnailHeight { };
4574};
4575
4576TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultArticle& value);
4577TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultArticle& value);
4578
4586 using Ptr = std::shared_ptr<InlineQueryResultAudio>;
4587
4588 static TGBOT_API const std::string TYPE;
4589
4593 std::string type { TYPE };
4594
4598 std::string id { };
4599
4603 std::string audioUrl { };
4604
4608 std::string title { };
4609
4613 std::optional<std::string> caption { };
4614
4619 std::optional<std::string> parseMode { };
4620
4625 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4626
4630 std::optional<std::string> performer { };
4631
4635 std::optional<std::int32_t> audioDuration { };
4636
4640 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4641
4645 std::shared_ptr<InputMessageContent> inputMessageContent { };
4646};
4647
4648TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultAudio& value);
4649TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultAudio& value);
4650
4658 using Ptr = std::shared_ptr<InlineQueryResultCachedAudio>;
4659
4660 static TGBOT_API const std::string TYPE;
4661
4665 std::string type { TYPE };
4666
4670 std::string id { };
4671
4675 std::string audioFileId { };
4676
4680 std::optional<std::string> caption { };
4681
4686 std::optional<std::string> parseMode { };
4687
4692 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4693
4697 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4698
4702 std::shared_ptr<InputMessageContent> inputMessageContent { };
4703};
4704
4705TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedAudio& value);
4706TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedAudio& value);
4707
4715 using Ptr = std::shared_ptr<InlineQueryResultCachedDocument>;
4716
4717 static TGBOT_API const std::string TYPE;
4718
4722 std::string type { TYPE };
4723
4727 std::string id { };
4728
4732 std::string title { };
4733
4737 std::string documentFileId { };
4738
4742 std::optional<std::string> description { };
4743
4747 std::optional<std::string> caption { };
4748
4753 std::optional<std::string> parseMode { };
4754
4759 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4760
4764 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4765
4769 std::shared_ptr<InputMessageContent> inputMessageContent { };
4770};
4771
4772TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedDocument& value);
4773TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedDocument& value);
4774
4782 using Ptr = std::shared_ptr<InlineQueryResultCachedGif>;
4783
4784 static TGBOT_API const std::string TYPE;
4785
4789 std::string type { TYPE };
4790
4794 std::string id { };
4795
4799 std::string gifFileId { };
4800
4804 std::optional<std::string> title { };
4805
4809 std::optional<std::string> caption { };
4810
4815 std::optional<std::string> parseMode { };
4816
4821 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4822
4826 std::optional<bool> showCaptionAboveMedia { };
4827
4831 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4832
4836 std::shared_ptr<InputMessageContent> inputMessageContent { };
4837};
4838
4839TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedGif& value);
4840TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedGif& value);
4841
4850 using Ptr = std::shared_ptr<InlineQueryResultCachedMpeg4Gif>;
4851
4852 static TGBOT_API const std::string TYPE;
4853
4857 std::string type { TYPE };
4858
4862 std::string id { };
4863
4867 std::string mpeg4FileId { };
4868
4872 std::optional<std::string> title { };
4873
4878 std::optional<std::string> caption { };
4879
4884 std::optional<std::string> parseMode { };
4885
4890 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4891
4895 std::optional<bool> showCaptionAboveMedia { };
4896
4900 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4901
4905 std::shared_ptr<InputMessageContent> inputMessageContent { };
4906};
4907
4908TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedMpeg4Gif& value);
4909TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedMpeg4Gif& value);
4910
4918 using Ptr = std::shared_ptr<InlineQueryResultCachedPhoto>;
4919
4920 static TGBOT_API const std::string TYPE;
4921
4925 std::string type { TYPE };
4926
4930 std::string id { };
4931
4935 std::string photoFileId { };
4936
4940 std::optional<std::string> title { };
4941
4945 std::optional<std::string> description { };
4946
4950 std::optional<std::string> caption { };
4951
4956 std::optional<std::string> parseMode { };
4957
4962 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4963
4967 std::optional<bool> showCaptionAboveMedia { };
4968
4972 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4973
4977 std::shared_ptr<InputMessageContent> inputMessageContent { };
4978};
4979
4980TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedPhoto& value);
4981TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedPhoto& value);
4982
4990 using Ptr = std::shared_ptr<InlineQueryResultCachedSticker>;
4991
4992 static TGBOT_API const std::string TYPE;
4993
4997 std::string type { TYPE };
4998
5002 std::string id { };
5003
5007 std::string stickerFileId { };
5008
5012 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5013
5017 std::shared_ptr<InputMessageContent> inputMessageContent { };
5018};
5019
5020TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedSticker& value);
5021TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedSticker& value);
5022
5030 using Ptr = std::shared_ptr<InlineQueryResultCachedVideo>;
5031
5032 static TGBOT_API const std::string TYPE;
5033
5037 std::string type { TYPE };
5038
5042 std::string id { };
5043
5047 std::string videoFileId { };
5048
5052 std::string title { };
5053
5057 std::optional<std::string> description { };
5058
5062 std::optional<std::string> caption { };
5063
5068 std::optional<std::string> parseMode { };
5069
5074 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5075
5079 std::optional<bool> showCaptionAboveMedia { };
5080
5084 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5085
5089 std::shared_ptr<InputMessageContent> inputMessageContent { };
5090};
5091
5092TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedVideo& value);
5093TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedVideo& value);
5094
5102 using Ptr = std::shared_ptr<InlineQueryResultCachedVoice>;
5103
5104 static TGBOT_API const std::string TYPE;
5105
5109 std::string type { TYPE };
5110
5114 std::string id { };
5115
5119 std::string voiceFileId { };
5120
5124 std::string title { };
5125
5129 std::optional<std::string> caption { };
5130
5135 std::optional<std::string> parseMode { };
5136
5141 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5142
5146 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5147
5151 std::shared_ptr<InputMessageContent> inputMessageContent { };
5152};
5153
5154TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedVoice& value);
5155TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedVoice& value);
5156
5164 using Ptr = std::shared_ptr<InlineQueryResultContact>;
5165
5166 static TGBOT_API const std::string TYPE;
5167
5171 std::string type { TYPE };
5172
5176 std::string id { };
5177
5181 std::string phoneNumber { };
5182
5186 std::string firstName { };
5187
5191 std::optional<std::string> lastName { };
5192
5196 std::optional<std::string> vcard { };
5197
5201 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5202
5206 std::shared_ptr<InputMessageContent> inputMessageContent { };
5207
5211 std::optional<std::string> thumbnailUrl { };
5212
5216 std::optional<std::int32_t> thumbnailWidth { };
5217
5221 std::optional<std::int32_t> thumbnailHeight { };
5222};
5223
5224TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultContact& value);
5225TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultContact& value);
5226
5235 using Ptr = std::shared_ptr<InlineQueryResultDocument>;
5236
5237 static TGBOT_API const std::string TYPE;
5238
5242 std::string type { TYPE };
5243
5247 std::string id { };
5248
5252 std::string title { };
5253
5257 std::optional<std::string> caption { };
5258
5263 std::optional<std::string> parseMode { };
5264
5269 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5270
5274 std::string documentUrl { };
5275
5279 std::string mimeType { };
5280
5284 std::optional<std::string> description { };
5285
5289 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5290
5294 std::shared_ptr<InputMessageContent> inputMessageContent { };
5295
5299 std::optional<std::string> thumbnailUrl { };
5300
5304 std::optional<std::int32_t> thumbnailWidth { };
5305
5309 std::optional<std::int32_t> thumbnailHeight { };
5310};
5311
5312TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultDocument& value);
5313TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultDocument& value);
5314
5320 using Ptr = std::shared_ptr<InlineQueryResultGame>;
5321
5322 static TGBOT_API const std::string TYPE;
5323
5327 std::string type { TYPE };
5328
5332 std::string id { };
5333
5337 std::string gameShortName { };
5338
5342 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5343};
5344
5345TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultGame& value);
5346TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultGame& value);
5347
5355 using Ptr = std::shared_ptr<InlineQueryResultGif>;
5356
5357 static TGBOT_API const std::string TYPE;
5358
5362 std::string type { TYPE };
5363
5367 std::string id { };
5368
5372 std::string gifUrl { };
5373
5377 std::optional<std::int32_t> gifWidth { };
5378
5382 std::optional<std::int32_t> gifHeight { };
5383
5387 std::optional<std::int32_t> gifDuration { };
5388
5392 std::string thumbnailUrl { };
5393
5398 std::optional<std::string> thumbnailMimeType { };
5399
5403 std::optional<std::string> title { };
5404
5408 std::optional<std::string> caption { };
5409
5414 std::optional<std::string> parseMode { };
5415
5420 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5421
5425 std::optional<bool> showCaptionAboveMedia { };
5426
5430 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5431
5435 std::shared_ptr<InputMessageContent> inputMessageContent { };
5436};
5437
5438TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultGif& value);
5439TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultGif& value);
5440
5448 using Ptr = std::shared_ptr<InlineQueryResultLocation>;
5449
5450 static TGBOT_API const std::string TYPE;
5451
5455 std::string type { TYPE };
5456
5460 std::string id { };
5461
5465 double latitude { };
5466
5470 double longitude { };
5471
5475 std::string title { };
5476
5480 std::optional<double> horizontalAccuracy { };
5481
5486 std::optional<std::int32_t> livePeriod { };
5487
5492 std::optional<std::int32_t> heading { };
5493
5498 std::optional<std::int32_t> proximityAlertRadius { };
5499
5503 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5504
5508 std::shared_ptr<InputMessageContent> inputMessageContent { };
5509
5513 std::optional<std::string> thumbnailUrl { };
5514
5518 std::optional<std::int32_t> thumbnailWidth { };
5519
5523 std::optional<std::int32_t> thumbnailHeight { };
5524};
5525
5526TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultLocation& value);
5527TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultLocation& value);
5528
5537 using Ptr = std::shared_ptr<InlineQueryResultMpeg4Gif>;
5538
5539 static TGBOT_API const std::string TYPE;
5540
5544 std::string type { TYPE };
5545
5549 std::string id { };
5550
5554 std::string mpeg4Url { };
5555
5559 std::optional<std::int32_t> mpeg4Width { };
5560
5564 std::optional<std::int32_t> mpeg4Height { };
5565
5569 std::optional<std::int32_t> mpeg4Duration { };
5570
5574 std::string thumbnailUrl { };
5575
5580 std::optional<std::string> thumbnailMimeType { };
5581
5585 std::optional<std::string> title { };
5586
5591 std::optional<std::string> caption { };
5592
5597 std::optional<std::string> parseMode { };
5598
5603 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5604
5608 std::optional<bool> showCaptionAboveMedia { };
5609
5613 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5614
5618 std::shared_ptr<InputMessageContent> inputMessageContent { };
5619};
5620
5621TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultMpeg4Gif& value);
5622TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultMpeg4Gif& value);
5623
5631 using Ptr = std::shared_ptr<InlineQueryResultPhoto>;
5632
5633 static TGBOT_API const std::string TYPE;
5634
5638 std::string type { TYPE };
5639
5643 std::string id { };
5644
5648 std::string photoUrl { };
5649
5653 std::string thumbnailUrl { };
5654
5658 std::optional<std::int32_t> photoWidth { };
5659
5663 std::optional<std::int32_t> photoHeight { };
5664
5668 std::optional<std::string> title { };
5669
5673 std::optional<std::string> description { };
5674
5678 std::optional<std::string> caption { };
5679
5684 std::optional<std::string> parseMode { };
5685
5690 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5691
5695 std::optional<bool> showCaptionAboveMedia { };
5696
5700 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5701
5705 std::shared_ptr<InputMessageContent> inputMessageContent { };
5706};
5707
5708TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultPhoto& value);
5709TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultPhoto& value);
5710
5717 using Ptr = std::shared_ptr<InlineQueryResultVenue>;
5718
5719 static TGBOT_API const std::string TYPE;
5720
5724 std::string type { TYPE };
5725
5729 std::string id { };
5730
5734 double latitude { };
5735
5739 double longitude { };
5740
5744 std::string title { };
5745
5749 std::string address { };
5750
5754 std::optional<std::string> foursquareId { };
5755
5760 std::optional<std::string> foursquareType { };
5761
5765 std::optional<std::string> googlePlaceId { };
5766
5770 std::optional<std::string> googlePlaceType { };
5771
5775 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5776
5780 std::shared_ptr<InputMessageContent> inputMessageContent { };
5781
5785 std::optional<std::string> thumbnailUrl { };
5786
5790 std::optional<std::int32_t> thumbnailWidth { };
5791
5795 std::optional<std::int32_t> thumbnailHeight { };
5796};
5797
5798TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultVenue& value);
5799TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultVenue& value);
5800
5808 using Ptr = std::shared_ptr<InlineQueryResultVideo>;
5809
5810 static TGBOT_API const std::string TYPE;
5811
5815 std::string type { TYPE };
5816
5820 std::string id { };
5821
5825 std::string videoUrl { };
5826
5830 std::string mimeType { };
5831
5835 std::string thumbnailUrl { };
5836
5840 std::string title { };
5841
5845 std::optional<std::string> caption { };
5846
5851 std::optional<std::string> parseMode { };
5852
5857 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5858
5862 std::optional<bool> showCaptionAboveMedia { };
5863
5867 std::optional<std::int32_t> videoWidth { };
5868
5872 std::optional<std::int32_t> videoHeight { };
5873
5877 std::optional<std::int32_t> videoDuration { };
5878
5882 std::optional<std::string> description { };
5883
5887 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5888
5894 std::shared_ptr<InputMessageContent> inputMessageContent { };
5895};
5896
5897TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultVideo& value);
5898TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultVideo& value);
5899
5908 using Ptr = std::shared_ptr<InlineQueryResultVoice>;
5909
5910 static TGBOT_API const std::string TYPE;
5911
5915 std::string type { TYPE };
5916
5920 std::string id { };
5921
5925 std::string voiceUrl { };
5926
5930 std::string title { };
5931
5935 std::optional<std::string> caption { };
5936
5941 std::optional<std::string> parseMode { };
5942
5947 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5948
5952 std::optional<std::int32_t> voiceDuration { };
5953
5957 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5958
5962 std::shared_ptr<InputMessageContent> inputMessageContent { };
5963};
5964
5965TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultVoice& value);
5966TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultVoice& value);
5967
5974 using Ptr = std::shared_ptr<InlineQueryResultsButton>;
5975
5979 std::string text { };
5980
5986 std::shared_ptr<WebAppInfo> webApp { };
5987
5999 std::optional<std::string> startParameter { };
6000};
6001
6002TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultsButton& value);
6003TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultsButton& value);
6004
6010 using Ptr = std::shared_ptr<InputChecklist>;
6011
6015 std::string title { };
6016
6021 std::optional<std::string> parseMode { };
6022
6028 std::optional<std::vector<std::shared_ptr<MessageEntity>>> titleEntities { };
6029
6033 std::vector<std::shared_ptr<InputChecklistTask>> tasks { };
6034
6038 std::optional<bool> othersCanAddTasks { };
6039
6043 std::optional<bool> othersCanMarkTasksAsDone { };
6044};
6045
6046TGBOT_API void from_json(const nlohmann::json& json, InputChecklist& value);
6047TGBOT_API void to_json(nlohmann::json& json, const InputChecklist& value);
6048
6054 using Ptr = std::shared_ptr<InputChecklistTask>;
6055
6060 std::int32_t id { };
6061
6065 std::string text { };
6066
6071 std::optional<std::string> parseMode { };
6072
6078 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
6079};
6080
6081TGBOT_API void from_json(const nlohmann::json& json, InputChecklistTask& value);
6082TGBOT_API void to_json(nlohmann::json& json, const InputChecklistTask& value);
6083
6089 using Ptr = std::shared_ptr<InputContactMessageContent>;
6090
6094 std::string phoneNumber { };
6095
6099 std::string firstName { };
6100
6104 std::optional<std::string> lastName { };
6105
6109 std::optional<std::string> vcard { };
6110};
6111
6112TGBOT_API void from_json(const nlohmann::json& json, InputContactMessageContent& value);
6113TGBOT_API void to_json(nlohmann::json& json, const InputContactMessageContent& value);
6114
6120 using Ptr = std::shared_ptr<InputInvoiceMessageContent>;
6121
6125 std::string title { };
6126
6130 std::string description { };
6131
6136 std::string payload { };
6137
6142 std::optional<std::string> providerToken { };
6143
6148 std::string currency { };
6149
6155 std::vector<std::shared_ptr<LabeledPrice>> prices { };
6156
6164 std::optional<std::int32_t> maxTipAmount { };
6165
6172 std::optional<std::vector<std::int32_t>> suggestedTipAmounts { };
6173
6179 std::optional<std::string> providerData { };
6180
6185 std::optional<std::string> photoUrl { };
6186
6190 std::optional<std::int32_t> photoSize { };
6191
6195 std::optional<std::int32_t> photoWidth { };
6196
6200 std::optional<std::int32_t> photoHeight { };
6201
6206 std::optional<bool> needName { };
6207
6212 std::optional<bool> needPhoneNumber { };
6213
6218 std::optional<bool> needEmail { };
6219
6224 std::optional<bool> needShippingAddress { };
6225
6230 std::optional<bool> sendPhoneNumberToProvider { };
6231
6236 std::optional<bool> sendEmailToProvider { };
6237
6242 std::optional<bool> isFlexible { };
6243};
6244
6245TGBOT_API void from_json(const nlohmann::json& json, InputInvoiceMessageContent& value);
6246TGBOT_API void to_json(nlohmann::json& json, const InputInvoiceMessageContent& value);
6247
6253 using Ptr = std::shared_ptr<InputLocationMessageContent>;
6254
6258 double latitude { };
6259
6263 double longitude { };
6264
6268 std::optional<double> horizontalAccuracy { };
6269
6274 std::optional<std::int32_t> livePeriod { };
6275
6280 std::optional<std::int32_t> heading { };
6281
6286 std::optional<std::int32_t> proximityAlertRadius { };
6287};
6288
6289TGBOT_API void from_json(const nlohmann::json& json, InputLocationMessageContent& value);
6290TGBOT_API void to_json(nlohmann::json& json, const InputLocationMessageContent& value);
6291
6299 using Ptr = std::shared_ptr<InputMedia>;
6300
6301 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaAudio>,
6302 std::shared_ptr<InputMediaDocument>, std::shared_ptr<InputMediaLivePhoto>,
6303 std::shared_ptr<InputMediaPhoto>, std::shared_ptr<InputMediaVideo>>
6305};
6306
6307TGBOT_API void from_json(const nlohmann::json& json, InputMedia& value);
6308TGBOT_API void to_json(nlohmann::json& json, const InputMedia& value);
6309
6315 using Ptr = std::shared_ptr<InputMediaAnimation>;
6316
6317 static TGBOT_API const std::string TYPE;
6318
6322 std::string type { TYPE };
6323
6330 std::string media { };
6331
6341 std::optional<std::string> thumbnail { };
6342
6346 std::optional<std::string> caption { };
6347
6352 std::optional<std::string> parseMode { };
6353
6358 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6359
6363 std::optional<bool> showCaptionAboveMedia { };
6364
6368 std::optional<std::int32_t> width { };
6369
6373 std::optional<std::int32_t> height { };
6374
6378 std::optional<std::int32_t> duration { };
6379
6383 std::optional<bool> hasSpoiler { };
6384};
6385
6386TGBOT_API void from_json(const nlohmann::json& json, InputMediaAnimation& value);
6387TGBOT_API void to_json(nlohmann::json& json, const InputMediaAnimation& value);
6388
6394 using Ptr = std::shared_ptr<InputMediaAudio>;
6395
6396 static TGBOT_API const std::string TYPE;
6397
6401 std::string type { TYPE };
6402
6409 std::string media { };
6410
6420 std::optional<std::string> thumbnail { };
6421
6425 std::optional<std::string> caption { };
6426
6431 std::optional<std::string> parseMode { };
6432
6437 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6438
6442 std::optional<std::int32_t> duration { };
6443
6447 std::optional<std::string> performer { };
6448
6452 std::optional<std::string> title { };
6453};
6454
6455TGBOT_API void from_json(const nlohmann::json& json, InputMediaAudio& value);
6456TGBOT_API void to_json(nlohmann::json& json, const InputMediaAudio& value);
6457
6463 using Ptr = std::shared_ptr<InputMediaDocument>;
6464
6465 static TGBOT_API const std::string TYPE;
6466
6470 std::string type { TYPE };
6471
6478 std::string media { };
6479
6489 std::optional<std::string> thumbnail { };
6490
6494 std::optional<std::string> caption { };
6495
6500 std::optional<std::string> parseMode { };
6501
6506 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6507
6512 std::optional<bool> disableContentTypeDetection { };
6513};
6514
6515TGBOT_API void from_json(const nlohmann::json& json, InputMediaDocument& value);
6516TGBOT_API void to_json(nlohmann::json& json, const InputMediaDocument& value);
6517
6523 using Ptr = std::shared_ptr<InputMediaLink>;
6524
6525 static TGBOT_API const std::string TYPE;
6526
6530 std::string type { TYPE };
6531
6535 std::string url { };
6536};
6537
6538TGBOT_API void from_json(const nlohmann::json& json, InputMediaLink& value);
6539TGBOT_API void to_json(nlohmann::json& json, const InputMediaLink& value);
6540
6546 using Ptr = std::shared_ptr<InputMediaLivePhoto>;
6547
6548 static TGBOT_API const std::string TYPE;
6549
6553 std::string type { TYPE };
6554
6561 std::string media { };
6562
6569 std::string photo { };
6570
6574 std::optional<std::string> caption { };
6575
6580 std::optional<std::string> parseMode { };
6581
6586 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6587
6591 std::optional<bool> showCaptionAboveMedia { };
6592
6596 std::optional<bool> hasSpoiler { };
6597};
6598
6599TGBOT_API void from_json(const nlohmann::json& json, InputMediaLivePhoto& value);
6600TGBOT_API void to_json(nlohmann::json& json, const InputMediaLivePhoto& value);
6601
6607 using Ptr = std::shared_ptr<InputMediaLocation>;
6608
6609 static TGBOT_API const std::string TYPE;
6610
6614 std::string type { TYPE };
6615
6619 double latitude { };
6620
6624 double longitude { };
6625
6629 std::optional<double> horizontalAccuracy { };
6630};
6631
6632TGBOT_API void from_json(const nlohmann::json& json, InputMediaLocation& value);
6633TGBOT_API void to_json(nlohmann::json& json, const InputMediaLocation& value);
6634
6640 using Ptr = std::shared_ptr<InputMediaPhoto>;
6641
6642 static TGBOT_API const std::string TYPE;
6643
6647 std::string type { TYPE };
6648
6655 std::string media { };
6656
6660 std::optional<std::string> caption { };
6661
6666 std::optional<std::string> parseMode { };
6667
6672 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6673
6677 std::optional<bool> showCaptionAboveMedia { };
6678
6682 std::optional<bool> hasSpoiler { };
6683};
6684
6685TGBOT_API void from_json(const nlohmann::json& json, InputMediaPhoto& value);
6686TGBOT_API void to_json(nlohmann::json& json, const InputMediaPhoto& value);
6687
6693 using Ptr = std::shared_ptr<InputMediaSticker>;
6694
6695 static TGBOT_API const std::string TYPE;
6696
6700 std::string type { TYPE };
6701
6709 std::string media { };
6710
6714 std::optional<std::string> emoji { };
6715};
6716
6717TGBOT_API void from_json(const nlohmann::json& json, InputMediaSticker& value);
6718TGBOT_API void to_json(nlohmann::json& json, const InputMediaSticker& value);
6719
6725 using Ptr = std::shared_ptr<InputMediaVenue>;
6726
6727 static TGBOT_API const std::string TYPE;
6728
6732 std::string type { TYPE };
6733
6737 double latitude { };
6738
6742 double longitude { };
6743
6747 std::string title { };
6748
6752 std::string address { };
6753
6757 std::optional<std::string> foursquareId { };
6758
6763 std::optional<std::string> foursquareType { };
6764
6768 std::optional<std::string> googlePlaceId { };
6769
6773 std::optional<std::string> googlePlaceType { };
6774};
6775
6776TGBOT_API void from_json(const nlohmann::json& json, InputMediaVenue& value);
6777TGBOT_API void to_json(nlohmann::json& json, const InputMediaVenue& value);
6778
6784 using Ptr = std::shared_ptr<InputMediaVideo>;
6785
6786 static TGBOT_API const std::string TYPE;
6787
6791 std::string type { TYPE };
6792
6799 std::string media { };
6800
6810 std::optional<std::string> thumbnail { };
6811
6818 std::optional<std::string> cover { };
6819
6823 std::optional<std::int32_t> startTimestamp { };
6824
6828 std::optional<std::string> caption { };
6829
6834 std::optional<std::string> parseMode { };
6835
6840 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6841
6845 std::optional<bool> showCaptionAboveMedia { };
6846
6850 std::optional<std::int32_t> width { };
6851
6855 std::optional<std::int32_t> height { };
6856
6860 std::optional<std::int32_t> duration { };
6861
6865 std::optional<bool> supportsStreaming { };
6866
6870 std::optional<bool> hasSpoiler { };
6871};
6872
6873TGBOT_API void from_json(const nlohmann::json& json, InputMediaVideo& value);
6874TGBOT_API void to_json(nlohmann::json& json, const InputMediaVideo& value);
6875
6881 using Ptr = std::shared_ptr<InputMediaVoiceNote>;
6882
6883 static TGBOT_API const std::string TYPE;
6884
6888 std::string type { TYPE };
6889
6896 std::string media { };
6897
6902 std::optional<std::string> caption { };
6903
6908 std::optional<std::string> parseMode { };
6909
6914 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6915
6919 std::optional<std::int32_t> duration { };
6920};
6921
6922TGBOT_API void from_json(const nlohmann::json& json, InputMediaVoiceNote& value);
6923TGBOT_API void to_json(nlohmann::json& json, const InputMediaVoiceNote& value);
6924
6933 using Ptr = std::shared_ptr<InputMessageContent>;
6934
6935 std::variant<std::shared_ptr<InputTextMessageContent>, std::shared_ptr<InputRichMessageContent>,
6936 std::shared_ptr<InputLocationMessageContent>, std::shared_ptr<InputVenueMessageContent>,
6937 std::shared_ptr<InputContactMessageContent>, std::shared_ptr<InputInvoiceMessageContent>>
6939};
6940
6941TGBOT_API void from_json(const nlohmann::json& json, InputMessageContent& value);
6942TGBOT_API void to_json(nlohmann::json& json, const InputMessageContent& value);
6943
6950 using Ptr = std::shared_ptr<InputPaidMedia>;
6951
6952 std::variant<std::shared_ptr<InputPaidMediaLivePhoto>, std::shared_ptr<InputPaidMediaPhoto>,
6953 std::shared_ptr<InputPaidMediaVideo>>
6955};
6956
6957TGBOT_API void from_json(const nlohmann::json& json, InputPaidMedia& value);
6958TGBOT_API void to_json(nlohmann::json& json, const InputPaidMedia& value);
6959
6965 using Ptr = std::shared_ptr<InputPaidMediaLivePhoto>;
6966
6967 static TGBOT_API const std::string TYPE;
6968
6972 std::string type { TYPE };
6973
6980 std::string media { };
6981
6988 std::string photo { };
6989};
6990
6991TGBOT_API void from_json(const nlohmann::json& json, InputPaidMediaLivePhoto& value);
6992TGBOT_API void to_json(nlohmann::json& json, const InputPaidMediaLivePhoto& value);
6993
6999 using Ptr = std::shared_ptr<InputPaidMediaPhoto>;
7000
7001 static TGBOT_API const std::string TYPE;
7002
7006 std::string type { TYPE };
7007
7014 std::string media { };
7015};
7016
7017TGBOT_API void from_json(const nlohmann::json& json, InputPaidMediaPhoto& value);
7018TGBOT_API void to_json(nlohmann::json& json, const InputPaidMediaPhoto& value);
7019
7025 using Ptr = std::shared_ptr<InputPaidMediaVideo>;
7026
7027 static TGBOT_API const std::string TYPE;
7028
7032 std::string type { TYPE };
7033
7040 std::string media { };
7041
7051 std::optional<std::string> thumbnail { };
7052
7059 std::optional<std::string> cover { };
7060
7064 std::optional<std::int32_t> startTimestamp { };
7065
7069 std::optional<std::int32_t> width { };
7070
7074 std::optional<std::int32_t> height { };
7075
7079 std::optional<std::int32_t> duration { };
7080
7084 std::optional<bool> supportsStreaming { };
7085};
7086
7087TGBOT_API void from_json(const nlohmann::json& json, InputPaidMediaVideo& value);
7088TGBOT_API void to_json(nlohmann::json& json, const InputPaidMediaVideo& value);
7089
7097 using Ptr = std::shared_ptr<InputPollMedia>;
7098
7099 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaAudio>,
7100 std::shared_ptr<InputMediaDocument>, std::shared_ptr<InputMediaLivePhoto>,
7101 std::shared_ptr<InputMediaLocation>, std::shared_ptr<InputMediaPhoto>,
7102 std::shared_ptr<InputMediaVenue>, std::shared_ptr<InputMediaVideo>>
7104};
7105
7106TGBOT_API void from_json(const nlohmann::json& json, InputPollMedia& value);
7107TGBOT_API void to_json(nlohmann::json& json, const InputPollMedia& value);
7108
7114 using Ptr = std::shared_ptr<InputPollOption>;
7115
7119 std::string text { };
7120
7125 std::optional<std::string> textParseMode { };
7126
7131 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
7132
7136 std::shared_ptr<InputPollOptionMedia> media { };
7137};
7138
7139TGBOT_API void from_json(const nlohmann::json& json, InputPollOption& value);
7140TGBOT_API void to_json(nlohmann::json& json, const InputPollOption& value);
7141
7149 using Ptr = std::shared_ptr<InputPollOptionMedia>;
7150
7151 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaLink>,
7152 std::shared_ptr<InputMediaLivePhoto>, std::shared_ptr<InputMediaLocation>,
7153 std::shared_ptr<InputMediaPhoto>, std::shared_ptr<InputMediaSticker>, std::shared_ptr<InputMediaVenue>,
7154 std::shared_ptr<InputMediaVideo>>
7156};
7157
7158TGBOT_API void from_json(const nlohmann::json& json, InputPollOptionMedia& value);
7159TGBOT_API void to_json(nlohmann::json& json, const InputPollOptionMedia& value);
7160
7167 using Ptr = std::shared_ptr<InputProfilePhoto>;
7168
7169 std::variant<std::shared_ptr<InputProfilePhotoStatic>, std::shared_ptr<InputProfilePhotoAnimated>> value;
7170};
7171
7172TGBOT_API void from_json(const nlohmann::json& json, InputProfilePhoto& value);
7173TGBOT_API void to_json(nlohmann::json& json, const InputProfilePhoto& value);
7174
7180 using Ptr = std::shared_ptr<InputProfilePhotoAnimated>;
7181
7182 static TGBOT_API const std::string TYPE;
7183
7187 std::string type { TYPE };
7188
7194 std::string animation { };
7195
7200 std::optional<double> mainFrameTimestamp { };
7201};
7202
7203TGBOT_API void from_json(const nlohmann::json& json, InputProfilePhotoAnimated& value);
7204TGBOT_API void to_json(nlohmann::json& json, const InputProfilePhotoAnimated& value);
7205
7211 using Ptr = std::shared_ptr<InputProfilePhotoStatic>;
7212
7213 static TGBOT_API const std::string TYPE;
7214
7218 std::string type { TYPE };
7219
7225 std::string photo { };
7226};
7227
7228TGBOT_API void from_json(const nlohmann::json& json, InputProfilePhotoStatic& value);
7229TGBOT_API void to_json(nlohmann::json& json, const InputProfilePhotoStatic& value);
7230
7243 using Ptr = std::shared_ptr<InputRichBlock>;
7244
7245 std::variant<std::shared_ptr<InputRichBlockParagraph>, std::shared_ptr<InputRichBlockSectionHeading>,
7246 std::shared_ptr<InputRichBlockPreformatted>, std::shared_ptr<InputRichBlockFooter>,
7247 std::shared_ptr<InputRichBlockDivider>, std::shared_ptr<InputRichBlockMathematicalExpression>,
7248 std::shared_ptr<InputRichBlockAnchor>, std::shared_ptr<InputRichBlockList>,
7249 std::shared_ptr<InputRichBlockBlockQuotation>, std::shared_ptr<InputRichBlockPullQuotation>,
7250 std::shared_ptr<InputRichBlockCollage>, std::shared_ptr<InputRichBlockSlideshow>,
7251 std::shared_ptr<InputRichBlockTable>, std::shared_ptr<InputRichBlockDetails>,
7252 std::shared_ptr<InputRichBlockMap>, std::shared_ptr<InputRichBlockAnimation>,
7253 std::shared_ptr<InputRichBlockAudio>, std::shared_ptr<InputRichBlockPhoto>,
7254 std::shared_ptr<InputRichBlockVideo>, std::shared_ptr<InputRichBlockVoiceNote>,
7255 std::shared_ptr<InputRichBlockThinking>>
7257};
7258
7259TGBOT_API void from_json(const nlohmann::json& json, InputRichBlock& value);
7260TGBOT_API void to_json(nlohmann::json& json, const InputRichBlock& value);
7261
7267 using Ptr = std::shared_ptr<InputRichBlockAnchor>;
7268
7269 static TGBOT_API const std::string TYPE;
7270
7274 std::string type { TYPE };
7275
7279 std::string name { };
7280};
7281
7282TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockAnchor& value);
7283TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockAnchor& value);
7284
7290 using Ptr = std::shared_ptr<InputRichBlockAnimation>;
7291
7292 static TGBOT_API const std::string TYPE;
7293
7297 std::string type { TYPE };
7298
7302 std::shared_ptr<InputMediaAnimation> animation { };
7303
7307 std::shared_ptr<RichBlockCaption> caption { };
7308};
7309
7310TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockAnimation& value);
7311TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockAnimation& value);
7312
7318 using Ptr = std::shared_ptr<InputRichBlockAudio>;
7319
7320 static TGBOT_API const std::string TYPE;
7321
7325 std::string type { TYPE };
7326
7330 std::shared_ptr<InputMediaAudio> audio { };
7331
7335 std::shared_ptr<RichBlockCaption> caption { };
7336};
7337
7338TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockAudio& value);
7339TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockAudio& value);
7340
7346 using Ptr = std::shared_ptr<InputRichBlockBlockQuotation>;
7347
7348 static TGBOT_API const std::string TYPE;
7349
7353 std::string type { TYPE };
7354
7358 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
7359
7363 std::shared_ptr<RichText> credit { };
7364};
7365
7366TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockBlockQuotation& value);
7367TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockBlockQuotation& value);
7368
7374 using Ptr = std::shared_ptr<InputRichBlockCollage>;
7375
7376 static TGBOT_API const std::string TYPE;
7377
7381 std::string type { TYPE };
7382
7386 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
7387
7391 std::shared_ptr<RichBlockCaption> caption { };
7392};
7393
7394TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockCollage& value);
7395TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockCollage& value);
7396
7402 using Ptr = std::shared_ptr<InputRichBlockDetails>;
7403
7404 static TGBOT_API const std::string TYPE;
7405
7409 std::string type { TYPE };
7410
7414 std::shared_ptr<RichText> summary { };
7415
7419 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
7420
7424 std::optional<bool> isOpen { };
7425};
7426
7427TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockDetails& value);
7428TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockDetails& value);
7429
7435 using Ptr = std::shared_ptr<InputRichBlockDivider>;
7436
7437 static TGBOT_API const std::string TYPE;
7438
7442 std::string type { TYPE };
7443};
7444
7445TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockDivider& value);
7446TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockDivider& value);
7447
7453 using Ptr = std::shared_ptr<InputRichBlockFooter>;
7454
7455 static TGBOT_API const std::string TYPE;
7456
7460 std::string type { TYPE };
7461
7465 std::shared_ptr<RichText> text { };
7466};
7467
7468TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockFooter& value);
7469TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockFooter& value);
7470
7476 using Ptr = std::shared_ptr<InputRichBlockList>;
7477
7478 static TGBOT_API const std::string TYPE;
7479
7483 std::string type { TYPE };
7484
7488 std::vector<std::shared_ptr<InputRichBlockListItem>> items { };
7489};
7490
7491TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockList& value);
7492TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockList& value);
7493
7499 using Ptr = std::shared_ptr<InputRichBlockListItem>;
7500
7504 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
7505
7509 std::optional<bool> hasCheckbox { };
7510
7514 std::optional<bool> isChecked { };
7515
7519 std::optional<std::int32_t> value { };
7520
7526 std::optional<std::string> type { };
7527};
7528
7529TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockListItem& value);
7530TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockListItem& value);
7531
7538 using Ptr = std::shared_ptr<InputRichBlockMap>;
7539
7540 static TGBOT_API const std::string TYPE;
7541
7545 std::string type { TYPE };
7546
7550 std::shared_ptr<Location> location { };
7551
7555 std::int32_t zoom { };
7556
7560 std::int32_t width { };
7561
7565 std::int32_t height { };
7566
7570 std::shared_ptr<RichBlockCaption> caption { };
7571};
7572
7573TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockMap& value);
7574TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockMap& value);
7575
7582 using Ptr = std::shared_ptr<InputRichBlockMathematicalExpression>;
7583
7584 static TGBOT_API const std::string TYPE;
7585
7589 std::string type { TYPE };
7590
7594 std::string expression { };
7595};
7596
7597TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockMathematicalExpression& value);
7598TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockMathematicalExpression& value);
7599
7605 using Ptr = std::shared_ptr<InputRichBlockParagraph>;
7606
7607 static TGBOT_API const std::string TYPE;
7608
7612 std::string type { TYPE };
7613
7617 std::shared_ptr<RichText> text { };
7618};
7619
7620TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockParagraph& value);
7621TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockParagraph& value);
7622
7628 using Ptr = std::shared_ptr<InputRichBlockPhoto>;
7629
7630 static TGBOT_API const std::string TYPE;
7631
7635 std::string type { TYPE };
7636
7640 std::shared_ptr<InputMediaPhoto> photo { };
7641
7645 std::shared_ptr<RichBlockCaption> caption { };
7646};
7647
7648TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockPhoto& value);
7649TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockPhoto& value);
7650
7656 using Ptr = std::shared_ptr<InputRichBlockPreformatted>;
7657
7658 static TGBOT_API const std::string TYPE;
7659
7663 std::string type { TYPE };
7664
7668 std::shared_ptr<RichText> text { };
7669
7673 std::optional<std::string> language { };
7674};
7675
7676TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockPreformatted& value);
7677TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockPreformatted& value);
7678
7684 using Ptr = std::shared_ptr<InputRichBlockPullQuotation>;
7685
7686 static TGBOT_API const std::string TYPE;
7687
7691 std::string type { TYPE };
7692
7696 std::shared_ptr<RichText> text { };
7697
7701 std::shared_ptr<RichText> credit { };
7702};
7703
7704TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockPullQuotation& value);
7705TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockPullQuotation& value);
7706
7712 using Ptr = std::shared_ptr<InputRichBlockSectionHeading>;
7713
7714 static TGBOT_API const std::string TYPE;
7715
7719 std::string type { TYPE };
7720
7724 std::shared_ptr<RichText> text { };
7725
7729 std::int32_t size { };
7730};
7731
7732TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockSectionHeading& value);
7733TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockSectionHeading& value);
7734
7740 using Ptr = std::shared_ptr<InputRichBlockSlideshow>;
7741
7742 static TGBOT_API const std::string TYPE;
7743
7747 std::string type { TYPE };
7748
7752 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
7753
7757 std::shared_ptr<RichBlockCaption> caption { };
7758};
7759
7760TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockSlideshow& value);
7761TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockSlideshow& value);
7762
7768 using Ptr = std::shared_ptr<InputRichBlockTable>;
7769
7770 static TGBOT_API const std::string TYPE;
7771
7775 std::string type { TYPE };
7776
7780 std::vector<std::vector<std::shared_ptr<RichBlockTableCell>>> cells { };
7781
7785 std::optional<bool> isBordered { };
7786
7790 std::optional<bool> isStriped { };
7791
7795 std::shared_ptr<RichText> caption { };
7796};
7797
7798TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockTable& value);
7799TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockTable& value);
7800
7809 using Ptr = std::shared_ptr<InputRichBlockThinking>;
7810
7811 static TGBOT_API const std::string TYPE;
7812
7816 std::string type { TYPE };
7817
7822 std::shared_ptr<RichText> text { };
7823};
7824
7825TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockThinking& value);
7826TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockThinking& value);
7827
7833 using Ptr = std::shared_ptr<InputRichBlockVideo>;
7834
7835 static TGBOT_API const std::string TYPE;
7836
7840 std::string type { TYPE };
7841
7845 std::shared_ptr<InputMediaVideo> video { };
7846
7850 std::shared_ptr<RichBlockCaption> caption { };
7851};
7852
7853TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockVideo& value);
7854TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockVideo& value);
7855
7861 using Ptr = std::shared_ptr<InputRichBlockVoiceNote>;
7862
7863 static TGBOT_API const std::string TYPE;
7864
7868 std::string type { TYPE };
7869
7873 std::shared_ptr<InputMediaVoiceNote> voiceNote { };
7874
7878 std::shared_ptr<RichBlockCaption> caption { };
7879};
7880
7881TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockVoiceNote& value);
7882TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockVoiceNote& value);
7883
7890 using Ptr = std::shared_ptr<InputRichMessage>;
7891
7895 std::optional<std::vector<std::shared_ptr<InputRichBlock>>> blocks { };
7896
7902 std::optional<std::string> html { };
7903
7909 std::optional<std::string> markdown { };
7910
7915 std::optional<std::vector<std::shared_ptr<InputRichMessageMedia>>> media { };
7916
7920 std::optional<bool> isRtl { };
7921
7927 std::optional<bool> skipEntityDetection { };
7928};
7929
7930TGBOT_API void from_json(const nlohmann::json& json, InputRichMessage& value);
7931TGBOT_API void to_json(nlohmann::json& json, const InputRichMessage& value);
7932
7938 using Ptr = std::shared_ptr<InputRichMessageContent>;
7939
7943 std::shared_ptr<InputRichMessage> richMessage { };
7944};
7945
7946TGBOT_API void from_json(const nlohmann::json& json, InputRichMessageContent& value);
7947TGBOT_API void to_json(nlohmann::json& json, const InputRichMessageContent& value);
7948
7954 using Ptr = std::shared_ptr<InputRichMessageMedia>;
7955
7960 std::string id { };
7961
7965 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaAudio>,
7966 std::shared_ptr<InputMediaPhoto>, std::shared_ptr<InputMediaVideo>,
7967 std::shared_ptr<InputMediaVoiceNote>>
7969};
7970
7971TGBOT_API void from_json(const nlohmann::json& json, InputRichMessageMedia& value);
7972TGBOT_API void to_json(nlohmann::json& json, const InputRichMessageMedia& value);
7973
7979 using Ptr = std::shared_ptr<InputSticker>;
7980
7988 std::string sticker { };
7989
7994 std::string format { };
7995
7999 std::vector<std::string> emojiList { };
8000
8004 std::shared_ptr<MaskPosition> maskPosition { };
8005
8010 std::optional<std::vector<std::string>> keywords { };
8011};
8012
8013TGBOT_API void from_json(const nlohmann::json& json, InputSticker& value);
8014TGBOT_API void to_json(nlohmann::json& json, const InputSticker& value);
8015
8022 using Ptr = std::shared_ptr<InputStoryContent>;
8023
8024 std::variant<std::shared_ptr<InputStoryContentPhoto>, std::shared_ptr<InputStoryContentVideo>> value;
8025};
8026
8027TGBOT_API void from_json(const nlohmann::json& json, InputStoryContent& value);
8028TGBOT_API void to_json(nlohmann::json& json, const InputStoryContent& value);
8029
8035 using Ptr = std::shared_ptr<InputStoryContentPhoto>;
8036
8037 static TGBOT_API const std::string TYPE;
8038
8042 std::string type { TYPE };
8043
8050 std::string photo { };
8051};
8052
8053TGBOT_API void from_json(const nlohmann::json& json, InputStoryContentPhoto& value);
8054TGBOT_API void to_json(nlohmann::json& json, const InputStoryContentPhoto& value);
8055
8061 using Ptr = std::shared_ptr<InputStoryContentVideo>;
8062
8063 static TGBOT_API const std::string TYPE;
8064
8068 std::string type { TYPE };
8069
8077 std::string video { };
8078
8082 std::optional<double> duration { };
8083
8088 std::optional<double> coverFrameTimestamp { };
8089
8093 std::optional<bool> isAnimation { };
8094};
8095
8096TGBOT_API void from_json(const nlohmann::json& json, InputStoryContentVideo& value);
8097TGBOT_API void to_json(nlohmann::json& json, const InputStoryContentVideo& value);
8098
8104 using Ptr = std::shared_ptr<InputTextMessageContent>;
8105
8109 std::string messageText { };
8110
8115 std::optional<std::string> parseMode { };
8116
8121 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
8122
8126 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions { };
8127};
8128
8129TGBOT_API void from_json(const nlohmann::json& json, InputTextMessageContent& value);
8130TGBOT_API void to_json(nlohmann::json& json, const InputTextMessageContent& value);
8131
8137 using Ptr = std::shared_ptr<InputVenueMessageContent>;
8138
8142 double latitude { };
8143
8147 double longitude { };
8148
8152 std::string title { };
8153
8157 std::string address { };
8158
8162 std::optional<std::string> foursquareId { };
8163
8168 std::optional<std::string> foursquareType { };
8169
8173 std::optional<std::string> googlePlaceId { };
8174
8178 std::optional<std::string> googlePlaceType { };
8179};
8180
8181TGBOT_API void from_json(const nlohmann::json& json, InputVenueMessageContent& value);
8182TGBOT_API void to_json(nlohmann::json& json, const InputVenueMessageContent& value);
8183
8188struct Invoice {
8189 using Ptr = std::shared_ptr<Invoice>;
8190
8194 std::string title { };
8195
8199 std::string description { };
8200
8204 std::string startParameter { };
8205
8209 std::string currency { };
8210
8217 std::int32_t totalAmount { };
8218};
8219
8220TGBOT_API void from_json(const nlohmann::json& json, Invoice& value);
8221TGBOT_API void to_json(nlohmann::json& json, const Invoice& value);
8222
8231 using Ptr = std::shared_ptr<KeyboardButton>;
8232
8237 std::string text { };
8238
8245 std::optional<std::string> iconCustomEmojiId { };
8246
8251 std::optional<std::string> style { };
8252
8258 std::shared_ptr<KeyboardButtonRequestUsers> requestUsers { };
8259
8265 std::shared_ptr<KeyboardButtonRequestChat> requestChat { };
8266
8272 std::shared_ptr<KeyboardButtonRequestManagedBot> requestManagedBot { };
8273
8278 std::optional<bool> requestContact { };
8279
8284 std::optional<bool> requestLocation { };
8285
8290 std::shared_ptr<KeyboardButtonPollType> requestPoll { };
8291
8297 std::shared_ptr<WebAppInfo> webApp { };
8298};
8299
8300TGBOT_API void from_json(const nlohmann::json& json, KeyboardButton& value);
8301TGBOT_API void to_json(nlohmann::json& json, const KeyboardButton& value);
8302
8309 using Ptr = std::shared_ptr<KeyboardButtonPollType>;
8310
8316 std::optional<std::string> type { };
8317};
8318
8319TGBOT_API void from_json(const nlohmann::json& json, KeyboardButtonPollType& value);
8320TGBOT_API void to_json(nlohmann::json& json, const KeyboardButtonPollType& value);
8321
8329 using Ptr = std::shared_ptr<KeyboardButtonRequestChat>;
8330
8335 std::int32_t requestId { };
8336
8341
8346 std::optional<bool> chatIsForum { };
8347
8353 std::optional<bool> chatHasUsername { };
8354
8359 std::optional<bool> chatIsCreated { };
8360
8366 std::shared_ptr<ChatAdministratorRights> userAdministratorRights { };
8367
8373 std::shared_ptr<ChatAdministratorRights> botAdministratorRights { };
8374
8379 std::optional<bool> botIsMember { };
8380
8384 std::optional<bool> requestTitle { };
8385
8389 std::optional<bool> requestUsername { };
8390
8394 std::optional<bool> requestPhoto { };
8395};
8396
8397TGBOT_API void from_json(const nlohmann::json& json, KeyboardButtonRequestChat& value);
8398TGBOT_API void to_json(nlohmann::json& json, const KeyboardButtonRequestChat& value);
8399
8407 using Ptr = std::shared_ptr<KeyboardButtonRequestManagedBot>;
8408
8412 std::int32_t requestId { };
8413
8417 std::optional<std::string> suggestedName { };
8418
8422 std::optional<std::string> suggestedUsername { };
8423};
8424
8425TGBOT_API void from_json(const nlohmann::json& json, KeyboardButtonRequestManagedBot& value);
8426TGBOT_API void to_json(nlohmann::json& json, const KeyboardButtonRequestManagedBot& value);
8427
8435 using Ptr = std::shared_ptr<KeyboardButtonRequestUsers>;
8436
8441 std::int32_t requestId { };
8442
8447 std::optional<bool> userIsBot { };
8448
8453 std::optional<bool> userIsPremium { };
8454
8458 std::optional<std::int32_t> maxQuantity { };
8459
8463 std::optional<bool> requestName { };
8464
8468 std::optional<bool> requestUsername { };
8469
8473 std::optional<bool> requestPhoto { };
8474};
8475
8476TGBOT_API void from_json(const nlohmann::json& json, KeyboardButtonRequestUsers& value);
8477TGBOT_API void to_json(nlohmann::json& json, const KeyboardButtonRequestUsers& value);
8478
8484 using Ptr = std::shared_ptr<LabeledPrice>;
8485
8489 std::string label { };
8490
8497 std::int32_t amount { };
8498};
8499
8500TGBOT_API void from_json(const nlohmann::json& json, LabeledPrice& value);
8501TGBOT_API void to_json(nlohmann::json& json, const LabeledPrice& value);
8502
8507struct Link {
8508 using Ptr = std::shared_ptr<Link>;
8509
8513 std::string url { };
8514};
8515
8516TGBOT_API void from_json(const nlohmann::json& json, Link& value);
8517TGBOT_API void to_json(nlohmann::json& json, const Link& value);
8518
8524 using Ptr = std::shared_ptr<LinkPreviewOptions>;
8525
8529 std::optional<bool> isDisabled { };
8530
8535 std::optional<std::string> url { };
8536
8541 std::optional<bool> preferSmallMedia { };
8542
8547 std::optional<bool> preferLargeMedia { };
8548
8553 std::optional<bool> showAboveText { };
8554};
8555
8556TGBOT_API void from_json(const nlohmann::json& json, LinkPreviewOptions& value);
8557TGBOT_API void to_json(nlohmann::json& json, const LinkPreviewOptions& value);
8558
8564 using Ptr = std::shared_ptr<LivePhoto>;
8565
8569 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
8570
8574 std::string fileId { };
8575
8580 std::string fileUniqueId { };
8581
8585 std::int32_t width { };
8586
8590 std::int32_t height { };
8591
8595 std::int32_t duration { };
8596
8600 std::optional<std::string> mimeType { };
8601
8608 std::optional<std::int64_t> fileSize { };
8609};
8610
8611TGBOT_API void from_json(const nlohmann::json& json, LivePhoto& value);
8612TGBOT_API void to_json(nlohmann::json& json, const LivePhoto& value);
8613
8618struct Location {
8619 using Ptr = std::shared_ptr<Location>;
8620
8624 double latitude { };
8625
8629 double longitude { };
8630
8634 std::optional<double> horizontalAccuracy { };
8635
8640 std::optional<std::int32_t> livePeriod { };
8641
8646 std::optional<std::int32_t> heading { };
8647
8652 std::optional<std::int32_t> proximityAlertRadius { };
8653};
8654
8655TGBOT_API void from_json(const nlohmann::json& json, Location& value);
8656TGBOT_API void to_json(nlohmann::json& json, const Location& value);
8657
8663 using Ptr = std::shared_ptr<LocationAddress>;
8664
8669 std::string countryCode { };
8670
8674 std::optional<std::string> state { };
8675
8679 std::optional<std::string> city { };
8680
8684 std::optional<std::string> street { };
8685};
8686
8687TGBOT_API void from_json(const nlohmann::json& json, LocationAddress& value);
8688TGBOT_API void to_json(nlohmann::json& json, const LocationAddress& value);
8689
8697struct LoginUrl {
8698 using Ptr = std::shared_ptr<LoginUrl>;
8699
8708 std::string url { };
8709
8713 std::optional<std::string> forwardText { };
8714
8721 std::optional<std::string> botUsername { };
8722
8726 std::optional<bool> requestWriteAccess { };
8727};
8728
8729TGBOT_API void from_json(const nlohmann::json& json, LoginUrl& value);
8730TGBOT_API void to_json(nlohmann::json& json, const LoginUrl& value);
8731
8738 using Ptr = std::shared_ptr<ManagedBotCreated>;
8739
8744 std::shared_ptr<User> bot { };
8745};
8746
8747TGBOT_API void from_json(const nlohmann::json& json, ManagedBotCreated& value);
8748TGBOT_API void to_json(nlohmann::json& json, const ManagedBotCreated& value);
8749
8756 using Ptr = std::shared_ptr<ManagedBotUpdated>;
8757
8761 std::shared_ptr<User> user { };
8762
8767 std::shared_ptr<User> bot { };
8768};
8769
8770TGBOT_API void from_json(const nlohmann::json& json, ManagedBotUpdated& value);
8771TGBOT_API void to_json(nlohmann::json& json, const ManagedBotUpdated& value);
8772
8778 using Ptr = std::shared_ptr<MaskPosition>;
8779
8784 std::string point { };
8785
8791 double xShift { };
8792
8797 double yShift { };
8798
8802 double scale { };
8803};
8804
8805TGBOT_API void from_json(const nlohmann::json& json, MaskPosition& value);
8806TGBOT_API void to_json(nlohmann::json& json, const MaskPosition& value);
8807
8814 using Ptr = std::shared_ptr<MaybeInaccessibleMessage>;
8815
8816 std::variant<std::shared_ptr<Message>, std::shared_ptr<InaccessibleMessage>> value;
8817};
8818
8819TGBOT_API void from_json(const nlohmann::json& json, MaybeInaccessibleMessage& value);
8820TGBOT_API void to_json(nlohmann::json& json, const MaybeInaccessibleMessage& value);
8821
8830 using Ptr = std::shared_ptr<MenuButton>;
8831
8832 std::variant<std::shared_ptr<MenuButtonCommands>, std::shared_ptr<MenuButtonWebApp>,
8833 std::shared_ptr<MenuButtonDefault>>
8835};
8836
8837TGBOT_API void from_json(const nlohmann::json& json, MenuButton& value);
8838TGBOT_API void to_json(nlohmann::json& json, const MenuButton& value);
8839
8845 using Ptr = std::shared_ptr<MenuButtonCommands>;
8846
8847 static TGBOT_API const std::string TYPE;
8848
8852 std::string type { TYPE };
8853};
8854
8855TGBOT_API void from_json(const nlohmann::json& json, MenuButtonCommands& value);
8856TGBOT_API void to_json(nlohmann::json& json, const MenuButtonCommands& value);
8857
8863 using Ptr = std::shared_ptr<MenuButtonDefault>;
8864
8865 static TGBOT_API const std::string TYPE;
8866
8870 std::string type { TYPE };
8871};
8872
8873TGBOT_API void from_json(const nlohmann::json& json, MenuButtonDefault& value);
8874TGBOT_API void to_json(nlohmann::json& json, const MenuButtonDefault& value);
8875
8881 using Ptr = std::shared_ptr<MenuButtonWebApp>;
8882
8883 static TGBOT_API const std::string TYPE;
8884
8888 std::string type { TYPE };
8889
8893 std::string text { };
8894
8902 std::shared_ptr<WebAppInfo> webApp { };
8903};
8904
8905TGBOT_API void from_json(const nlohmann::json& json, MenuButtonWebApp& value);
8906TGBOT_API void to_json(nlohmann::json& json, const MenuButtonWebApp& value);
8907
8912struct Message {
8913 using Ptr = std::shared_ptr<Message>;
8914
8921 std::int32_t messageId { };
8922
8927 std::optional<std::int32_t> messageThreadId { };
8928
8932 std::shared_ptr<DirectMessagesTopic> directMessagesTopic { };
8933
8939 std::shared_ptr<User> from { };
8940
8948 std::shared_ptr<Chat> senderChat { };
8949
8954 std::optional<std::int32_t> senderBoostCount { };
8955
8960 std::shared_ptr<User> senderBusinessBot { };
8961
8965 std::optional<std::string> senderTag { };
8966
8970 std::shared_ptr<User> receiverUser { };
8971
8977 std::optional<std::int32_t> ephemeralMessageId { };
8978
8983 std::int32_t date { };
8984
8991 std::optional<std::string> guestQueryId { };
8992
8999 std::optional<std::string> businessConnectionId { };
9000
9004 std::shared_ptr<Chat> chat { };
9005
9009 std::shared_ptr<MessageOrigin> forwardOrigin { };
9010
9015 std::optional<bool> isTopicMessage { };
9016
9021 std::optional<bool> isAutomaticForward { };
9022
9029 std::shared_ptr<Message> replyToMessage { };
9030
9035 std::shared_ptr<ExternalReplyInfo> externalReply { };
9036
9041 std::shared_ptr<TextQuote> quote { };
9042
9046 std::shared_ptr<Story> replyToStory { };
9047
9051 std::optional<std::int32_t> replyToChecklistTaskId { };
9052
9056 std::optional<std::string> replyToPollOptionId { };
9057
9061 std::shared_ptr<User> viaBot { };
9062
9067 std::shared_ptr<User> guestBotCallerUser { };
9068
9073 std::shared_ptr<Chat> guestBotCallerChat { };
9074
9078 std::optional<std::int32_t> editDate { };
9079
9083 std::optional<bool> hasProtectedContent { };
9084
9089 std::optional<bool> isFromOffline { };
9090
9095 std::optional<bool> isPaidPost { };
9096
9101 std::optional<std::string> mediaGroupId { };
9102
9107 std::optional<std::string> authorSignature { };
9108
9113 std::optional<std::int32_t> paidStarCount { };
9114
9118 std::optional<std::string> text { };
9119
9124 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
9125
9130 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions { };
9131
9137 std::shared_ptr<SuggestedPostInfo> suggestedPostInfo { };
9138
9142 std::optional<std::string> effectId { };
9143
9147 std::shared_ptr<RichMessage> richMessage { };
9148
9153 std::shared_ptr<Animation> animation { };
9154
9158 std::shared_ptr<Audio> audio { };
9159
9163 std::shared_ptr<Document> document { };
9164
9169 std::shared_ptr<LivePhoto> livePhoto { };
9170
9174 std::shared_ptr<PaidMediaInfo> paidMedia { };
9175
9179 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
9180
9184 std::shared_ptr<Sticker> sticker { };
9185
9189 std::shared_ptr<Story> story { };
9190
9194 std::shared_ptr<Video> video { };
9195
9199 std::shared_ptr<VideoNote> videoNote { };
9200
9204 std::shared_ptr<Voice> voice { };
9205
9209 std::optional<std::string> caption { };
9210
9215 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
9216
9220 std::optional<bool> showCaptionAboveMedia { };
9221
9225 std::optional<bool> hasMediaSpoiler { };
9226
9230 std::shared_ptr<Checklist> checklist { };
9231
9235 std::shared_ptr<Contact> contact { };
9236
9240 std::shared_ptr<Dice> dice { };
9241
9245 std::shared_ptr<Game> game { };
9246
9250 std::shared_ptr<Poll> poll { };
9251
9256 std::shared_ptr<Venue> venue { };
9257
9261 std::shared_ptr<Location> location { };
9262
9267 std::optional<std::vector<std::shared_ptr<User>>> newChatMembers { };
9268
9273 std::shared_ptr<User> leftChatMember { };
9274
9278 std::shared_ptr<ChatOwnerLeft> chatOwnerLeft { };
9279
9283 std::shared_ptr<ChatOwnerChanged> chatOwnerChanged { };
9284
9288 std::optional<std::string> newChatTitle { };
9289
9293 std::optional<std::vector<std::shared_ptr<PhotoSize>>> newChatPhoto { };
9294
9298 std::optional<bool> deleteChatPhoto { };
9299
9303 std::optional<bool> groupChatCreated { };
9304
9311 std::optional<bool> supergroupChatCreated { };
9312
9319 std::optional<bool> channelChatCreated { };
9320
9324 std::shared_ptr<MessageAutoDeleteTimerChanged> messageAutoDeleteTimerChanged { };
9325
9333 std::optional<std::int64_t> migrateToChatId { };
9334
9342 std::optional<std::int64_t> migrateFromChatId { };
9343
9348 std::shared_ptr<MaybeInaccessibleMessage> pinnedMessage { };
9349
9354 std::shared_ptr<Invoice> invoice { };
9355
9360 std::shared_ptr<SuccessfulPayment> successfulPayment { };
9361
9366 std::shared_ptr<RefundedPayment> refundedPayment { };
9367
9371 std::shared_ptr<UsersShared> usersShared { };
9372
9376 std::shared_ptr<ChatShared> chatShared { };
9377
9381 std::shared_ptr<GiftInfo> gift { };
9382
9386 std::shared_ptr<UniqueGiftInfo> uniqueGift { };
9387
9391 std::shared_ptr<GiftInfo> giftUpgradeSent { };
9392
9397 std::optional<std::string> connectedWebsite { };
9398
9404 std::shared_ptr<WriteAccessAllowed> writeAccessAllowed { };
9405
9409 std::shared_ptr<PassportData> passportData { };
9410
9415 std::shared_ptr<ProximityAlertTriggered> proximityAlertTriggered { };
9416
9420 std::shared_ptr<ChatBoostAdded> boostAdded { };
9421
9425 std::shared_ptr<ChatBackground> chatBackgroundSet { };
9426
9430 std::shared_ptr<ChecklistTasksDone> checklistTasksDone { };
9431
9435 std::shared_ptr<ChecklistTasksAdded> checklistTasksAdded { };
9436
9440 std::shared_ptr<CommunityChatAdded> communityChatAdded { };
9441
9445 std::shared_ptr<CommunityChatRemoved> communityChatRemoved { };
9446
9451 std::shared_ptr<DirectMessagePriceChanged> directMessagePriceChanged { };
9452
9456 std::shared_ptr<ForumTopicCreated> forumTopicCreated { };
9457
9461 std::shared_ptr<ForumTopicEdited> forumTopicEdited { };
9462
9466 std::shared_ptr<ForumTopicClosed> forumTopicClosed { };
9467
9471 std::shared_ptr<ForumTopicReopened> forumTopicReopened { };
9472
9476 std::shared_ptr<GeneralForumTopicHidden> generalForumTopicHidden { };
9477
9481 std::shared_ptr<GeneralForumTopicUnhidden> generalForumTopicUnhidden { };
9482
9486 std::shared_ptr<GiveawayCreated> giveawayCreated { };
9487
9491 std::shared_ptr<Giveaway> giveaway { };
9492
9496 std::shared_ptr<GiveawayWinners> giveawayWinners { };
9497
9501 std::shared_ptr<GiveawayCompleted> giveawayCompleted { };
9502
9506 std::shared_ptr<ManagedBotCreated> managedBotCreated { };
9507
9511 std::shared_ptr<PaidMessagePriceChanged> paidMessagePriceChanged { };
9512
9516 std::shared_ptr<PollOptionAdded> pollOptionAdded { };
9517
9521 std::shared_ptr<PollOptionDeleted> pollOptionDeleted { };
9522
9526 std::shared_ptr<SuggestedPostApproved> suggestedPostApproved { };
9527
9531 std::shared_ptr<SuggestedPostApprovalFailed> suggestedPostApprovalFailed { };
9532
9536 std::shared_ptr<SuggestedPostDeclined> suggestedPostDeclined { };
9537
9541 std::shared_ptr<SuggestedPostPaid> suggestedPostPaid { };
9542
9546 std::shared_ptr<SuggestedPostRefunded> suggestedPostRefunded { };
9547
9551 std::shared_ptr<VideoChatScheduled> videoChatScheduled { };
9552
9556 std::shared_ptr<VideoChatStarted> videoChatStarted { };
9557
9561 std::shared_ptr<VideoChatEnded> videoChatEnded { };
9562
9566 std::shared_ptr<VideoChatParticipantsInvited> videoChatParticipantsInvited { };
9567
9571 std::shared_ptr<WebAppData> webAppData { };
9572
9577 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
9578};
9579
9580TGBOT_API void from_json(const nlohmann::json& json, Message& value);
9581TGBOT_API void to_json(nlohmann::json& json, const Message& value);
9582
9588 using Ptr = std::shared_ptr<MessageAutoDeleteTimerChanged>;
9589
9593 std::int32_t messageAutoDeleteTime { };
9594};
9595
9596TGBOT_API void from_json(const nlohmann::json& json, MessageAutoDeleteTimerChanged& value);
9597TGBOT_API void to_json(nlohmann::json& json, const MessageAutoDeleteTimerChanged& value);
9598
9605 using Ptr = std::shared_ptr<MessageEntity>;
9606
9629
9642
9646 std::int32_t offset { };
9647
9651 std::int32_t length { };
9652
9656 std::optional<std::string> url { };
9657
9661 std::shared_ptr<User> user { };
9662
9666 std::optional<std::string> language { };
9667
9672 std::optional<std::string> customEmojiId { };
9673
9677 std::optional<std::int32_t> unixTime { };
9678
9683 std::optional<std::string> dateTimeFormat { };
9684};
9685
9686TGBOT_API void from_json(const nlohmann::json& json, MessageEntity::Type& value);
9687TGBOT_API void to_json(nlohmann::json& json, const MessageEntity::Type& value);
9688
9689TGBOT_API void from_json(const nlohmann::json& json, MessageEntity& value);
9690TGBOT_API void to_json(nlohmann::json& json, const MessageEntity& value);
9691
9697 using Ptr = std::shared_ptr<MessageId>;
9698
9705 std::int32_t messageId { };
9706};
9707
9708TGBOT_API void from_json(const nlohmann::json& json, MessageId& value);
9709TGBOT_API void to_json(nlohmann::json& json, const MessageId& value);
9710
9717 using Ptr = std::shared_ptr<MessageOrigin>;
9718
9719 std::variant<std::shared_ptr<MessageOriginUser>, std::shared_ptr<MessageOriginHiddenUser>,
9720 std::shared_ptr<MessageOriginChat>, std::shared_ptr<MessageOriginChannel>>
9722};
9723
9724TGBOT_API void from_json(const nlohmann::json& json, MessageOrigin& value);
9725TGBOT_API void to_json(nlohmann::json& json, const MessageOrigin& value);
9726
9732 using Ptr = std::shared_ptr<MessageOriginChannel>;
9733
9734 static TGBOT_API const std::string TYPE;
9735
9739 std::string type { TYPE };
9740
9744 std::int32_t date { };
9745
9749 std::shared_ptr<Chat> chat { };
9750
9754 std::int32_t messageId { };
9755
9759 std::optional<std::string> authorSignature { };
9760};
9761
9762TGBOT_API void from_json(const nlohmann::json& json, MessageOriginChannel& value);
9763TGBOT_API void to_json(nlohmann::json& json, const MessageOriginChannel& value);
9764
9770 using Ptr = std::shared_ptr<MessageOriginChat>;
9771
9772 static TGBOT_API const std::string TYPE;
9773
9777 std::string type { TYPE };
9778
9782 std::int32_t date { };
9783
9787 std::shared_ptr<Chat> senderChat { };
9788
9793 std::optional<std::string> authorSignature { };
9794};
9795
9796TGBOT_API void from_json(const nlohmann::json& json, MessageOriginChat& value);
9797TGBOT_API void to_json(nlohmann::json& json, const MessageOriginChat& value);
9798
9804 using Ptr = std::shared_ptr<MessageOriginHiddenUser>;
9805
9806 static TGBOT_API const std::string TYPE;
9807
9811 std::string type { TYPE };
9812
9816 std::int32_t date { };
9817
9821 std::string senderUserName { };
9822};
9823
9824TGBOT_API void from_json(const nlohmann::json& json, MessageOriginHiddenUser& value);
9825TGBOT_API void to_json(nlohmann::json& json, const MessageOriginHiddenUser& value);
9826
9832 using Ptr = std::shared_ptr<MessageOriginUser>;
9833
9834 static TGBOT_API const std::string TYPE;
9835
9839 std::string type { TYPE };
9840
9844 std::int32_t date { };
9845
9849 std::shared_ptr<User> senderUser { };
9850};
9851
9852TGBOT_API void from_json(const nlohmann::json& json, MessageOriginUser& value);
9853TGBOT_API void to_json(nlohmann::json& json, const MessageOriginUser& value);
9854
9860 using Ptr = std::shared_ptr<MessageReactionCountUpdated>;
9861
9865 std::shared_ptr<Chat> chat { };
9866
9870 std::int32_t messageId { };
9871
9875 std::int32_t date { };
9876
9880 std::vector<std::shared_ptr<ReactionCount>> reactions { };
9881};
9882
9883TGBOT_API void from_json(const nlohmann::json& json, MessageReactionCountUpdated& value);
9884TGBOT_API void to_json(nlohmann::json& json, const MessageReactionCountUpdated& value);
9885
9891 using Ptr = std::shared_ptr<MessageReactionUpdated>;
9892
9896 std::shared_ptr<Chat> chat { };
9897
9901 std::int32_t messageId { };
9902
9906 std::shared_ptr<User> user { };
9907
9911 std::shared_ptr<Chat> actorChat { };
9912
9916 std::int32_t date { };
9917
9921 std::vector<std::shared_ptr<ReactionType>> oldReaction { };
9922
9926 std::vector<std::shared_ptr<ReactionType>> newReaction { };
9927};
9928
9929TGBOT_API void from_json(const nlohmann::json& json, MessageReactionUpdated& value);
9930TGBOT_API void to_json(nlohmann::json& json, const MessageReactionUpdated& value);
9931
9937 using Ptr = std::shared_ptr<OrderInfo>;
9938
9942 std::optional<std::string> name { };
9943
9947 std::optional<std::string> phoneNumber { };
9948
9952 std::optional<std::string> email { };
9953
9957 std::shared_ptr<ShippingAddress> shippingAddress { };
9958};
9959
9960TGBOT_API void from_json(const nlohmann::json& json, OrderInfo& value);
9961TGBOT_API void to_json(nlohmann::json& json, const OrderInfo& value);
9962
9969 using Ptr = std::shared_ptr<OwnedGift>;
9970
9971 std::variant<std::shared_ptr<OwnedGiftRegular>, std::shared_ptr<OwnedGiftUnique>> value;
9972};
9973
9974TGBOT_API void from_json(const nlohmann::json& json, OwnedGift& value);
9975TGBOT_API void to_json(nlohmann::json& json, const OwnedGift& value);
9976
9982 using Ptr = std::shared_ptr<OwnedGiftRegular>;
9983
9984 static TGBOT_API const std::string TYPE;
9985
9989 std::string type { TYPE };
9990
9994 std::shared_ptr<Gift> gift { };
9995
10000 std::optional<std::string> ownedGiftId { };
10001
10005 std::shared_ptr<User> senderUser { };
10006
10010 std::int32_t sendDate { };
10011
10015 std::optional<std::string> text { };
10016
10020 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
10021
10026 std::optional<bool> isPrivate { };
10027
10032 std::optional<bool> isSaved { };
10033
10038 std::optional<bool> canBeUpgraded { };
10039
10043 std::optional<bool> wasRefunded { };
10044
10050 std::optional<std::int32_t> convertStarCount { };
10051
10055 std::optional<std::int32_t> prepaidUpgradeStarCount { };
10056
10061 std::optional<bool> isUpgradeSeparate { };
10062
10067 std::optional<std::int32_t> uniqueGiftNumber { };
10068};
10069
10070TGBOT_API void from_json(const nlohmann::json& json, OwnedGiftRegular& value);
10071TGBOT_API void to_json(nlohmann::json& json, const OwnedGiftRegular& value);
10072
10078 using Ptr = std::shared_ptr<OwnedGiftUnique>;
10079
10080 static TGBOT_API const std::string TYPE;
10081
10085 std::string type { TYPE };
10086
10090 std::shared_ptr<UniqueGift> gift { };
10091
10096 std::optional<std::string> ownedGiftId { };
10097
10101 std::shared_ptr<User> senderUser { };
10102
10106 std::int32_t sendDate { };
10107
10112 std::optional<bool> isSaved { };
10113
10118 std::optional<bool> canBeTransferred { };
10119
10124 std::optional<std::int32_t> transferStarCount { };
10125
10130 std::optional<std::int32_t> nextTransferDate { };
10131};
10132
10133TGBOT_API void from_json(const nlohmann::json& json, OwnedGiftUnique& value);
10134TGBOT_API void to_json(nlohmann::json& json, const OwnedGiftUnique& value);
10135
10141 using Ptr = std::shared_ptr<OwnedGifts>;
10142
10146 std::int32_t totalCount { };
10147
10151 std::vector<std::shared_ptr<OwnedGift>> gifts { };
10152
10156 std::optional<std::string> nextOffset { };
10157};
10158
10159TGBOT_API void from_json(const nlohmann::json& json, OwnedGifts& value);
10160TGBOT_API void to_json(nlohmann::json& json, const OwnedGifts& value);
10161
10168 using Ptr = std::shared_ptr<PaidMedia>;
10169
10170 std::variant<std::shared_ptr<PaidMediaLivePhoto>, std::shared_ptr<PaidMediaPhoto>,
10171 std::shared_ptr<PaidMediaPreview>, std::shared_ptr<PaidMediaVideo>>
10173};
10174
10175TGBOT_API void from_json(const nlohmann::json& json, PaidMedia& value);
10176TGBOT_API void to_json(nlohmann::json& json, const PaidMedia& value);
10177
10183 using Ptr = std::shared_ptr<PaidMediaInfo>;
10184
10188 std::int32_t starCount { };
10189
10193 std::vector<std::shared_ptr<PaidMedia>> paidMedia { };
10194};
10195
10196TGBOT_API void from_json(const nlohmann::json& json, PaidMediaInfo& value);
10197TGBOT_API void to_json(nlohmann::json& json, const PaidMediaInfo& value);
10198
10204 using Ptr = std::shared_ptr<PaidMediaLivePhoto>;
10205
10206 static TGBOT_API const std::string TYPE;
10207
10211 std::string type { TYPE };
10212
10216 std::shared_ptr<LivePhoto> livePhoto { };
10217};
10218
10219TGBOT_API void from_json(const nlohmann::json& json, PaidMediaLivePhoto& value);
10220TGBOT_API void to_json(nlohmann::json& json, const PaidMediaLivePhoto& value);
10221
10227 using Ptr = std::shared_ptr<PaidMediaPhoto>;
10228
10229 static TGBOT_API const std::string TYPE;
10230
10234 std::string type { TYPE };
10235
10239 std::vector<std::shared_ptr<PhotoSize>> photo { };
10240};
10241
10242TGBOT_API void from_json(const nlohmann::json& json, PaidMediaPhoto& value);
10243TGBOT_API void to_json(nlohmann::json& json, const PaidMediaPhoto& value);
10244
10250 using Ptr = std::shared_ptr<PaidMediaPreview>;
10251
10252 static TGBOT_API const std::string TYPE;
10253
10257 std::string type { TYPE };
10258
10262 std::optional<std::int32_t> width { };
10263
10267 std::optional<std::int32_t> height { };
10268
10272 std::optional<std::int32_t> duration { };
10273};
10274
10275TGBOT_API void from_json(const nlohmann::json& json, PaidMediaPreview& value);
10276TGBOT_API void to_json(nlohmann::json& json, const PaidMediaPreview& value);
10277
10283 using Ptr = std::shared_ptr<PaidMediaPurchased>;
10284
10288 std::shared_ptr<User> from { };
10289
10293 std::string paidMediaPayload { };
10294};
10295
10296TGBOT_API void from_json(const nlohmann::json& json, PaidMediaPurchased& value);
10297TGBOT_API void to_json(nlohmann::json& json, const PaidMediaPurchased& value);
10298
10304 using Ptr = std::shared_ptr<PaidMediaVideo>;
10305
10306 static TGBOT_API const std::string TYPE;
10307
10311 std::string type { TYPE };
10312
10316 std::shared_ptr<Video> video { };
10317};
10318
10319TGBOT_API void from_json(const nlohmann::json& json, PaidMediaVideo& value);
10320TGBOT_API void to_json(nlohmann::json& json, const PaidMediaVideo& value);
10321
10327 using Ptr = std::shared_ptr<PaidMessagePriceChanged>;
10328
10333 std::int32_t paidMessageStarCount { };
10334};
10335
10336TGBOT_API void from_json(const nlohmann::json& json, PaidMessagePriceChanged& value);
10337TGBOT_API void to_json(nlohmann::json& json, const PaidMessagePriceChanged& value);
10338
10344 using Ptr = std::shared_ptr<PassportData>;
10345
10350 std::vector<std::shared_ptr<EncryptedPassportElement>> data { };
10351
10355 std::shared_ptr<EncryptedCredentials> credentials { };
10356};
10357
10358TGBOT_API void from_json(const nlohmann::json& json, PassportData& value);
10359TGBOT_API void to_json(nlohmann::json& json, const PassportData& value);
10360
10370 using Ptr = std::shared_ptr<PassportElementError>;
10371
10372 std::variant<std::shared_ptr<PassportElementErrorDataField>, std::shared_ptr<PassportElementErrorFrontSide>,
10373 std::shared_ptr<PassportElementErrorReverseSide>, std::shared_ptr<PassportElementErrorSelfie>,
10374 std::shared_ptr<PassportElementErrorFile>, std::shared_ptr<PassportElementErrorFiles>,
10375 std::shared_ptr<PassportElementErrorTranslationFile>,
10376 std::shared_ptr<PassportElementErrorTranslationFiles>,
10377 std::shared_ptr<PassportElementErrorUnspecified>>
10379};
10380
10381TGBOT_API void from_json(const nlohmann::json& json, PassportElementError& value);
10382TGBOT_API void to_json(nlohmann::json& json, const PassportElementError& value);
10383
10390 using Ptr = std::shared_ptr<PassportElementErrorDataField>;
10391
10392 static TGBOT_API const std::string SOURCE;
10393
10397 std::string source { SOURCE };
10398
10404 std::string type { };
10405
10409 std::string fieldName { };
10410
10414 std::string dataHash { };
10415
10419 std::string message { };
10420};
10421
10422TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorDataField& value);
10423TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorDataField& value);
10424
10431 using Ptr = std::shared_ptr<PassportElementErrorFile>;
10432
10433 static TGBOT_API const std::string SOURCE;
10434
10438 std::string source { SOURCE };
10439
10444 std::string type { };
10445
10449 std::string fileHash { };
10450
10454 std::string message { };
10455};
10456
10457TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorFile& value);
10458TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorFile& value);
10459
10466 using Ptr = std::shared_ptr<PassportElementErrorFiles>;
10467
10468 static TGBOT_API const std::string SOURCE;
10469
10473 std::string source { SOURCE };
10474
10479 std::string type { };
10480
10484 std::vector<std::string> fileHashes { };
10485
10489 std::string message { };
10490};
10491
10492TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorFiles& value);
10493TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorFiles& value);
10494
10501 using Ptr = std::shared_ptr<PassportElementErrorFrontSide>;
10502
10503 static TGBOT_API const std::string SOURCE;
10504
10508 std::string source { SOURCE };
10509
10514 std::string type { };
10515
10519 std::string fileHash { };
10520
10524 std::string message { };
10525};
10526
10527TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorFrontSide& value);
10528TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorFrontSide& value);
10529
10536 using Ptr = std::shared_ptr<PassportElementErrorReverseSide>;
10537
10538 static TGBOT_API const std::string SOURCE;
10539
10543 std::string source { SOURCE };
10544
10549 std::string type { };
10550
10554 std::string fileHash { };
10555
10559 std::string message { };
10560};
10561
10562TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorReverseSide& value);
10563TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorReverseSide& value);
10564
10571 using Ptr = std::shared_ptr<PassportElementErrorSelfie>;
10572
10573 static TGBOT_API const std::string SOURCE;
10574
10578 std::string source { SOURCE };
10579
10584 std::string type { };
10585
10589 std::string fileHash { };
10590
10594 std::string message { };
10595};
10596
10597TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorSelfie& value);
10598TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorSelfie& value);
10599
10606 using Ptr = std::shared_ptr<PassportElementErrorTranslationFile>;
10607
10608 static TGBOT_API const std::string SOURCE;
10609
10613 std::string source { SOURCE };
10614
10620 std::string type { };
10621
10625 std::string fileHash { };
10626
10630 std::string message { };
10631};
10632
10633TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorTranslationFile& value);
10634TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorTranslationFile& value);
10635
10642 using Ptr = std::shared_ptr<PassportElementErrorTranslationFiles>;
10643
10644 static TGBOT_API const std::string SOURCE;
10645
10649 std::string source { SOURCE };
10650
10656 std::string type { };
10657
10661 std::vector<std::string> fileHashes { };
10662
10666 std::string message { };
10667};
10668
10669TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorTranslationFiles& value);
10670TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorTranslationFiles& value);
10671
10678 using Ptr = std::shared_ptr<PassportElementErrorUnspecified>;
10679
10680 static TGBOT_API const std::string SOURCE;
10681
10685 std::string source { SOURCE };
10686
10690 std::string type { };
10691
10695 std::string elementHash { };
10696
10700 std::string message { };
10701};
10702
10703TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorUnspecified& value);
10704TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorUnspecified& value);
10705
10712 using Ptr = std::shared_ptr<PassportFile>;
10713
10717 std::string fileId { };
10718
10723 std::string fileUniqueId { };
10724
10728 std::int32_t fileSize { };
10729
10733 std::int32_t fileDate { };
10734};
10735
10736TGBOT_API void from_json(const nlohmann::json& json, PassportFile& value);
10737TGBOT_API void to_json(nlohmann::json& json, const PassportFile& value);
10738
10744 using Ptr = std::shared_ptr<PhotoSize>;
10745
10749 std::string fileId { };
10750
10755 std::string fileUniqueId { };
10756
10760 std::int32_t width { };
10761
10765 std::int32_t height { };
10766
10770 std::optional<std::int32_t> fileSize { };
10771};
10772
10773TGBOT_API void from_json(const nlohmann::json& json, PhotoSize& value);
10774TGBOT_API void to_json(nlohmann::json& json, const PhotoSize& value);
10775
10780struct Poll {
10781 using Ptr = std::shared_ptr<Poll>;
10782
10786 std::string id { };
10787
10791 std::string question { };
10792
10797 std::optional<std::vector<std::shared_ptr<MessageEntity>>> questionEntities { };
10798
10802 std::vector<std::shared_ptr<PollOption>> options { };
10803
10807 std::int32_t totalVoterCount { };
10808
10812 bool isClosed { };
10813
10817 bool isAnonymous { };
10818
10822 std::string type { };
10823
10828
10833
10838 bool membersOnly { };
10839
10845 std::optional<std::vector<std::string>> countryCodes { };
10846
10852 std::optional<std::vector<std::int32_t>> correctOptionIds { };
10853
10858 std::optional<std::string> explanation { };
10859
10864 std::optional<std::vector<std::shared_ptr<MessageEntity>>> explanationEntities { };
10865
10869 std::shared_ptr<PollMedia> explanationMedia { };
10870
10874 std::optional<std::int32_t> openPeriod { };
10875
10879 std::optional<std::int32_t> closeDate { };
10880
10884 std::optional<std::string> description { };
10885
10890 std::optional<std::vector<std::shared_ptr<MessageEntity>>> descriptionEntities { };
10891
10895 std::shared_ptr<PollMedia> media { };
10896};
10897
10898TGBOT_API void from_json(const nlohmann::json& json, Poll& value);
10899TGBOT_API void to_json(nlohmann::json& json, const Poll& value);
10900
10906 using Ptr = std::shared_ptr<PollAnswer>;
10907
10911 std::string pollId { };
10912
10916 std::shared_ptr<Chat> voterChat { };
10917
10921 std::shared_ptr<User> user { };
10922
10926 std::vector<std::int32_t> optionIds { };
10927
10932 std::vector<std::string> optionPersistentIds { };
10933};
10934
10935TGBOT_API void from_json(const nlohmann::json& json, PollAnswer& value);
10936TGBOT_API void to_json(nlohmann::json& json, const PollAnswer& value);
10937
10943 using Ptr = std::shared_ptr<PollMedia>;
10944
10948 std::shared_ptr<Animation> animation { };
10949
10954 std::shared_ptr<Audio> audio { };
10955
10960 std::shared_ptr<Document> document { };
10961
10965 std::shared_ptr<Link> link { };
10966
10970 std::shared_ptr<LivePhoto> livePhoto { };
10971
10975 std::shared_ptr<Location> location { };
10976
10980 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
10981
10986 std::shared_ptr<Sticker> sticker { };
10987
10991 std::shared_ptr<Venue> venue { };
10992
10996 std::shared_ptr<Video> video { };
10997};
10998
10999TGBOT_API void from_json(const nlohmann::json& json, PollMedia& value);
11000TGBOT_API void to_json(nlohmann::json& json, const PollMedia& value);
11001
11007 using Ptr = std::shared_ptr<PollOption>;
11008
11012 std::string persistentId { };
11013
11017 std::string text { };
11018
11023 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
11024
11028 std::shared_ptr<PollMedia> media { };
11029
11033 std::int32_t voterCount { };
11034
11039 std::shared_ptr<User> addedByUser { };
11040
11045 std::shared_ptr<Chat> addedByChat { };
11046
11051 std::optional<std::int32_t> additionDate { };
11052};
11053
11054TGBOT_API void from_json(const nlohmann::json& json, PollOption& value);
11055TGBOT_API void to_json(nlohmann::json& json, const PollOption& value);
11056
11062 using Ptr = std::shared_ptr<PollOptionAdded>;
11063
11069 std::shared_ptr<MaybeInaccessibleMessage> pollMessage { };
11070
11074 std::string optionPersistentId { };
11075
11079 std::string optionText { };
11080
11084 std::optional<std::vector<std::shared_ptr<MessageEntity>>> optionTextEntities { };
11085};
11086
11087TGBOT_API void from_json(const nlohmann::json& json, PollOptionAdded& value);
11088TGBOT_API void to_json(nlohmann::json& json, const PollOptionAdded& value);
11089
11095 using Ptr = std::shared_ptr<PollOptionDeleted>;
11096
11102 std::shared_ptr<MaybeInaccessibleMessage> pollMessage { };
11103
11107 std::string optionPersistentId { };
11108
11112 std::string optionText { };
11113
11117 std::optional<std::vector<std::shared_ptr<MessageEntity>>> optionTextEntities { };
11118};
11119
11120TGBOT_API void from_json(const nlohmann::json& json, PollOptionDeleted& value);
11121TGBOT_API void to_json(nlohmann::json& json, const PollOptionDeleted& value);
11122
11128 using Ptr = std::shared_ptr<PreCheckoutQuery>;
11129
11133 std::string id { };
11134
11138 std::shared_ptr<User> from { };
11139
11143 std::string currency { };
11144
11151 std::int32_t totalAmount { };
11152
11156 std::string invoicePayload { };
11157
11161 std::optional<std::string> shippingOptionId { };
11162
11166 std::shared_ptr<OrderInfo> orderInfo { };
11167};
11168
11169TGBOT_API void from_json(const nlohmann::json& json, PreCheckoutQuery& value);
11170TGBOT_API void to_json(nlohmann::json& json, const PreCheckoutQuery& value);
11171
11177 using Ptr = std::shared_ptr<PreparedInlineMessage>;
11178
11182 std::string id { };
11183
11188 std::int32_t expirationDate { };
11189};
11190
11191TGBOT_API void from_json(const nlohmann::json& json, PreparedInlineMessage& value);
11192TGBOT_API void to_json(nlohmann::json& json, const PreparedInlineMessage& value);
11193
11199 using Ptr = std::shared_ptr<PreparedKeyboardButton>;
11200
11204 std::string id { };
11205};
11206
11207TGBOT_API void from_json(const nlohmann::json& json, PreparedKeyboardButton& value);
11208TGBOT_API void to_json(nlohmann::json& json, const PreparedKeyboardButton& value);
11209
11216 using Ptr = std::shared_ptr<ProximityAlertTriggered>;
11217
11221 std::shared_ptr<User> traveler { };
11222
11226 std::shared_ptr<User> watcher { };
11227
11231 std::int32_t distance { };
11232};
11233
11234TGBOT_API void from_json(const nlohmann::json& json, ProximityAlertTriggered& value);
11235TGBOT_API void to_json(nlohmann::json& json, const ProximityAlertTriggered& value);
11236
11242 using Ptr = std::shared_ptr<ReactionCount>;
11243
11247 std::shared_ptr<ReactionType> type { };
11248
11252 std::int32_t totalCount { };
11253};
11254
11255TGBOT_API void from_json(const nlohmann::json& json, ReactionCount& value);
11256TGBOT_API void to_json(nlohmann::json& json, const ReactionCount& value);
11257
11264 using Ptr = std::shared_ptr<ReactionType>;
11265
11266 std::variant<std::shared_ptr<ReactionTypeEmoji>, std::shared_ptr<ReactionTypeCustomEmoji>,
11267 std::shared_ptr<ReactionTypePaid>>
11269};
11270
11271TGBOT_API void from_json(const nlohmann::json& json, ReactionType& value);
11272TGBOT_API void to_json(nlohmann::json& json, const ReactionType& value);
11273
11279 using Ptr = std::shared_ptr<ReactionTypeCustomEmoji>;
11280
11281 static TGBOT_API const std::string TYPE;
11282
11286 std::string type { TYPE };
11287
11291 std::string customEmojiId { };
11292};
11293
11294TGBOT_API void from_json(const nlohmann::json& json, ReactionTypeCustomEmoji& value);
11295TGBOT_API void to_json(nlohmann::json& json, const ReactionTypeCustomEmoji& value);
11296
11302 using Ptr = std::shared_ptr<ReactionTypeEmoji>;
11303
11304 static TGBOT_API const std::string TYPE;
11305
11309 std::string type { TYPE };
11310
11317 std::string emoji { };
11318};
11319
11320TGBOT_API void from_json(const nlohmann::json& json, ReactionTypeEmoji& value);
11321TGBOT_API void to_json(nlohmann::json& json, const ReactionTypeEmoji& value);
11322
11328 using Ptr = std::shared_ptr<ReactionTypePaid>;
11329
11330 static TGBOT_API const std::string TYPE;
11331
11335 std::string type { TYPE };
11336};
11337
11338TGBOT_API void from_json(const nlohmann::json& json, ReactionTypePaid& value);
11339TGBOT_API void to_json(nlohmann::json& json, const ReactionTypePaid& value);
11340
11346 using Ptr = std::shared_ptr<RefundedPayment>;
11347
11352 std::string currency { };
11353
11360 std::int32_t totalAmount { };
11361
11365 std::string invoicePayload { };
11366
11371
11375 std::optional<std::string> providerPaymentChargeId { };
11376};
11377
11378TGBOT_API void from_json(const nlohmann::json& json, RefundedPayment& value);
11379TGBOT_API void to_json(nlohmann::json& json, const RefundedPayment& value);
11380
11388 using Ptr = std::shared_ptr<ReplyKeyboardMarkup>;
11389
11393 std::vector<std::vector<std::shared_ptr<KeyboardButton>>> keyboard { };
11394
11400 std::optional<bool> isPersistent { };
11401
11407 std::optional<bool> resizeKeyboard { };
11408
11415 std::optional<bool> oneTimeKeyboard { };
11416
11421 std::optional<std::string> inputFieldPlaceholder { };
11422
11431 std::optional<bool> selective { };
11432};
11433
11434TGBOT_API void from_json(const nlohmann::json& json, ReplyKeyboardMarkup& value);
11435TGBOT_API void to_json(nlohmann::json& json, const ReplyKeyboardMarkup& value);
11436
11446 using Ptr = std::shared_ptr<ReplyKeyboardRemove>;
11447
11454
11463 std::optional<bool> selective { };
11464};
11465
11466TGBOT_API void from_json(const nlohmann::json& json, ReplyKeyboardRemove& value);
11467TGBOT_API void to_json(nlohmann::json& json, const ReplyKeyboardRemove& value);
11468
11474 using Ptr = std::shared_ptr<ReplyParameters>;
11475
11480 std::optional<std::int32_t> messageId { };
11481
11488 std::optional<std::int64_t> chatId { };
11489
11496 std::optional<std::int32_t> ephemeralMessageId { };
11497
11503 std::optional<bool> allowSendingWithoutReply { };
11504
11512 std::optional<std::string> quote { };
11513
11518 std::optional<std::string> quoteParseMode { };
11519
11524 std::optional<std::vector<std::shared_ptr<MessageEntity>>> quoteEntities { };
11525
11529 std::optional<std::int32_t> quotePosition { };
11530
11534 std::optional<std::int32_t> checklistTaskId { };
11535
11539 std::optional<std::string> pollOptionId { };
11540};
11541
11542TGBOT_API void from_json(const nlohmann::json& json, ReplyParameters& value);
11543TGBOT_API void to_json(nlohmann::json& json, const ReplyParameters& value);
11544
11550 using Ptr = std::shared_ptr<ResponseParameters>;
11551
11559 std::optional<std::int64_t> migrateToChatId { };
11560
11565 std::optional<std::int32_t> retryAfter { };
11566};
11567
11568TGBOT_API void from_json(const nlohmann::json& json, ResponseParameters& value);
11569TGBOT_API void to_json(nlohmann::json& json, const ResponseParameters& value);
11570
11578 using Ptr = std::shared_ptr<RevenueWithdrawalState>;
11579
11580 std::variant<std::shared_ptr<RevenueWithdrawalStatePending>, std::shared_ptr<RevenueWithdrawalStateSucceeded>,
11581 std::shared_ptr<RevenueWithdrawalStateFailed>>
11583};
11584
11585TGBOT_API void from_json(const nlohmann::json& json, RevenueWithdrawalState& value);
11586TGBOT_API void to_json(nlohmann::json& json, const RevenueWithdrawalState& value);
11587
11593 using Ptr = std::shared_ptr<RevenueWithdrawalStateFailed>;
11594
11595 static TGBOT_API const std::string TYPE;
11596
11600 std::string type { TYPE };
11601};
11602
11603TGBOT_API void from_json(const nlohmann::json& json, RevenueWithdrawalStateFailed& value);
11604TGBOT_API void to_json(nlohmann::json& json, const RevenueWithdrawalStateFailed& value);
11605
11611 using Ptr = std::shared_ptr<RevenueWithdrawalStatePending>;
11612
11613 static TGBOT_API const std::string TYPE;
11614
11618 std::string type { TYPE };
11619};
11620
11621TGBOT_API void from_json(const nlohmann::json& json, RevenueWithdrawalStatePending& value);
11622TGBOT_API void to_json(nlohmann::json& json, const RevenueWithdrawalStatePending& value);
11623
11629 using Ptr = std::shared_ptr<RevenueWithdrawalStateSucceeded>;
11630
11631 static TGBOT_API const std::string TYPE;
11632
11636 std::string type { TYPE };
11637
11641 std::int32_t date { };
11642
11646 std::string url { };
11647};
11648
11649TGBOT_API void from_json(const nlohmann::json& json, RevenueWithdrawalStateSucceeded& value);
11650TGBOT_API void to_json(nlohmann::json& json, const RevenueWithdrawalStateSucceeded& value);
11651
11662 using Ptr = std::shared_ptr<RichBlock>;
11663
11664 std::variant<
11665 std::shared_ptr<RichBlockParagraph>, std::shared_ptr<RichBlockSectionHeading>,
11666 std::shared_ptr<RichBlockPreformatted>, std::shared_ptr<RichBlockFooter>, std::shared_ptr<RichBlockDivider>,
11667 std::shared_ptr<RichBlockMathematicalExpression>, std::shared_ptr<RichBlockAnchor>,
11668 std::shared_ptr<RichBlockList>, std::shared_ptr<RichBlockBlockQuotation>,
11669 std::shared_ptr<RichBlockPullQuotation>, std::shared_ptr<RichBlockCollage>, std::shared_ptr<RichBlockSlideshow>,
11670 std::shared_ptr<RichBlockTable>, std::shared_ptr<RichBlockDetails>, std::shared_ptr<RichBlockMap>,
11671 std::shared_ptr<RichBlockAnimation>, std::shared_ptr<RichBlockAudio>, std::shared_ptr<RichBlockPhoto>,
11672 std::shared_ptr<RichBlockVideo>, std::shared_ptr<RichBlockVoiceNote>, std::shared_ptr<RichBlockThinking>>
11674};
11675
11676TGBOT_API void from_json(const nlohmann::json& json, RichBlock& value);
11677TGBOT_API void to_json(nlohmann::json& json, const RichBlock& value);
11678
11684 using Ptr = std::shared_ptr<RichBlockAnchor>;
11685
11686 static TGBOT_API const std::string TYPE;
11687
11691 std::string type { TYPE };
11692
11696 std::string name { };
11697};
11698
11699TGBOT_API void from_json(const nlohmann::json& json, RichBlockAnchor& value);
11700TGBOT_API void to_json(nlohmann::json& json, const RichBlockAnchor& value);
11701
11707 using Ptr = std::shared_ptr<RichBlockAnimation>;
11708
11709 static TGBOT_API const std::string TYPE;
11710
11714 std::string type { TYPE };
11715
11719 std::shared_ptr<Animation> animation { };
11720
11724 std::optional<bool> hasSpoiler { };
11725
11729 std::shared_ptr<RichBlockCaption> caption { };
11730};
11731
11732TGBOT_API void from_json(const nlohmann::json& json, RichBlockAnimation& value);
11733TGBOT_API void to_json(nlohmann::json& json, const RichBlockAnimation& value);
11734
11740 using Ptr = std::shared_ptr<RichBlockAudio>;
11741
11742 static TGBOT_API const std::string TYPE;
11743
11747 std::string type { TYPE };
11748
11752 std::shared_ptr<Audio> audio { };
11753
11757 std::shared_ptr<RichBlockCaption> caption { };
11758};
11759
11760TGBOT_API void from_json(const nlohmann::json& json, RichBlockAudio& value);
11761TGBOT_API void to_json(nlohmann::json& json, const RichBlockAudio& value);
11762
11768 using Ptr = std::shared_ptr<RichBlockBlockQuotation>;
11769
11770 static TGBOT_API const std::string TYPE;
11771
11775 std::string type { TYPE };
11776
11780 std::vector<std::shared_ptr<RichBlock>> blocks { };
11781
11785 std::shared_ptr<RichText> credit { };
11786};
11787
11788TGBOT_API void from_json(const nlohmann::json& json, RichBlockBlockQuotation& value);
11789TGBOT_API void to_json(nlohmann::json& json, const RichBlockBlockQuotation& value);
11790
11796 using Ptr = std::shared_ptr<RichBlockCaption>;
11797
11801 std::shared_ptr<RichText> text { };
11802
11806 std::shared_ptr<RichText> credit { };
11807};
11808
11809TGBOT_API void from_json(const nlohmann::json& json, RichBlockCaption& value);
11810TGBOT_API void to_json(nlohmann::json& json, const RichBlockCaption& value);
11811
11817 using Ptr = std::shared_ptr<RichBlockCollage>;
11818
11819 static TGBOT_API const std::string TYPE;
11820
11824 std::string type { TYPE };
11825
11829 std::vector<std::shared_ptr<RichBlock>> blocks { };
11830
11834 std::shared_ptr<RichBlockCaption> caption { };
11835};
11836
11837TGBOT_API void from_json(const nlohmann::json& json, RichBlockCollage& value);
11838TGBOT_API void to_json(nlohmann::json& json, const RichBlockCollage& value);
11839
11845 using Ptr = std::shared_ptr<RichBlockDetails>;
11846
11847 static TGBOT_API const std::string TYPE;
11848
11852 std::string type { TYPE };
11853
11857 std::shared_ptr<RichText> summary { };
11858
11862 std::vector<std::shared_ptr<RichBlock>> blocks { };
11863
11867 std::optional<bool> isOpen { };
11868};
11869
11870TGBOT_API void from_json(const nlohmann::json& json, RichBlockDetails& value);
11871TGBOT_API void to_json(nlohmann::json& json, const RichBlockDetails& value);
11872
11878 using Ptr = std::shared_ptr<RichBlockDivider>;
11879
11880 static TGBOT_API const std::string TYPE;
11881
11885 std::string type { TYPE };
11886};
11887
11888TGBOT_API void from_json(const nlohmann::json& json, RichBlockDivider& value);
11889TGBOT_API void to_json(nlohmann::json& json, const RichBlockDivider& value);
11890
11896 using Ptr = std::shared_ptr<RichBlockFooter>;
11897
11898 static TGBOT_API const std::string TYPE;
11899
11903 std::string type { TYPE };
11904
11908 std::shared_ptr<RichText> text { };
11909};
11910
11911TGBOT_API void from_json(const nlohmann::json& json, RichBlockFooter& value);
11912TGBOT_API void to_json(nlohmann::json& json, const RichBlockFooter& value);
11913
11919 using Ptr = std::shared_ptr<RichBlockList>;
11920
11921 static TGBOT_API const std::string TYPE;
11922
11926 std::string type { TYPE };
11927
11931 std::vector<std::shared_ptr<RichBlockListItem>> items { };
11932};
11933
11934TGBOT_API void from_json(const nlohmann::json& json, RichBlockList& value);
11935TGBOT_API void to_json(nlohmann::json& json, const RichBlockList& value);
11936
11942 using Ptr = std::shared_ptr<RichBlockListItem>;
11943
11947 std::string label { };
11948
11952 std::vector<std::shared_ptr<RichBlock>> blocks { };
11953
11957 std::optional<bool> hasCheckbox { };
11958
11962 std::optional<bool> isChecked { };
11963
11967 std::optional<std::int32_t> value { };
11968
11974 std::optional<std::string> type { };
11975};
11976
11977TGBOT_API void from_json(const nlohmann::json& json, RichBlockListItem& value);
11978TGBOT_API void to_json(nlohmann::json& json, const RichBlockListItem& value);
11979
11985 using Ptr = std::shared_ptr<RichBlockMap>;
11986
11987 static TGBOT_API const std::string TYPE;
11988
11992 std::string type { TYPE };
11993
11997 std::shared_ptr<Location> location { };
11998
12002 std::int32_t zoom { };
12003
12007 std::int32_t width { };
12008
12012 std::int32_t height { };
12013
12017 std::shared_ptr<RichBlockCaption> caption { };
12018};
12019
12020TGBOT_API void from_json(const nlohmann::json& json, RichBlockMap& value);
12021TGBOT_API void to_json(nlohmann::json& json, const RichBlockMap& value);
12022
12029 using Ptr = std::shared_ptr<RichBlockMathematicalExpression>;
12030
12031 static TGBOT_API const std::string TYPE;
12032
12036 std::string type { TYPE };
12037
12041 std::string expression { };
12042};
12043
12044TGBOT_API void from_json(const nlohmann::json& json, RichBlockMathematicalExpression& value);
12045TGBOT_API void to_json(nlohmann::json& json, const RichBlockMathematicalExpression& value);
12046
12052 using Ptr = std::shared_ptr<RichBlockParagraph>;
12053
12054 static TGBOT_API const std::string TYPE;
12055
12059 std::string type { TYPE };
12060
12064 std::shared_ptr<RichText> text { };
12065};
12066
12067TGBOT_API void from_json(const nlohmann::json& json, RichBlockParagraph& value);
12068TGBOT_API void to_json(nlohmann::json& json, const RichBlockParagraph& value);
12069
12075 using Ptr = std::shared_ptr<RichBlockPhoto>;
12076
12077 static TGBOT_API const std::string TYPE;
12078
12082 std::string type { TYPE };
12083
12087 std::vector<std::shared_ptr<PhotoSize>> photo { };
12088
12092 std::optional<bool> hasSpoiler { };
12093
12097 std::shared_ptr<RichBlockCaption> caption { };
12098};
12099
12100TGBOT_API void from_json(const nlohmann::json& json, RichBlockPhoto& value);
12101TGBOT_API void to_json(nlohmann::json& json, const RichBlockPhoto& value);
12102
12108 using Ptr = std::shared_ptr<RichBlockPreformatted>;
12109
12110 static TGBOT_API const std::string TYPE;
12111
12115 std::string type { TYPE };
12116
12120 std::shared_ptr<RichText> text { };
12121
12125 std::optional<std::string> language { };
12126};
12127
12128TGBOT_API void from_json(const nlohmann::json& json, RichBlockPreformatted& value);
12129TGBOT_API void to_json(nlohmann::json& json, const RichBlockPreformatted& value);
12130
12136 using Ptr = std::shared_ptr<RichBlockPullQuotation>;
12137
12138 static TGBOT_API const std::string TYPE;
12139
12143 std::string type { TYPE };
12144
12148 std::shared_ptr<RichText> text { };
12149
12153 std::shared_ptr<RichText> credit { };
12154};
12155
12156TGBOT_API void from_json(const nlohmann::json& json, RichBlockPullQuotation& value);
12157TGBOT_API void to_json(nlohmann::json& json, const RichBlockPullQuotation& value);
12158
12164 using Ptr = std::shared_ptr<RichBlockSectionHeading>;
12165
12166 static TGBOT_API const std::string TYPE;
12167
12171 std::string type { TYPE };
12172
12176 std::shared_ptr<RichText> text { };
12177
12181 std::int32_t size { };
12182};
12183
12184TGBOT_API void from_json(const nlohmann::json& json, RichBlockSectionHeading& value);
12185TGBOT_API void to_json(nlohmann::json& json, const RichBlockSectionHeading& value);
12186
12192 using Ptr = std::shared_ptr<RichBlockSlideshow>;
12193
12194 static TGBOT_API const std::string TYPE;
12195
12199 std::string type { TYPE };
12200
12204 std::vector<std::shared_ptr<RichBlock>> blocks { };
12205
12209 std::shared_ptr<RichBlockCaption> caption { };
12210};
12211
12212TGBOT_API void from_json(const nlohmann::json& json, RichBlockSlideshow& value);
12213TGBOT_API void to_json(nlohmann::json& json, const RichBlockSlideshow& value);
12214
12220 using Ptr = std::shared_ptr<RichBlockTable>;
12221
12222 static TGBOT_API const std::string TYPE;
12223
12227 std::string type { TYPE };
12228
12232 std::vector<std::vector<std::shared_ptr<RichBlockTableCell>>> cells { };
12233
12237 std::optional<bool> isBordered { };
12238
12242 std::optional<bool> isStriped { };
12243
12247 std::shared_ptr<RichText> caption { };
12248};
12249
12250TGBOT_API void from_json(const nlohmann::json& json, RichBlockTable& value);
12251TGBOT_API void to_json(nlohmann::json& json, const RichBlockTable& value);
12252
12258 using Ptr = std::shared_ptr<RichBlockTableCell>;
12259
12263 std::shared_ptr<RichText> text { };
12264
12268 std::optional<bool> isHeader { };
12269
12273 std::optional<std::int32_t> colspan { };
12274
12278 std::optional<std::int32_t> rowspan { };
12279
12284 std::string align { };
12285
12289 std::string valign { };
12290};
12291
12292TGBOT_API void from_json(const nlohmann::json& json, RichBlockTableCell& value);
12293TGBOT_API void to_json(nlohmann::json& json, const RichBlockTableCell& value);
12294
12303 using Ptr = std::shared_ptr<RichBlockThinking>;
12304
12305 static TGBOT_API const std::string TYPE;
12306
12310 std::string type { TYPE };
12311
12316 std::shared_ptr<RichText> text { };
12317};
12318
12319TGBOT_API void from_json(const nlohmann::json& json, RichBlockThinking& value);
12320TGBOT_API void to_json(nlohmann::json& json, const RichBlockThinking& value);
12321
12327 using Ptr = std::shared_ptr<RichBlockVideo>;
12328
12329 static TGBOT_API const std::string TYPE;
12330
12334 std::string type { TYPE };
12335
12339 std::shared_ptr<Video> video { };
12340
12344 std::optional<bool> hasSpoiler { };
12345
12349 std::shared_ptr<RichBlockCaption> caption { };
12350};
12351
12352TGBOT_API void from_json(const nlohmann::json& json, RichBlockVideo& value);
12353TGBOT_API void to_json(nlohmann::json& json, const RichBlockVideo& value);
12354
12360 using Ptr = std::shared_ptr<RichBlockVoiceNote>;
12361
12362 static TGBOT_API const std::string TYPE;
12363
12367 std::string type { TYPE };
12368
12372 std::shared_ptr<Voice> voiceNote { };
12373
12377 std::shared_ptr<RichBlockCaption> caption { };
12378};
12379
12380TGBOT_API void from_json(const nlohmann::json& json, RichBlockVoiceNote& value);
12381TGBOT_API void to_json(nlohmann::json& json, const RichBlockVoiceNote& value);
12382
12388 using Ptr = std::shared_ptr<RichMessage>;
12389
12393 std::vector<std::shared_ptr<RichBlock>> blocks { };
12394
12398 std::optional<bool> isRtl { };
12399};
12400
12401TGBOT_API void from_json(const nlohmann::json& json, RichMessage& value);
12402TGBOT_API void to_json(nlohmann::json& json, const RichMessage& value);
12403
12414struct RichText {
12415 using Ptr = std::shared_ptr<RichText>;
12416
12417 std::variant<
12418 std::shared_ptr<RichTextBold>, std::shared_ptr<RichTextItalic>, std::shared_ptr<RichTextUnderline>,
12419 std::shared_ptr<RichTextStrikethrough>, std::shared_ptr<RichTextSpoiler>, std::shared_ptr<RichTextDateTime>,
12420 std::shared_ptr<RichTextTextMention>, std::shared_ptr<RichTextSubscript>, std::shared_ptr<RichTextSuperscript>,
12421 std::shared_ptr<RichTextMarked>, std::shared_ptr<RichTextCode>, std::shared_ptr<RichTextCustomEmoji>,
12422 std::shared_ptr<RichTextMathematicalExpression>, std::shared_ptr<RichTextUrl>,
12423 std::shared_ptr<RichTextEmailAddress>, std::shared_ptr<RichTextPhoneNumber>,
12424 std::shared_ptr<RichTextBankCardNumber>, std::shared_ptr<RichTextMention>, std::shared_ptr<RichTextHashtag>,
12425 std::shared_ptr<RichTextCashtag>, std::shared_ptr<RichTextBotCommand>, std::shared_ptr<RichTextAnchor>,
12426 std::shared_ptr<RichTextAnchorLink>, std::shared_ptr<RichTextReference>, std::shared_ptr<RichTextReferenceLink>>
12428};
12429
12430TGBOT_API void from_json(const nlohmann::json& json, RichText& value);
12431TGBOT_API void to_json(nlohmann::json& json, const RichText& value);
12432
12438 using Ptr = std::shared_ptr<RichTextAnchor>;
12439
12440 static TGBOT_API const std::string TYPE;
12441
12445 std::string type { TYPE };
12446
12450 std::string name { };
12451};
12452
12453TGBOT_API void from_json(const nlohmann::json& json, RichTextAnchor& value);
12454TGBOT_API void to_json(nlohmann::json& json, const RichTextAnchor& value);
12455
12461 using Ptr = std::shared_ptr<RichTextAnchorLink>;
12462
12463 static TGBOT_API const std::string TYPE;
12464
12468 std::string type { TYPE };
12469
12473 std::shared_ptr<RichText> text { };
12474
12479 std::string anchorName { };
12480};
12481
12482TGBOT_API void from_json(const nlohmann::json& json, RichTextAnchorLink& value);
12483TGBOT_API void to_json(nlohmann::json& json, const RichTextAnchorLink& value);
12484
12490 using Ptr = std::shared_ptr<RichTextBankCardNumber>;
12491
12492 static TGBOT_API const std::string TYPE;
12493
12497 std::string type { TYPE };
12498
12502 std::shared_ptr<RichText> text { };
12503
12507 std::string bankCardNumber { };
12508};
12509
12510TGBOT_API void from_json(const nlohmann::json& json, RichTextBankCardNumber& value);
12511TGBOT_API void to_json(nlohmann::json& json, const RichTextBankCardNumber& value);
12512
12518 using Ptr = std::shared_ptr<RichTextBold>;
12519
12520 static TGBOT_API const std::string TYPE;
12521
12525 std::string type { TYPE };
12526
12530 std::shared_ptr<RichText> text { };
12531};
12532
12533TGBOT_API void from_json(const nlohmann::json& json, RichTextBold& value);
12534TGBOT_API void to_json(nlohmann::json& json, const RichTextBold& value);
12535
12541 using Ptr = std::shared_ptr<RichTextBotCommand>;
12542
12543 static TGBOT_API const std::string TYPE;
12544
12548 std::string type { TYPE };
12549
12553 std::shared_ptr<RichText> text { };
12554
12558 std::string botCommand { };
12559};
12560
12561TGBOT_API void from_json(const nlohmann::json& json, RichTextBotCommand& value);
12562TGBOT_API void to_json(nlohmann::json& json, const RichTextBotCommand& value);
12563
12569 using Ptr = std::shared_ptr<RichTextCashtag>;
12570
12571 static TGBOT_API const std::string TYPE;
12572
12576 std::string type { TYPE };
12577
12581 std::shared_ptr<RichText> text { };
12582
12586 std::string cashtag { };
12587};
12588
12589TGBOT_API void from_json(const nlohmann::json& json, RichTextCashtag& value);
12590TGBOT_API void to_json(nlohmann::json& json, const RichTextCashtag& value);
12591
12597 using Ptr = std::shared_ptr<RichTextCode>;
12598
12599 static TGBOT_API const std::string TYPE;
12600
12604 std::string type { TYPE };
12605
12609 std::shared_ptr<RichText> text { };
12610};
12611
12612TGBOT_API void from_json(const nlohmann::json& json, RichTextCode& value);
12613TGBOT_API void to_json(nlohmann::json& json, const RichTextCode& value);
12614
12620 using Ptr = std::shared_ptr<RichTextCustomEmoji>;
12621
12622 static TGBOT_API const std::string TYPE;
12623
12627 std::string type { TYPE };
12628
12633 std::string customEmojiId { };
12634
12638 std::string alternativeText { };
12639};
12640
12641TGBOT_API void from_json(const nlohmann::json& json, RichTextCustomEmoji& value);
12642TGBOT_API void to_json(nlohmann::json& json, const RichTextCustomEmoji& value);
12643
12649 using Ptr = std::shared_ptr<RichTextDateTime>;
12650
12651 static TGBOT_API const std::string TYPE;
12652
12656 std::string type { TYPE };
12657
12661 std::shared_ptr<RichText> text { };
12662
12666 std::int32_t unixTime { };
12667
12672 std::string dateTimeFormat { };
12673};
12674
12675TGBOT_API void from_json(const nlohmann::json& json, RichTextDateTime& value);
12676TGBOT_API void to_json(nlohmann::json& json, const RichTextDateTime& value);
12677
12683 using Ptr = std::shared_ptr<RichTextEmailAddress>;
12684
12685 static TGBOT_API const std::string TYPE;
12686
12690 std::string type { TYPE };
12691
12695 std::shared_ptr<RichText> text { };
12696
12700 std::string emailAddress { };
12701};
12702
12703TGBOT_API void from_json(const nlohmann::json& json, RichTextEmailAddress& value);
12704TGBOT_API void to_json(nlohmann::json& json, const RichTextEmailAddress& value);
12705
12711 using Ptr = std::shared_ptr<RichTextHashtag>;
12712
12713 static TGBOT_API const std::string TYPE;
12714
12718 std::string type { TYPE };
12719
12723 std::shared_ptr<RichText> text { };
12724
12728 std::string hashtag { };
12729};
12730
12731TGBOT_API void from_json(const nlohmann::json& json, RichTextHashtag& value);
12732TGBOT_API void to_json(nlohmann::json& json, const RichTextHashtag& value);
12733
12739 using Ptr = std::shared_ptr<RichTextItalic>;
12740
12741 static TGBOT_API const std::string TYPE;
12742
12746 std::string type { TYPE };
12747
12751 std::shared_ptr<RichText> text { };
12752};
12753
12754TGBOT_API void from_json(const nlohmann::json& json, RichTextItalic& value);
12755TGBOT_API void to_json(nlohmann::json& json, const RichTextItalic& value);
12756
12762 using Ptr = std::shared_ptr<RichTextMarked>;
12763
12764 static TGBOT_API const std::string TYPE;
12765
12769 std::string type { TYPE };
12770
12774 std::shared_ptr<RichText> text { };
12775};
12776
12777TGBOT_API void from_json(const nlohmann::json& json, RichTextMarked& value);
12778TGBOT_API void to_json(nlohmann::json& json, const RichTextMarked& value);
12779
12785 using Ptr = std::shared_ptr<RichTextMathematicalExpression>;
12786
12787 static TGBOT_API const std::string TYPE;
12788
12792 std::string type { TYPE };
12793
12797 std::string expression { };
12798};
12799
12800TGBOT_API void from_json(const nlohmann::json& json, RichTextMathematicalExpression& value);
12801TGBOT_API void to_json(nlohmann::json& json, const RichTextMathematicalExpression& value);
12802
12808 using Ptr = std::shared_ptr<RichTextMention>;
12809
12810 static TGBOT_API const std::string TYPE;
12811
12815 std::string type { TYPE };
12816
12820 std::shared_ptr<RichText> text { };
12821
12825 std::string username { };
12826};
12827
12828TGBOT_API void from_json(const nlohmann::json& json, RichTextMention& value);
12829TGBOT_API void to_json(nlohmann::json& json, const RichTextMention& value);
12830
12836 using Ptr = std::shared_ptr<RichTextPhoneNumber>;
12837
12838 static TGBOT_API const std::string TYPE;
12839
12843 std::string type { TYPE };
12844
12848 std::shared_ptr<RichText> text { };
12849
12853 std::string phoneNumber { };
12854};
12855
12856TGBOT_API void from_json(const nlohmann::json& json, RichTextPhoneNumber& value);
12857TGBOT_API void to_json(nlohmann::json& json, const RichTextPhoneNumber& value);
12858
12864 using Ptr = std::shared_ptr<RichTextReference>;
12865
12866 static TGBOT_API const std::string TYPE;
12867
12871 std::string type { TYPE };
12872
12876 std::shared_ptr<RichText> text { };
12877
12881 std::string name { };
12882};
12883
12884TGBOT_API void from_json(const nlohmann::json& json, RichTextReference& value);
12885TGBOT_API void to_json(nlohmann::json& json, const RichTextReference& value);
12886
12892 using Ptr = std::shared_ptr<RichTextReferenceLink>;
12893
12894 static TGBOT_API const std::string TYPE;
12895
12899 std::string type { TYPE };
12900
12904 std::shared_ptr<RichText> text { };
12905
12909 std::string referenceName { };
12910};
12911
12912TGBOT_API void from_json(const nlohmann::json& json, RichTextReferenceLink& value);
12913TGBOT_API void to_json(nlohmann::json& json, const RichTextReferenceLink& value);
12914
12920 using Ptr = std::shared_ptr<RichTextSpoiler>;
12921
12922 static TGBOT_API const std::string TYPE;
12923
12927 std::string type { TYPE };
12928
12932 std::shared_ptr<RichText> text { };
12933};
12934
12935TGBOT_API void from_json(const nlohmann::json& json, RichTextSpoiler& value);
12936TGBOT_API void to_json(nlohmann::json& json, const RichTextSpoiler& value);
12937
12943 using Ptr = std::shared_ptr<RichTextStrikethrough>;
12944
12945 static TGBOT_API const std::string TYPE;
12946
12950 std::string type { TYPE };
12951
12955 std::shared_ptr<RichText> text { };
12956};
12957
12958TGBOT_API void from_json(const nlohmann::json& json, RichTextStrikethrough& value);
12959TGBOT_API void to_json(nlohmann::json& json, const RichTextStrikethrough& value);
12960
12966 using Ptr = std::shared_ptr<RichTextSubscript>;
12967
12968 static TGBOT_API const std::string TYPE;
12969
12973 std::string type { TYPE };
12974
12978 std::shared_ptr<RichText> text { };
12979};
12980
12981TGBOT_API void from_json(const nlohmann::json& json, RichTextSubscript& value);
12982TGBOT_API void to_json(nlohmann::json& json, const RichTextSubscript& value);
12983
12989 using Ptr = std::shared_ptr<RichTextSuperscript>;
12990
12991 static TGBOT_API const std::string TYPE;
12992
12996 std::string type { TYPE };
12997
13001 std::shared_ptr<RichText> text { };
13002};
13003
13004TGBOT_API void from_json(const nlohmann::json& json, RichTextSuperscript& value);
13005TGBOT_API void to_json(nlohmann::json& json, const RichTextSuperscript& value);
13006
13012 using Ptr = std::shared_ptr<RichTextTextMention>;
13013
13014 static TGBOT_API const std::string TYPE;
13015
13019 std::string type { TYPE };
13020
13024 std::shared_ptr<RichText> text { };
13025
13029 std::shared_ptr<User> user { };
13030};
13031
13032TGBOT_API void from_json(const nlohmann::json& json, RichTextTextMention& value);
13033TGBOT_API void to_json(nlohmann::json& json, const RichTextTextMention& value);
13034
13040 using Ptr = std::shared_ptr<RichTextUnderline>;
13041
13042 static TGBOT_API const std::string TYPE;
13043
13047 std::string type { TYPE };
13048
13052 std::shared_ptr<RichText> text { };
13053};
13054
13055TGBOT_API void from_json(const nlohmann::json& json, RichTextUnderline& value);
13056TGBOT_API void to_json(nlohmann::json& json, const RichTextUnderline& value);
13057
13063 using Ptr = std::shared_ptr<RichTextUrl>;
13064
13065 static TGBOT_API const std::string TYPE;
13066
13070 std::string type { TYPE };
13071
13075 std::shared_ptr<RichText> text { };
13076
13080 std::string url { };
13081};
13082
13083TGBOT_API void from_json(const nlohmann::json& json, RichTextUrl& value);
13084TGBOT_API void to_json(nlohmann::json& json, const RichTextUrl& value);
13085
13091 using Ptr = std::shared_ptr<SentGuestMessage>;
13092
13096 std::string inlineMessageId { };
13097};
13098
13099TGBOT_API void from_json(const nlohmann::json& json, SentGuestMessage& value);
13100TGBOT_API void to_json(nlohmann::json& json, const SentGuestMessage& value);
13101
13107 using Ptr = std::shared_ptr<SentWebAppMessage>;
13108
13113 std::optional<std::string> inlineMessageId { };
13114};
13115
13116TGBOT_API void from_json(const nlohmann::json& json, SentWebAppMessage& value);
13117TGBOT_API void to_json(nlohmann::json& json, const SentWebAppMessage& value);
13118
13125 using Ptr = std::shared_ptr<SharedUser>;
13126
13135 std::int64_t userId { };
13136
13140 std::optional<std::string> firstName { };
13141
13145 std::optional<std::string> lastName { };
13146
13150 std::optional<std::string> username { };
13151
13155 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
13156};
13157
13158TGBOT_API void from_json(const nlohmann::json& json, SharedUser& value);
13159TGBOT_API void to_json(nlohmann::json& json, const SharedUser& value);
13160
13166 using Ptr = std::shared_ptr<ShippingAddress>;
13167
13171 std::string countryCode { };
13172
13176 std::string state { };
13177
13181 std::string city { };
13182
13186 std::string streetLine1 { };
13187
13191 std::string streetLine2 { };
13192
13196 std::string postCode { };
13197};
13198
13199TGBOT_API void from_json(const nlohmann::json& json, ShippingAddress& value);
13200TGBOT_API void to_json(nlohmann::json& json, const ShippingAddress& value);
13201
13207 using Ptr = std::shared_ptr<ShippingOption>;
13208
13212 std::string id { };
13213
13217 std::string title { };
13218
13222 std::vector<std::shared_ptr<LabeledPrice>> prices { };
13223};
13224
13225TGBOT_API void from_json(const nlohmann::json& json, ShippingOption& value);
13226TGBOT_API void to_json(nlohmann::json& json, const ShippingOption& value);
13227
13233 using Ptr = std::shared_ptr<ShippingQuery>;
13234
13238 std::string id { };
13239
13243 std::shared_ptr<User> from { };
13244
13248 std::string invoicePayload { };
13249
13253 std::shared_ptr<ShippingAddress> shippingAddress { };
13254};
13255
13256TGBOT_API void from_json(const nlohmann::json& json, ShippingQuery& value);
13257TGBOT_API void to_json(nlohmann::json& json, const ShippingQuery& value);
13258
13264 using Ptr = std::shared_ptr<StarAmount>;
13265
13269 std::int32_t amount { };
13270
13275 std::optional<std::int32_t> nanostarAmount { };
13276};
13277
13278TGBOT_API void from_json(const nlohmann::json& json, StarAmount& value);
13279TGBOT_API void to_json(nlohmann::json& json, const StarAmount& value);
13280
13289 using Ptr = std::shared_ptr<StarTransaction>;
13290
13297 std::string id { };
13298
13302 std::int32_t amount { };
13303
13308 std::optional<std::int32_t> nanostarAmount { };
13309
13313 std::int32_t date { };
13314
13319 std::shared_ptr<TransactionPartner> source { };
13320
13325 std::shared_ptr<TransactionPartner> receiver { };
13326};
13327
13328TGBOT_API void from_json(const nlohmann::json& json, StarTransaction& value);
13329TGBOT_API void to_json(nlohmann::json& json, const StarTransaction& value);
13330
13336 using Ptr = std::shared_ptr<StarTransactions>;
13337
13341 std::vector<std::shared_ptr<StarTransaction>> transactions { };
13342};
13343
13344TGBOT_API void from_json(const nlohmann::json& json, StarTransactions& value);
13345TGBOT_API void to_json(nlohmann::json& json, const StarTransactions& value);
13346
13351struct Sticker {
13352 using Ptr = std::shared_ptr<Sticker>;
13353
13354 enum class Type { Regular, Mask, CustomEmoji };
13355
13359 std::string fileId { };
13360
13365 std::string fileUniqueId { };
13366
13373
13377 std::int32_t width { };
13378
13382 std::int32_t height { };
13383
13387 bool isAnimated { };
13388
13392 bool isVideo { };
13393
13397 std::shared_ptr<PhotoSize> thumbnail { };
13398
13402 std::optional<std::string> emoji { };
13403
13407 std::optional<std::string> setName { };
13408
13412 std::shared_ptr<File> premiumAnimation { };
13413
13417 std::shared_ptr<MaskPosition> maskPosition { };
13418
13422 std::optional<std::string> customEmojiId { };
13423
13429 std::optional<bool> needsRepainting { };
13430
13434 std::optional<std::int32_t> fileSize { };
13435};
13436
13437TGBOT_API void from_json(const nlohmann::json& json, Sticker::Type& value);
13438TGBOT_API void to_json(nlohmann::json& json, const Sticker::Type& value);
13439
13440TGBOT_API void from_json(const nlohmann::json& json, Sticker& value);
13441TGBOT_API void to_json(nlohmann::json& json, const Sticker& value);
13442
13448 using Ptr = std::shared_ptr<StickerSet>;
13449
13450 enum class Type { Regular, Mask, CustomEmoji };
13451
13455 std::string name { };
13456
13460 std::string title { };
13461
13466
13470 std::vector<std::shared_ptr<Sticker>> stickers { };
13471
13475 std::shared_ptr<PhotoSize> thumbnail { };
13476};
13477
13478TGBOT_API void from_json(const nlohmann::json& json, StickerSet::Type& value);
13479TGBOT_API void to_json(nlohmann::json& json, const StickerSet::Type& value);
13480
13481TGBOT_API void from_json(const nlohmann::json& json, StickerSet& value);
13482TGBOT_API void to_json(nlohmann::json& json, const StickerSet& value);
13483
13488struct Story {
13489 using Ptr = std::shared_ptr<Story>;
13490
13494 std::shared_ptr<Chat> chat { };
13495
13499 std::int32_t id { };
13500};
13501
13502TGBOT_API void from_json(const nlohmann::json& json, Story& value);
13503TGBOT_API void to_json(nlohmann::json& json, const Story& value);
13504
13510 using Ptr = std::shared_ptr<StoryArea>;
13511
13515 std::shared_ptr<StoryAreaPosition> position { };
13516
13520 std::shared_ptr<StoryAreaType> type { };
13521};
13522
13523TGBOT_API void from_json(const nlohmann::json& json, StoryArea& value);
13524TGBOT_API void to_json(nlohmann::json& json, const StoryArea& value);
13525
13531 using Ptr = std::shared_ptr<StoryAreaPosition>;
13532
13536 double xPercentage { };
13537
13541 double yPercentage { };
13542
13547
13552
13556 double rotationAngle { };
13557
13562};
13563
13564TGBOT_API void from_json(const nlohmann::json& json, StoryAreaPosition& value);
13565TGBOT_API void to_json(nlohmann::json& json, const StoryAreaPosition& value);
13566
13574 using Ptr = std::shared_ptr<StoryAreaType>;
13575
13576 std::variant<std::shared_ptr<StoryAreaTypeLocation>, std::shared_ptr<StoryAreaTypeSuggestedReaction>,
13577 std::shared_ptr<StoryAreaTypeLink>, std::shared_ptr<StoryAreaTypeWeather>,
13578 std::shared_ptr<StoryAreaTypeUniqueGift>>
13580};
13581
13582TGBOT_API void from_json(const nlohmann::json& json, StoryAreaType& value);
13583TGBOT_API void to_json(nlohmann::json& json, const StoryAreaType& value);
13584
13591 using Ptr = std::shared_ptr<StoryAreaTypeLink>;
13592
13593 static TGBOT_API const std::string TYPE;
13594
13598 std::string type { TYPE };
13599
13603 std::string url { };
13604};
13605
13606TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeLink& value);
13607TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeLink& value);
13608
13615 using Ptr = std::shared_ptr<StoryAreaTypeLocation>;
13616
13617 static TGBOT_API const std::string TYPE;
13618
13622 std::string type { TYPE };
13623
13627 double latitude { };
13628
13632 double longitude { };
13633
13637 std::shared_ptr<LocationAddress> address { };
13638};
13639
13640TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeLocation& value);
13641TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeLocation& value);
13642
13649 using Ptr = std::shared_ptr<StoryAreaTypeSuggestedReaction>;
13650
13651 static TGBOT_API const std::string TYPE;
13652
13656 std::string type { TYPE };
13657
13661 std::shared_ptr<ReactionType> reactionType { };
13662
13666 std::optional<bool> isDark { };
13667
13671 std::optional<bool> isFlipped { };
13672};
13673
13674TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeSuggestedReaction& value);
13675TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeSuggestedReaction& value);
13676
13683 using Ptr = std::shared_ptr<StoryAreaTypeUniqueGift>;
13684
13685 static TGBOT_API const std::string TYPE;
13686
13690 std::string type { TYPE };
13691
13695 std::string name { };
13696};
13697
13698TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeUniqueGift& value);
13699TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeUniqueGift& value);
13700
13707 using Ptr = std::shared_ptr<StoryAreaTypeWeather>;
13708
13709 static TGBOT_API const std::string TYPE;
13710
13714 std::string type { TYPE };
13715
13719 double temperature { };
13720
13724 std::string emoji { };
13725
13729 std::int32_t backgroundColor { };
13730};
13731
13732TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeWeather& value);
13733TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeWeather& value);
13734
13742 using Ptr = std::shared_ptr<SuccessfulPayment>;
13743
13747 std::string currency { };
13748
13755 std::int32_t totalAmount { };
13756
13760 std::string invoicePayload { };
13761
13765 std::optional<std::int32_t> subscriptionExpirationDate { };
13766
13770 std::optional<bool> isRecurring { };
13771
13775 std::optional<bool> isFirstRecurring { };
13776
13780 std::optional<std::string> shippingOptionId { };
13781
13785 std::shared_ptr<OrderInfo> orderInfo { };
13786
13791
13796};
13797
13798TGBOT_API void from_json(const nlohmann::json& json, SuccessfulPayment& value);
13799TGBOT_API void to_json(nlohmann::json& json, const SuccessfulPayment& value);
13800
13807 using Ptr = std::shared_ptr<SuggestedPostApprovalFailed>;
13808
13814 std::shared_ptr<Message> suggestedPostMessage { };
13815
13819 std::shared_ptr<SuggestedPostPrice> price { };
13820};
13821
13822TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostApprovalFailed& value);
13823TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostApprovalFailed& value);
13824
13830 using Ptr = std::shared_ptr<SuggestedPostApproved>;
13831
13836 std::shared_ptr<Message> suggestedPostMessage { };
13837
13841 std::shared_ptr<SuggestedPostPrice> price { };
13842
13846 std::int32_t sendDate { };
13847};
13848
13849TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostApproved& value);
13850TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostApproved& value);
13851
13857 using Ptr = std::shared_ptr<SuggestedPostDeclined>;
13858
13863 std::shared_ptr<Message> suggestedPostMessage { };
13864
13868 std::optional<std::string> comment { };
13869};
13870
13871TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostDeclined& value);
13872TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostDeclined& value);
13873
13879 using Ptr = std::shared_ptr<SuggestedPostInfo>;
13880
13885 std::string state { };
13886
13890 std::shared_ptr<SuggestedPostPrice> price { };
13891
13897 std::optional<std::int32_t> sendDate { };
13898};
13899
13900TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostInfo& value);
13901TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostInfo& value);
13902
13908 using Ptr = std::shared_ptr<SuggestedPostPaid>;
13909
13914 std::shared_ptr<Message> suggestedPostMessage { };
13915
13920 std::string currency { };
13921
13926 std::optional<std::int32_t> amount { };
13927
13932 std::shared_ptr<StarAmount> starAmount { };
13933};
13934
13935TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostPaid& value);
13936TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostPaid& value);
13937
13943 using Ptr = std::shared_ptr<SuggestedPostParameters>;
13944
13948 std::shared_ptr<SuggestedPostPrice> price { };
13949
13956 std::optional<std::int32_t> sendDate { };
13957};
13958
13959TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostParameters& value);
13960TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostParameters& value);
13961
13967 using Ptr = std::shared_ptr<SuggestedPostPrice>;
13968
13973 std::string currency { };
13974
13981 std::int32_t amount { };
13982};
13983
13984TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostPrice& value);
13985TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostPrice& value);
13986
13992 using Ptr = std::shared_ptr<SuggestedPostRefunded>;
13993
13998 std::shared_ptr<Message> suggestedPostMessage { };
13999
14005 std::string reason { };
14006};
14007
14008TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostRefunded& value);
14009TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostRefunded& value);
14010
14017 using Ptr = std::shared_ptr<SwitchInlineQueryChosenChat>;
14018
14023 std::optional<std::string> query { };
14024
14028 std::optional<bool> allowUserChats { };
14029
14033 std::optional<bool> allowBotChats { };
14034
14038 std::optional<bool> allowGroupChats { };
14039
14043 std::optional<bool> allowChannelChats { };
14044};
14045
14046TGBOT_API void from_json(const nlohmann::json& json, SwitchInlineQueryChosenChat& value);
14047TGBOT_API void to_json(nlohmann::json& json, const SwitchInlineQueryChosenChat& value);
14048
14055 using Ptr = std::shared_ptr<TextQuote>;
14056
14060 std::string text { };
14061
14067 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
14068
14073 std::int32_t position { };
14074
14079 std::optional<bool> isManual { };
14080};
14081
14082TGBOT_API void from_json(const nlohmann::json& json, TextQuote& value);
14083TGBOT_API void to_json(nlohmann::json& json, const TextQuote& value);
14084
14093 using Ptr = std::shared_ptr<TransactionPartner>;
14094
14095 std::variant<std::shared_ptr<TransactionPartnerUser>, std::shared_ptr<TransactionPartnerChat>,
14096 std::shared_ptr<TransactionPartnerAffiliateProgram>, std::shared_ptr<TransactionPartnerFragment>,
14097 std::shared_ptr<TransactionPartnerTelegramAds>, std::shared_ptr<TransactionPartnerTelegramApi>,
14098 std::shared_ptr<TransactionPartnerOther>>
14100};
14101
14102TGBOT_API void from_json(const nlohmann::json& json, TransactionPartner& value);
14103TGBOT_API void to_json(nlohmann::json& json, const TransactionPartner& value);
14104
14111 using Ptr = std::shared_ptr<TransactionPartnerAffiliateProgram>;
14112
14113 static TGBOT_API const std::string TYPE;
14114
14118 std::string type { TYPE };
14119
14123 std::shared_ptr<User> sponsorUser { };
14124
14129 std::int32_t commissionPerMille { };
14130};
14131
14132TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerAffiliateProgram& value);
14133TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerAffiliateProgram& value);
14134
14140 using Ptr = std::shared_ptr<TransactionPartnerChat>;
14141
14142 static TGBOT_API const std::string TYPE;
14143
14147 std::string type { TYPE };
14148
14152 std::shared_ptr<Chat> chat { };
14153
14157 std::shared_ptr<Gift> gift { };
14158};
14159
14160TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerChat& value);
14161TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerChat& value);
14162
14168 using Ptr = std::shared_ptr<TransactionPartnerFragment>;
14169
14170 static TGBOT_API const std::string TYPE;
14171
14175 std::string type { TYPE };
14176
14180 std::shared_ptr<RevenueWithdrawalState> withdrawalState { };
14181};
14182
14183TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerFragment& value);
14184TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerFragment& value);
14185
14191 using Ptr = std::shared_ptr<TransactionPartnerOther>;
14192
14193 static TGBOT_API const std::string TYPE;
14194
14198 std::string type { TYPE };
14199};
14200
14201TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerOther& value);
14202TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerOther& value);
14203
14209 using Ptr = std::shared_ptr<TransactionPartnerTelegramAds>;
14210
14211 static TGBOT_API const std::string TYPE;
14212
14216 std::string type { TYPE };
14217};
14218
14219TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerTelegramAds& value);
14220TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerTelegramAds& value);
14221
14227 using Ptr = std::shared_ptr<TransactionPartnerTelegramApi>;
14228
14229 static TGBOT_API const std::string TYPE;
14230
14234 std::string type { TYPE };
14235
14239 std::int32_t requestCount { };
14240};
14241
14242TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerTelegramApi& value);
14243TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerTelegramApi& value);
14244
14250 using Ptr = std::shared_ptr<TransactionPartnerUser>;
14251
14252 static TGBOT_API const std::string TYPE;
14253
14257 std::string type { TYPE };
14258
14265 std::string transactionType { };
14266
14270 std::shared_ptr<User> user { };
14271
14277 std::shared_ptr<AffiliateInfo> affiliate { };
14278
14283 std::optional<std::string> invoicePayload { };
14284
14289 std::optional<std::int32_t> subscriptionPeriod { };
14290
14295 std::optional<std::vector<std::shared_ptr<PaidMedia>>> paidMedia { };
14296
14301 std::optional<std::string> paidMediaPayload { };
14302
14306 std::shared_ptr<Gift> gift { };
14307
14312 std::optional<std::int32_t> premiumSubscriptionDuration { };
14313};
14314
14315TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerUser& value);
14316TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerUser& value);
14317
14323 using Ptr = std::shared_ptr<UniqueGift>;
14324
14328 std::string giftId { };
14329
14333 std::string baseName { };
14334
14339 std::string name { };
14340
14344 std::int32_t number { };
14345
14349 std::shared_ptr<UniqueGiftModel> model { };
14350
14354 std::shared_ptr<UniqueGiftSymbol> symbol { };
14355
14359 std::shared_ptr<UniqueGiftBackdrop> backdrop { };
14360
14365 std::optional<bool> isPremium { };
14366
14370 std::optional<bool> isBurned { };
14371
14376 std::optional<bool> isFromBlockchain { };
14377
14383 std::shared_ptr<UniqueGiftColors> colors { };
14384
14388 std::shared_ptr<Chat> publisherChat { };
14389};
14390
14391TGBOT_API void from_json(const nlohmann::json& json, UniqueGift& value);
14392TGBOT_API void to_json(nlohmann::json& json, const UniqueGift& value);
14393
14399 using Ptr = std::shared_ptr<UniqueGiftBackdrop>;
14400
14404 std::string name { };
14405
14409 std::shared_ptr<UniqueGiftBackdropColors> colors { };
14410
14414 std::int32_t rarityPerMille { };
14415};
14416
14417TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftBackdrop& value);
14418TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftBackdrop& value);
14419
14425 using Ptr = std::shared_ptr<UniqueGiftBackdropColors>;
14426
14430 std::int32_t centerColor { };
14431
14435 std::int32_t edgeColor { };
14436
14440 std::int32_t symbolColor { };
14441
14445 std::int32_t textColor { };
14446};
14447
14448TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftBackdropColors& value);
14449TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftBackdropColors& value);
14450
14457 using Ptr = std::shared_ptr<UniqueGiftColors>;
14458
14462 std::string modelCustomEmojiId { };
14463
14467 std::string symbolCustomEmojiId { };
14468
14472 std::int32_t lightThemeMainColor { };
14473
14477 std::vector<std::int32_t> lightThemeOtherColors { };
14478
14482 std::int32_t darkThemeMainColor { };
14483
14487 std::vector<std::int32_t> darkThemeOtherColors { };
14488};
14489
14490TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftColors& value);
14491TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftColors& value);
14492
14498 using Ptr = std::shared_ptr<UniqueGiftInfo>;
14499
14503 std::shared_ptr<UniqueGift> gift { };
14504
14511 std::string origin { };
14512
14517 std::optional<std::string> lastResaleCurrency { };
14518
14523 std::optional<std::int32_t> lastResaleAmount { };
14524
14529 std::optional<std::string> ownedGiftId { };
14530
14535 std::optional<std::int32_t> transferStarCount { };
14536
14541 std::optional<std::int32_t> nextTransferDate { };
14542};
14543
14544TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftInfo& value);
14545TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftInfo& value);
14546
14552 using Ptr = std::shared_ptr<UniqueGiftModel>;
14553
14557 std::string name { };
14558
14562 std::shared_ptr<Sticker> sticker { };
14563
14568 std::int32_t rarityPerMille { };
14569
14574 std::optional<std::string> rarity { };
14575};
14576
14577TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftModel& value);
14578TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftModel& value);
14579
14585 using Ptr = std::shared_ptr<UniqueGiftSymbol>;
14586
14590 std::string name { };
14591
14595 std::shared_ptr<Sticker> sticker { };
14596
14600 std::int32_t rarityPerMille { };
14601};
14602
14603TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftSymbol& value);
14604TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftSymbol& value);
14605
14611struct Update {
14612 using Ptr = std::shared_ptr<Update>;
14613
14622 std::int32_t updateId { };
14623
14627 std::shared_ptr<Message> message { };
14628
14634 std::shared_ptr<Message> editedMessage { };
14635
14639 std::shared_ptr<Message> channelPost { };
14640
14646 std::shared_ptr<Message> editedChannelPost { };
14647
14652 std::shared_ptr<BusinessConnection> businessConnection { };
14653
14657 std::shared_ptr<Message> businessMessage { };
14658
14662 std::shared_ptr<Message> editedBusinessMessage { };
14663
14667 std::shared_ptr<BusinessMessagesDeleted> deletedBusinessMessages { };
14668
14673 std::shared_ptr<Message> guestMessage { };
14674
14681 std::shared_ptr<MessageReactionUpdated> messageReaction { };
14682
14689 std::shared_ptr<MessageReactionCountUpdated> messageReactionCount { };
14690
14694 std::shared_ptr<InlineQuery> inlineQuery { };
14695
14701 std::shared_ptr<ChosenInlineResult> chosenInlineResult { };
14702
14706 std::shared_ptr<CallbackQuery> callbackQuery { };
14707
14711 std::shared_ptr<ShippingQuery> shippingQuery { };
14712
14716 std::shared_ptr<PreCheckoutQuery> preCheckoutQuery { };
14717
14722 std::shared_ptr<PaidMediaPurchased> purchasedPaidMedia { };
14723
14728 std::shared_ptr<Poll> poll { };
14729
14734 std::shared_ptr<PollAnswer> pollAnswer { };
14735
14740 std::shared_ptr<ChatMemberUpdated> myChatMember { };
14741
14747 std::shared_ptr<ChatMemberUpdated> chatMember { };
14748
14753 std::shared_ptr<ChatJoinRequest> chatJoinRequest { };
14754
14759 std::shared_ptr<ChatBoostUpdated> chatBoost { };
14760
14765 std::shared_ptr<ChatBoostRemoved> removedChatBoost { };
14766
14771 std::shared_ptr<ManagedBotUpdated> managedBot { };
14772
14776 std::shared_ptr<BotSubscriptionUpdated> subscription { };
14777};
14778
14779TGBOT_API void from_json(const nlohmann::json& json, Update& value);
14780TGBOT_API void to_json(nlohmann::json& json, const Update& value);
14781
14786struct User {
14787 using Ptr = std::shared_ptr<User>;
14788
14795 std::int64_t id { };
14796
14800 bool isBot { };
14801
14805 std::string firstName { };
14806
14810 std::optional<std::string> lastName { };
14811
14815 std::optional<std::string> username { };
14816
14820 std::optional<std::string> languageCode { };
14821
14825 std::optional<bool> isPremium { };
14826
14830 std::optional<bool> addedToAttachmentMenu { };
14831
14835 std::optional<bool> canJoinGroups { };
14836
14840 std::optional<bool> canReadAllGroupMessages { };
14841
14846 std::optional<bool> supportsGuestQueries { };
14847
14851 std::optional<bool> supportsInlineQueries { };
14852
14857 std::optional<bool> canConnectToBusiness { };
14858
14862 std::optional<bool> hasMainWebApp { };
14863
14868 std::optional<bool> hasTopicsEnabled { };
14869
14874 std::optional<bool> allowsUsersToCreateTopics { };
14875
14880 std::optional<bool> canManageBots { };
14881
14886 std::optional<bool> supportsJoinRequestQueries { };
14887};
14888
14889TGBOT_API void from_json(const nlohmann::json& json, User& value);
14890TGBOT_API void to_json(nlohmann::json& json, const User& value);
14891
14897 using Ptr = std::shared_ptr<UserChatBoosts>;
14898
14902 std::vector<std::shared_ptr<ChatBoost>> boosts { };
14903};
14904
14905TGBOT_API void from_json(const nlohmann::json& json, UserChatBoosts& value);
14906TGBOT_API void to_json(nlohmann::json& json, const UserChatBoosts& value);
14907
14913 using Ptr = std::shared_ptr<UserProfileAudios>;
14914
14918 std::int32_t totalCount { };
14919
14923 std::vector<std::shared_ptr<Audio>> audios { };
14924};
14925
14926TGBOT_API void from_json(const nlohmann::json& json, UserProfileAudios& value);
14927TGBOT_API void to_json(nlohmann::json& json, const UserProfileAudios& value);
14928
14934 using Ptr = std::shared_ptr<UserProfilePhotos>;
14935
14939 std::int32_t totalCount { };
14940
14944 std::vector<std::vector<std::shared_ptr<PhotoSize>>> photos { };
14945};
14946
14947TGBOT_API void from_json(const nlohmann::json& json, UserProfilePhotos& value);
14948TGBOT_API void to_json(nlohmann::json& json, const UserProfilePhotos& value);
14949
14955 using Ptr = std::shared_ptr<UserRating>;
14956
14962 std::int32_t level { };
14963
14967 std::int32_t rating { };
14968
14972 std::int32_t currentLevelRating { };
14973
14978 std::optional<std::int32_t> nextLevelRating { };
14979};
14980
14981TGBOT_API void from_json(const nlohmann::json& json, UserRating& value);
14982TGBOT_API void to_json(nlohmann::json& json, const UserRating& value);
14983
14990 using Ptr = std::shared_ptr<UsersShared>;
14991
14995 std::int32_t requestId { };
14996
15000 std::vector<std::shared_ptr<SharedUser>> users { };
15001};
15002
15003TGBOT_API void from_json(const nlohmann::json& json, UsersShared& value);
15004TGBOT_API void to_json(nlohmann::json& json, const UsersShared& value);
15005
15010struct Venue {
15011 using Ptr = std::shared_ptr<Venue>;
15012
15016 std::shared_ptr<Location> location { };
15017
15021 std::string title { };
15022
15026 std::string address { };
15027
15031 std::optional<std::string> foursquareId { };
15032
15037 std::optional<std::string> foursquareType { };
15038
15042 std::optional<std::string> googlePlaceId { };
15043
15047 std::optional<std::string> googlePlaceType { };
15048};
15049
15050TGBOT_API void from_json(const nlohmann::json& json, Venue& value);
15051TGBOT_API void to_json(nlohmann::json& json, const Venue& value);
15052
15057struct Video {
15058 using Ptr = std::shared_ptr<Video>;
15059
15063 std::string fileId { };
15064
15069 std::string fileUniqueId { };
15070
15074 std::int32_t width { };
15075
15079 std::int32_t height { };
15080
15084 std::int32_t duration { };
15085
15089 std::shared_ptr<PhotoSize> thumbnail { };
15090
15094 std::optional<std::vector<std::shared_ptr<PhotoSize>>> cover { };
15095
15099 std::optional<std::int32_t> startTimestamp { };
15100
15104 std::optional<std::vector<std::shared_ptr<VideoQuality>>> qualities { };
15105
15109 std::optional<std::string> fileName { };
15110
15114 std::optional<std::string> mimeType { };
15115
15122 std::optional<std::int64_t> fileSize { };
15123};
15124
15125TGBOT_API void from_json(const nlohmann::json& json, Video& value);
15126TGBOT_API void to_json(nlohmann::json& json, const Video& value);
15127
15133 using Ptr = std::shared_ptr<VideoChatEnded>;
15134
15138 std::int32_t duration { };
15139};
15140
15141TGBOT_API void from_json(const nlohmann::json& json, VideoChatEnded& value);
15142TGBOT_API void to_json(nlohmann::json& json, const VideoChatEnded& value);
15143
15149 using Ptr = std::shared_ptr<VideoChatParticipantsInvited>;
15150
15154 std::vector<std::shared_ptr<User>> users { };
15155};
15156
15157TGBOT_API void from_json(const nlohmann::json& json, VideoChatParticipantsInvited& value);
15158TGBOT_API void to_json(nlohmann::json& json, const VideoChatParticipantsInvited& value);
15159
15165 using Ptr = std::shared_ptr<VideoChatScheduled>;
15166
15171 std::int32_t startDate { };
15172};
15173
15174TGBOT_API void from_json(const nlohmann::json& json, VideoChatScheduled& value);
15175TGBOT_API void to_json(nlohmann::json& json, const VideoChatScheduled& value);
15176
15183 using Ptr = std::shared_ptr<VideoChatStarted>;
15184};
15185
15186TGBOT_API void from_json(const nlohmann::json& json, VideoChatStarted& value);
15187TGBOT_API void to_json(nlohmann::json& json, const VideoChatStarted& value);
15188
15194 using Ptr = std::shared_ptr<VideoNote>;
15195
15199 std::string fileId { };
15200
15205 std::string fileUniqueId { };
15206
15210 std::int32_t length { };
15211
15215 std::int32_t duration { };
15216
15220 std::shared_ptr<PhotoSize> thumbnail { };
15221
15225 std::optional<std::int32_t> fileSize { };
15226};
15227
15228TGBOT_API void from_json(const nlohmann::json& json, VideoNote& value);
15229TGBOT_API void to_json(nlohmann::json& json, const VideoNote& value);
15230
15236 using Ptr = std::shared_ptr<VideoQuality>;
15237
15241 std::string fileId { };
15242
15247 std::string fileUniqueId { };
15248
15252 std::int32_t width { };
15253
15257 std::int32_t height { };
15258
15262 std::string codec { };
15263
15270 std::optional<std::int64_t> fileSize { };
15271};
15272
15273TGBOT_API void from_json(const nlohmann::json& json, VideoQuality& value);
15274TGBOT_API void to_json(nlohmann::json& json, const VideoQuality& value);
15275
15280struct Voice {
15281 using Ptr = std::shared_ptr<Voice>;
15282
15286 std::string fileId { };
15287
15292 std::string fileUniqueId { };
15293
15297 std::int32_t duration { };
15298
15302 std::optional<std::string> mimeType { };
15303
15310 std::optional<std::int64_t> fileSize { };
15311};
15312
15313TGBOT_API void from_json(const nlohmann::json& json, Voice& value);
15314TGBOT_API void to_json(nlohmann::json& json, const Voice& value);
15315
15321 using Ptr = std::shared_ptr<WebAppData>;
15322
15326 std::string data { };
15327
15332 std::string buttonText { };
15333};
15334
15335TGBOT_API void from_json(const nlohmann::json& json, WebAppData& value);
15336TGBOT_API void to_json(nlohmann::json& json, const WebAppData& value);
15337
15343 using Ptr = std::shared_ptr<WebAppInfo>;
15344
15349 std::string url { };
15350};
15351
15352TGBOT_API void from_json(const nlohmann::json& json, WebAppInfo& value);
15353TGBOT_API void to_json(nlohmann::json& json, const WebAppInfo& value);
15354
15360 using Ptr = std::shared_ptr<WebhookInfo>;
15361
15365 std::string url { };
15366
15371
15375 std::int32_t pendingUpdateCount { };
15376
15380 std::optional<std::string> ipAddress { };
15381
15386 std::optional<std::int32_t> lastErrorDate { };
15387
15392 std::optional<std::string> lastErrorMessage { };
15393
15398 std::optional<std::int32_t> lastSynchronizationErrorDate { };
15399
15404 std::optional<std::int32_t> maxConnections { };
15405
15410 std::optional<std::vector<std::string>> allowedUpdates { };
15411};
15412
15413TGBOT_API void from_json(const nlohmann::json& json, WebhookInfo& value);
15414TGBOT_API void to_json(nlohmann::json& json, const WebhookInfo& value);
15415
15423 using Ptr = std::shared_ptr<WriteAccessAllowed>;
15424
15429 std::optional<bool> fromRequest { };
15430
15435 std::optional<std::string> webAppName { };
15436
15441 std::optional<bool> fromAttachmentMenu { };
15442};
15443
15444TGBOT_API void from_json(const nlohmann::json& json, WriteAccessAllowed& value);
15445TGBOT_API void to_json(nlohmann::json& json, const WriteAccessAllowed& value);
15446
15447} // namespace TgBot
#define TGBOT_API
Definition export.h:5
Definition Api.h:17
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:410
bool unlimitedGifts
True, if unlimited regular gifts are accepted.
Definition Types.h:416
bool giftsFromChannels
True, if transfers of unique gifts from channels are accepted.
Definition Types.h:436
std::shared_ptr< AcceptedGiftTypes > Ptr
Definition Types.h:411
bool limitedGifts
True, if limited regular gifts are accepted.
Definition Types.h:421
bool uniqueGifts
True, if unique gifts or gifts that can be upgraded to unique for free are accepted.
Definition Types.h:426
bool premiumSubscription
True, if a Telegram Premium subscription is accepted.
Definition Types.h:431
Contains information about the affiliate that received a commission via this transaction.
Definition Types.h:446
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:464
std::shared_ptr< Chat > affiliateChat
Optional. The chat that received an affiliate commission if it was received by a chat.
Definition Types.h:458
std::shared_ptr< AffiliateInfo > Ptr
Definition Types.h:447
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:476
std::int32_t amount
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be...
Definition Types.h:470
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:453
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
Definition Types.h:486
std::int32_t duration
Duration of the video in seconds as defined by the sender.
Definition Types.h:513
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:536
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:498
std::optional< std::string > fileName
Optional. Original animation filename as defined by the sender.
Definition Types.h:523
std::shared_ptr< Animation > Ptr
Definition Types.h:487
std::int32_t height
Video height as defined by the sender.
Definition Types.h:508
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:503
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:528
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:492
This object represents an audio file to be treated as music by the Telegram clients.
Definition Types.h:546
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:583
std::optional< std::string > performer
Optional. Performer of the audio as defined by the sender or by audio tags.
Definition Types.h:568
std::int32_t duration
Duration of the audio in seconds as defined by the sender.
Definition Types.h:563
std::optional< std::string > title
Optional. Title of the audio as defined by the sender or by audio tags.
Definition Types.h:573
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:591
std::shared_ptr< Audio > Ptr
Definition Types.h:547
std::optional< std::string > fileName
Optional. Original filename as defined by the sender.
Definition Types.h:578
std::shared_ptr< PhotoSize > thumbnail
Optional. Thumbnail of the album cover to which the music file belongs.
Definition Types.h:596
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:552
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:558
The background is a freeform gradient that rotates after every message in the chat.
Definition Types.h:623
static TGBOT_API const std::string TYPE
Definition Types.h:626
std::string type
Type of the background fill, always “freeform_gradient”
Definition Types.h:631
std::shared_ptr< BackgroundFillFreeformGradient > Ptr
Definition Types.h:624
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:637
The background is a gradient fill.
Definition Types.h:647
static TGBOT_API const std::string TYPE
Definition Types.h:650
std::string type
Type of the background fill, always “gradient”
Definition Types.h:655
std::int32_t rotationAngle
Clockwise rotation angle of the background fill in degrees; 0-359.
Definition Types.h:670
std::int32_t topColor
Top color of the gradient in the RGB24 format.
Definition Types.h:660
std::int32_t bottomColor
Bottom color of the gradient in the RGB24 format.
Definition Types.h:665
std::shared_ptr< BackgroundFillGradient > Ptr
Definition Types.h:648
This object describes the way a background is filled based on the selected colors....
Definition Types.h:608
std::shared_ptr< BackgroundFill > Ptr
Definition Types.h:609
std::variant< std::shared_ptr< BackgroundFillSolid >, std::shared_ptr< BackgroundFillGradient >, std::shared_ptr< BackgroundFillFreeformGradient > > value
Definition Types.h:613
The background is filled using the selected color.
Definition Types.h:680
static TGBOT_API const std::string TYPE
Definition Types.h:683
std::int32_t color
The color of the background fill in the RGB24 format.
Definition Types.h:693
std::shared_ptr< BackgroundFillSolid > Ptr
Definition Types.h:681
std::string type
Type of the background fill, always “solid”
Definition Types.h:688
The background is taken directly from a built-in chat theme.
Definition Types.h:719
std::string themeName
Name of the chat theme, which is usually an emoji.
Definition Types.h:732
static TGBOT_API const std::string TYPE
Definition Types.h:722
std::string type
Type of the background, always “chat_theme”
Definition Types.h:727
std::shared_ptr< BackgroundTypeChatTheme > Ptr
Definition Types.h:720
The background is automatically filled based on the selected colors.
Definition Types.h:742
std::int32_t darkThemeDimming
Dimming of the background in dark themes, as a percentage; 0-100.
Definition Types.h:760
std::shared_ptr< BackgroundTypeFill > Ptr
Definition Types.h:743
std::shared_ptr< BackgroundFill > fill
The background fill.
Definition Types.h:755
std::string type
Type of the background, always “fill”
Definition Types.h:750
static TGBOT_API const std::string TYPE
Definition Types.h:745
This object describes the type of a background. Currently, it can be one of BackgroundTypeFill Backgr...
Definition Types.h:704
std::variant< std::shared_ptr< BackgroundTypeFill >, std::shared_ptr< BackgroundTypeWallpaper >, std::shared_ptr< BackgroundTypePattern >, std::shared_ptr< BackgroundTypeChatTheme > > value
Definition Types.h:709
std::shared_ptr< BackgroundType > Ptr
Definition Types.h:705
The background is a .PNG or .TGV (gzipped subset of SVG with MIME type “application/x-tgwallpattern”)...
Definition Types.h:772
std::int32_t intensity
Intensity of the pattern when it is shown above the filled background; 0-100.
Definition Types.h:795
std::shared_ptr< BackgroundTypePattern > Ptr
Definition Types.h:773
std::shared_ptr< BackgroundFill > fill
The background fill that is combined with the pattern.
Definition Types.h:790
std::shared_ptr< Document > document
Document with the pattern.
Definition Types.h:785
std::optional< bool > isInverted
Optional. True, if the background fill must be applied only to the pattern itself....
Definition Types.h:801
static TGBOT_API const std::string TYPE
Definition Types.h:775
std::string type
Type of the background, always “pattern”
Definition Types.h:780
std::optional< bool > isMoving
Optional. True, if the background moves slightly when the device is tilted.
Definition Types.h:806
The background is a wallpaper in the JPEG format.
Definition Types.h:816
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:840
std::optional< bool > isMoving
Optional. True, if the background moves slightly when the device is tilted.
Definition Types.h:845
std::string type
Type of the background, always “wallpaper”
Definition Types.h:824
std::int32_t darkThemeDimming
Dimming of the background in dark themes, as a percentage; 0-100.
Definition Types.h:834
std::shared_ptr< BackgroundTypeWallpaper > Ptr
Definition Types.h:817
std::shared_ptr< Document > document
Document with the wallpaper.
Definition Types.h:829
static TGBOT_API const std::string TYPE
Definition Types.h:819
Describes the birthdate of a user.
Definition Types.h:855
std::int32_t month
Month of the user's birth; 1-12.
Definition Types.h:866
std::optional< std::int32_t > year
Optional. Year of the user's birth.
Definition Types.h:871
std::int32_t day
Day of the user's birth; 1-31.
Definition Types.h:861
std::shared_ptr< Birthdate > Ptr
Definition Types.h:856
This object describes the access settings of a bot.
Definition Types.h:881
std::shared_ptr< BotAccessSettings > Ptr
Definition Types.h:882
bool isAccessRestricted
True, if only selected users can access the bot. The bot's owner can always access it.
Definition Types.h:887
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:892
This object represents a bot command.
Definition Types.h:902
std::string command
Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and undersco...
Definition Types.h:909
std::shared_ptr< BotCommand > Ptr
Definition Types.h:903
std::string description
Description of the command; 1-256 characters.
Definition Types.h:914
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:920
Represents the scope of bot commands, covering all group and supergroup chat administrators.
Definition Types.h:950
std::shared_ptr< BotCommandScopeAllChatAdministrators > Ptr
Definition Types.h:951
std::string type
Scope type, must be all_chat_administrators.
Definition Types.h:958
static TGBOT_API const std::string TYPE
Definition Types.h:953
Represents the scope of bot commands, covering all group and supergroup chats.
Definition Types.h:968
std::shared_ptr< BotCommandScopeAllGroupChats > Ptr
Definition Types.h:969
static TGBOT_API const std::string TYPE
Definition Types.h:971
std::string type
Scope type, must be all_group_chats.
Definition Types.h:976
Represents the scope of bot commands, covering all private chats.
Definition Types.h:986
std::shared_ptr< BotCommandScopeAllPrivateChats > Ptr
Definition Types.h:987
static TGBOT_API const std::string TYPE
Definition Types.h:989
std::string type
Scope type, must be all_private_chats.
Definition Types.h:994
Represents the scope of bot commands, covering all administrators of a specific group or supergroup c...
Definition Types.h:1029
std::int64_t chatId
Unique identifier for the target chat or username of the target supergroup in the format @username....
Definition Types.h:1043
static TGBOT_API const std::string TYPE
Definition Types.h:1032
std::string type
Scope type, must be chat_administrators.
Definition Types.h:1037
std::shared_ptr< BotCommandScopeChatAdministrators > Ptr
Definition Types.h:1030
Represents the scope of bot commands, covering a specific chat.
Definition Types.h:1004
std::int64_t chatId
Unique identifier for the target chat or username of the target supergroup in the format @username....
Definition Types.h:1018
static TGBOT_API const std::string TYPE
Definition Types.h:1007
std::shared_ptr< BotCommandScopeChat > Ptr
Definition Types.h:1005
std::string type
Scope type, must be chat.
Definition Types.h:1012
Represents the scope of bot commands, covering a specific member of a group or supergroup chat.
Definition Types.h:1054
std::shared_ptr< BotCommandScopeChatMember > Ptr
Definition Types.h:1055
static TGBOT_API const std::string TYPE
Definition Types.h:1057
std::int64_t userId
Unique identifier of the target user.
Definition Types.h:1073
std::string type
Scope type, must be chat_member.
Definition Types.h:1062
std::int64_t chatId
Unique identifier for the target chat or username of the target supergroup in the format @username....
Definition Types.h:1068
Represents the default scope of bot commands. Default commands are used if no commands with a narrowe...
Definition Types.h:1084
std::shared_ptr< BotCommandScopeDefault > Ptr
Definition Types.h:1085
std::string type
Scope type, must be default.
Definition Types.h:1092
static TGBOT_API const std::string TYPE
Definition Types.h:1087
This object represents the scope to which bot commands are applied. Currently, the following 7 scopes...
Definition Types.h:933
std::shared_ptr< BotCommandScope > Ptr
Definition Types.h:934
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:940
This object represents the bot's description.
Definition Types.h:1102
std::string description
The bot's description.
Definition Types.h:1108
std::shared_ptr< BotDescription > Ptr
Definition Types.h:1103
This object represents the bot's name.
Definition Types.h:1118
std::string name
The bot's name.
Definition Types.h:1124
std::shared_ptr< BotName > Ptr
Definition Types.h:1119
This object represents the bot's short description.
Definition Types.h:1134
std::shared_ptr< BotShortDescription > Ptr
Definition Types.h:1135
std::string shortDescription
The bot's short description.
Definition Types.h:1140
This object contains information about changes to a user payment subscription toward the current bot.
Definition Types.h:1151
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:1162
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:1169
std::shared_ptr< User > user
User who subscribed for payments toward the bot.
Definition Types.h:1157
std::shared_ptr< BotSubscriptionUpdated > Ptr
Definition Types.h:1152
Represents the rights of a business bot.
Definition Types.h:1179
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:1233
std::shared_ptr< BusinessBotRights > Ptr
Definition Types.h:1180
std::optional< bool > canEditUsername
Optional. True, if the bot can edit the username of the business account.
Definition Types.h:1221
std::optional< bool > canDeleteAllMessages
Optional. True, if the bot can delete all private messages in managed chats.
Definition Types.h:1201
std::optional< bool > canManageStories
Optional. True, if the bot can post, edit and delete stories on behalf of the business account.
Definition Types.h:1256
std::optional< bool > canEditProfilePhoto
Optional. True, if the bot can edit the profile photo of the business account.
Definition Types.h:1216
std::optional< bool > canEditName
Optional. True, if the bot can edit the first and last name of the business account.
Definition Types.h:1206
std::optional< bool > canTransferAndUpgradeGifts
Optional. True, if the bot can transfer and upgrade gifts owned by the business account.
Definition Types.h:1244
std::optional< bool > canChangeGiftSettings
Optional. True, if the bot can change the privacy settings pertaining to gifts for the business accou...
Definition Types.h:1227
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:1250
std::optional< bool > canDeleteSentMessages
Optional. True, if the bot can delete messages sent by the bot.
Definition Types.h:1196
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:1186
std::optional< bool > canConvertGiftsToStars
Optional. True, if the bot can convert regular gifts owned by the business account to Telegram Stars.
Definition Types.h:1239
std::optional< bool > canReadMessages
Optional. True, if the bot can mark incoming private messages as read.
Definition Types.h:1191
std::optional< bool > canEditBio
Optional. True, if the bot can edit the bio of the business account.
Definition Types.h:1211
Describes the connection of the bot with a business account.
Definition Types.h:1266
std::shared_ptr< User > user
Business account user that created the business connection.
Definition Types.h:1277
std::int64_t userChatId
Identifier of a private chat with the user who created the business connection. This number may have ...
Definition Types.h:1285
bool isEnabled
True, if the connection is active.
Definition Types.h:1300
std::int32_t date
Date the connection was established in Unix time.
Definition Types.h:1290
std::shared_ptr< BusinessBotRights > rights
Optional. Rights of the business bot.
Definition Types.h:1295
std::shared_ptr< BusinessConnection > Ptr
Definition Types.h:1267
Contains information about the start page settings of a Telegram Business account.
Definition Types.h:1310
std::shared_ptr< BusinessIntro > Ptr
Definition Types.h:1311
std::optional< std::string > message
Optional. Message text of the business intro.
Definition Types.h:1321
std::optional< std::string > title
Optional. Title text of the business intro.
Definition Types.h:1316
std::shared_ptr< Sticker > sticker
Optional. Sticker of the business intro.
Definition Types.h:1326
Contains information about the location of a Telegram Business account.
Definition Types.h:1336
std::shared_ptr< BusinessLocation > Ptr
Definition Types.h:1337
std::shared_ptr< Location > location
Optional. Location of the business.
Definition Types.h:1347
std::string address
Address of the business.
Definition Types.h:1342
This object is received when messages are deleted from a connected business account.
Definition Types.h:1357
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:1363
std::shared_ptr< BusinessMessagesDeleted > Ptr
Definition Types.h:1358
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:1369
std::vector< std::int32_t > messageIds
The list of identifiers of deleted messages in the chat of the business account.
Definition Types.h:1374
Describes the opening hours of a business.
Definition Types.h:1384
std::string timeZoneName
Unique name of the time zone for which the opening hours are defined.
Definition Types.h:1390
std::shared_ptr< BusinessOpeningHours > Ptr
Definition Types.h:1385
std::vector< std::shared_ptr< BusinessOpeningHoursInterval > > openingHours
List of time intervals describing business opening hours.
Definition Types.h:1395
Describes an interval of time during which a business is open.
Definition Types.h:1405
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:1412
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:1418
std::shared_ptr< BusinessOpeningHoursInterval > Ptr
Definition Types.h:1406
A placeholder, currently holds no information. Use BotFather to set up your game.
Definition Types.h:1428
std::shared_ptr< CallbackGame > Ptr
Definition Types.h:1429
This object represents an incoming callback query from a callback button in an inline keyboard....
Definition Types.h:1443
std::string chatInstance
Global identifier, uniquely corresponding to the chat to which the message with the callback button w...
Definition Types.h:1471
std::shared_ptr< CallbackQuery > Ptr
Definition Types.h:1444
std::shared_ptr< MaybeInaccessibleMessage > message
Optional. Message sent by the bot with the callback button that originated the query.
Definition Types.h:1459
std::shared_ptr< User > from
Sender.
Definition Types.h:1454
std::optional< std::string > data
Optional. Data associated with the callback button. Be aware that the message originated the query ca...
Definition Types.h:1477
std::optional< std::string > inlineMessageId
Optional. Identifier of the message sent via the bot in inline mode, that originated the query.
Definition Types.h:1465
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:1483
Represents the rights of an administrator in a chat.
Definition Types.h:1552
std::optional< bool > canPinMessages
Optional. True, if the user is allowed to pin messages; for groups and supergroups only.
Definition Types.h:1632
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
Definition Types.h:1594
bool canManageVideoChats
True, if the administrator can manage video chats.
Definition Types.h:1576
bool canEditStories
True, if the administrator can edit stories posted by other users, post stories to the chat page,...
Definition Types.h:1610
std::optional< bool > canManageTopics
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergr...
Definition Types.h:1638
std::optional< bool > canManageDirectMessages
Optional. True, if the administrator can manage direct messages of the channel and decline suggested ...
Definition Types.h:1644
bool canDeleteStories
True, if the administrator can delete stories posted by other users.
Definition Types.h:1615
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
Definition Types.h:1599
std::optional< bool > canEditMessages
Optional. True, if the administrator can edit messages of other users and can pin messages; for chann...
Definition Types.h:1627
bool canPromoteMembers
True, if the administrator can add new administrators with a subset of their own privileges or demote...
Definition Types.h:1589
bool canDeleteMessages
True, if the administrator can delete messages of other users.
Definition Types.h:1571
bool canManageChat
True, if the administrator can access the chat event log, get boost list, see hidden supergroup and c...
Definition Types.h:1566
std::optional< bool > canPostMessages
Optional. True, if the administrator can post messages in the channel, approve suggested posts,...
Definition Types.h:1621
std::optional< bool > canManageTags
Optional. True, if the administrator can edit the tags of regular members; for groups and supergroups...
Definition Types.h:1650
bool isAnonymous
True, if the user's presence in the chat is hidden.
Definition Types.h:1558
bool canRestrictMembers
True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics.
Definition Types.h:1582
std::shared_ptr< ChatAdministratorRights > Ptr
Definition Types.h:1553
bool canPostStories
True, if the administrator can post stories to the chat.
Definition Types.h:1604
This object represents a chat background.
Definition Types.h:1660
std::shared_ptr< BackgroundType > type
Type of the background.
Definition Types.h:1666
std::shared_ptr< ChatBackground > Ptr
Definition Types.h:1661
This object represents a service message about a user boosting a chat.
Definition Types.h:1708
std::shared_ptr< ChatBoostAdded > Ptr
Definition Types.h:1709
std::int32_t boostCount
Number of boosts added by the user.
Definition Types.h:1714
This object contains information about a chat boost.
Definition Types.h:1676
std::int32_t expirationDate
Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegra...
Definition Types.h:1693
std::string boostId
Unique identifier of the boost.
Definition Types.h:1682
std::shared_ptr< ChatBoostSource > source
Source of the added boost.
Definition Types.h:1698
std::int32_t addDate
Point in time (Unix timestamp) when the chat was boosted.
Definition Types.h:1687
std::shared_ptr< ChatBoost > Ptr
Definition Types.h:1677
This object represents a boost removed from a chat.
Definition Types.h:1724
std::shared_ptr< ChatBoostRemoved > Ptr
Definition Types.h:1725
std::shared_ptr< Chat > chat
Chat which was boosted.
Definition Types.h:1730
std::shared_ptr< ChatBoostSource > source
Source of the removed boost.
Definition Types.h:1745
std::string boostId
Unique identifier of the boost.
Definition Types.h:1735
std::int32_t removeDate
Point in time (Unix timestamp) when the boost was removed.
Definition Types.h:1740
The boost was obtained by the creation of Telegram Premium gift codes to boost a chat....
Definition Types.h:1773
std::shared_ptr< ChatBoostSourceGiftCode > Ptr
Definition Types.h:1774
std::shared_ptr< User > user
User for which the gift code was created.
Definition Types.h:1786
std::string source
Source of the boost, always “gift_code”
Definition Types.h:1781
static TGBOT_API const std::string SOURCE
Definition Types.h:1776
The boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway....
Definition Types.h:1799
std::shared_ptr< User > user
Optional. User that won the prize in the giveaway if any; for Telegram Premium giveaways only.
Definition Types.h:1819
std::optional< bool > isUnclaimed
Optional. True, if the giveaway was completed, but there was no user to win the prize.
Definition Types.h:1830
std::shared_ptr< ChatBoostSourceGiveaway > Ptr
Definition Types.h:1800
static TGBOT_API const std::string SOURCE
Definition Types.h:1802
std::string source
Source of the boost, always “giveaway”
Definition Types.h:1807
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:1825
std::int32_t giveawayMessageId
Identifier of a message in the chat with the giveaway; the message could have been deleted already....
Definition Types.h:1813
This object describes the source of a chat boost. It can be one of ChatBoostSourcePremium ChatBoostSo...
Definition Types.h:1756
std::shared_ptr< ChatBoostSource > Ptr
Definition Types.h:1757
std::variant< std::shared_ptr< ChatBoostSourcePremium >, std::shared_ptr< ChatBoostSourceGiftCode >, std::shared_ptr< ChatBoostSourceGiveaway > > value
Definition Types.h:1761
The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscripti...
Definition Types.h:1841
std::shared_ptr< User > user
User that boosted the chat.
Definition Types.h:1854
std::shared_ptr< ChatBoostSourcePremium > Ptr
Definition Types.h:1842
std::string source
Source of the boost, always “premium”
Definition Types.h:1849
static TGBOT_API const std::string SOURCE
Definition Types.h:1844
This object represents a boost added to a chat or changed.
Definition Types.h:1864
std::shared_ptr< ChatBoostUpdated > Ptr
Definition Types.h:1865
std::shared_ptr< ChatBoost > boost
Information about the chat boost.
Definition Types.h:1875
std::shared_ptr< Chat > chat
Chat which was boosted.
Definition Types.h:1870
This object contains full information about a chat.
Definition Types.h:1885
std::shared_ptr< Message > pinnedMessage
Optional. The most recent pinned message (by sending date).
Definition Types.h:2061
std::string type
Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
Definition Types.h:1899
std::shared_ptr< Audio > firstProfileAudio
Optional. For private chats, the first audio added to the profile of the user.
Definition Types.h:2159
std::shared_ptr< UserRating > rating
Optional. For private chats, the rating of the user if any.
Definition Types.h:2154
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:2144
std::optional< bool > hasRestrictedVoiceAndVideoMessages
Optional. True, if the privacy settings of the other party restrict sending voice and video note mess...
Definition Types.h:2035
std::shared_ptr< Chat > personalChat
Optional. For private chats, the personal channel of the user.
Definition Types.h:1976
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:1994
std::optional< std::string > inviteLink
Optional. Primary invite link, for groups, supergroups and channel chats.
Definition Types.h:2056
std::shared_ptr< ChatFullInfo > Ptr
Definition Types.h:1886
std::optional< std::string > description
Optional. Description, for groups, supergroups and channel chats.
Definition Types.h:2051
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:2177
std::int32_t maxReactionCount
The maximum number of reactions that can be set on a message in the chat.
Definition Types.h:1940
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:2096
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:2018
std::optional< bool > hasVisibleHistory
Optional. True, if new chat members will have access to old messages; available only to chat administ...
Definition Types.h:2119
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:1988
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:2135
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:2090
std::optional< std::string > bio
Optional. Bio of the other party in a private chat.
Definition Types.h:2023
std::optional< std::string > profileBackgroundCustomEmojiId
Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background.
Definition Types.h:2006
std::optional< std::string > username
Optional. Username, for private chats, supergroups and channels if available.
Definition Types.h:1909
std::optional< std::string > title
Optional. Title, for supergroups, channels and group chats.
Definition Types.h:1904
std::shared_ptr< ChatLocation > location
Optional. For supergroups, the location to which the supergroup is connected.
Definition Types.h:2149
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:2072
std::shared_ptr< ChatPermissions > permissions
Optional. Default chat member permissions, for groups and supergroups.
Definition Types.h:2066
std::shared_ptr< Community > community
Optional. The Community to which the chat belongs.
Definition Types.h:2182
std::int32_t accentColorId
Identifier of the accent color for the chat name and backgrounds of the chat photo,...
Definition Types.h:1935
std::optional< bool > hasHiddenMembers
Optional. True, if non-administrators can only get the list of bots and administrators in the chat.
Definition Types.h:2108
std::shared_ptr< BusinessLocation > businessLocation
Optional. For private chats with business accounts, the location of the business.
Definition Types.h:1966
std::shared_ptr< Chat > parentChat
Optional. Information about the corresponding channel chat; for direct messages chats only.
Definition Types.h:1982
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:2165
std::optional< std::string > firstName
Optional. First name of the other party in a private chat.
Definition Types.h:1914
std::optional< std::int32_t > slowModeDelay
Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriv...
Definition Types.h:2084
std::optional< bool > hasProtectedContent
Optional. True, if messages from the chat can't be forwarded to other chats.
Definition Types.h:2113
std::shared_ptr< BusinessIntro > businessIntro
Optional. For private chats with business accounts, the intro of the business.
Definition Types.h:1961
std::optional< bool > hasAggressiveAntiSpamEnabled
Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only avail...
Definition Types.h:2102
std::optional< std::string > lastName
Optional. Last name of the other party in a private chat.
Definition Types.h:1919
std::shared_ptr< ChatPhoto > photo
Optional. Chat photo.
Definition Types.h:1945
std::optional< bool > isDirectMessages
Optional. True, if the chat is the direct messages chat of a channel.
Definition Types.h:1929
std::optional< bool > isForum
Optional. True, if the supergroup chat is a forum (has topics enabled).
Definition Types.h:1924
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:2171
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:2012
std::optional< bool > joinByRequest
Optional. True, if all users directly joining the supergroup without using an invite link need to be ...
Definition Types.h:2046
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:1951
std::optional< bool > canSetStickerSet
Optional. True, if the bot can change the group sticker set.
Definition Types.h:2129
std::optional< std::string > stickerSetName
Optional. For supergroups, name of the group sticker set.
Definition Types.h:2124
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:2000
std::shared_ptr< Birthdate > birthdate
Optional. For private chats, the date of birth of the user.
Definition Types.h:1956
std::shared_ptr< BusinessOpeningHours > businessOpeningHours
Optional. For private chats with business accounts, the opening hours of the business.
Definition Types.h:1971
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:2029
std::optional< bool > canSendPaidMedia
Optional. True, if paid media messages can be sent or forwarded to the channel chat....
Definition Types.h:2078
std::optional< bool > joinToSendMessages
Optional. True, if users need to join the supergroup before they can send messages.
Definition Types.h:2040
This object represents a chat.
Definition Types.h:1493
std::optional< std::string > firstName
Optional. First name of the other party in a private chat.
Definition Types.h:1524
std::optional< std::string > lastName
Optional. Last name of the other party in a private chat.
Definition Types.h:1529
std::optional< bool > isForum
Optional. True, if the supergroup chat is a forum (has topics enabled).
Definition Types.h:1534
std::optional< bool > isDirectMessages
Optional. True, if the chat is the direct messages chat of a channel.
Definition Types.h:1539
Type type
Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
Definition Types.h:1509
std::optional< std::string > title
Optional. Title, for supergroups, channels and group chats.
Definition Types.h:1514
std::shared_ptr< Chat > Ptr
Definition Types.h:1494
std::optional< std::string > username
Optional. Username, for private chats, supergroups and channels if available.
Definition Types.h:1519
Represents a join request sent to a chat.
Definition Types.h:2262
std::shared_ptr< Chat > chat
Chat to which the request was sent.
Definition Types.h:2268
std::int32_t date
Date the request was sent in Unix time.
Definition Types.h:2288
std::optional< std::string > queryId
Optional. Identifier of the join request query; for bots assigned to process join requests only....
Definition Types.h:2305
std::optional< std::string > bio
Optional. Bio of the user.
Definition Types.h:2293
std::shared_ptr< User > from
User that sent the join request.
Definition Types.h:2273
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:2283
std::shared_ptr< ChatJoinRequest > Ptr
Definition Types.h:2263
std::shared_ptr< ChatInviteLink > inviteLink
Optional. Chat invite link that was used by the user to send the join request.
Definition Types.h:2298
Represents a location to which a chat is connected.
Definition Types.h:2315
std::shared_ptr< ChatLocation > Ptr
Definition Types.h:2316
std::shared_ptr< Location > location
The location to which the supergroup is connected. Can't be a live location.
Definition Types.h:2321
std::string address
Location address; 1-64 characters, as defined by the chat owner.
Definition Types.h:2326
Represents a chat member that has some additional privileges.
Definition Types.h:2354
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
Definition Types.h:2418
bool canManageVideoChats
True, if the administrator can manage video chats.
Definition Types.h:2395
bool canPromoteMembers
True, if the administrator can add new administrators with a subset of their own privileges or demote...
Definition Types.h:2408
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2367
std::shared_ptr< ChatMemberAdministrator > Ptr
Definition Types.h:2355
std::optional< bool > canManageDirectMessages
Optional. True, if the administrator can manage direct messages of the channel and decline suggested ...
Definition Types.h:2463
std::optional< std::string > customTitle
Optional. Custom title for this user.
Definition Types.h:2474
std::string status
The member's status in the chat, always “administrator”
Definition Types.h:2362
bool isAnonymous
True, if the user's presence in the chat is hidden.
Definition Types.h:2377
static TGBOT_API const std::string STATUS
Definition Types.h:2357
std::optional< bool > canManageTags
Optional. True, if the administrator can edit the tags of regular members; for groups and supergroups...
Definition Types.h:2469
std::optional< bool > canManageTopics
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergr...
Definition Types.h:2457
bool canEditStories
True, if the administrator can edit stories posted by other users, post stories to the chat page,...
Definition Types.h:2429
bool canManageChat
True, if the administrator can access the chat event log, get boost list, see hidden supergroup and c...
Definition Types.h:2385
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
Definition Types.h:2413
bool canPostStories
True, if the administrator can post stories to the chat.
Definition Types.h:2423
std::optional< bool > canEditMessages
Optional. True, if the administrator can edit messages of other users and can pin messages; for chann...
Definition Types.h:2446
bool canBeEdited
True, if the bot is allowed to edit administrator privileges of that user.
Definition Types.h:2372
bool canRestrictMembers
True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics.
Definition Types.h:2401
std::optional< bool > canPinMessages
Optional. True, if the user is allowed to pin messages; for groups and supergroups only.
Definition Types.h:2451
bool canDeleteStories
True, if the administrator can delete stories posted by other users.
Definition Types.h:2434
bool canDeleteMessages
True, if the administrator can delete messages of other users.
Definition Types.h:2390
std::optional< bool > canPostMessages
Optional. True, if the administrator can post messages in the channel, approve suggested posts,...
Definition Types.h:2440
Represents a chat member that was banned in the chat and can't return to the chat or view chat messag...
Definition Types.h:2485
std::shared_ptr< ChatMemberBanned > Ptr
Definition Types.h:2486
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:2504
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2498
std::string status
The member's status in the chat, always “kicked”
Definition Types.h:2493
static TGBOT_API const std::string STATUS
Definition Types.h:2488
This object contains information about one member of a chat. Currently, the following 6 types of chat...
Definition Types.h:2338
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:2344
std::shared_ptr< ChatMember > Ptr
Definition Types.h:2339
Represents a chat member that isn't currently a member of the chat, but may join it themselves.
Definition Types.h:2515
std::shared_ptr< ChatMemberLeft > Ptr
Definition Types.h:2516
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2528
static TGBOT_API const std::string STATUS
Definition Types.h:2518
std::string status
The member's status in the chat, always “left”
Definition Types.h:2523
Represents a chat member that has no additional privileges or restrictions.
Definition Types.h:2538
std::shared_ptr< ChatMemberMember > Ptr
Definition Types.h:2539
std::string status
The member's status in the chat, always “member”
Definition Types.h:2546
static TGBOT_API const std::string STATUS
Definition Types.h:2541
std::optional< std::int32_t > untilDate
Optional. Date when the user's subscription will expire; Unix time.
Definition Types.h:2561
std::optional< std::string > tag
Optional. Tag of the member.
Definition Types.h:2551
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2556
Represents a chat member that owns the chat and has all administrator privileges.
Definition Types.h:2571
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2584
bool isAnonymous
True, if the user's presence in the chat is hidden.
Definition Types.h:2589
std::optional< std::string > customTitle
Optional. Custom title for this user.
Definition Types.h:2594
std::shared_ptr< ChatMemberOwner > Ptr
Definition Types.h:2572
std::string status
The member's status in the chat, always “creator”
Definition Types.h:2579
static TGBOT_API const std::string STATUS
Definition Types.h:2574
Represents a chat member that is under certain restrictions in the chat. Supergroups only.
Definition Types.h:2604
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
Definition Types.h:2693
bool canSendVideoNotes
True, if the user is allowed to send video notes.
Definition Types.h:2658
bool canSendDocuments
True, if the user is allowed to send documents.
Definition Types.h:2643
bool canSendPolls
True, if the user is allowed to send polls and checklists.
Definition Types.h:2668
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2622
std::string status
The member's status in the chat, always “restricted”
Definition Types.h:2612
bool canPinMessages
True, if the user is allowed to pin messages.
Definition Types.h:2703
bool canSendVideos
True, if the user is allowed to send videos.
Definition Types.h:2653
bool canSendPhotos
True, if the user is allowed to send photos.
Definition Types.h:2648
bool canSendVoiceNotes
True, if the user is allowed to send voice notes.
Definition Types.h:2663
bool canAddWebPagePreviews
True, if the user is allowed to add web page previews to their messages.
Definition Types.h:2678
bool isMember
True, if the user is a member of the chat at the moment of the request.
Definition Types.h:2627
std::shared_ptr< ChatMemberRestricted > Ptr
Definition Types.h:2605
bool canManageTopics
True, if the user is allowed to create forum topics.
Definition Types.h:2708
bool canSendOtherMessages
True, if the user is allowed to send animations, games, stickers and use inline bots.
Definition Types.h:2673
bool canSendMessages
True, if the user is allowed to send text messages, rich messages, contacts, giveaways,...
Definition Types.h:2633
bool canEditTag
True, if the user is allowed to edit their own tag.
Definition Types.h:2688
bool canSendAudios
True, if the user is allowed to send audios.
Definition Types.h:2638
static TGBOT_API const std::string STATUS
Definition Types.h:2607
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
Definition Types.h:2698
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:2714
std::optional< std::string > tag
Optional. Tag of the member.
Definition Types.h:2617
bool canReactToMessages
True, if the user is allowed to react to messages.
Definition Types.h:2683
This object represents changes in the status of a chat member.
Definition Types.h:2724
std::int32_t date
Date the change was done in Unix time.
Definition Types.h:2740
std::shared_ptr< Chat > chat
Chat the user belongs to.
Definition Types.h:2730
std::optional< bool > viaChatFolderInviteLink
Optional. True, if the user joined the chat via a chat folder invite link.
Definition Types.h:2767
std::shared_ptr< ChatMemberUpdated > Ptr
Definition Types.h:2725
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:2762
std::shared_ptr< User > from
Performer of the action, which resulted in the change.
Definition Types.h:2735
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:2756
std::shared_ptr< ChatMember > newChatMember
New information about the chat member.
Definition Types.h:2750
std::shared_ptr< ChatMember > oldChatMember
Previous information about the chat member.
Definition Types.h:2745
Describes a service message about an ownership change in the chat.
Definition Types.h:2777
std::shared_ptr< User > newOwner
The new owner of the chat.
Definition Types.h:2783
std::shared_ptr< ChatOwnerChanged > Ptr
Definition Types.h:2778
Describes a service message about the chat owner leaving the chat.
Definition Types.h:2793
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:2800
std::shared_ptr< ChatOwnerLeft > Ptr
Definition Types.h:2794
Describes actions that a non-administrator user is allowed to take in a chat.
Definition Types.h:2810
std::optional< bool > canSendAudios
Optional. True, if the user is allowed to send audios.
Definition Types.h:2822
std::optional< bool > canSendDocuments
Optional. True, if the user is allowed to send documents.
Definition Types.h:2827
std::optional< bool > canInviteUsers
Optional. True, if the user is allowed to invite new users to the chat.
Definition Types.h:2886
std::optional< bool > canSendOtherMessages
Optional. True, if the user is allowed to send animations, games, stickers and use inline bots.
Definition Types.h:2858
std::optional< bool > canAddWebPagePreviews
Optional. True, if the user is allowed to add web page previews to their messages.
Definition Types.h:2863
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:2875
std::optional< bool > canSendPolls
Optional. True, if the user is allowed to send polls and checklists.
Definition Types.h:2852
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:2869
std::optional< bool > canChangeInfo
Optional. True, if the user is allowed to change the chat title, photo and other settings....
Definition Types.h:2881
std::optional< bool > canSendMessages
Optional. True, if the user is allowed to send text messages, rich messages, contacts,...
Definition Types.h:2817
std::optional< bool > canPinMessages
Optional. True, if the user is allowed to pin messages. Ignored in public supergroups.
Definition Types.h:2891
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:2897
std::shared_ptr< ChatPermissions > Ptr
Definition Types.h:2811
std::optional< bool > canSendVideos
Optional. True, if the user is allowed to send videos.
Definition Types.h:2837
std::optional< bool > canSendVoiceNotes
Optional. True, if the user is allowed to send voice notes.
Definition Types.h:2847
std::optional< bool > canSendPhotos
Optional. True, if the user is allowed to send photos.
Definition Types.h:2832
std::optional< bool > canSendVideoNotes
Optional. True, if the user is allowed to send video notes.
Definition Types.h:2842
This object represents a chat photo.
Definition Types.h:2907
std::string smallFileUniqueId
Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and ...
Definition Types.h:2920
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:2914
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:2932
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:2926
std::shared_ptr< ChatPhoto > Ptr
Definition Types.h:2908
This object contains information about a chat that was shared with the bot using a KeyboardButtonRequ...
Definition Types.h:2943
std::optional< std::string > username
Optional. Username of the chat, if the username was requested by the bot and available.
Definition Types.h:2969
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:2974
std::int32_t requestId
Identifier of the request.
Definition Types.h:2949
std::optional< std::string > title
Optional. Title of the chat, if the title was requested by the bot.
Definition Types.h:2964
std::int64_t chatId
Identifier of the shared chat. This number may have more than 32 significant bits and some programmin...
Definition Types.h:2959
std::shared_ptr< ChatShared > Ptr
Definition Types.h:2944
Describes a checklist.
Definition Types.h:2984
std::shared_ptr< Checklist > Ptr
Definition Types.h:2985
std::string title
Title of the checklist.
Definition Types.h:2990
std::optional< bool > othersCanAddTasks
Optional. True, if users other than the creator of the list can add tasks to the list.
Definition Types.h:3005
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:3011
std::vector< std::shared_ptr< ChecklistTask > > tasks
List of tasks in the checklist.
Definition Types.h:3000
std::optional< std::vector< std::shared_ptr< MessageEntity > > > titleEntities
Optional. Special entities that appear in the checklist title.
Definition Types.h:2995
Describes a task in a checklist.
Definition Types.h:3021
std::optional< std::vector< std::shared_ptr< MessageEntity > > > textEntities
Optional. Special entities that appear in the task text.
Definition Types.h:3037
std::shared_ptr< User > completedByUser
Optional. User that completed the task; omitted if the task wasn't completed by a user.
Definition Types.h:3042
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:3053
std::shared_ptr< ChecklistTask > Ptr
Definition Types.h:3022
std::shared_ptr< Chat > completedByChat
Optional. Chat that completed the task; omitted if the task wasn't completed by a chat.
Definition Types.h:3047
std::string text
Text of the task.
Definition Types.h:3032
Describes a service message about tasks added to a checklist.
Definition Types.h:3063
std::shared_ptr< ChecklistTasksAdded > Ptr
Definition Types.h:3064
std::vector< std::shared_ptr< ChecklistTask > > tasks
List of tasks added to the checklist.
Definition Types.h:3076
std::shared_ptr< Message > checklistMessage
Optional. Message containing the checklist to which the tasks were added. Note that the Message objec...
Definition Types.h:3071
Describes a service message about checklist tasks marked as done or not done.
Definition Types.h:3086
std::optional< std::vector< std::int32_t > > markedAsNotDoneTaskIds
Optional. Identifiers of the tasks that were marked as not done.
Definition Types.h:3104
std::optional< std::vector< std::int32_t > > markedAsDoneTaskIds
Optional. Identifiers of the tasks that were marked as done.
Definition Types.h:3099
std::shared_ptr< ChecklistTasksDone > Ptr
Definition Types.h:3087
std::shared_ptr< Message > checklistMessage
Optional. Message containing the checklist whose tasks were marked as done or not done....
Definition Types.h:3094
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
Definition Types.h:3115
std::string query
The query that was used to obtain the result.
Definition Types.h:3143
std::optional< std::string > inlineMessageId
Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attach...
Definition Types.h:3138
std::shared_ptr< Location > location
Optional. Sender location, only for bots that require user location.
Definition Types.h:3131
std::string resultId
The unique identifier for the result that was chosen.
Definition Types.h:3121
std::shared_ptr< ChosenInlineResult > Ptr
Definition Types.h:3116
std::shared_ptr< User > from
The user that chose the result.
Definition Types.h:3126
Describes a service message about a chat being added to a community.
Definition Types.h:3177
std::shared_ptr< CommunityChatAdded > Ptr
Definition Types.h:3178
std::shared_ptr< Community > community
The new community to which the chat belongs.
Definition Types.h:3183
Describes a service message about a chat being removed from a community. Currently holds no informati...
Definition Types.h:3194
std::shared_ptr< CommunityChatRemoved > Ptr
Definition Types.h:3195
Represents a community (a group of chats).
Definition Types.h:3153
std::string name
Name of the community.
Definition Types.h:3167
std::shared_ptr< Community > Ptr
Definition Types.h:3154
This object represents a phone contact.
Definition Types.h:3205
std::optional< std::string > vcard
Optional. Additional data about the contact in the form of a vCard.
Definition Types.h:3234
std::optional< std::string > lastName
Optional. Contact's last name.
Definition Types.h:3221
std::string firstName
Contact's first name.
Definition Types.h:3216
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:3229
std::string phoneNumber
Contact's phone number.
Definition Types.h:3211
std::shared_ptr< Contact > Ptr
Definition Types.h:3206
This object represents an inline keyboard button that copies specified text to the clipboard.
Definition Types.h:3245
std::shared_ptr< CopyTextButton > Ptr
Definition Types.h:3246
std::string text
The text to be copied to the clipboard; 1-256 characters.
Definition Types.h:3251
This object represents an animated emoji that displays a random value.
Definition Types.h:3261
std::int32_t value
Value of the dice, 1-6 for “”, “” and “” base emoji, 1-5 for “” and “” base emoji,...
Definition Types.h:3273
std::shared_ptr< Dice > Ptr
Definition Types.h:3262
std::string emoji
Emoji on which the dice throw animation is based.
Definition Types.h:3267
Describes a service message about a change in the price of direct messages sent to a channel chat.
Definition Types.h:3284
bool areDirectMessagesEnabled
True, if direct messages are enabled for the channel chat; False otherwise.
Definition Types.h:3290
std::shared_ptr< DirectMessagePriceChanged > Ptr
Definition Types.h:3285
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:3297
Describes a topic of a direct messages chat.
Definition Types.h:3307
std::int64_t topicId
Unique identifier of the topic. This number may have more than 32 significant bits and some programmi...
Definition Types.h:3316
std::shared_ptr< DirectMessagesTopic > Ptr
Definition Types.h:3308
std::shared_ptr< User > user
Optional. Information about the user that created the topic. Currently, it is always present.
Definition Types.h:3322
This object represents a general file (as opposed to photos, voice messages and audio files).
Definition Types.h:3333
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:3368
std::shared_ptr< PhotoSize > thumbnail
Optional. Document thumbnail as defined by the sender.
Definition Types.h:3350
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:3339
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:3345
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:3360
std::shared_ptr< Document > Ptr
Definition Types.h:3334
std::optional< std::string > fileName
Optional. Original filename as defined by the sender.
Definition Types.h:3355
Describes data required for decrypting and authenticating EncryptedPassportElement....
Definition Types.h:3380
std::string data
Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets req...
Definition Types.h:3387
std::string hash
Base64-encoded data hash for data authentication.
Definition Types.h:3392
std::shared_ptr< EncryptedCredentials > Ptr
Definition Types.h:3381
std::string secret
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption.
Definition Types.h:3398
Describes documents or other Telegram Passport elements shared with the bot by the user.
Definition Types.h:3408
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:3474
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:3450
std::optional< std::string > email
Optional. User's verified email address; available only for “email” type.
Definition Types.h:3434
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:3442
std::optional< std::string > phoneNumber
Optional. User's verified phone number; available only for “phone_number” type.
Definition Types.h:3429
std::string type
Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”,...
Definition Types.h:3416
std::shared_ptr< PassportFile > reverseSide
Optional. Encrypted file with the reverse side of the document, provided by the user; available only ...
Definition Types.h:3457
std::shared_ptr< EncryptedPassportElement > Ptr
Definition Types.h:3409
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:3465
std::optional< std::string > data
Optional. Base64-encoded encrypted Telegram Passport element data provided by the user; available onl...
Definition Types.h:3424
std::string hash
Base64-encoded element hash for using in PassportElementErrorUnspecified.
Definition Types.h:3479
This object contains information about a message that is being replied to, which may come from anothe...
Definition Types.h:3490
std::optional< bool > hasMediaSpoiler
Optional. True, if the message media is covered by a spoiler animation.
Definition Types.h:3574
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:3514
std::shared_ptr< Poll > poll
Optional. Message is a native poll, information about the poll.
Definition Types.h:3620
std::shared_ptr< Location > location
Optional. Message is a shared location, information about the location.
Definition Types.h:3615
std::shared_ptr< PaidMediaInfo > paidMedia
Optional. Message contains paid media; information about the paid media.
Definition Types.h:3539
std::shared_ptr< Checklist > checklist
Optional. Message is a checklist.
Definition Types.h:3579
std::shared_ptr< Audio > audio
Optional. Message is an audio file, information about the file.
Definition Types.h:3524
std::shared_ptr< VideoNote > videoNote
Optional. Message is a video note, information about the video message.
Definition Types.h:3564
std::shared_ptr< Giveaway > giveaway
Optional. Message is a scheduled giveaway, information about the giveaway.
Definition Types.h:3599
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Message is a photo, available sizes of the photo.
Definition Types.h:3544
std::shared_ptr< ExternalReplyInfo > Ptr
Definition Types.h:3491
std::optional< std::int32_t > messageId
Optional. Unique message identifier inside the original chat. Available only if the original chat is ...
Definition Types.h:3508
std::shared_ptr< Voice > voice
Optional. Message is a voice message, information about the file.
Definition Types.h:3569
std::shared_ptr< Video > video
Optional. Message is a video, information about the video.
Definition Types.h:3559
std::shared_ptr< Sticker > sticker
Optional. Message is a sticker, information about the sticker.
Definition Types.h:3549
std::shared_ptr< Venue > venue
Optional. Message is a venue, information about the venue.
Definition Types.h:3625
std::shared_ptr< Dice > dice
Optional. Message is a dice with random value.
Definition Types.h:3589
std::shared_ptr< Story > story
Optional. Message is a forwarded story.
Definition Types.h:3554
std::shared_ptr< LivePhoto > livePhoto
Optional. Message is a live photo, information about the live photo.
Definition Types.h:3534
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:3502
std::shared_ptr< Game > game
Optional. Message is a game, information about the game. More about games »
Definition Types.h:3594
std::shared_ptr< GiveawayWinners > giveawayWinners
Optional. A giveaway with public winners was completed.
Definition Types.h:3604
std::shared_ptr< Animation > animation
Optional. Message is an animation, information about the animation.
Definition Types.h:3519
std::shared_ptr< Invoice > invoice
Optional. Message is an invoice for a payment, information about the invoice. More about payments »
Definition Types.h:3610
std::shared_ptr< MessageOrigin > origin
Origin of the message replied to by the given message.
Definition Types.h:3496
std::shared_ptr< Contact > contact
Optional. Message is a shared contact, information about the contact.
Definition Types.h:3584
std::shared_ptr< Document > document
Optional. Message is a general file, information about the file.
Definition Types.h:3529
This object represents a file ready to be downloaded. The file can be downloaded via the link https:/...
Definition Types.h:3638
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:3658
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:3664
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:3644
std::shared_ptr< File > Ptr
Definition Types.h:3639
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:3650
Upon receiving a message with this object, Telegram clients will display a reply interface to the use...
Definition Types.h:3678
std::shared_ptr< ForceReply > Ptr
Definition Types.h:3679
bool forceReply
Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'.
Definition Types.h:3685
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:3699
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:3691
This object represents a service message about a forum topic closed in the chat. Currently holds no i...
Definition Types.h:3747
std::shared_ptr< ForumTopicClosed > Ptr
Definition Types.h:3748
This object represents a service message about a new forum topic created in the chat.
Definition Types.h:3758
std::string name
Name of the topic.
Definition Types.h:3764
std::optional< std::string > iconCustomEmojiId
Optional. Unique identifier of the custom emoji shown as the topic icon.
Definition Types.h:3774
std::shared_ptr< ForumTopicCreated > Ptr
Definition Types.h:3759
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:3780
std::int32_t iconColor
Color of the topic icon in RGB format.
Definition Types.h:3769
This object represents a service message about an edited forum topic.
Definition Types.h:3790
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:3802
std::shared_ptr< ForumTopicEdited > Ptr
Definition Types.h:3791
std::optional< std::string > name
Optional. New name of the topic, if it was edited.
Definition Types.h:3796
This object represents a forum topic.
Definition Types.h:3709
std::string name
Name of the topic.
Definition Types.h:3720
std::int32_t messageThreadId
Unique identifier of the forum topic.
Definition Types.h:3715
std::optional< std::string > iconCustomEmojiId
Optional. Unique identifier of the custom emoji shown as the topic icon.
Definition Types.h:3730
std::int32_t iconColor
Color of the topic icon in RGB format.
Definition Types.h:3725
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:3736
std::shared_ptr< ForumTopic > Ptr
Definition Types.h:3710
This object represents a service message about a forum topic reopened in the chat....
Definition Types.h:3813
std::shared_ptr< ForumTopicReopened > Ptr
Definition Types.h:3814
This object represents one row of the high scores table for a game.
Definition Types.h:3870
std::shared_ptr< GameHighScore > Ptr
Definition Types.h:3871
std::shared_ptr< User > user
User.
Definition Types.h:3881
std::int32_t score
Score.
Definition Types.h:3886
std::int32_t position
Position in high score table for the game.
Definition Types.h:3876
This object represents a game. Use BotFather to create and edit games, their short names will act as ...
Definition Types.h:3825
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:3854
std::shared_ptr< Animation > animation
Optional. Animation that will be displayed in the game message in chats. Upload via BotFather.
Definition Types.h:3860
std::shared_ptr< Game > Ptr
Definition Types.h:3826
std::string title
Title of the game.
Definition Types.h:3831
std::string description
Description of the game.
Definition Types.h:3836
std::optional< std::string > text
Optional. Brief description of the game or high scores included in the game message....
Definition Types.h:3848
std::vector< std::shared_ptr< PhotoSize > > photo
Photo that will be displayed in the game message in chats.
Definition Types.h:3841
This object represents a service message about General forum topic hidden in the chat....
Definition Types.h:3897
std::shared_ptr< GeneralForumTopicHidden > Ptr
Definition Types.h:3898
This object represents a service message about General forum topic unhidden in the chat....
Definition Types.h:3909
std::shared_ptr< GeneralForumTopicUnhidden > Ptr
Definition Types.h:3910
This object describes the background of a gift.
Definition Types.h:4003
std::shared_ptr< GiftBackground > Ptr
Definition Types.h:4004
std::int32_t centerColor
Center color of the background in RGB format.
Definition Types.h:4009
std::int32_t textColor
Text color of the background in RGB format.
Definition Types.h:4019
std::int32_t edgeColor
Edge color of the background in RGB format.
Definition Types.h:4014
This object represents a gift that can be sent by the bot.
Definition Types.h:3920
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:3977
std::shared_ptr< Chat > publisherChat
Optional. Information about the chat that published the gift.
Definition Types.h:3993
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:3965
std::shared_ptr< GiftBackground > background
Optional. Background of the gift.
Definition Types.h:3982
std::optional< bool > isPremium
Optional. True, if the gift can only be purchased by Telegram Premium subscribers.
Definition Types.h:3947
std::shared_ptr< Sticker > sticker
The sticker that represents the gift.
Definition Types.h:3931
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:3959
std::shared_ptr< Gift > Ptr
Definition Types.h:3921
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:3971
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:3942
std::int32_t starCount
The number of Telegram Stars that must be paid to send the sticker.
Definition Types.h:3936
std::optional< bool > hasColors
Optional. True, if the gift can be used (after being upgraded) to customize a user's appearance.
Definition Types.h:3953
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:3988
Describes a service message about a regular gift that was sent or received.
Definition Types.h:4029
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:4041
std::optional< bool > canBeUpgraded
Optional. True, if the gift can be upgraded to a unique gift.
Definition Types.h:4062
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the text.
Definition Types.h:4072
std::optional< std::int32_t > uniqueGiftNumber
Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift.
Definition Types.h:4084
std::optional< bool > isUpgradeSeparate
Optional. True, if the gift's upgrade was purchased after the gift was sent.
Definition Types.h:4057
std::optional< std::string > text
Optional. Text of the message that was added to the gift.
Definition Types.h:4067
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:4047
std::optional< std::int32_t > prepaidUpgradeStarCount
Optional. Number of Telegram Stars that were prepaid for the ability to upgrade the gift.
Definition Types.h:4052
std::optional< bool > isPrivate
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise,...
Definition Types.h:4078
std::shared_ptr< GiftInfo > Ptr
Definition Types.h:4030
std::shared_ptr< Gift > gift
Information about the gift.
Definition Types.h:4035
This object represent a list of gifts.
Definition Types.h:4094
std::vector< std::shared_ptr< Gift > > gifts
The list of gifts.
Definition Types.h:4100
std::shared_ptr< Gifts > Ptr
Definition Types.h:4095
This object represents a service message about the completion of a giveaway without public winners.
Definition Types.h:4173
std::optional< std::int32_t > unclaimedPrizeCount
Optional. Number of undistributed prizes.
Definition Types.h:4184
std::shared_ptr< GiveawayCompleted > Ptr
Definition Types.h:4174
std::shared_ptr< Message > giveawayMessage
Optional. Message with the giveaway that was completed, if it wasn't deleted.
Definition Types.h:4189
std::int32_t winnerCount
Number of winners in the giveaway.
Definition Types.h:4179
std::optional< bool > isStarGiveaway
Optional. True, if the giveaway is a Telegram Star giveaway. Otherwise, currently,...
Definition Types.h:4195
This object represents a service message about the creation of a scheduled giveaway.
Definition Types.h:4205
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:4212
std::shared_ptr< GiveawayCreated > Ptr
Definition Types.h:4206
This object represents a message about a scheduled giveaway.
Definition Types.h:4110
std::vector< std::shared_ptr< Chat > > chats
The list of chats which the user must join to participate in the giveaway.
Definition Types.h:4116
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:4156
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:4132
std::int32_t winnerCount
The number of users which are supposed to be selected as winners of the giveaway.
Definition Types.h:4126
std::int32_t winnersSelectionDate
Point in time (Unix timestamp) when winners of the giveaway will be selected.
Definition Types.h:4121
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:4150
std::shared_ptr< Giveaway > Ptr
Definition Types.h:4111
std::optional< bool > hasPublicWinners
Optional. True, if the list of giveaway winners will be visible to everyone.
Definition Types.h:4137
std::optional< std::string > prizeDescription
Optional. Description of additional giveaway prize.
Definition Types.h:4142
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:4162
This object represents a message about the completion of a giveaway with public winners.
Definition Types.h:4222
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:4266
std::optional< std::string > prizeDescription
Optional. Description of additional giveaway prize.
Definition Types.h:4287
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:4277
std::int32_t giveawayMessageId
Identifier of the message with the giveaway in the chat.
Definition Types.h:4233
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:4260
std::optional< std::int32_t > unclaimedPrizeCount
Optional. Number of undistributed prizes.
Definition Types.h:4271
std::shared_ptr< Chat > chat
The chat that created the giveaway.
Definition Types.h:4228
std::optional< bool > wasRefunded
Optional. True, if the giveaway was canceled because the payment for it was refunded.
Definition Types.h:4282
std::int32_t winnerCount
Total number of winners in the giveaway.
Definition Types.h:4243
std::int32_t winnersSelectionDate
Point in time (Unix timestamp) when winners of the giveaway were selected.
Definition Types.h:4238
std::vector< std::shared_ptr< User > > winners
List of up to 100 winners of the giveaway.
Definition Types.h:4248
std::shared_ptr< GiveawayWinners > Ptr
Definition Types.h:4223
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:4254
This object describes a message that was deleted or is otherwise inaccessible to the bot.
Definition Types.h:4297
std::shared_ptr< InaccessibleMessage > Ptr
Definition Types.h:4298
std::int32_t date
Always 0. The field can be used to differentiate regular and inaccessible messages.
Definition Types.h:4313
std::shared_ptr< Chat > chat
Chat the message belonged to.
Definition Types.h:4303
std::int32_t messageId
Unique message identifier inside the chat.
Definition Types.h:4308
This object represents one button of an inline keyboard. Exactly one of the fields other than text,...
Definition Types.h:4324
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:4398
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:4371
std::optional< std::string > iconCustomEmojiId
Optional. Unique identifier of the custom emoji shown before the text of the button....
Definition Types.h:4338
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:4416
std::shared_ptr< CopyTextButton > copyText
Optional. Description of the button that copies the specified text to the clipboard.
Definition Types.h:4403
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:4390
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:4357
std::optional< std::string > style
Optional. Style of the button. Must be one of “danger” (red), “success” (green) or “primary” (blue)....
Definition Types.h:4344
std::shared_ptr< CallbackGame > callbackGame
Optional. Description of the game that will be launched when the user presses the button....
Definition Types.h:4409
std::optional< std::string > switchInlineQuery
Optional. If set, pressing the button will prompt the user to select one of their chats,...
Definition Types.h:4380
std::string text
Label text on the button.
Definition Types.h:4330
std::shared_ptr< WebAppInfo > webApp
Optional. Description of the Web App that will be launched when the user presses the button....
Definition Types.h:4365
std::shared_ptr< InlineKeyboardButton > Ptr
Definition Types.h:4325
std::optional< std::string > url
Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?...
Definition Types.h:4351
This object represents an inline keyboard that appears right next to the message it belongs to.
Definition Types.h:4427
std::vector< std::vector< std::shared_ptr< InlineKeyboardButton > > > inlineKeyboard
Array of button rows, each represented by an Array of InlineKeyboardButton objects.
Definition Types.h:4433
std::shared_ptr< InlineKeyboardMarkup > Ptr
Definition Types.h:4428
This object represents an incoming inline query. When the user sends an empty query,...
Definition Types.h:4444
std::string offset
Offset of the results to be returned, can be controlled by the bot.
Definition Types.h:4465
std::shared_ptr< InlineQuery > Ptr
Definition Types.h:4445
std::shared_ptr< Location > location
Optional. Sender location, only for bots that request user location.
Definition Types.h:4478
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:4473
std::string query
Text of the query (up to 256 characters).
Definition Types.h:4460
std::shared_ptr< User > from
Sender.
Definition Types.h:4455
Represents a link to an article or web page.
Definition Types.h:4520
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:4558
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4548
std::shared_ptr< InputMessageContent > inputMessageContent
Content of the message to be sent.
Definition Types.h:4543
std::shared_ptr< InlineQueryResultArticle > Ptr
Definition Types.h:4521
std::string type
Type of the result, must be article.
Definition Types.h:4528
static TGBOT_API const std::string TYPE
Definition Types.h:4523
std::optional< std::string > url
Optional. URL of the result.
Definition Types.h:4553
std::string title
Title of the result.
Definition Types.h:4538
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
Definition Types.h:4563
std::optional< std::int32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:4568
std::optional< std::int32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:4573
Represents a link to an MP3 audio file. By default, this audio file will be sent by the user....
Definition Types.h:4585
std::string audioUrl
A valid URL for the audio file.
Definition Types.h:4603
std::shared_ptr< InlineQueryResultAudio > Ptr
Definition Types.h:4586
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
Definition Types.h:4613
std::string title
Title.
Definition Types.h:4608
std::optional< std::string > performer
Optional. Performer.
Definition Types.h:4630
std::string type
Type of the result, must be audio.
Definition Types.h:4593
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the audio.
Definition Types.h:4645
std::optional< std::int32_t > audioDuration
Optional. Audio duration in seconds.
Definition Types.h:4635
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:4625
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
Definition Types.h:4619
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4640
static TGBOT_API const std::string TYPE
Definition Types.h:4588
Represents a link to an MP3 audio file stored on the Telegram servers. By default,...
Definition Types.h:4657
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:4692
std::string type
Type of the result, must be audio.
Definition Types.h:4665
std::string audioFileId
A valid file identifier for the audio file.
Definition Types.h:4675
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4697
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the audio.
Definition Types.h:4702
static TGBOT_API const std::string TYPE
Definition Types.h:4660
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
Definition Types.h:4686
std::shared_ptr< InlineQueryResultCachedAudio > Ptr
Definition Types.h:4658
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
Definition Types.h:4680
Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the...
Definition Types.h:4714
static TGBOT_API const std::string TYPE
Definition Types.h:4717
std::shared_ptr< InlineQueryResultCachedDocument > Ptr
Definition Types.h:4715
std::string title
Title for the result.
Definition Types.h:4732
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:4742
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:4759
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the document caption. See formatting options for more details.
Definition Types.h:4753
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the file.
Definition Types.h:4769
std::string type
Type of the result, must be document.
Definition Types.h:4722
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4764
std::string documentFileId
A valid file identifier for the file.
Definition Types.h:4737
std::optional< std::string > caption
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4747
Represents a link to an animated GIF file stored on the Telegram servers. By default,...
Definition Types.h:4781
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4831
std::shared_ptr< InlineQueryResultCachedGif > Ptr
Definition Types.h:4782
std::string type
Type of the result, must be gif.
Definition Types.h:4789
static TGBOT_API const std::string TYPE
Definition Types.h:4784
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:4826
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the GIF animation.
Definition Types.h:4836
std::optional< std::string > caption
Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4809
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Definition Types.h:4815
std::string gifFileId
A valid file identifier for the GIF file.
Definition Types.h:4799
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:4821
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:4804
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram ...
Definition Types.h:4849
std::optional< std::string > caption
Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4878
std::string mpeg4FileId
A valid file identifier for the MPEG4 file.
Definition Types.h:4867
static TGBOT_API const std::string TYPE
Definition Types.h:4852
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the video animation.
Definition Types.h:4905
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4900
std::shared_ptr< InlineQueryResultCachedMpeg4Gif > Ptr
Definition Types.h:4850
std::string type
Type of the result, must be mpeg4_gif.
Definition Types.h:4857
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:4872
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:4890
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Definition Types.h:4884
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:4895
Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by t...
Definition Types.h:4917
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:4967
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:4940
std::optional< std::string > caption
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4950
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4972
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
Definition Types.h:4956
static TGBOT_API const std::string TYPE
Definition Types.h:4920
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:4945
std::string photoFileId
A valid file identifier of the photo.
Definition Types.h:4935
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:4962
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the photo.
Definition Types.h:4977
std::string type
Type of the result, must be photo.
Definition Types.h:4925
std::shared_ptr< InlineQueryResultCachedPhoto > Ptr
Definition Types.h:4918
Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent ...
Definition Types.h:4989
std::string type
Type of the result, must be sticker.
Definition Types.h:4997
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5012
std::shared_ptr< InlineQueryResultCachedSticker > Ptr
Definition Types.h:4990
std::string stickerFileId
A valid file identifier of the sticker.
Definition Types.h:5007
static TGBOT_API const std::string TYPE
Definition Types.h:4992
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the sticker.
Definition Types.h:5017
Represents a link to a video file stored on the Telegram servers. By default, this video file will be...
Definition Types.h:5029
std::shared_ptr< InlineQueryResultCachedVideo > Ptr
Definition Types.h:5030
std::string title
Title for the result.
Definition Types.h:5052
std::optional< std::string > caption
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5062
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5084
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:5057
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:5074
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:5079
std::string type
Type of the result, must be video.
Definition Types.h:5037
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
Definition Types.h:5068
std::string videoFileId
A valid file identifier for the video file.
Definition Types.h:5047
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the video.
Definition Types.h:5089
static TGBOT_API const std::string TYPE
Definition Types.h:5032
Represents a link to a voice message stored on the Telegram servers. By default, this voice message w...
Definition Types.h:5101
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5146
static TGBOT_API const std::string TYPE
Definition Types.h:5104
std::shared_ptr< InlineQueryResultCachedVoice > Ptr
Definition Types.h:5102
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the voice message caption. See formatting options for more det...
Definition Types.h:5135
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the voice message.
Definition Types.h:5151
std::string voiceFileId
A valid file identifier for the voice message.
Definition Types.h:5119
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
Definition Types.h:5129
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:5141
std::string title
Voice message title.
Definition Types.h:5124
std::string type
Type of the result, must be voice.
Definition Types.h:5109
Represents a contact with a phone number. By default, this contact will be sent by the user....
Definition Types.h:5163
std::string type
Type of the result, must be contact.
Definition Types.h:5171
std::optional< std::string > vcard
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.
Definition Types.h:5196
std::optional< std::int32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:5216
std::optional< std::int32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:5221
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the contact.
Definition Types.h:5206
std::optional< std::string > lastName
Optional. Contact's last name.
Definition Types.h:5191
std::string firstName
Contact's first name.
Definition Types.h:5186
std::string phoneNumber
Contact's phone number.
Definition Types.h:5181
std::shared_ptr< InlineQueryResultContact > Ptr
Definition Types.h:5164
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5201
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
Definition Types.h:5211
static TGBOT_API const std::string TYPE
Definition Types.h:5166
Represents a link to a file. By default, this file will be sent by the user with an optional caption....
Definition Types.h:5234
std::optional< std::int32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:5309
std::string title
Title for the result.
Definition Types.h:5252
std::optional< std::int32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:5304
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the document caption. See formatting options for more details.
Definition Types.h:5263
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5289
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the file.
Definition Types.h:5294
std::string mimeType
MIME type of the content of the file, either “application/pdf” or “application/zip”
Definition Types.h:5279
std::string type
Type of the result, must be document.
Definition Types.h:5242
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:5284
static TGBOT_API const std::string TYPE
Definition Types.h:5237
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:5269
std::optional< std::string > caption
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5257
std::shared_ptr< InlineQueryResultDocument > Ptr
Definition Types.h:5235
std::optional< std::string > thumbnailUrl
Optional. URL of the thumbnail (JPEG only) for the file.
Definition Types.h:5299
std::string documentUrl
A valid URL for the file.
Definition Types.h:5274
Represents a Game.
Definition Types.h:5319
std::string gameShortName
Short name of the game.
Definition Types.h:5337
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5342
std::shared_ptr< InlineQueryResultGame > Ptr
Definition Types.h:5320
std::string type
Type of the result, must be game.
Definition Types.h:5327
static TGBOT_API const std::string TYPE
Definition Types.h:5322
Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the use...
Definition Types.h:5354
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:5403
static TGBOT_API const std::string TYPE
Definition Types.h:5357
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5430
std::shared_ptr< InlineQueryResultGif > Ptr
Definition Types.h:5355
std::optional< std::int32_t > gifHeight
Optional. Height of the GIF.
Definition Types.h:5382
std::string gifUrl
A valid URL for the GIF file.
Definition Types.h:5372
std::string type
Type of the result, must be gif.
Definition Types.h:5362
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Definition Types.h:5414
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:5420
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:5398
std::optional< std::string > caption
Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5408
std::string thumbnailUrl
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
Definition Types.h:5392
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the GIF animation.
Definition Types.h:5435
std::optional< std::int32_t > gifDuration
Optional. Duration of the GIF in seconds.
Definition Types.h:5387
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:5425
std::optional< std::int32_t > gifWidth
Optional. Width of the GIF.
Definition Types.h:5377
This object represents one result of an inline query. Telegram clients currently support results of t...
Definition Types.h:4497
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:4510
std::shared_ptr< InlineQueryResult > Ptr
Definition Types.h:4498
Represents a location on a map. By default, the location will be sent by the user....
Definition Types.h:5447
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5503
std::optional< std::int32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:5523
std::optional< std::int32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:5518
std::optional< std::int32_t > proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat ...
Definition Types.h:5498
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
Definition Types.h:5513
double latitude
Location latitude in degrees.
Definition Types.h:5465
std::optional< std::int32_t > heading
Optional. For live locations, a direction in which the user is moving, in degrees....
Definition Types.h:5492
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the location.
Definition Types.h:5508
static TGBOT_API const std::string TYPE
Definition Types.h:5450
double longitude
Location longitude in degrees.
Definition Types.h:5470
std::string title
Location title.
Definition Types.h:5475
std::shared_ptr< InlineQueryResultLocation > Ptr
Definition Types.h:5448
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:5486
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:5480
std::string type
Type of the result, must be location.
Definition Types.h:5455
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default,...
Definition Types.h:5536
std::optional< std::string > caption
Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5591
static TGBOT_API const std::string TYPE
Definition Types.h:5539
std::string mpeg4Url
A valid URL for the MPEG4 file.
Definition Types.h:5554
std::string type
Type of the result, must be mpeg4_gif.
Definition Types.h:5544
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Definition Types.h:5597
std::shared_ptr< InlineQueryResultMpeg4Gif > Ptr
Definition Types.h:5537
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:5585
std::optional< std::int32_t > mpeg4Width
Optional. Video width.
Definition Types.h:5559
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5613
std::optional< std::int32_t > mpeg4Duration
Optional. Video duration in seconds.
Definition Types.h:5569
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:5603
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:5580
std::optional< std::int32_t > mpeg4Height
Optional. Video height.
Definition Types.h:5564
std::string thumbnailUrl
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
Definition Types.h:5574
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:5608
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the video animation.
Definition Types.h:5618
Represents a link to a photo. By default, this photo will be sent by the user with optional caption....
Definition Types.h:5630
static TGBOT_API const std::string TYPE
Definition Types.h:5633
std::string photoUrl
A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB.
Definition Types.h:5648
std::shared_ptr< InlineQueryResultPhoto > Ptr
Definition Types.h:5631
std::string thumbnailUrl
URL of the thumbnail for the photo.
Definition Types.h:5653
std::optional< std::int32_t > photoWidth
Optional. Width of the photo.
Definition Types.h:5658
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:5690
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
Definition Types.h:5684
std::optional< std::string > caption
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5678
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the photo.
Definition Types.h:5705
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:5673
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:5695
std::optional< std::int32_t > photoHeight
Optional. Height of the photo.
Definition Types.h:5663
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:5668
std::string type
Type of the result, must be photo.
Definition Types.h:5638
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5700
Represents a venue. By default, the venue will be sent by the user. Alternatively,...
Definition Types.h:5716
std::optional< std::int32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:5795
std::string address
Address of the venue.
Definition Types.h:5749
std::string type
Type of the result, must be venue.
Definition Types.h:5724
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
Definition Types.h:5765
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
Definition Types.h:5785
std::optional< std::int32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:5790
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the venue.
Definition Types.h:5780
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5775
double latitude
Latitude of the venue location in degrees.
Definition Types.h:5734
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue if known.
Definition Types.h:5754
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,...
Definition Types.h:5760
double longitude
Longitude of the venue location in degrees.
Definition Types.h:5739
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
Definition Types.h:5770
std::string title
Title of the venue.
Definition Types.h:5744
static TGBOT_API const std::string TYPE
Definition Types.h:5719
std::shared_ptr< InlineQueryResultVenue > Ptr
Definition Types.h:5717
Represents a link to a page containing an embedded video player or a video file. By default,...
Definition Types.h:5807
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:5857
static TGBOT_API const std::string TYPE
Definition Types.h:5810
std::shared_ptr< InlineQueryResultVideo > Ptr
Definition Types.h:5808
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
Definition Types.h:5851
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:5862
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:5882
std::optional< std::int32_t > videoHeight
Optional. Video height.
Definition Types.h:5872
std::string thumbnailUrl
URL of the thumbnail (JPEG only) for the video.
Definition Types.h:5835
std::optional< std::int32_t > videoWidth
Optional. Video width.
Definition Types.h:5867
std::string title
Title for the result.
Definition Types.h:5840
std::string mimeType
MIME type of the content of the video URL, “text/html” or “video/mp4”
Definition Types.h:5830
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:5894
std::optional< std::string > caption
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5845
std::optional< std::int32_t > videoDuration
Optional. Video duration in seconds.
Definition Types.h:5877
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5887
std::string videoUrl
A valid URL for the embedded video player or video file.
Definition Types.h:5825
std::string type
Type of the result, must be video.
Definition Types.h:5815
Represents a link to a voice recording in an .OGG container encoded with OPUS. By default,...
Definition Types.h:5907
std::string title
Recording title.
Definition Types.h:5930
std::string type
Type of the result, must be voice.
Definition Types.h:5915
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:5947
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5957
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the voice recording.
Definition Types.h:5962
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
Definition Types.h:5935
std::optional< std::int32_t > voiceDuration
Optional. Recording duration in seconds.
Definition Types.h:5952
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the voice message caption. See formatting options for more det...
Definition Types.h:5941
static TGBOT_API const std::string TYPE
Definition Types.h:5910
std::shared_ptr< InlineQueryResultVoice > Ptr
Definition Types.h:5908
std::string voiceUrl
A valid URL for the voice recording.
Definition Types.h:5925
This object represents a button to be shown above inline query results. You must use exactly one of t...
Definition Types.h:5973
std::shared_ptr< InlineQueryResultsButton > Ptr
Definition Types.h:5974
std::string text
Label text on the button.
Definition Types.h:5979
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:5999
std::shared_ptr< WebAppInfo > webApp
Optional. Description of the Web App that will be launched when the user presses the button....
Definition Types.h:5986
Describes a checklist to create.
Definition Types.h:6009
std::string title
Title of the checklist; 1-255 characters after entities parsing.
Definition Types.h:6015
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the title. See formatting options for more details.
Definition Types.h:6021
std::vector< std::shared_ptr< InputChecklistTask > > tasks
List of 1-30 tasks in the checklist.
Definition Types.h:6033
std::shared_ptr< InputChecklist > Ptr
Definition Types.h:6010
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:6028
std::optional< bool > othersCanMarkTasksAsDone
Optional. Pass True if other users can mark tasks as done or not done in the checklist.
Definition Types.h:6043
std::optional< bool > othersCanAddTasks
Optional. Pass True if other users can add tasks to the checklist.
Definition Types.h:6038
Describes a task to add to a checklist.
Definition Types.h:6053
std::string text
Text of the task; 1-100 characters after entities parsing.
Definition Types.h:6065
std::shared_ptr< InputChecklistTask > Ptr
Definition Types.h:6054
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the text. See formatting options for more details.
Definition Types.h:6071
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:6078
Represents the content of a contact message to be sent as the result of an inline query.
Definition Types.h:6088
std::optional< std::string > lastName
Optional. Contact's last name.
Definition Types.h:6104
std::string firstName
Contact's first name.
Definition Types.h:6099
std::string phoneNumber
Contact's phone number.
Definition Types.h:6094
std::shared_ptr< InputContactMessageContent > Ptr
Definition Types.h:6089
std::optional< std::string > vcard
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.
Definition Types.h:6109
Represents the content of an invoice message to be sent as the result of an inline query.
Definition Types.h:6119
std::optional< std::int32_t > photoWidth
Optional. Photo width.
Definition Types.h:6195
std::optional< bool > needEmail
Optional. Pass True if you require the user's email address to complete the order....
Definition Types.h:6218
std::vector< std::shared_ptr< LabeledPrice > > prices
Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount,...
Definition Types.h:6155
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:6185
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:6179
std::optional< bool > isFlexible
Optional. Pass True if the final price depends on the shipping method. Ignored for payments in Telegr...
Definition Types.h:6242
std::shared_ptr< InputInvoiceMessageContent > Ptr
Definition Types.h:6120
std::optional< std::int32_t > photoHeight
Optional. Photo height.
Definition Types.h:6200
std::string title
Product name, 1-32 characters.
Definition Types.h:6125
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:6230
std::optional< bool > needShippingAddress
Optional. Pass True if you require the user's shipping address to complete the order....
Definition Types.h:6224
std::string currency
Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Star...
Definition Types.h:6148
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:6212
std::optional< std::int32_t > maxTipAmount
Optional. The maximum accepted amount for tips in the smallest units of the currency (integer,...
Definition Types.h:6164
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:6136
std::optional< std::int32_t > photoSize
Optional. Photo size in bytes.
Definition Types.h:6190
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:6172
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:6236
std::optional< std::string > providerToken
Optional. Payment provider token, obtained via @BotFather. Pass an empty string for payments in Teleg...
Definition Types.h:6142
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:6206
std::string description
Product description, 1-255 characters.
Definition Types.h:6130
Represents the content of a location message to be sent as the result of an inline query.
Definition Types.h:6252
double longitude
Longitude of the location in degrees.
Definition Types.h:6263
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:6274
double latitude
Latitude of the location in degrees.
Definition Types.h:6258
std::optional< std::int32_t > proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat ...
Definition Types.h:6286
std::shared_ptr< InputLocationMessageContent > Ptr
Definition Types.h:6253
std::optional< std::int32_t > heading
Optional. For live locations, a direction in which the user is moving, in degrees....
Definition Types.h:6280
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:6268
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
Definition Types.h:6314
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6330
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:6341
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the animation caption. See formatting options for more details...
Definition Types.h:6352
std::optional< std::int32_t > height
Optional. Animation height.
Definition Types.h:6373
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:6358
std::optional< std::int32_t > duration
Optional. Animation duration in seconds.
Definition Types.h:6378
std::shared_ptr< InputMediaAnimation > Ptr
Definition Types.h:6315
std::optional< bool > hasSpoiler
Optional. Pass True if the animation needs to be covered with a spoiler animation.
Definition Types.h:6383
std::optional< std::int32_t > width
Optional. Animation width.
Definition Types.h:6368
std::optional< std::string > caption
Optional. Caption of the animation to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6346
std::string type
Type of the media, must be animation.
Definition Types.h:6322
static TGBOT_API const std::string TYPE
Definition Types.h:6317
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:6363
Represents an audio file to be treated as music to be sent.
Definition Types.h:6393
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:6420
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:6437
static TGBOT_API const std::string TYPE
Definition Types.h:6396
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
Definition Types.h:6431
std::optional< std::int32_t > duration
Optional. Duration of the audio in seconds.
Definition Types.h:6442
std::optional< std::string > performer
Optional. Performer of the audio.
Definition Types.h:6447
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6409
std::shared_ptr< InputMediaAudio > Ptr
Definition Types.h:6394
std::optional< std::string > caption
Optional. Caption of the audio to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6425
std::optional< std::string > title
Optional. Title of the audio.
Definition Types.h:6452
std::string type
Type of the media, must be audio.
Definition Types.h:6401
Represents a general file to be sent.
Definition Types.h:6462
static TGBOT_API const std::string TYPE
Definition Types.h:6465
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:6506
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the document caption. See formatting options for more details.
Definition Types.h:6500
std::string type
Type of the media, must be document.
Definition Types.h:6470
std::optional< bool > disableContentTypeDetection
Optional. Disables automatic server-side content type detection for files uploaded using multipart/fo...
Definition Types.h:6512
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:6489
std::optional< std::string > caption
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6494
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6478
std::shared_ptr< InputMediaDocument > Ptr
Definition Types.h:6463
This object represents the content of a media message to be sent. It should be one of InputMediaAnima...
Definition Types.h:6298
std::shared_ptr< InputMedia > Ptr
Definition Types.h:6299
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:6304
Represents a live photo to be sent.
Definition Types.h:6545
std::optional< std::string > caption
Optional. Caption of the live photo to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6574
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the live photo caption. See formatting options for more detail...
Definition Types.h:6580
std::string type
Type of the media, must be live_photo.
Definition Types.h:6553
std::shared_ptr< InputMediaLivePhoto > Ptr
Definition Types.h:6546
static TGBOT_API const std::string TYPE
Definition Types.h:6548
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:6561
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:6569
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:6591
std::optional< bool > hasSpoiler
Optional. Pass True if the live photo needs to be covered with a spoiler animation.
Definition Types.h:6596
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:6586
Represents a location to be sent.
Definition Types.h:6606
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:6629
std::shared_ptr< InputMediaLocation > Ptr
Definition Types.h:6607
double latitude
Latitude of the location.
Definition Types.h:6619
std::string type
Type of the media, must be location.
Definition Types.h:6614
static TGBOT_API const std::string TYPE
Definition Types.h:6609
double longitude
Longitude of the location.
Definition Types.h:6624
Represents a photo to be sent.
Definition Types.h:6639
std::string type
Type of the media, must be photo.
Definition Types.h:6647
static TGBOT_API const std::string TYPE
Definition Types.h:6642
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:6672
std::shared_ptr< InputMediaPhoto > Ptr
Definition Types.h:6640
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
Definition Types.h:6666
std::optional< std::string > caption
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6660
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:6677
std::optional< bool > hasSpoiler
Optional. Pass True if the photo needs to be covered with a spoiler animation.
Definition Types.h:6682
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6655
Represents a sticker file to be sent.
Definition Types.h:6692
std::string type
Type of the media, must be sticker.
Definition Types.h:6700
static TGBOT_API const std::string TYPE
Definition Types.h:6695
std::optional< std::string > emoji
Optional. Emoji associated with the sticker; only for just uploaded stickers.
Definition Types.h:6714
std::shared_ptr< InputMediaSticker > Ptr
Definition Types.h:6693
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6709
Represents a venue to be sent.
Definition Types.h:6724
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,...
Definition Types.h:6763
double longitude
Longitude of the location.
Definition Types.h:6742
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
Definition Types.h:6768
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
Definition Types.h:6773
std::string title
Name of the venue.
Definition Types.h:6747
double latitude
Latitude of the location.
Definition Types.h:6737
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue.
Definition Types.h:6757
static TGBOT_API const std::string TYPE
Definition Types.h:6727
std::shared_ptr< InputMediaVenue > Ptr
Definition Types.h:6725
std::string address
Address of the venue.
Definition Types.h:6752
std::string type
Type of the media, must be venue.
Definition Types.h:6732
Represents a video to be sent.
Definition Types.h:6783
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:6845
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6799
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:6810
std::optional< std::string > caption
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6828
std::optional< std::int32_t > startTimestamp
Optional. Start timestamp for the video in the message.
Definition Types.h:6823
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
Definition Types.h:6834
std::optional< std::int32_t > width
Optional. Video width.
Definition Types.h:6850
std::optional< std::int32_t > height
Optional. Video height.
Definition Types.h:6855
static TGBOT_API const std::string TYPE
Definition Types.h:6786
std::optional< bool > hasSpoiler
Optional. Pass True if the video needs to be covered with a spoiler animation.
Definition Types.h:6870
std::string type
Type of the media, must be video.
Definition Types.h:6791
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:6840
std::optional< bool > supportsStreaming
Optional. Pass True if the uploaded video is suitable for streaming.
Definition Types.h:6865
std::shared_ptr< InputMediaVideo > Ptr
Definition Types.h:6784
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:6818
std::optional< std::int32_t > duration
Optional. Video duration in seconds.
Definition Types.h:6860
Represents a voice message file to be sent.
Definition Types.h:6880
std::string type
Type of the media, must be voice_note.
Definition Types.h:6888
std::optional< std::string > caption
Optional. Caption of the voice message to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6902
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the voice message caption. See formatting options for more det...
Definition Types.h:6908
std::shared_ptr< InputMediaVoiceNote > Ptr
Definition Types.h:6881
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6896
std::optional< std::int32_t > duration
Optional. Duration of the voice message in seconds.
Definition Types.h:6919
static TGBOT_API const std::string TYPE
Definition Types.h:6883
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:6914
This object represents the content of a message to be sent as a result of an inline query....
Definition Types.h:6932
std::shared_ptr< InputMessageContent > Ptr
Definition Types.h:6933
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:6938
This object describes the paid media to be sent. Currently, it can be one of InputPaidMediaLivePhoto ...
Definition Types.h:6949
std::variant< std::shared_ptr< InputPaidMediaLivePhoto >, std::shared_ptr< InputPaidMediaPhoto >, std::shared_ptr< InputPaidMediaVideo > > value
Definition Types.h:6954
std::shared_ptr< InputPaidMedia > Ptr
Definition Types.h:6950
The paid media to send is a live photo.
Definition Types.h:6964
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:6988
std::string type
Type of the media, must be live_photo.
Definition Types.h:6972
std::shared_ptr< InputPaidMediaLivePhoto > Ptr
Definition Types.h:6965
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:6980
static TGBOT_API const std::string TYPE
Definition Types.h:6967
The paid media to send is a photo.
Definition Types.h:6998
static TGBOT_API const std::string TYPE
Definition Types.h:7001
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:7014
std::string type
Type of the media, must be photo.
Definition Types.h:7006
std::shared_ptr< InputPaidMediaPhoto > Ptr
Definition Types.h:6999
The paid media to send is a video.
Definition Types.h:7024
std::optional< std::int32_t > startTimestamp
Optional. Start timestamp for the video in the message.
Definition Types.h:7064
std::string type
Type of the media, must be video.
Definition Types.h:7032
std::optional< std::int32_t > duration
Optional. Video duration in seconds.
Definition Types.h:7079
std::optional< bool > supportsStreaming
Optional. Pass True if the uploaded video is suitable for streaming.
Definition Types.h:7084
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:7059
static TGBOT_API const std::string TYPE
Definition Types.h:7027
std::shared_ptr< InputPaidMediaVideo > Ptr
Definition Types.h:7025
std::optional< std::int32_t > height
Optional. Video height.
Definition Types.h:7074
std::optional< std::int32_t > width
Optional. Video width.
Definition Types.h:7069
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:7040
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:7051
This object represents the content of a poll description or a quiz explanation to be sent....
Definition Types.h:7096
std::shared_ptr< InputPollMedia > Ptr
Definition Types.h:7097
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:7103
This object contains information about one answer option in a poll to be sent.
Definition Types.h:7113
std::string text
Option text, 1-100 characters.
Definition Types.h:7119
std::shared_ptr< InputPollOptionMedia > media
Optional. Media added to the poll option.
Definition Types.h:7136
std::shared_ptr< InputPollOption > Ptr
Definition Types.h:7114
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:7131
std::optional< std::string > textParseMode
Optional. Mode for parsing entities in the text. See formatting options for more details....
Definition Types.h:7125
This object represents the content of a poll option to be sent. It should be one of InputMediaAnimati...
Definition Types.h:7148
std::shared_ptr< InputPollOptionMedia > Ptr
Definition Types.h:7149
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:7155
An animated profile photo in the MPEG4 format.
Definition Types.h:7179
std::shared_ptr< InputProfilePhotoAnimated > Ptr
Definition Types.h:7180
std::string type
Type of the profile photo, must be animated.
Definition Types.h:7187
static TGBOT_API const std::string TYPE
Definition Types.h:7182
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:7194
std::optional< double > mainFrameTimestamp
Optional. Timestamp in seconds of the frame that will be used as the static profile photo....
Definition Types.h:7200
This object describes a profile photo to set. Currently, it can be one of InputProfilePhotoStatic Inp...
Definition Types.h:7166
std::variant< std::shared_ptr< InputProfilePhotoStatic >, std::shared_ptr< InputProfilePhotoAnimated > > value
Definition Types.h:7169
std::shared_ptr< InputProfilePhoto > Ptr
Definition Types.h:7167
A static profile photo in the .JPG format.
Definition Types.h:7210
static TGBOT_API const std::string TYPE
Definition Types.h:7213
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:7225
std::string type
Type of the profile photo, must be static.
Definition Types.h:7218
std::shared_ptr< InputProfilePhotoStatic > Ptr
Definition Types.h:7211
A block with an anchor, corresponding to the HTML tag with the attribute name.
Definition Types.h:7266
static TGBOT_API const std::string TYPE
Definition Types.h:7269
std::shared_ptr< InputRichBlockAnchor > Ptr
Definition Types.h:7267
std::string name
The name of the anchor.
Definition Types.h:7279
std::string type
Type of the block, always “anchor”
Definition Types.h:7274
A block with an animation, corresponding to the HTML tag <video>.
Definition Types.h:7289
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7307
std::string type
Type of the block, always “animation”
Definition Types.h:7297
std::shared_ptr< InputRichBlockAnimation > Ptr
Definition Types.h:7290
static TGBOT_API const std::string TYPE
Definition Types.h:7292
std::shared_ptr< InputMediaAnimation > animation
The animation. Caption is ignored.
Definition Types.h:7302
A block with a music file, corresponding to the HTML tag <audio>.
Definition Types.h:7317
static TGBOT_API const std::string TYPE
Definition Types.h:7320
std::shared_ptr< InputMediaAudio > audio
The audio. Caption is ignored.
Definition Types.h:7330
std::shared_ptr< InputRichBlockAudio > Ptr
Definition Types.h:7318
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7335
std::string type
Type of the block, always “audio”
Definition Types.h:7325
A block quotation, corresponding to the HTML tag.
Definition Types.h:7345
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:7363
std::vector< std::shared_ptr< InputRichBlock > > blocks
Content of the block.
Definition Types.h:7358
static TGBOT_API const std::string TYPE
Definition Types.h:7348
std::shared_ptr< InputRichBlockBlockQuotation > Ptr
Definition Types.h:7346
std::string type
Type of the block, always “blockquote”
Definition Types.h:7353
A collage, corresponding to the custom HTML tag <tg-collage>.
Definition Types.h:7373
static TGBOT_API const std::string TYPE
Definition Types.h:7376
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7391
std::vector< std::shared_ptr< InputRichBlock > > blocks
Elements of the collage.
Definition Types.h:7386
std::string type
Type of the block, always “collage”
Definition Types.h:7381
std::shared_ptr< InputRichBlockCollage > Ptr
Definition Types.h:7374
An expandable block for details disclosure, corresponding to the HTML tag.
Definition Types.h:7401
std::vector< std::shared_ptr< InputRichBlock > > blocks
Content of the block.
Definition Types.h:7419
std::string type
Type of the block, always “details”
Definition Types.h:7409
std::shared_ptr< InputRichBlockDetails > Ptr
Definition Types.h:7402
static TGBOT_API const std::string TYPE
Definition Types.h:7404
std::optional< bool > isOpen
Optional. Pass True if the content of the block is visible by default.
Definition Types.h:7424
std::shared_ptr< RichText > summary
Always shown summary of the block.
Definition Types.h:7414
A divider, corresponding to the HTML tag .
Definition Types.h:7434
std::shared_ptr< InputRichBlockDivider > Ptr
Definition Types.h:7435
std::string type
Type of the block, always “divider”
Definition Types.h:7442
static TGBOT_API const std::string TYPE
Definition Types.h:7437
This object represents a block in a rich formatted message to be sent. Currently, it can be any of th...
Definition Types.h:7242
std::shared_ptr< InputRichBlock > Ptr
Definition Types.h:7243
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< InputRichBlockPullQuotation >, std::shared_ptr< InputRichBlockCollage >, std::shared_ptr< InputRichBlockSlideshow >, std::shared_ptr< InputRichBlockTable >, std::shared_ptr< InputRichBlockDetails >, std::shared_ptr< InputRichBlockMap >, std::shared_ptr< InputRichBlockAnimation >, std::shared_ptr< InputRichBlockAudio >, std::shared_ptr< InputRichBlockPhoto >, std::shared_ptr< InputRichBlockVideo >, std::shared_ptr< InputRichBlockVoiceNote >, std::shared_ptr< InputRichBlockThinking > > value
Definition Types.h:7256
A list of blocks, corresponding to the HTML tag.
Definition Types.h:7475
static TGBOT_API const std::string TYPE
Definition Types.h:7478
std::string type
Type of the block, always “list”
Definition Types.h:7483
std::vector< std::shared_ptr< InputRichBlockListItem > > items
Items of the list.
Definition Types.h:7488
std::shared_ptr< InputRichBlockList > Ptr
Definition Types.h:7476
An item of a list to be sent.
Definition Types.h:7498
std::optional< bool > isChecked
Optional. Pass True if the item has a checked checkbox.
Definition Types.h:7514
std::shared_ptr< InputRichBlockListItem > Ptr
Definition Types.h:7499
std::optional< bool > hasCheckbox
Optional. Pass True if the item has a checkbox.
Definition Types.h:7509
std::vector< std::shared_ptr< InputRichBlock > > blocks
The content of the item.
Definition Types.h:7504
std::optional< std::int32_t > value
Optional. For ordered lists, the numeric value of the item label.
Definition Types.h:7519
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:7526
A block with a map, corresponding to the custom HTML tag <tg-map>. The map's width and height must no...
Definition Types.h:7537
std::int32_t height
Map height; 0-10000.
Definition Types.h:7565
std::shared_ptr< Location > location
Location of the center of the map.
Definition Types.h:7550
static TGBOT_API const std::string TYPE
Definition Types.h:7540
std::shared_ptr< InputRichBlockMap > Ptr
Definition Types.h:7538
std::int32_t zoom
Map zoom level; 0-24.
Definition Types.h:7555
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7570
std::int32_t width
Map width; 0-10000.
Definition Types.h:7560
std::string type
Type of the block, always “map”
Definition Types.h:7545
A block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag <tg-math...
Definition Types.h:7581
std::string type
Type of the block, always “mathematical_expression”
Definition Types.h:7589
std::shared_ptr< InputRichBlockMathematicalExpression > Ptr
Definition Types.h:7582
std::string expression
The mathematical expression in LaTeX format.
Definition Types.h:7594
static TGBOT_API const std::string TYPE
Definition Types.h:7584
A text paragraph, corresponding to the HTML tag.
Definition Types.h:7604
std::shared_ptr< InputRichBlockParagraph > Ptr
Definition Types.h:7605
std::string type
Type of the block, always “paragraph”
Definition Types.h:7612
static TGBOT_API const std::string TYPE
Definition Types.h:7607
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:7617
A block with a photo, corresponding to the HTML tag.
Definition Types.h:7627
std::string type
Type of the block, always “photo”
Definition Types.h:7635
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7645
std::shared_ptr< InputMediaPhoto > photo
The photo. Caption is ignored.
Definition Types.h:7640
std::shared_ptr< InputRichBlockPhoto > Ptr
Definition Types.h:7628
static TGBOT_API const std::string TYPE
Definition Types.h:7630
A preformatted text block, corresponding to the nested HTML tags.
Definition Types.h:7655
std::string type
Type of the block, always “pre”
Definition Types.h:7663
static TGBOT_API const std::string TYPE
Definition Types.h:7658
std::optional< std::string > language
Optional. The programming language of the text.
Definition Types.h:7673
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:7668
std::shared_ptr< InputRichBlockPreformatted > Ptr
Definition Types.h:7656
A quotation with centered text, loosely corresponding to the HTML tag <aside>.
Definition Types.h:7683
std::string type
Type of the block, always “pullquote”
Definition Types.h:7691
std::shared_ptr< InputRichBlockPullQuotation > Ptr
Definition Types.h:7684
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:7696
static TGBOT_API const std::string TYPE
Definition Types.h:7686
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:7701
A section heading, corresponding to the HTML tags.
Definition Types.h:7711
std::shared_ptr< InputRichBlockSectionHeading > Ptr
Definition Types.h:7712
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:7724
std::string type
Type of the block, always “heading”
Definition Types.h:7719
static TGBOT_API const std::string TYPE
Definition Types.h:7714
std::int32_t size
Relative size of the text font; 1-6, 1 is the largest, 6 is the smallest.
Definition Types.h:7729
A slideshow, corresponding to the custom HTML tag <tg-slideshow>.
Definition Types.h:7739
std::string type
Type of the block, always “slideshow”
Definition Types.h:7747
static TGBOT_API const std::string TYPE
Definition Types.h:7742
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7757
std::vector< std::shared_ptr< InputRichBlock > > blocks
Elements of the slideshow.
Definition Types.h:7752
std::shared_ptr< InputRichBlockSlideshow > Ptr
Definition Types.h:7740
A table, corresponding to the HTML tag.
Definition Types.h:7767
std::string type
Type of the block, always “table”
Definition Types.h:7775
std::shared_ptr< RichText > caption
Optional. Caption of the table.
Definition Types.h:7795
std::vector< std::vector< std::shared_ptr< RichBlockTableCell > > > cells
Cells of the table.
Definition Types.h:7780
static TGBOT_API const std::string TYPE
Definition Types.h:7770
std::optional< bool > isBordered
Optional. Pass True if the table has borders.
Definition Types.h:7785
std::shared_ptr< InputRichBlockTable > Ptr
Definition Types.h:7768
std::optional< bool > isStriped
Optional. Pass True if the table is striped.
Definition Types.h:7790
A block with a “Thinking…” placeholder, corresponding to the custom HTML tag <tg-thinking>....
Definition Types.h:7808
std::shared_ptr< InputRichBlockThinking > Ptr
Definition Types.h:7809
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:7822
static TGBOT_API const std::string TYPE
Definition Types.h:7811
std::string type
Type of the block, always “thinking”
Definition Types.h:7816
A block with a video, corresponding to the HTML tag <video>.
Definition Types.h:7832
std::shared_ptr< InputRichBlockVideo > Ptr
Definition Types.h:7833
static TGBOT_API const std::string TYPE
Definition Types.h:7835
std::shared_ptr< InputMediaVideo > video
The video. Caption is ignored.
Definition Types.h:7845
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7850
std::string type
Type of the block, always “video”
Definition Types.h:7840
A block with a voice note, corresponding to the HTML tag <audio>.
Definition Types.h:7860
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7878
std::shared_ptr< InputRichBlockVoiceNote > Ptr
Definition Types.h:7861
std::string type
Type of the block, always “voice_note”
Definition Types.h:7868
std::shared_ptr< InputMediaVoiceNote > voiceNote
The voice note. Caption is ignored.
Definition Types.h:7873
static TGBOT_API const std::string TYPE
Definition Types.h:7863
Represents the content of a rich message to be sent as the result of an inline query.
Definition Types.h:7937
std::shared_ptr< InputRichMessage > richMessage
The message to be sent.
Definition Types.h:7943
std::shared_ptr< InputRichMessageContent > Ptr
Definition Types.h:7938
Describes a rich message to be sent. Exactly one of the fields html, markdown, or blocks must be used...
Definition Types.h:7889
std::optional< std::string > html
Optional. Content of the rich message to send described using HTML formatting. See rich message forma...
Definition Types.h:7902
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:7895
std::shared_ptr< InputRichMessage > Ptr
Definition Types.h:7890
std::optional< std::string > markdown
Optional. Content of the rich message to send described using Markdown formatting....
Definition Types.h:7909
std::optional< bool > skipEntityDetection
Optional. Pass True to skip automatic detection of entities (e.g., URLs, email addresses,...
Definition Types.h:7927
std::optional< bool > isRtl
Optional. Pass True if the rich message must be shown right-to-left.
Definition Types.h:7920
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:7915
Describes a media element embedded in an outgoing rich message.
Definition Types.h:7953
std::variant< std::shared_ptr< InputMediaAnimation >, std::shared_ptr< InputMediaAudio >, 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:7968
std::shared_ptr< InputRichMessageMedia > Ptr
Definition Types.h:7954
This object describes a sticker to be added to a sticker set.
Definition Types.h:7978
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:7994
std::vector< std::string > emojiList
List of 1-20 emoji associated with the sticker.
Definition Types.h:7999
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:8010
std::shared_ptr< MaskPosition > maskPosition
Optional. Position where the mask should be placed on faces. For “mask” stickers only.
Definition Types.h:8004
std::shared_ptr< InputSticker > Ptr
Definition Types.h:7979
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:7988
This object describes the content of a story to post. Currently, it can be one of InputStoryContentPh...
Definition Types.h:8021
std::shared_ptr< InputStoryContent > Ptr
Definition Types.h:8022
std::variant< std::shared_ptr< InputStoryContentPhoto >, std::shared_ptr< InputStoryContentVideo > > value
Definition Types.h:8024
Describes a photo to post as a story.
Definition Types.h:8034
std::shared_ptr< InputStoryContentPhoto > Ptr
Definition Types.h:8035
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:8050
static TGBOT_API const std::string TYPE
Definition Types.h:8037
std::string type
Type of the content, must be photo.
Definition Types.h:8042
Describes a video to post as a story.
Definition Types.h:8060
std::optional< bool > isAnimation
Optional. Pass True if the video has no sound.
Definition Types.h:8093
std::optional< double > duration
Optional. Precise duration of the video in seconds; 0-60.
Definition Types.h:8082
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:8088
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:8077
std::shared_ptr< InputStoryContentVideo > Ptr
Definition Types.h:8061
static TGBOT_API const std::string TYPE
Definition Types.h:8063
std::string type
Type of the content, must be video.
Definition Types.h:8068
Represents the content of a text message to be sent as the result of an inline query.
Definition Types.h:8103
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Optional. Link preview generation options for the message.
Definition Types.h:8126
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:8121
std::string messageText
Text of the message to be sent, 1-4096 characters.
Definition Types.h:8109
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the message text. See formatting options for more details.
Definition Types.h:8115
std::shared_ptr< InputTextMessageContent > Ptr
Definition Types.h:8104
Represents the content of a venue message to be sent as the result of an inline query.
Definition Types.h:8136
double latitude
Latitude of the venue in degrees.
Definition Types.h:8142
std::string address
Address of the venue.
Definition Types.h:8157
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
Definition Types.h:8178
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,...
Definition Types.h:8168
std::shared_ptr< InputVenueMessageContent > Ptr
Definition Types.h:8137
double longitude
Longitude of the venue in degrees.
Definition Types.h:8147
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue, if known.
Definition Types.h:8162
std::string title
Name of the venue.
Definition Types.h:8152
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
Definition Types.h:8173
This object contains basic information about an invoice.
Definition Types.h:8188
std::shared_ptr< Invoice > Ptr
Definition Types.h:8189
std::string title
Product name.
Definition Types.h:8194
std::string startParameter
Unique bot deep-linking parameter that can be used to generate this invoice.
Definition Types.h:8204
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
Definition Types.h:8209
std::string description
Product description.
Definition Types.h:8199
std::int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
Definition Types.h:8217
This object represents one button of the reply keyboard. At most one of the fields other than text,...
Definition Types.h:8230
std::optional< std::string > style
Optional. Style of the button. Must be one of “danger” (red), “success” (green) or “primary” (blue)....
Definition Types.h:8251
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:8265
std::optional< bool > requestLocation
Optional. If True, the user's current location will be sent when the button is pressed....
Definition Types.h:8284
std::optional< std::string > iconCustomEmojiId
Optional. Unique identifier of the custom emoji shown before the text of the button....
Definition Types.h:8245
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:8290
std::shared_ptr< KeyboardButton > Ptr
Definition Types.h:8231
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:8272
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:8278
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:8237
std::shared_ptr< KeyboardButtonRequestUsers > requestUsers
Optional. If specified, pressing the button will open a list of suitable users. Identifiers of select...
Definition Types.h:8258
std::shared_ptr< WebAppInfo > webApp
Optional. If specified, the described Web App will be launched when the button is pressed....
Definition Types.h:8297
This object represents type of a poll, which is allowed to be created and sent when the corresponding...
Definition Types.h:8308
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:8316
std::shared_ptr< KeyboardButtonPollType > Ptr
Definition Types.h:8309
This object defines the criteria used to request a suitable chat. Information about the selected chat...
Definition Types.h:8328
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:8353
std::optional< bool > chatIsForum
Optional. Pass True to request a forum supergroup, pass False to request a non-forum chat....
Definition Types.h:8346
std::optional< bool > requestPhoto
Optional. Pass True to request the chat's photo.
Definition Types.h:8394
std::int32_t requestId
Signed 32-bit identifier of the request, which will be received back in the ChatShared object....
Definition Types.h:8335
std::optional< bool > chatIsCreated
Optional. Pass True to request a chat owned by the user. Otherwise, no additional restrictions are ap...
Definition Types.h:8359
std::shared_ptr< ChatAdministratorRights > userAdministratorRights
Optional. A JSON-serialized object listing the required administrator rights of the user in the chat....
Definition Types.h:8366
std::optional< bool > requestUsername
Optional. Pass True to request the chat's username.
Definition Types.h:8389
std::shared_ptr< KeyboardButtonRequestChat > Ptr
Definition Types.h:8329
std::shared_ptr< ChatAdministratorRights > botAdministratorRights
Optional. A JSON-serialized object listing the required administrator rights of the bot in the chat....
Definition Types.h:8373
std::optional< bool > botIsMember
Optional. Pass True to request a chat with the bot as a member. Otherwise, no additional restrictions...
Definition Types.h:8379
bool chatIsChannel
Pass True to request a channel chat, pass False to request a group or a supergroup chat.
Definition Types.h:8340
std::optional< bool > requestTitle
Optional. Pass True to request the chat's title.
Definition Types.h:8384
This object defines the parameters for the creation of a managed bot. Information about the created b...
Definition Types.h:8406
std::optional< std::string > suggestedUsername
Optional. Suggested username for the bot.
Definition Types.h:8422
std::shared_ptr< KeyboardButtonRequestManagedBot > Ptr
Definition Types.h:8407
std::optional< std::string > suggestedName
Optional. Suggested name for the bot.
Definition Types.h:8417
std::int32_t requestId
Signed 32-bit identifier of the request. Must be unique within the message.
Definition Types.h:8412
This object defines the criteria used to request suitable users. Information about the selected users...
Definition Types.h:8434
std::optional< std::int32_t > maxQuantity
Optional. The maximum number of users to be selected; 1-10. Defaults to 1.
Definition Types.h:8458
std::optional< bool > userIsBot
Optional. Pass True to request bots, pass False to request regular users. If not specified,...
Definition Types.h:8447
std::shared_ptr< KeyboardButtonRequestUsers > Ptr
Definition Types.h:8435
std::int32_t requestId
Signed 32-bit identifier of the request that will be received back in the UsersShared object....
Definition Types.h:8441
std::optional< bool > userIsPremium
Optional. Pass True to request premium users, pass False to request non-premium users....
Definition Types.h:8453
std::optional< bool > requestPhoto
Optional. Pass True to request the users' photos.
Definition Types.h:8473
std::optional< bool > requestName
Optional. Pass True to request the users' first and last names.
Definition Types.h:8463
std::optional< bool > requestUsername
Optional. Pass True to request the users' usernames.
Definition Types.h:8468
This object represents a portion of the price for goods or services.
Definition Types.h:8483
std::shared_ptr< LabeledPrice > Ptr
Definition Types.h:8484
std::string label
Portion label.
Definition Types.h:8489
std::int32_t amount
Price of the product in the smallest units of the currency (integer, not float/double)....
Definition Types.h:8497
This object represents a live photo.
Definition Types.h:8563
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Available sizes of the corresponding static photo.
Definition Types.h:8569
std::string fileId
Identifier for the video file which can be used to download or reuse the file.
Definition Types.h:8574
std::int32_t width
Video width as defined by the sender.
Definition Types.h:8585
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:8608
std::int32_t height
Video height as defined by the sender.
Definition Types.h:8590
std::int32_t duration
Duration of the video in seconds as defined by the sender.
Definition Types.h:8595
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:8600
std::shared_ptr< LivePhoto > Ptr
Definition Types.h:8564
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:8580
Describes the physical address of a location.
Definition Types.h:8662
std::optional< std::string > state
Optional. State of the location.
Definition Types.h:8674
std::shared_ptr< LocationAddress > Ptr
Definition Types.h:8663
std::optional< std::string > street
Optional. Street address of the location.
Definition Types.h:8684
std::optional< std::string > city
Optional. City of the location.
Definition Types.h:8679
std::string countryCode
The two-letter ISO 3166-1 alpha-2 country code of the country where the location is located.
Definition Types.h:8669
This object represents a point on the map.
Definition Types.h:8618
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:8646
double latitude
Latitude as defined by the sender.
Definition Types.h:8624
double longitude
Longitude as defined by the sender.
Definition Types.h:8629
std::shared_ptr< Location > Ptr
Definition Types.h:8619
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:8634
std::optional< std::int32_t > proximityAlertRadius
Optional. The maximum distance for proximity alerts about approaching another chat member,...
Definition Types.h:8652
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:8640
This object represents a parameter of the inline keyboard button used to automatically authorize a us...
Definition Types.h:8697
std::shared_ptr< LoginUrl > Ptr
Definition Types.h:8698
std::optional< std::string > forwardText
Optional. New text of the button in forwarded messages.
Definition Types.h:8713
std::optional< std::string > botUsername
Optional. Username of a bot, which will be used for user authorization. See Setting up a bot for more...
Definition Types.h:8721
std::optional< bool > requestWriteAccess
Optional. Pass True to request the permission for your bot to send messages to the user.
Definition Types.h:8726
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:8708
This object contains information about the bot that was created to be managed by the current bot.
Definition Types.h:8737
std::shared_ptr< User > bot
Information about the bot. The bot's token can be fetched using the method getManagedBotToken.
Definition Types.h:8744
std::shared_ptr< ManagedBotCreated > Ptr
Definition Types.h:8738
This object contains information about the creation, token update, or owner update of a bot that is m...
Definition Types.h:8755
std::shared_ptr< User > bot
Information about the bot. Token of the bot can be fetched using the method getManagedBotToken.
Definition Types.h:8767
std::shared_ptr< User > user
User that created the bot.
Definition Types.h:8761
std::shared_ptr< ManagedBotUpdated > Ptr
Definition Types.h:8756
This object describes the position on faces where a mask should be placed by default.
Definition Types.h:8777
double scale
Mask scaling coefficient. For example, 2.0 means double size.
Definition Types.h:8802
double yShift
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom....
Definition Types.h:8797
std::string point
The part of the face relative to which the mask should be placed. One of “forehead”,...
Definition Types.h:8784
std::shared_ptr< MaskPosition > Ptr
Definition Types.h:8778
double xShift
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right....
Definition Types.h:8791
This object describes a message that can be inaccessible to the bot. It can be one of Message Inacces...
Definition Types.h:8813
std::shared_ptr< MaybeInaccessibleMessage > Ptr
Definition Types.h:8814
std::variant< std::shared_ptr< Message >, std::shared_ptr< InaccessibleMessage > > value
Definition Types.h:8816
Represents a menu button, which opens the bot's list of commands.
Definition Types.h:8844
static TGBOT_API const std::string TYPE
Definition Types.h:8847
std::shared_ptr< MenuButtonCommands > Ptr
Definition Types.h:8845
std::string type
Type of the button, must be commands.
Definition Types.h:8852
Describes that no specific value for the menu button was set.
Definition Types.h:8862
std::shared_ptr< MenuButtonDefault > Ptr
Definition Types.h:8863
static TGBOT_API const std::string TYPE
Definition Types.h:8865
std::string type
Type of the button, must be default.
Definition Types.h:8870
This object describes the bot's menu button in a private chat. It should be one of MenuButtonCommands...
Definition Types.h:8829
std::shared_ptr< MenuButton > Ptr
Definition Types.h:8830
std::variant< std::shared_ptr< MenuButtonCommands >, std::shared_ptr< MenuButtonWebApp >, std::shared_ptr< MenuButtonDefault > > value
Definition Types.h:8834
Represents a menu button, which launches a Web App.
Definition Types.h:8880
static TGBOT_API const std::string TYPE
Definition Types.h:8883
std::string type
Type of the button, must be web_app.
Definition Types.h:8888
std::string text
Text on the button.
Definition Types.h:8893
std::shared_ptr< MenuButtonWebApp > Ptr
Definition Types.h:8881
std::shared_ptr< WebAppInfo > webApp
Description of the Web App that will be launched when the user presses the button....
Definition Types.h:8902
This object represents a service message about a change in auto-delete timer settings.
Definition Types.h:9587
std::shared_ptr< MessageAutoDeleteTimerChanged > Ptr
Definition Types.h:9588
std::int32_t messageAutoDeleteTime
New auto-delete time for messages in the chat; in seconds.
Definition Types.h:9593
This object represents one special entity in a text message. For example, hashtags,...
Definition Types.h:9604
std::optional< std::int32_t > unixTime
Optional. For “date_time” only, the Unix time associated with the entity.
Definition Types.h:9677
std::shared_ptr< MessageEntity > Ptr
Definition Types.h:9605
std::int32_t offset
Offset in UTF-16 code units to the start of the entity.
Definition Types.h:9646
std::optional< std::string > customEmojiId
Optional. For “custom_emoji” only, unique identifier of the custom emoji. Use getCustomEmojiStickers ...
Definition Types.h:9672
std::optional< std::string > dateTimeFormat
Optional. For “date_time” only, the string that defines the formatting of the date and time....
Definition Types.h:9683
std::shared_ptr< User > user
Optional. For “text_mention” only, the mentioned user.
Definition Types.h:9661
std::optional< std::string > language
Optional. For “pre” only, the programming language of the entity text.
Definition Types.h:9666
Type type
Type of the entity. Currently, can be “mention” (@username), “hashtag” (hashtag or hashtag@chatuserna...
Definition Types.h:9641
std::optional< std::string > url
Optional. For “text_link” only, URL that will be opened after user taps on the text.
Definition Types.h:9656
std::int32_t length
Length of the entity in UTF-16 code units.
Definition Types.h:9651
This object represents a message.
Definition Types.h:8912
std::shared_ptr< Sticker > sticker
Optional. Message is a sticker, information about the sticker.
Definition Types.h:9184
std::shared_ptr< RichMessage > richMessage
Optional. Message is a rich formatted message.
Definition Types.h:9147
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:9319
std::shared_ptr< GiftInfo > gift
Optional. Service message: a regular gift was sent or received.
Definition Types.h:9381
std::shared_ptr< CommunityChatRemoved > communityChatRemoved
Optional. Service message: chat removed from a Community.
Definition Types.h:9445
std::shared_ptr< Giveaway > giveaway
Optional. The message is a scheduled giveaway message.
Definition Types.h:9491
std::shared_ptr< Animation > animation
Optional. Message is an animation, information about the animation. For backward compatibility,...
Definition Types.h:9153
std::shared_ptr< PassportData > passportData
Optional. Telegram Passport data.
Definition Types.h:9409
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:9130
std::shared_ptr< ForumTopicEdited > forumTopicEdited
Optional. Service message: forum topic edited.
Definition Types.h:9461
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:9073
std::shared_ptr< GiftInfo > giftUpgradeSent
Optional. Service message: upgrade of a gift was purchased after the gift was sent.
Definition Types.h:9391
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:9107
std::shared_ptr< WebAppData > webAppData
Optional. Service message: data sent by a Web App.
Definition Types.h:9571
std::shared_ptr< UsersShared > usersShared
Optional. Service message: users were shared with the bot.
Definition Types.h:9371
std::shared_ptr< ChatBackground > chatBackgroundSet
Optional. Service message: chat background set.
Definition Types.h:9425
std::shared_ptr< GiveawayWinners > giveawayWinners
Optional. A giveaway with public winners was completed.
Definition Types.h:9496
std::shared_ptr< Venue > venue
Optional. Message is a venue, information about the venue. For backward compatibility,...
Definition Types.h:9256
std::shared_ptr< Video > video
Optional. Message is a video, information about the video.
Definition Types.h:9194
std::shared_ptr< TextQuote > quote
Optional. For replies that quote part of the original message, the quoted part of the message.
Definition Types.h:9041
std::shared_ptr< RefundedPayment > refundedPayment
Optional. Message is a service message about a refunded payment, information about the payment....
Definition Types.h:9366
std::shared_ptr< GeneralForumTopicHidden > generalForumTopicHidden
Optional. Service message: the 'General' forum topic hidden.
Definition Types.h:9476
std::shared_ptr< Message > Ptr
Definition Types.h:8913
std::shared_ptr< VideoChatParticipantsInvited > videoChatParticipantsInvited
Optional. Service message: new participants invited to a video chat.
Definition Types.h:9566
std::shared_ptr< Location > location
Optional. Message is a shared location, information about the location.
Definition Types.h:9261
std::shared_ptr< ForumTopicClosed > forumTopicClosed
Optional. Service message: forum topic closed.
Definition Types.h:9466
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:9035
std::shared_ptr< MessageOrigin > forwardOrigin
Optional. Information about the original message for forwarded messages.
Definition Types.h:9009
std::int32_t messageId
Unique message identifier inside this chat; 0 for ephemeral messages. In specific instances (e....
Definition Types.h:8921
std::shared_ptr< ChatBoostAdded > boostAdded
Optional. Service message: user boosted the chat.
Definition Types.h:9420
std::optional< bool > isAutomaticForward
Optional. True, if the message is a channel post that was automatically forwarded to the connected di...
Definition Types.h:9021
std::optional< bool > supergroupChatCreated
Optional. Service message: the supergroup has been created. This field can't be received in a message...
Definition Types.h:9311
std::shared_ptr< PaidMediaInfo > paidMedia
Optional. Message contains paid media; information about the paid media.
Definition Types.h:9174
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:8927
std::optional< std::vector< std::shared_ptr< PhotoSize > > > newChatPhoto
Optional. A chat photo was change to this value.
Definition Types.h:9293
std::shared_ptr< Invoice > invoice
Optional. Message is an invoice for a payment, information about the invoice. More about payments »
Definition Types.h:9354
std::shared_ptr< CommunityChatAdded > communityChatAdded
Optional. Service message: chat added to a Community.
Definition Types.h:9440
std::optional< std::string > mediaGroupId
Optional. The unique identifier inside this chat of a media message group this message belongs to.
Definition Types.h:9101
std::shared_ptr< Story > replyToStory
Optional. For replies to a story, the original story.
Definition Types.h:9046
std::shared_ptr< ChatOwnerLeft > chatOwnerLeft
Optional. Service message: chat owner has left.
Definition Types.h:9278
std::shared_ptr< Audio > audio
Optional. Message is an audio file, information about the file.
Definition Types.h:9158
std::shared_ptr< Contact > contact
Optional. Message is a shared contact, information about the contact.
Definition Types.h:9235
std::shared_ptr< GiveawayCreated > giveawayCreated
Optional. Service message: a scheduled giveaway was created.
Definition Types.h:9486
std::shared_ptr< Story > story
Optional. Message is a forwarded story.
Definition Types.h:9189
std::shared_ptr< VideoChatScheduled > videoChatScheduled
Optional. Service message: video chat scheduled.
Definition Types.h:9551
std::shared_ptr< Checklist > checklist
Optional. Message is a checklist.
Definition Types.h:9230
std::optional< bool > showCaptionAboveMedia
Optional. True, if the caption must be shown above the message media.
Definition Types.h:9220
std::optional< std::int32_t > replyToChecklistTaskId
Optional. Identifier of the specific checklist task that is being replied to.
Definition Types.h:9051
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:9215
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. For text messages, special entities like usernames, URLs, bot commands, etc....
Definition Types.h:9124
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:9067
std::optional< std::string > text
Optional. For text messages, the actual UTF-8 text of the message.
Definition Types.h:9118
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:9029
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:8983
std::shared_ptr< UniqueGiftInfo > uniqueGift
Optional. Service message: a unique gift was sent or received.
Definition Types.h:9386
std::optional< bool > groupChatCreated
Optional. Service message: the group has been created.
Definition Types.h:9303
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:9267
std::optional< std::string > businessConnectionId
Optional. Unique identifier of the business connection from which the message was received....
Definition Types.h:8999
std::shared_ptr< ManagedBotCreated > managedBotCreated
Optional. Service message: user created a bot that will be managed by the current bot.
Definition Types.h:9506
std::shared_ptr< VideoChatStarted > videoChatStarted
Optional. Service message: video chat started.
Definition Types.h:9556
std::shared_ptr< LivePhoto > livePhoto
Optional. Message is a live photo, information about the live photo. For backward compatibility,...
Definition Types.h:9169
std::shared_ptr< ForumTopicReopened > forumTopicReopened
Optional. Service message: forum topic reopened.
Definition Types.h:9471
std::shared_ptr< User > from
Optional. Sender of the message; may be empty for messages sent to channels. For backward compatibili...
Definition Types.h:8939
std::optional< std::int64_t > migrateFromChatId
Optional. The supergroup has been migrated from a group with the specified identifier....
Definition Types.h:9342
std::optional< std::int32_t > editDate
Optional. Date the message was last edited in Unix time.
Definition Types.h:9078
std::shared_ptr< Document > document
Optional. Message is a general file, information about the file.
Definition Types.h:9163
std::shared_ptr< SuccessfulPayment > successfulPayment
Optional. Message is a service message about a successful payment, information about the payment....
Definition Types.h:9360
std::optional< std::int64_t > migrateToChatId
Optional. The group has been migrated to a supergroup with the specified identifier....
Definition Types.h:9333
std::shared_ptr< PaidMessagePriceChanged > paidMessagePriceChanged
Optional. Service message: the price for paid messages has changed in the chat.
Definition Types.h:9511
std::optional< bool > hasMediaSpoiler
Optional. True, if the message media is covered by a spoiler animation.
Definition Types.h:9225
std::shared_ptr< VideoChatEnded > videoChatEnded
Optional. Service message: video chat ended.
Definition Types.h:9561
std::shared_ptr< PollOptionAdded > pollOptionAdded
Optional. Service message: answer option was added to a poll.
Definition Types.h:9516
std::shared_ptr< GiveawayCompleted > giveawayCompleted
Optional. Service message: a giveaway without public winners was completed.
Definition Types.h:9501
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:9404
std::shared_ptr< Poll > poll
Optional. Message is a native poll, information about the poll.
Definition Types.h:9250
std::shared_ptr< DirectMessagePriceChanged > directMessagePriceChanged
Optional. Service message: the price for paid messages in the corresponding direct messages chat of a...
Definition Types.h:9451
std::optional< bool > hasProtectedContent
Optional. True, if the message can't be forwarded.
Definition Types.h:9083
std::shared_ptr< PollOptionDeleted > pollOptionDeleted
Optional. Service message: answer option was deleted from a poll.
Definition Types.h:9521
std::shared_ptr< User > receiverUser
Optional. For ephemeral messages, the user who received the message.
Definition Types.h:8970
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:9113
std::optional< bool > deleteChatPhoto
Optional. Service message: the chat photo was deleted.
Definition Types.h:9298
std::shared_ptr< SuggestedPostApproved > suggestedPostApproved
Optional. Service message: a suggested post was approved.
Definition Types.h:9526
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:9089
std::shared_ptr< SuggestedPostInfo > suggestedPostInfo
Optional. Information about suggested post parameters if the message is a suggested post in a channel...
Definition Types.h:9137
std::shared_ptr< GeneralForumTopicUnhidden > generalForumTopicUnhidden
Optional. Service message: the 'General' forum topic unhidden.
Definition Types.h:9481
std::shared_ptr< SuggestedPostRefunded > suggestedPostRefunded
Optional. Service message: payment for a suggested post was refunded.
Definition Types.h:9546
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:9273
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:8954
std::shared_ptr< MessageAutoDeleteTimerChanged > messageAutoDeleteTimerChanged
Optional. Service message: auto-delete timer settings changed in the chat.
Definition Types.h:9324
std::shared_ptr< SuggestedPostPaid > suggestedPostPaid
Optional. Service message: payment for a suggested post was received.
Definition Types.h:9541
std::shared_ptr< ChatShared > chatShared
Optional. Service message: a chat was shared with the bot.
Definition Types.h:9376
std::optional< std::int32_t > ephemeralMessageId
Optional. For ephemeral messages, identifier of the ephemeral message inside this chat....
Definition Types.h:8977
std::shared_ptr< SuggestedPostApprovalFailed > suggestedPostApprovalFailed
Optional. Service message: approval of a suggested post has failed.
Definition Types.h:9531
std::shared_ptr< Dice > dice
Optional. Message is a dice with random value.
Definition Types.h:9240
std::shared_ptr< DirectMessagesTopic > directMessagesTopic
Optional. Information about the direct messages chat topic that contains the message.
Definition Types.h:8932
std::shared_ptr< ChecklistTasksDone > checklistTasksDone
Optional. Service message: some tasks in a checklist were marked as done or not done.
Definition Types.h:9430
std::shared_ptr< Voice > voice
Optional. Message is a voice message, information about the file.
Definition Types.h:9204
std::optional< std::string > replyToPollOptionId
Optional. Persistent identifier of the specific poll option that is being replied to.
Definition Types.h:9056
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url ...
Definition Types.h:9577
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:8948
std::optional< std::string > newChatTitle
Optional. A chat title was changed to this value.
Definition Types.h:9288
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:9095
std::shared_ptr< ChatOwnerChanged > chatOwnerChanged
Optional. Service message: chat owner has changed.
Definition Types.h:9283
std::shared_ptr< VideoNote > videoNote
Optional. Message is a video note, information about the video message.
Definition Types.h:9199
std::optional< std::string > senderTag
Optional. Tag or custom title of the sender of the message; for supergroups only.
Definition Types.h:8965
std::shared_ptr< ProximityAlertTriggered > proximityAlertTriggered
Optional. Service message: a user in the chat triggered another user's proximity alert while sharing ...
Definition Types.h:9415
std::optional< std::string > effectId
Optional. Unique identifier of the message effect added to the message.
Definition Types.h:9142
std::shared_ptr< Chat > chat
Chat the message belongs to.
Definition Types.h:9004
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:9015
std::shared_ptr< ChecklistTasksAdded > checklistTasksAdded
Optional. Service message: tasks were added to a checklist.
Definition Types.h:9435
std::shared_ptr< User > senderBusinessBot
Optional. The bot that actually sent the message on behalf of the business account....
Definition Types.h:8960
std::shared_ptr< User > viaBot
Optional. Bot through which the message was sent.
Definition Types.h:9061
std::shared_ptr< ForumTopicCreated > forumTopicCreated
Optional. Service message: forum topic created.
Definition Types.h:9456
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:9348
std::optional< std::string > caption
Optional. Caption for the animation, audio, document, paid media, photo, video or voice.
Definition Types.h:9209
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:9397
std::shared_ptr< Game > game
Optional. Message is a game, information about the game. More about games »
Definition Types.h:9245
std::optional< std::string > guestQueryId
Optional. The unique identifier for the guest query. Use this identifier with the method answerGuestQ...
Definition Types.h:8991
std::shared_ptr< SuggestedPostDeclined > suggestedPostDeclined
Optional. Service message: a suggested post was declined.
Definition Types.h:9536
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Message is a photo, available sizes of the photo.
Definition Types.h:9179
This object represents a unique message identifier.
Definition Types.h:9696
std::int32_t messageId
Unique message identifier. In specific instances (e.g., message containing a video sent to a big chat...
Definition Types.h:9705
std::shared_ptr< MessageId > Ptr
Definition Types.h:9697
The message was originally sent to a channel chat.
Definition Types.h:9731
std::optional< std::string > authorSignature
Optional. Signature of the original post author.
Definition Types.h:9759
std::shared_ptr< MessageOriginChannel > Ptr
Definition Types.h:9732
std::int32_t date
Date the message was sent originally in Unix time.
Definition Types.h:9744
static TGBOT_API const std::string TYPE
Definition Types.h:9734
std::int32_t messageId
Unique message identifier inside the chat.
Definition Types.h:9754
std::shared_ptr< Chat > chat
Channel chat to which the message was originally sent.
Definition Types.h:9749
std::string type
Type of the message origin, always “channel”
Definition Types.h:9739
The message was originally sent on behalf of a chat to a group chat.
Definition Types.h:9769
std::optional< std::string > authorSignature
Optional. For messages originally sent by an anonymous chat administrator, original message author si...
Definition Types.h:9793
std::string type
Type of the message origin, always “chat”
Definition Types.h:9777
std::shared_ptr< MessageOriginChat > Ptr
Definition Types.h:9770
std::int32_t date
Date the message was sent originally in Unix time.
Definition Types.h:9782
static TGBOT_API const std::string TYPE
Definition Types.h:9772
std::shared_ptr< Chat > senderChat
Chat that sent the message originally.
Definition Types.h:9787
The message was originally sent by an unknown user.
Definition Types.h:9803
std::shared_ptr< MessageOriginHiddenUser > Ptr
Definition Types.h:9804
static TGBOT_API const std::string TYPE
Definition Types.h:9806
std::int32_t date
Date the message was sent originally in Unix time.
Definition Types.h:9816
std::string senderUserName
Name of the user that sent the message originally.
Definition Types.h:9821
std::string type
Type of the message origin, always “hidden_user”
Definition Types.h:9811
This object describes the origin of a message. It can be one of MessageOriginUser MessageOriginHidden...
Definition Types.h:9716
std::shared_ptr< MessageOrigin > Ptr
Definition Types.h:9717
std::variant< std::shared_ptr< MessageOriginUser >, std::shared_ptr< MessageOriginHiddenUser >, std::shared_ptr< MessageOriginChat >, std::shared_ptr< MessageOriginChannel > > value
Definition Types.h:9721
The message was originally sent by a known user.
Definition Types.h:9831
static TGBOT_API const std::string TYPE
Definition Types.h:9834
std::string type
Type of the message origin, always “user”
Definition Types.h:9839
std::shared_ptr< MessageOriginUser > Ptr
Definition Types.h:9832
std::int32_t date
Date the message was sent originally in Unix time.
Definition Types.h:9844
std::shared_ptr< User > senderUser
User that sent the message originally.
Definition Types.h:9849
This object represents reaction changes on a message with anonymous reactions.
Definition Types.h:9859
std::int32_t messageId
Unique message identifier inside the chat.
Definition Types.h:9870
std::vector< std::shared_ptr< ReactionCount > > reactions
List of reactions that are present on the message.
Definition Types.h:9880
std::int32_t date
Date of the change in Unix time.
Definition Types.h:9875
std::shared_ptr< Chat > chat
The chat containing the message.
Definition Types.h:9865
std::shared_ptr< MessageReactionCountUpdated > Ptr
Definition Types.h:9860
This object represents a change of a reaction on a message performed by a user.
Definition Types.h:9890
std::vector< std::shared_ptr< ReactionType > > newReaction
New list of reaction types that have been set by the user.
Definition Types.h:9926
std::int32_t messageId
Unique identifier of the message inside the chat.
Definition Types.h:9901
std::vector< std::shared_ptr< ReactionType > > oldReaction
Previous list of reaction types that were set by the user.
Definition Types.h:9921
std::shared_ptr< Chat > actorChat
Optional. The chat on behalf of which the reaction was changed, if the user is anonymous.
Definition Types.h:9911
std::shared_ptr< User > user
Optional. The user that changed the reaction, if the user isn't anonymous.
Definition Types.h:9906
std::int32_t date
Date of the change in Unix time.
Definition Types.h:9916
std::shared_ptr< MessageReactionUpdated > Ptr
Definition Types.h:9891
std::shared_ptr< Chat > chat
The chat containing the message the user reacted to.
Definition Types.h:9896
This object represents information about an order.
Definition Types.h:9936
std::optional< std::string > phoneNumber
Optional. User's phone number.
Definition Types.h:9947
std::optional< std::string > name
Optional. User name.
Definition Types.h:9942
std::optional< std::string > email
Optional. User email.
Definition Types.h:9952
std::shared_ptr< ShippingAddress > shippingAddress
Optional. User shipping address.
Definition Types.h:9957
std::shared_ptr< OrderInfo > Ptr
Definition Types.h:9937
This object describes a gift received and owned by a user or a chat. Currently, it can be one of Owne...
Definition Types.h:9968
std::shared_ptr< OwnedGift > Ptr
Definition Types.h:9969
std::variant< std::shared_ptr< OwnedGiftRegular >, std::shared_ptr< OwnedGiftUnique > > value
Definition Types.h:9971
Describes a regular gift owned by a user or a chat.
Definition Types.h:9981
static TGBOT_API const std::string TYPE
Definition Types.h:9984
std::optional< bool > wasRefunded
Optional. True, if the gift was refunded and isn't available anymore.
Definition Types.h:10043
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:10032
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the text.
Definition Types.h:10020
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:10050
std::optional< bool > isPrivate
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise,...
Definition Types.h:10026
std::optional< std::int32_t > uniqueGiftNumber
Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift.
Definition Types.h:10067
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:10000
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:10038
std::string type
Type of the gift, always “regular”
Definition Types.h:9989
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:10061
std::optional< std::string > text
Optional. Text of the message that was added to the gift.
Definition Types.h:10015
std::shared_ptr< User > senderUser
Optional. Sender of the gift if it is a known user.
Definition Types.h:10005
std::shared_ptr< Gift > gift
Information about the regular gift.
Definition Types.h:9994
std::shared_ptr< OwnedGiftRegular > Ptr
Definition Types.h:9982
std::optional< std::int32_t > prepaidUpgradeStarCount
Optional. Number of Telegram Stars that were paid for the ability to upgrade the gift.
Definition Types.h:10055
std::int32_t sendDate
Date the gift was sent in Unix time.
Definition Types.h:10010
Describes a unique gift received and owned by a user or a chat.
Definition Types.h:10077
std::shared_ptr< OwnedGiftUnique > Ptr
Definition Types.h:10078
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:10096
std::string type
Type of the gift, always “unique”
Definition Types.h:10085
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:10130
std::shared_ptr< UniqueGift > gift
Information about the unique gift.
Definition Types.h:10090
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:10112
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:10118
std::int32_t sendDate
Date the gift was sent in Unix time.
Definition Types.h:10106
std::shared_ptr< User > senderUser
Optional. Sender of the gift if it is a known user.
Definition Types.h:10101
static TGBOT_API const std::string TYPE
Definition Types.h:10080
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:10124
Contains the list of gifts received and owned by a user or a chat.
Definition Types.h:10140
std::vector< std::shared_ptr< OwnedGift > > gifts
The list of gifts.
Definition Types.h:10151
std::int32_t totalCount
The total number of gifts owned by the user or the chat.
Definition Types.h:10146
std::shared_ptr< OwnedGifts > Ptr
Definition Types.h:10141
std::optional< std::string > nextOffset
Optional. Offset for the next request. If empty, then there are no more results.
Definition Types.h:10156
This object describes paid media. Currently, it can be one of PaidMediaLivePhoto PaidMediaPhoto PaidM...
Definition Types.h:10167
std::shared_ptr< PaidMedia > Ptr
Definition Types.h:10168
std::variant< std::shared_ptr< PaidMediaLivePhoto >, std::shared_ptr< PaidMediaPhoto >, std::shared_ptr< PaidMediaPreview >, std::shared_ptr< PaidMediaVideo > > value
Definition Types.h:10172
Describes the paid media added to a message.
Definition Types.h:10182
std::int32_t starCount
The number of Telegram Stars that must be paid to buy access to the media.
Definition Types.h:10188
std::vector< std::shared_ptr< PaidMedia > > paidMedia
Information about the paid media.
Definition Types.h:10193
std::shared_ptr< PaidMediaInfo > Ptr
Definition Types.h:10183
The paid media is a live photo.
Definition Types.h:10203
std::shared_ptr< PaidMediaLivePhoto > Ptr
Definition Types.h:10204
std::shared_ptr< LivePhoto > livePhoto
The photo.
Definition Types.h:10216
static TGBOT_API const std::string TYPE
Definition Types.h:10206
std::string type
Type of the paid media, always “live_photo”
Definition Types.h:10211
The paid media is a photo.
Definition Types.h:10226
static TGBOT_API const std::string TYPE
Definition Types.h:10229
std::string type
Type of the paid media, always “photo”
Definition Types.h:10234
std::vector< std::shared_ptr< PhotoSize > > photo
The photo.
Definition Types.h:10239
std::shared_ptr< PaidMediaPhoto > Ptr
Definition Types.h:10227
The paid media isn't available before the payment.
Definition Types.h:10249
std::optional< std::int32_t > duration
Optional. Duration of the media in seconds as defined by the sender.
Definition Types.h:10272
std::optional< std::int32_t > height
Optional. Media height as defined by the sender.
Definition Types.h:10267
std::shared_ptr< PaidMediaPreview > Ptr
Definition Types.h:10250
static TGBOT_API const std::string TYPE
Definition Types.h:10252
std::optional< std::int32_t > width
Optional. Media width as defined by the sender.
Definition Types.h:10262
std::string type
Type of the paid media, always “preview”
Definition Types.h:10257
This object contains information about a paid media purchase.
Definition Types.h:10282
std::shared_ptr< User > from
User who purchased the media.
Definition Types.h:10288
std::string paidMediaPayload
Bot-specified paid media payload.
Definition Types.h:10293
std::shared_ptr< PaidMediaPurchased > Ptr
Definition Types.h:10283
The paid media is a video.
Definition Types.h:10303
std::shared_ptr< PaidMediaVideo > Ptr
Definition Types.h:10304
static TGBOT_API const std::string TYPE
Definition Types.h:10306
std::shared_ptr< Video > video
The video.
Definition Types.h:10316
std::string type
Type of the paid media, always “video”
Definition Types.h:10311
Describes a service message about a change in the price of paid messages within a chat.
Definition Types.h:10326
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:10333
std::shared_ptr< PaidMessagePriceChanged > Ptr
Definition Types.h:10327
Describes Telegram Passport data shared with the bot by the user.
Definition Types.h:10343
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:10350
std::shared_ptr< EncryptedCredentials > credentials
Encrypted credentials required to decrypt the data.
Definition Types.h:10355
std::shared_ptr< PassportData > Ptr
Definition Types.h:10344
Represents an issue in one of the data fields that was provided by the user. The error is considered ...
Definition Types.h:10389
std::string source
Error source, must be data.
Definition Types.h:10397
std::string message
Error message.
Definition Types.h:10419
static TGBOT_API const std::string SOURCE
Definition Types.h:10392
std::shared_ptr< PassportElementErrorDataField > Ptr
Definition Types.h:10390
std::string type
The section of the user's Telegram Passport which has the error, one of “personal_details”,...
Definition Types.h:10404
std::string dataHash
Base64-encoded data hash.
Definition Types.h:10414
std::string fieldName
Name of the data field which has the error.
Definition Types.h:10409
Represents an issue with a document scan. The error is considered resolved when the file with the doc...
Definition Types.h:10430
std::string type
The section of the user's Telegram Passport which has the issue, one of “utility_bill”,...
Definition Types.h:10444
std::string message
Error message.
Definition Types.h:10454
std::shared_ptr< PassportElementErrorFile > Ptr
Definition Types.h:10431
static TGBOT_API const std::string SOURCE
Definition Types.h:10433
std::string fileHash
Base64-encoded file hash.
Definition Types.h:10449
std::string source
Error source, must be file.
Definition Types.h:10438
Represents an issue with a list of scans. The error is considered resolved when the list of files con...
Definition Types.h:10465
std::string message
Error message.
Definition Types.h:10489
std::string source
Error source, must be files.
Definition Types.h:10473
std::shared_ptr< PassportElementErrorFiles > Ptr
Definition Types.h:10466
static TGBOT_API const std::string SOURCE
Definition Types.h:10468
std::string type
The section of the user's Telegram Passport which has the issue, one of “utility_bill”,...
Definition Types.h:10479
std::vector< std::string > fileHashes
List of base64-encoded file hashes.
Definition Types.h:10484
Represents an issue with the front side of a document. The error is considered resolved when the file...
Definition Types.h:10500
std::string fileHash
Base64-encoded hash of the file with the front side of the document.
Definition Types.h:10519
std::string message
Error message.
Definition Types.h:10524
std::shared_ptr< PassportElementErrorFrontSide > Ptr
Definition Types.h:10501
static TGBOT_API const std::string SOURCE
Definition Types.h:10503
std::string source
Error source, must be front_side.
Definition Types.h:10508
std::string type
The section of the user's Telegram Passport which has the issue, one of “passport”,...
Definition Types.h:10514
This object represents an error in the Telegram Passport element which was submitted that should be r...
Definition Types.h:10369
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:10378
std::shared_ptr< PassportElementError > Ptr
Definition Types.h:10370
Represents an issue with the reverse side of a document. The error is considered resolved when the fi...
Definition Types.h:10535
std::string source
Error source, must be reverse_side.
Definition Types.h:10543
std::shared_ptr< PassportElementErrorReverseSide > Ptr
Definition Types.h:10536
static TGBOT_API const std::string SOURCE
Definition Types.h:10538
std::string message
Error message.
Definition Types.h:10559
std::string type
The section of the user's Telegram Passport which has the issue, one of “driver_license”,...
Definition Types.h:10549
std::string fileHash
Base64-encoded hash of the file with the reverse side of the document.
Definition Types.h:10554
Represents an issue with the selfie with a document. The error is considered resolved when the file w...
Definition Types.h:10570
std::string fileHash
Base64-encoded hash of the file with the selfie.
Definition Types.h:10589
static TGBOT_API const std::string SOURCE
Definition Types.h:10573
std::shared_ptr< PassportElementErrorSelfie > Ptr
Definition Types.h:10571
std::string type
The section of the user's Telegram Passport which has the issue, one of “passport”,...
Definition Types.h:10584
std::string source
Error source, must be selfie.
Definition Types.h:10578
std::string message
Error message.
Definition Types.h:10594
Represents an issue with one of the files that constitute the translation of a document....
Definition Types.h:10605
std::string source
Error source, must be translation_file.
Definition Types.h:10613
std::string fileHash
Base64-encoded file hash.
Definition Types.h:10625
std::shared_ptr< PassportElementErrorTranslationFile > Ptr
Definition Types.h:10606
std::string message
Error message.
Definition Types.h:10630
static TGBOT_API const std::string SOURCE
Definition Types.h:10608
std::string type
Type of element of the user's Telegram Passport which has the issue, one of “passport”,...
Definition Types.h:10620
Represents an issue with the translated version of a document. The error is considered resolved when ...
Definition Types.h:10641
static TGBOT_API const std::string SOURCE
Definition Types.h:10644
std::vector< std::string > fileHashes
List of base64-encoded file hashes.
Definition Types.h:10661
std::shared_ptr< PassportElementErrorTranslationFiles > Ptr
Definition Types.h:10642
std::string message
Error message.
Definition Types.h:10666
std::string source
Error source, must be translation_files.
Definition Types.h:10649
std::string type
Type of element of the user's Telegram Passport which has the issue, one of “passport”,...
Definition Types.h:10656
Represents an issue in an unspecified place. The error is considered resolved when new data is added.
Definition Types.h:10677
std::string elementHash
Base64-encoded element hash.
Definition Types.h:10695
std::string message
Error message.
Definition Types.h:10700
static TGBOT_API const std::string SOURCE
Definition Types.h:10680
std::string source
Error source, must be unspecified.
Definition Types.h:10685
std::shared_ptr< PassportElementErrorUnspecified > Ptr
Definition Types.h:10678
std::string type
Type of element of the user's Telegram Passport which has the issue.
Definition Types.h:10690
This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files ar...
Definition Types.h:10711
std::int32_t fileDate
Unix time when the file was uploaded.
Definition Types.h:10733
std::int32_t fileSize
File size in bytes.
Definition Types.h:10728
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:10717
std::shared_ptr< PassportFile > Ptr
Definition Types.h:10712
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:10723
This object represents one size of a photo or a file / sticker thumbnail.
Definition Types.h:10743
std::int32_t width
Photo width.
Definition Types.h:10760
std::int32_t height
Photo height.
Definition Types.h:10765
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:10755
std::optional< std::int32_t > fileSize
Optional. File size in bytes.
Definition Types.h:10770
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:10749
std::shared_ptr< PhotoSize > Ptr
Definition Types.h:10744
This object represents an answer of a user in a non-anonymous poll.
Definition Types.h:10905
std::shared_ptr< User > user
Optional. The user that changed the answer to the poll, if the voter isn't anonymous.
Definition Types.h:10921
std::string pollId
Unique poll identifier.
Definition Types.h:10911
std::shared_ptr< Chat > voterChat
Optional. The chat that changed the answer to the poll, if the voter is anonymous.
Definition Types.h:10916
std::vector< std::int32_t > optionIds
0-based identifiers of chosen answer options. May be empty if the vote was retracted.
Definition Types.h:10926
std::vector< std::string > optionPersistentIds
Persistent identifiers of the chosen answer options. May be empty if the vote was retracted.
Definition Types.h:10932
std::shared_ptr< PollAnswer > Ptr
Definition Types.h:10906
This object contains information about a poll.
Definition Types.h:10780
bool isAnonymous
True, if the poll is anonymous.
Definition Types.h:10817
std::optional< std::int32_t > closeDate
Optional. Point in time (Unix timestamp) when the poll will be automatically closed.
Definition Types.h:10879
bool isClosed
True, if the poll is closed.
Definition Types.h:10812
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:10890
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:10858
std::vector< std::shared_ptr< PollOption > > options
List of poll options.
Definition Types.h:10802
std::optional< std::string > description
Optional. Description of the poll; for polls inside the Message object only.
Definition Types.h:10884
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:10838
bool allowsMultipleAnswers
True, if the poll allows multiple answers.
Definition Types.h:10827
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:10852
std::shared_ptr< PollMedia > explanationMedia
Optional. Media added to the quiz explanation.
Definition Types.h:10869
std::shared_ptr< PollMedia > media
Optional. Media added to the poll description; for polls inside the Message object only.
Definition Types.h:10895
std::optional< std::int32_t > openPeriod
Optional. Amount of time in seconds the poll will be active after creation.
Definition Types.h:10874
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:10864
bool allowsRevoting
True, if the poll allows to change the chosen answer options.
Definition Types.h:10832
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:10797
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:10845
std::string type
Poll type, currently can be “regular” or “quiz”
Definition Types.h:10822
std::shared_ptr< Poll > Ptr
Definition Types.h:10781
std::string question
Poll question, 1-300 characters.
Definition Types.h:10791
std::int32_t totalVoterCount
Total number of users that voted in the poll.
Definition Types.h:10807
At most one of the optional fields can be present in any given object.
Definition Types.h:10942
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Media is a photo, available sizes of the photo.
Definition Types.h:10980
std::shared_ptr< Location > location
Optional. Media is a shared location, information about the location.
Definition Types.h:10975
std::shared_ptr< PollMedia > Ptr
Definition Types.h:10943
std::shared_ptr< Animation > animation
Optional. Media is an animation, information about the animation.
Definition Types.h:10948
std::shared_ptr< Venue > venue
Optional. Media is a venue, information about the venue.
Definition Types.h:10991
std::shared_ptr< Link > link
Optional. The HTTP link attached to the poll option.
Definition Types.h:10965
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:10960
std::shared_ptr< Sticker > sticker
Optional. Media is a sticker, information about the sticker; currently, for poll options only.
Definition Types.h:10986
std::shared_ptr< LivePhoto > livePhoto
Optional. Media is a live photo, information about the live photo.
Definition Types.h:10970
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:10954
std::shared_ptr< Video > video
Optional. Media is a video, information about the video.
Definition Types.h:10996
Describes a service message about an option added to a poll.
Definition Types.h:11061
std::optional< std::vector< std::shared_ptr< MessageEntity > > > optionTextEntities
Optional. Special entities that appear in the option_text.
Definition Types.h:11084
std::string optionPersistentId
Unique identifier of the added option.
Definition Types.h:11074
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:11069
std::string optionText
Option text.
Definition Types.h:11079
std::shared_ptr< PollOptionAdded > Ptr
Definition Types.h:11062
Describes a service message about an option deleted from a poll.
Definition Types.h:11094
std::optional< std::vector< std::shared_ptr< MessageEntity > > > optionTextEntities
Optional. Special entities that appear in the option_text.
Definition Types.h:11117
std::shared_ptr< MaybeInaccessibleMessage > pollMessage
Optional. Message containing the poll from which the option was deleted, if known....
Definition Types.h:11102
std::string optionText
Option text.
Definition Types.h:11112
std::shared_ptr< PollOptionDeleted > Ptr
Definition Types.h:11095
std::string optionPersistentId
Unique identifier of the deleted option.
Definition Types.h:11107
This object contains information about one answer option in a poll.
Definition Types.h:11006
std::string text
Option text, 1-100 characters.
Definition Types.h:11017
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:11051
std::string persistentId
Unique identifier of the option, persistent on option addition and deletion.
Definition Types.h:11012
std::shared_ptr< PollOption > Ptr
Definition Types.h:11007
std::shared_ptr< PollMedia > media
Optional. Media added to the poll option.
Definition Types.h:11028
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:11023
std::int32_t voterCount
Number of users who voted for this option; may be 0 if unknown.
Definition Types.h:11033
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:11045
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:11039
This object contains information about an incoming pre-checkout query.
Definition Types.h:11127
std::int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
Definition Types.h:11151
std::shared_ptr< PreCheckoutQuery > Ptr
Definition Types.h:11128
std::optional< std::string > shippingOptionId
Optional. Identifier of the shipping option chosen by the user.
Definition Types.h:11161
std::shared_ptr< OrderInfo > orderInfo
Optional. Order information provided by the user.
Definition Types.h:11166
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:11156
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
Definition Types.h:11143
std::shared_ptr< User > from
User who sent the query.
Definition Types.h:11138
Describes an inline message to be sent by a user of a Mini App.
Definition Types.h:11176
std::shared_ptr< PreparedInlineMessage > Ptr
Definition Types.h:11177
std::int32_t expirationDate
Expiration date of the prepared message, in Unix time. Expired prepared messages can no longer be use...
Definition Types.h:11188
Describes a keyboard button to be used by a user of a Mini App.
Definition Types.h:11198
std::shared_ptr< PreparedKeyboardButton > Ptr
Definition Types.h:11199
This object represents the content of a service message, sent whenever a user in the chat triggers a ...
Definition Types.h:11215
std::shared_ptr< ProximityAlertTriggered > Ptr
Definition Types.h:11216
std::shared_ptr< User > watcher
User that set the alert.
Definition Types.h:11226
std::shared_ptr< User > traveler
User that triggered the alert.
Definition Types.h:11221
std::int32_t distance
The distance between the users.
Definition Types.h:11231
Represents a reaction added to a message along with the number of times it was added.
Definition Types.h:11241
std::shared_ptr< ReactionType > type
Type of the reaction.
Definition Types.h:11247
std::int32_t totalCount
Number of times the reaction was added.
Definition Types.h:11252
std::shared_ptr< ReactionCount > Ptr
Definition Types.h:11242
The reaction is based on a custom emoji.
Definition Types.h:11278
static TGBOT_API const std::string TYPE
Definition Types.h:11281
std::string customEmojiId
Custom emoji identifier.
Definition Types.h:11291
std::shared_ptr< ReactionTypeCustomEmoji > Ptr
Definition Types.h:11279
std::string type
Type of the reaction, always “custom_emoji”
Definition Types.h:11286
The reaction is based on an emoji.
Definition Types.h:11301
static TGBOT_API const std::string TYPE
Definition Types.h:11304
std::string type
Type of the reaction, always “emoji”
Definition Types.h:11309
std::shared_ptr< ReactionTypeEmoji > Ptr
Definition Types.h:11302
std::string emoji
Reaction emoji. Currently, it can be one of "", "", "", "", "", "", "", "", "", "",...
Definition Types.h:11317
This object describes the type of a reaction. Currently, it can be one of ReactionTypeEmoji ReactionT...
Definition Types.h:11263
std::variant< std::shared_ptr< ReactionTypeEmoji >, std::shared_ptr< ReactionTypeCustomEmoji >, std::shared_ptr< ReactionTypePaid > > value
Definition Types.h:11268
std::shared_ptr< ReactionType > Ptr
Definition Types.h:11264
The reaction is paid.
Definition Types.h:11327
std::string type
Type of the reaction, always “paid”
Definition Types.h:11335
std::shared_ptr< ReactionTypePaid > Ptr
Definition Types.h:11328
static TGBOT_API const std::string TYPE
Definition Types.h:11330
This object contains basic information about a refunded payment.
Definition Types.h:11345
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:11365
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently,...
Definition Types.h:11352
std::int32_t totalAmount
Total refunded price in the smallest units of the currency (integer, not float/double)....
Definition Types.h:11360
std::optional< std::string > providerPaymentChargeId
Optional. Provider payment identifier.
Definition Types.h:11375
std::string telegramPaymentChargeId
Telegram payment identifier.
Definition Types.h:11370
std::shared_ptr< RefundedPayment > Ptr
Definition Types.h:11346
This object represents a custom keyboard with reply options (see Introduction to bots for details and...
Definition Types.h:11387
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:11421
std::shared_ptr< ReplyKeyboardMarkup > Ptr
Definition Types.h:11388
std::vector< std::vector< std::shared_ptr< KeyboardButton > > > keyboard
Array of button rows, each represented by an Array of KeyboardButton objects.
Definition Types.h:11393
std::optional< bool > selective
Optional. Use this parameter if you want to show the keyboard to specific users only....
Definition Types.h:11431
std::optional< bool > isPersistent
Optional. Requests clients to always show the keyboard when the regular keyboard is hidden....
Definition Types.h:11400
std::optional< bool > resizeKeyboard
Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g....
Definition Types.h:11407
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:11415
Upon receiving a message with this object, Telegram clients will remove the current custom keyboard a...
Definition Types.h:11445
bool removeKeyboard
Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you...
Definition Types.h:11453
std::optional< bool > selective
Optional. Use this parameter if you want to remove the keyboard for specific users only....
Definition Types.h:11463
std::shared_ptr< ReplyKeyboardRemove > Ptr
Definition Types.h:11446
Describes reply parameters for the message that is being sent.
Definition Types.h:11473
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:11488
std::optional< std::string > pollOptionId
Optional. Persistent identifier of the specific poll option to be replied to.
Definition Types.h:11539
std::optional< std::int32_t > quotePosition
Optional. Position of the quote in the original message in UTF-16 code units.
Definition Types.h:11529
std::optional< std::string > quote
Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing....
Definition Types.h:11512
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:11503
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:11524
std::optional< std::string > quoteParseMode
Optional. Mode for parsing entities in the quote. See formatting options for more details.
Definition Types.h:11518
std::optional< std::int32_t > checklistTaskId
Optional. Identifier of the specific checklist task to be replied to.
Definition Types.h:11534
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:11496
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:11480
std::shared_ptr< ReplyParameters > Ptr
Definition Types.h:11474
Describes why a request was unsuccessful.
Definition Types.h:11549
std::optional< std::int64_t > migrateToChatId
Optional. The group has been migrated to a supergroup with the specified identifier....
Definition Types.h:11559
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:11565
std::shared_ptr< ResponseParameters > Ptr
Definition Types.h:11550
The withdrawal failed and the transaction was refunded.
Definition Types.h:11592
std::shared_ptr< RevenueWithdrawalStateFailed > Ptr
Definition Types.h:11593
static TGBOT_API const std::string TYPE
Definition Types.h:11595
std::string type
Type of the state, always “failed”
Definition Types.h:11600
This object describes the state of a revenue withdrawal operation. Currently, it can be one of Revenu...
Definition Types.h:11577
std::variant< std::shared_ptr< RevenueWithdrawalStatePending >, std::shared_ptr< RevenueWithdrawalStateSucceeded >, std::shared_ptr< RevenueWithdrawalStateFailed > > value
Definition Types.h:11582
std::shared_ptr< RevenueWithdrawalState > Ptr
Definition Types.h:11578
The withdrawal is in progress.
Definition Types.h:11610
std::shared_ptr< RevenueWithdrawalStatePending > Ptr
Definition Types.h:11611
static TGBOT_API const std::string TYPE
Definition Types.h:11613
std::string type
Type of the state, always “pending”
Definition Types.h:11618
The withdrawal succeeded.
Definition Types.h:11628
std::string type
Type of the state, always “succeeded”
Definition Types.h:11636
std::shared_ptr< RevenueWithdrawalStateSucceeded > Ptr
Definition Types.h:11629
static TGBOT_API const std::string TYPE
Definition Types.h:11631
std::int32_t date
Date the withdrawal was completed in Unix time.
Definition Types.h:11641
std::string url
An HTTPS URL that can be used to see transaction details.
Definition Types.h:11646
A block with an anchor, corresponding to the HTML tag with the attribute name.
Definition Types.h:11683
static TGBOT_API const std::string TYPE
Definition Types.h:11686
std::shared_ptr< RichBlockAnchor > Ptr
Definition Types.h:11684
std::string name
The name of the anchor.
Definition Types.h:11696
std::string type
Type of the block, always “anchor”
Definition Types.h:11691
A block with an animation, corresponding to the HTML tag <video>.
Definition Types.h:11706
std::string type
Type of the block, always “animation”
Definition Types.h:11714
std::optional< bool > hasSpoiler
Optional. True, if the media preview is covered by a spoiler animation.
Definition Types.h:11724
std::shared_ptr< RichBlockAnimation > Ptr
Definition Types.h:11707
static TGBOT_API const std::string TYPE
Definition Types.h:11709
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11729
std::shared_ptr< Animation > animation
The animation.
Definition Types.h:11719
A block with a music file, corresponding to the HTML tag <audio>.
Definition Types.h:11739
std::shared_ptr< RichBlockAudio > Ptr
Definition Types.h:11740
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11757
std::string type
Type of the block, always “audio”
Definition Types.h:11747
static TGBOT_API const std::string TYPE
Definition Types.h:11742
std::shared_ptr< Audio > audio
The audio.
Definition Types.h:11752
A block quotation, corresponding to the HTML tag.
Definition Types.h:11767
std::vector< std::shared_ptr< RichBlock > > blocks
Content of the block.
Definition Types.h:11780
static TGBOT_API const std::string TYPE
Definition Types.h:11770
std::string type
Type of the block, always “blockquote”
Definition Types.h:11775
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:11785
std::shared_ptr< RichBlockBlockQuotation > Ptr
Definition Types.h:11768
Caption of a rich formatted block.
Definition Types.h:11795
std::shared_ptr< RichText > text
Block caption.
Definition Types.h:11801
std::shared_ptr< RichBlockCaption > Ptr
Definition Types.h:11796
std::shared_ptr< RichText > credit
Optional. Block credit which corresponds to the HTML tag .
Definition Types.h:11806
A collage, corresponding to the custom HTML tag <tg-collage>.
Definition Types.h:11816
std::vector< std::shared_ptr< RichBlock > > blocks
Elements of the collage.
Definition Types.h:11829
std::string type
Type of the block, always “collage”
Definition Types.h:11824
static TGBOT_API const std::string TYPE
Definition Types.h:11819
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11834
std::shared_ptr< RichBlockCollage > Ptr
Definition Types.h:11817
An expandable block for details disclosure, corresponding to the HTML tag.
Definition Types.h:11844
std::shared_ptr< RichBlockDetails > Ptr
Definition Types.h:11845
std::string type
Type of the block, always “details”
Definition Types.h:11852
std::shared_ptr< RichText > summary
Always shown summary of the block.
Definition Types.h:11857
std::vector< std::shared_ptr< RichBlock > > blocks
Content of the block.
Definition Types.h:11862
static TGBOT_API const std::string TYPE
Definition Types.h:11847
std::optional< bool > isOpen
Optional. True, if the content of the block is visible by default.
Definition Types.h:11867
A divider, corresponding to the HTML tag .
Definition Types.h:11877
std::string type
Type of the block, always “divider”
Definition Types.h:11885
static TGBOT_API const std::string TYPE
Definition Types.h:11880
std::shared_ptr< RichBlockDivider > Ptr
Definition Types.h:11878
This object represents a block in a rich formatted message. Currently, it can be any of the following...
Definition Types.h:11661
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< RichBlockPullQuotation >, std::shared_ptr< RichBlockCollage >, std::shared_ptr< RichBlockSlideshow >, std::shared_ptr< RichBlockTable >, std::shared_ptr< RichBlockDetails >, std::shared_ptr< RichBlockMap >, std::shared_ptr< RichBlockAnimation >, std::shared_ptr< RichBlockAudio >, std::shared_ptr< RichBlockPhoto >, std::shared_ptr< RichBlockVideo >, std::shared_ptr< RichBlockVoiceNote >, std::shared_ptr< RichBlockThinking > > value
Definition Types.h:11673
std::shared_ptr< RichBlock > Ptr
Definition Types.h:11662
A list of blocks, corresponding to the HTML tag.
Definition Types.h:11918
static TGBOT_API const std::string TYPE
Definition Types.h:11921
std::vector< std::shared_ptr< RichBlockListItem > > items
Items of the list.
Definition Types.h:11931
std::string type
Type of the block, always “list”
Definition Types.h:11926
std::shared_ptr< RichBlockList > Ptr
Definition Types.h:11919
An item of a list.
Definition Types.h:11941
std::string label
Label of the item.
Definition Types.h:11947
std::shared_ptr< RichBlockListItem > Ptr
Definition Types.h:11942
std::optional< bool > hasCheckbox
Optional. True, if the item has a checkbox.
Definition Types.h:11957
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:11974
std::vector< std::shared_ptr< RichBlock > > blocks
The content of the item.
Definition Types.h:11952
std::optional< bool > isChecked
Optional. True, if the item has a checked checkbox.
Definition Types.h:11962
std::optional< std::int32_t > value
Optional. For ordered lists, the numeric value of the item label.
Definition Types.h:11967
A block with a map, corresponding to the custom HTML tag <tg-map>.
Definition Types.h:11984
std::shared_ptr< Location > location
Location of the center of the map.
Definition Types.h:11997
static TGBOT_API const std::string TYPE
Definition Types.h:11987
std::shared_ptr< RichBlockMap > Ptr
Definition Types.h:11985
std::int32_t zoom
Map zoom level; 13-20.
Definition Types.h:12002
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:12017
std::int32_t width
Expected width of the map.
Definition Types.h:12007
std::string type
Type of the block, always “map”
Definition Types.h:11992
std::int32_t height
Expected height of the map.
Definition Types.h:12012
A block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag <tg-math...
Definition Types.h:12028
std::string type
Type of the block, always “mathematical_expression”
Definition Types.h:12036
std::shared_ptr< RichBlockMathematicalExpression > Ptr
Definition Types.h:12029
static TGBOT_API const std::string TYPE
Definition Types.h:12031
std::string expression
The mathematical expression in LaTeX format.
Definition Types.h:12041
A text paragraph, corresponding to the HTML tag.
Definition Types.h:12051
std::shared_ptr< RichBlockParagraph > Ptr
Definition Types.h:12052
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:12064
static TGBOT_API const std::string TYPE
Definition Types.h:12054
std::string type
Type of the block, always “paragraph”
Definition Types.h:12059
A block with a photo, corresponding to the HTML tag.
Definition Types.h:12074
std::optional< bool > hasSpoiler
Optional. True, if the media preview is covered by a spoiler animation.
Definition Types.h:12092
static TGBOT_API const std::string TYPE
Definition Types.h:12077
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:12097
std::shared_ptr< RichBlockPhoto > Ptr
Definition Types.h:12075
std::string type
Type of the block, always “photo”
Definition Types.h:12082
std::vector< std::shared_ptr< PhotoSize > > photo
Available sizes of the photo.
Definition Types.h:12087
A preformatted text block, corresponding to the nested HTML tags.
Definition Types.h:12107
static TGBOT_API const std::string TYPE
Definition Types.h:12110
std::shared_ptr< RichBlockPreformatted > Ptr
Definition Types.h:12108
std::string type
Type of the block, always “pre”
Definition Types.h:12115
std::optional< std::string > language
Optional. The programming language of the text.
Definition Types.h:12125
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:12120
A quotation with centered text, loosely corresponding to the HTML tag <aside>.
Definition Types.h:12135
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:12148
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:12153
std::shared_ptr< RichBlockPullQuotation > Ptr
Definition Types.h:12136
static TGBOT_API const std::string TYPE
Definition Types.h:12138
std::string type
Type of the block, always “pullquote”
Definition Types.h:12143
A section heading, corresponding to the HTML tags.
Definition Types.h:12163
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:12176
std::shared_ptr< RichBlockSectionHeading > Ptr
Definition Types.h:12164
static TGBOT_API const std::string TYPE
Definition Types.h:12166
std::string type
Type of the block, always “heading”
Definition Types.h:12171
std::int32_t size
Relative size of the text font; 1-6, 1 is the largest, 6 is the smallest.
Definition Types.h:12181
A slideshow, corresponding to the custom HTML tag <tg-slideshow>.
Definition Types.h:12191
std::vector< std::shared_ptr< RichBlock > > blocks
Elements of the slideshow.
Definition Types.h:12204
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:12209
std::string type
Type of the block, always “slideshow”
Definition Types.h:12199
static TGBOT_API const std::string TYPE
Definition Types.h:12194
std::shared_ptr< RichBlockSlideshow > Ptr
Definition Types.h:12192
Cell in a table.
Definition Types.h:12257
std::string align
Horizontal cell content alignment. Currently, must be one of “left”, “center”, or “right”.
Definition Types.h:12284
std::optional< std::int32_t > colspan
Optional. The number of columns the cell spans if it is bigger than 1.
Definition Types.h:12273
std::shared_ptr< RichBlockTableCell > Ptr
Definition Types.h:12258
std::optional< bool > isHeader
Optional. True, if the cell is a header cell.
Definition Types.h:12268
std::string valign
Vertical cell content alignment. Currently, must be one of “top”, “middle”, or “bottom”.
Definition Types.h:12289
std::optional< std::int32_t > rowspan
Optional. The number of rows the cell spans if it is bigger than 1.
Definition Types.h:12278
std::shared_ptr< RichText > text
Optional. Text in the cell. If omitted, then the cell is invisible.
Definition Types.h:12263
A table, corresponding to the HTML tag.
Definition Types.h:12219
std::vector< std::vector< std::shared_ptr< RichBlockTableCell > > > cells
Cells of the table.
Definition Types.h:12232
std::shared_ptr< RichText > caption
Optional. Caption of the table.
Definition Types.h:12247
std::string type
Type of the block, always “table”
Definition Types.h:12227
std::optional< bool > isStriped
Optional. True, if the table is striped.
Definition Types.h:12242
static TGBOT_API const std::string TYPE
Definition Types.h:12222
std::shared_ptr< RichBlockTable > Ptr
Definition Types.h:12220
std::optional< bool > isBordered
Optional. True, if the table has borders.
Definition Types.h:12237
A block with a “Thinking…” placeholder, corresponding to the custom HTML tag <tg-thinking>....
Definition Types.h:12302
std::shared_ptr< RichBlockThinking > Ptr
Definition Types.h:12303
std::string type
Type of the block, always “thinking”
Definition Types.h:12310
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:12316
static TGBOT_API const std::string TYPE
Definition Types.h:12305
A block with a video, corresponding to the HTML tag <video>.
Definition Types.h:12326
std::shared_ptr< RichBlockVideo > Ptr
Definition Types.h:12327
static TGBOT_API const std::string TYPE
Definition Types.h:12329
std::string type
Type of the block, always “video”
Definition Types.h:12334
std::optional< bool > hasSpoiler
Optional. True, if the media preview is covered by a spoiler animation.
Definition Types.h:12344
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:12349
std::shared_ptr< Video > video
The video.
Definition Types.h:12339
A block with a voice note, corresponding to the HTML tag <audio>.
Definition Types.h:12359
static TGBOT_API const std::string TYPE
Definition Types.h:12362
std::shared_ptr< RichBlockVoiceNote > Ptr
Definition Types.h:12360
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:12377
std::shared_ptr< Voice > voiceNote
The voice note.
Definition Types.h:12372
std::string type
Type of the block, always “voice_note”
Definition Types.h:12367
Rich formatted message.
Definition Types.h:12387
std::shared_ptr< RichMessage > Ptr
Definition Types.h:12388
std::optional< bool > isRtl
Optional. True, if the rich message must be shown right-to-left.
Definition Types.h:12398
std::vector< std::shared_ptr< RichBlock > > blocks
Content of the message.
Definition Types.h:12393
std::string type
Type of the rich text, always “anchor”
Definition Types.h:12445
std::shared_ptr< RichTextAnchor > Ptr
Definition Types.h:12438
static TGBOT_API const std::string TYPE
Definition Types.h:12440
std::string name
The name of the anchor.
Definition Types.h:12450
A text with a bank card number.
Definition Types.h:12489
std::shared_ptr< RichTextBankCardNumber > Ptr
Definition Types.h:12490
static TGBOT_API const std::string TYPE
Definition Types.h:12492
std::shared_ptr< RichText > text
The text.
Definition Types.h:12502
std::string bankCardNumber
The bank card number.
Definition Types.h:12507
std::string type
Type of the rich text, always “bank_card_number”
Definition Types.h:12497
A bold text.
Definition Types.h:12517
std::shared_ptr< RichTextBold > Ptr
Definition Types.h:12518
static TGBOT_API const std::string TYPE
Definition Types.h:12520
std::shared_ptr< RichText > text
The text.
Definition Types.h:12530
std::string type
Type of the rich text, always “bold”
Definition Types.h:12525
static TGBOT_API const std::string TYPE
Definition Types.h:12543
std::string botCommand
The bot command.
Definition Types.h:12558
std::shared_ptr< RichTextBotCommand > Ptr
Definition Types.h:12541
std::string type
Type of the rich text, always “bot_command”
Definition Types.h:12548
std::shared_ptr< RichText > text
The text.
Definition Types.h:12553
static TGBOT_API const std::string TYPE
Definition Types.h:12571
std::string cashtag
The cashtag.
Definition Types.h:12586
std::shared_ptr< RichText > text
The text.
Definition Types.h:12581
std::string type
Type of the rich text, always “cashtag”
Definition Types.h:12576
std::shared_ptr< RichTextCashtag > Ptr
Definition Types.h:12569
A monowidth text.
Definition Types.h:12596
static TGBOT_API const std::string TYPE
Definition Types.h:12599
std::shared_ptr< RichTextCode > Ptr
Definition Types.h:12597
std::string type
Type of the rich text, always “code”
Definition Types.h:12604
std::shared_ptr< RichText > text
The text.
Definition Types.h:12609
A custom emoji.
Definition Types.h:12619
std::string type
Type of the rich text, always “custom_emoji”
Definition Types.h:12627
std::string alternativeText
Alternative emoji for the custom emoji.
Definition Types.h:12638
std::string customEmojiId
Unique identifier of the custom emoji. Use getCustomEmojiStickers to get full information about the s...
Definition Types.h:12633
std::shared_ptr< RichTextCustomEmoji > Ptr
Definition Types.h:12620
static TGBOT_API const std::string TYPE
Definition Types.h:12622
Formatted date and time.
Definition Types.h:12648
static TGBOT_API const std::string TYPE
Definition Types.h:12651
std::string dateTimeFormat
The string that defines the formatting of the date and time. See date-time entity formatting for more...
Definition Types.h:12672
std::shared_ptr< RichTextDateTime > Ptr
Definition Types.h:12649
std::shared_ptr< RichText > text
The text.
Definition Types.h:12661
std::int32_t unixTime
The Unix time associated with the entity.
Definition Types.h:12666
std::string type
Type of the rich text, always “date_time”
Definition Types.h:12656
A text with an email address.
Definition Types.h:12682
std::shared_ptr< RichTextEmailAddress > Ptr
Definition Types.h:12683
std::string emailAddress
The email address.
Definition Types.h:12700
static TGBOT_API const std::string TYPE
Definition Types.h:12685
std::string type
Type of the rich text, always “email_address”
Definition Types.h:12690
std::shared_ptr< RichText > text
The text.
Definition Types.h:12695
static TGBOT_API const std::string TYPE
Definition Types.h:12713
std::shared_ptr< RichTextHashtag > Ptr
Definition Types.h:12711
std::string type
Type of the rich text, always “hashtag”
Definition Types.h:12718
std::string hashtag
The hashtag.
Definition Types.h:12728
std::shared_ptr< RichText > text
The text.
Definition Types.h:12723
This object represents a rich formatted text. Currently, it can be either a String for plain text,...
Definition Types.h:12414
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< RichTextAnchor >, std::shared_ptr< RichTextAnchorLink >, std::shared_ptr< RichTextReference >, std::shared_ptr< RichTextReferenceLink > > value
Definition Types.h:12427
std::shared_ptr< RichText > Ptr
Definition Types.h:12415
An italicized text.
Definition Types.h:12738
std::string type
Type of the rich text, always “italic”
Definition Types.h:12746
static TGBOT_API const std::string TYPE
Definition Types.h:12741
std::shared_ptr< RichText > text
The text.
Definition Types.h:12751
std::shared_ptr< RichTextItalic > Ptr
Definition Types.h:12739
A marked text.
Definition Types.h:12761
static TGBOT_API const std::string TYPE
Definition Types.h:12764
std::shared_ptr< RichText > text
The text.
Definition Types.h:12774
std::string type
Type of the rich text, always “marked”
Definition Types.h:12769
std::shared_ptr< RichTextMarked > Ptr
Definition Types.h:12762
A mathematical expression.
Definition Types.h:12784
std::string type
Type of the rich text, always “mathematical_expression”
Definition Types.h:12792
std::string expression
The expression in LaTeX format.
Definition Types.h:12797
std::shared_ptr< RichTextMathematicalExpression > Ptr
Definition Types.h:12785
static TGBOT_API const std::string TYPE
Definition Types.h:12787
A mention by a username.
Definition Types.h:12807
static TGBOT_API const std::string TYPE
Definition Types.h:12810
std::shared_ptr< RichTextMention > Ptr
Definition Types.h:12808
std::string username
The username.
Definition Types.h:12825
std::shared_ptr< RichText > text
The text.
Definition Types.h:12820
std::string type
Type of the rich text, always “mention”
Definition Types.h:12815
A text with a phone number.
Definition Types.h:12835
std::shared_ptr< RichText > text
The text.
Definition Types.h:12848
std::shared_ptr< RichTextPhoneNumber > Ptr
Definition Types.h:12836
std::string phoneNumber
The phone number.
Definition Types.h:12853
std::string type
Type of the rich text, always “phone_number”
Definition Types.h:12843
static TGBOT_API const std::string TYPE
Definition Types.h:12838
std::string type
Type of the rich text, always “reference”
Definition Types.h:12871
std::string name
The name of the reference.
Definition Types.h:12881
static TGBOT_API const std::string TYPE
Definition Types.h:12866
std::shared_ptr< RichText > text
Text of the reference.
Definition Types.h:12876
std::shared_ptr< RichTextReference > Ptr
Definition Types.h:12864
A text covered by a spoiler.
Definition Types.h:12919
static TGBOT_API const std::string TYPE
Definition Types.h:12922
std::string type
Type of the rich text, always “spoiler”
Definition Types.h:12927
std::shared_ptr< RichTextSpoiler > Ptr
Definition Types.h:12920
std::shared_ptr< RichText > text
The text.
Definition Types.h:12932
A strikethrough text.
Definition Types.h:12942
static TGBOT_API const std::string TYPE
Definition Types.h:12945
std::string type
Type of the rich text, always “strikethrough”
Definition Types.h:12950
std::shared_ptr< RichText > text
The text.
Definition Types.h:12955
std::shared_ptr< RichTextStrikethrough > Ptr
Definition Types.h:12943
A subscript text.
Definition Types.h:12965
std::string type
Type of the rich text, always “subscript”
Definition Types.h:12973
std::shared_ptr< RichText > text
The text.
Definition Types.h:12978
static TGBOT_API const std::string TYPE
Definition Types.h:12968
std::shared_ptr< RichTextSubscript > Ptr
Definition Types.h:12966
A superscript text.
Definition Types.h:12988
std::shared_ptr< RichText > text
The text.
Definition Types.h:13001
static TGBOT_API const std::string TYPE
Definition Types.h:12991
std::string type
Type of the rich text, always “superscript”
Definition Types.h:12996
std::shared_ptr< RichTextSuperscript > Ptr
Definition Types.h:12989
A mention of a Telegram user by their identifier.
Definition Types.h:13011
static TGBOT_API const std::string TYPE
Definition Types.h:13014
std::string type
Type of the rich text, always “text_mention”
Definition Types.h:13019
std::shared_ptr< RichText > text
The text.
Definition Types.h:13024
std::shared_ptr< RichTextTextMention > Ptr
Definition Types.h:13012
std::shared_ptr< User > user
The mentioned user.
Definition Types.h:13029
An underlined text.
Definition Types.h:13039
std::shared_ptr< RichText > text
The text.
Definition Types.h:13052
std::string type
Type of the rich text, always “underline”
Definition Types.h:13047
std::shared_ptr< RichTextUnderline > Ptr
Definition Types.h:13040
static TGBOT_API const std::string TYPE
Definition Types.h:13042
A text with a link.
Definition Types.h:13062
std::string type
Type of the rich text, always “url”
Definition Types.h:13070
static TGBOT_API const std::string TYPE
Definition Types.h:13065
std::string url
URL of the link.
Definition Types.h:13080
std::shared_ptr< RichText > text
The text.
Definition Types.h:13075
std::shared_ptr< RichTextUrl > Ptr
Definition Types.h:13063
Describes an inline message sent by a guest bot.
Definition Types.h:13090
std::shared_ptr< SentGuestMessage > Ptr
Definition Types.h:13091
std::string inlineMessageId
Identifier of the sent inline message.
Definition Types.h:13096
Describes an inline message sent by a Web App on behalf of a user.
Definition Types.h:13106
std::optional< std::string > inlineMessageId
Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attach...
Definition Types.h:13113
std::shared_ptr< SentWebAppMessage > Ptr
Definition Types.h:13107
This object contains information about a user that was shared with the bot using a KeyboardButtonRequ...
Definition Types.h:13124
std::optional< std::string > firstName
Optional. First name of the user, if the name was requested by the bot.
Definition Types.h:13140
std::int64_t userId
Identifier of the shared user. This number may have more than 32 significant bits and some programmin...
Definition Types.h:13135
std::optional< std::string > lastName
Optional. Last name of the user, if the name was requested by the bot.
Definition Types.h:13145
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:13155
std::shared_ptr< SharedUser > Ptr
Definition Types.h:13125
std::optional< std::string > username
Optional. Username of the user, if the username was requested by the bot.
Definition Types.h:13150
This object represents a shipping address.
Definition Types.h:13165
std::string streetLine2
Second line for the address.
Definition Types.h:13191
std::string countryCode
Two-letter ISO 3166-1 alpha-2 country code.
Definition Types.h:13171
std::string state
State, if applicable.
Definition Types.h:13176
std::string postCode
Address post code.
Definition Types.h:13196
std::string city
City.
Definition Types.h:13181
std::shared_ptr< ShippingAddress > Ptr
Definition Types.h:13166
std::string streetLine1
First line for the address.
Definition Types.h:13186
This object represents one shipping option.
Definition Types.h:13206
std::vector< std::shared_ptr< LabeledPrice > > prices
List of price portions.
Definition Types.h:13222
std::string title
Option title.
Definition Types.h:13217
std::shared_ptr< ShippingOption > Ptr
Definition Types.h:13207
This object contains information about an incoming shipping query.
Definition Types.h:13232
std::shared_ptr< ShippingAddress > shippingAddress
User specified shipping address.
Definition Types.h:13253
std::shared_ptr< ShippingQuery > Ptr
Definition Types.h:13233
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:13248
std::shared_ptr< User > from
User who sent the query.
Definition Types.h:13243
Describes an amount of Telegram Stars.
Definition Types.h:13263
std::shared_ptr< StarAmount > Ptr
Definition Types.h:13264
std::int32_t amount
Integer amount of Telegram Stars, rounded to 0; can be negative.
Definition Types.h:13269
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:13275
Describes a Telegram Star transaction. Note that if the buyer initiates a chargeback with the payment...
Definition Types.h:13288
std::shared_ptr< TransactionPartner > source
Optional. Source of an incoming transaction (e.g., a user purchasing goods or services,...
Definition Types.h:13319
std::shared_ptr< StarTransaction > Ptr
Definition Types.h:13289
std::int32_t amount
Integer amount of Telegram Stars transferred by the transaction.
Definition Types.h:13302
std::int32_t date
Date the transaction was created in Unix time.
Definition Types.h:13313
std::shared_ptr< TransactionPartner > receiver
Optional. Receiver of an outgoing transaction (e.g., a user for a purchase refund,...
Definition Types.h:13325
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:13308
Contains a list of Telegram Star transactions.
Definition Types.h:13335
std::vector< std::shared_ptr< StarTransaction > > transactions
The list of transactions.
Definition Types.h:13341
std::shared_ptr< StarTransactions > Ptr
Definition Types.h:13336
This object represents a sticker.
Definition Types.h:13351
Type type
Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is i...
Definition Types.h:13372
std::optional< std::string > emoji
Optional. Emoji associated with the sticker.
Definition Types.h:13402
std::int32_t width
Sticker width.
Definition Types.h:13377
std::shared_ptr< File > premiumAnimation
Optional. For premium regular stickers, premium animation for the sticker.
Definition Types.h:13412
std::optional< std::string > setName
Optional. Name of the sticker set to which the sticker belongs.
Definition Types.h:13407
std::shared_ptr< MaskPosition > maskPosition
Optional. For mask stickers, the position where the mask should be placed.
Definition Types.h:13417
bool isVideo
True, if the sticker is a video sticker.
Definition Types.h:13392
std::int32_t height
Sticker height.
Definition Types.h:13382
std::optional< std::string > customEmojiId
Optional. For custom emoji stickers, unique identifier of the custom emoji.
Definition Types.h:13422
bool isAnimated
True, if the sticker is animated.
Definition Types.h:13387
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:13365
std::shared_ptr< Sticker > Ptr
Definition Types.h:13352
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:13429
std::optional< std::int32_t > fileSize
Optional. File size in bytes.
Definition Types.h:13434
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:13359
std::shared_ptr< PhotoSize > thumbnail
Optional. Sticker thumbnail in the .WEBP or .JPG format.
Definition Types.h:13397
This object represents a sticker set.
Definition Types.h:13447
std::vector< std::shared_ptr< Sticker > > stickers
List of all set stickers.
Definition Types.h:13470
std::string name
Sticker set name.
Definition Types.h:13455
std::shared_ptr< PhotoSize > thumbnail
Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format.
Definition Types.h:13475
Type stickerType
Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”
Definition Types.h:13465
std::string title
Sticker set title.
Definition Types.h:13460
std::shared_ptr< StickerSet > Ptr
Definition Types.h:13448
Describes a clickable area on a story media.
Definition Types.h:13509
std::shared_ptr< StoryAreaPosition > position
Position of the area.
Definition Types.h:13515
std::shared_ptr< StoryAreaType > type
Type of the area.
Definition Types.h:13520
std::shared_ptr< StoryArea > Ptr
Definition Types.h:13510
Describes the position of a clickable area within a story.
Definition Types.h:13530
double heightPercentage
The height of the area's rectangle, as a percentage of the media height.
Definition Types.h:13551
double yPercentage
The ordinate of the area's center, as a percentage of the media height.
Definition Types.h:13541
std::shared_ptr< StoryAreaPosition > Ptr
Definition Types.h:13531
double cornerRadiusPercentage
The radius of the rectangle corner rounding, as a percentage of the media width.
Definition Types.h:13561
double widthPercentage
The width of the area's rectangle, as a percentage of the media width.
Definition Types.h:13546
double rotationAngle
The clockwise rotation angle of the rectangle, in degrees; 0-360.
Definition Types.h:13556
double xPercentage
The abscissa of the area's center, as a percentage of the media width.
Definition Types.h:13536
Describes the type of a clickable area on a story. Currently, it can be one of StoryAreaTypeLocation ...
Definition Types.h:13573
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:13579
std::shared_ptr< StoryAreaType > Ptr
Definition Types.h:13574
Describes a story area pointing to an HTTP or tg:// link. Currently, a story can have up to 3 link ar...
Definition Types.h:13590
std::string type
Type of the area, always “link”
Definition Types.h:13598
static TGBOT_API const std::string TYPE
Definition Types.h:13593
std::shared_ptr< StoryAreaTypeLink > Ptr
Definition Types.h:13591
std::string url
HTTP or tg:// URL to be opened when the area is clicked.
Definition Types.h:13603
Describes a story area pointing to a location. Currently, a story can have up to 10 location areas.
Definition Types.h:13614
double longitude
Location longitude in degrees.
Definition Types.h:13632
static TGBOT_API const std::string TYPE
Definition Types.h:13617
std::shared_ptr< LocationAddress > address
Optional. Address of the location.
Definition Types.h:13637
std::string type
Type of the area, always “location”
Definition Types.h:13622
double latitude
Location latitude in degrees.
Definition Types.h:13627
std::shared_ptr< StoryAreaTypeLocation > Ptr
Definition Types.h:13615
Describes a story area pointing to a suggested reaction. Currently, a story can have up to 5 suggeste...
Definition Types.h:13648
std::shared_ptr< StoryAreaTypeSuggestedReaction > Ptr
Definition Types.h:13649
std::string type
Type of the area, always “suggested_reaction”
Definition Types.h:13656
std::shared_ptr< ReactionType > reactionType
Type of the reaction.
Definition Types.h:13661
static TGBOT_API const std::string TYPE
Definition Types.h:13651
std::optional< bool > isFlipped
Optional. Pass True if reaction area corner is flipped.
Definition Types.h:13671
std::optional< bool > isDark
Optional. Pass True if the reaction area has a dark background.
Definition Types.h:13666
Describes a story area pointing to a unique gift. Currently, a story can have at most 1 unique gift a...
Definition Types.h:13682
static TGBOT_API const std::string TYPE
Definition Types.h:13685
std::shared_ptr< StoryAreaTypeUniqueGift > Ptr
Definition Types.h:13683
std::string name
Unique name of the gift.
Definition Types.h:13695
std::string type
Type of the area, always “unique_gift”
Definition Types.h:13690
Describes a story area containing weather information. Currently, a story can have up to 3 weather ar...
Definition Types.h:13706
std::string type
Type of the area, always “weather”
Definition Types.h:13714
std::int32_t backgroundColor
A color of the area background in the ARGB format.
Definition Types.h:13729
static TGBOT_API const std::string TYPE
Definition Types.h:13709
double temperature
Temperature, in degree Celsius.
Definition Types.h:13719
std::string emoji
Emoji representing the weather.
Definition Types.h:13724
std::shared_ptr< StoryAreaTypeWeather > Ptr
Definition Types.h:13707
This object represents a story.
Definition Types.h:13488
std::shared_ptr< Chat > chat
Chat that posted the story.
Definition Types.h:13494
std::shared_ptr< Story > Ptr
Definition Types.h:13489
This object contains basic information about a successful payment. Note that if the buyer initiates a...
Definition Types.h:13741
std::string providerPaymentChargeId
Provider payment identifier.
Definition Types.h:13795
std::optional< bool > isFirstRecurring
Optional. True, if the payment is the first payment for a subscription.
Definition Types.h:13775
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:13760
std::string telegramPaymentChargeId
Telegram payment identifier.
Definition Types.h:13790
std::int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
Definition Types.h:13755
std::optional< std::int32_t > subscriptionExpirationDate
Optional. Expiration date of the subscription, in Unix time; for recurring payments only.
Definition Types.h:13765
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
Definition Types.h:13747
std::shared_ptr< OrderInfo > orderInfo
Optional. Order information provided by the user.
Definition Types.h:13785
std::optional< std::string > shippingOptionId
Optional. Identifier of the shipping option chosen by the user.
Definition Types.h:13780
std::shared_ptr< SuccessfulPayment > Ptr
Definition Types.h:13742
std::optional< bool > isRecurring
Optional. True, if the payment is a recurring payment for a subscription.
Definition Types.h:13770
Describes a service message about the failed approval of a suggested post. Currently,...
Definition Types.h:13806
std::shared_ptr< SuggestedPostPrice > price
Expected price of the post.
Definition Types.h:13819
std::shared_ptr< SuggestedPostApprovalFailed > Ptr
Definition Types.h:13807
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post whose approval has failed. Note that the Message obje...
Definition Types.h:13814
Describes a service message about the approval of a suggested post.
Definition Types.h:13829
std::shared_ptr< SuggestedPostApproved > Ptr
Definition Types.h:13830
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
Definition Types.h:13836
std::int32_t sendDate
Date when the post will be published.
Definition Types.h:13846
std::shared_ptr< SuggestedPostPrice > price
Optional. Amount paid for the post.
Definition Types.h:13841
Describes a service message about the rejection of a suggested post.
Definition Types.h:13856
std::shared_ptr< SuggestedPostDeclined > Ptr
Definition Types.h:13857
std::optional< std::string > comment
Optional. Comment with which the post was declined.
Definition Types.h:13868
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
Definition Types.h:13863
Contains information about a suggested post.
Definition Types.h:13878
std::string state
State of the suggested post. Currently, it can be one of “pending”, “approved”, “declined”.
Definition Types.h:13885
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:13897
std::shared_ptr< SuggestedPostPrice > price
Optional. Proposed price of the post. If the field is omitted, then the post is unpaid.
Definition Types.h:13890
std::shared_ptr< SuggestedPostInfo > Ptr
Definition Types.h:13879
Describes a service message about a successful payment for a suggested post.
Definition Types.h:13907
std::shared_ptr< SuggestedPostPaid > Ptr
Definition Types.h:13908
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:13932
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:13920
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:13926
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
Definition Types.h:13914
Contains parameters of a post that is being suggested by the bot.
Definition Types.h:13942
std::shared_ptr< SuggestedPostParameters > Ptr
Definition Types.h:13943
std::shared_ptr< SuggestedPostPrice > price
Optional. Proposed price for the post. If the field is omitted, then the post is unpaid.
Definition Types.h:13948
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:13956
Describes the price of a suggested post.
Definition Types.h:13966
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:13973
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:13981
std::shared_ptr< SuggestedPostPrice > Ptr
Definition Types.h:13967
Describes a service message about a payment refund for a suggested post.
Definition Types.h:13991
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
Definition Types.h:13998
std::shared_ptr< SuggestedPostRefunded > Ptr
Definition Types.h:13992
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:14005
This object represents an inline button that switches the current user to inline mode in a chosen cha...
Definition Types.h:14016
std::optional< bool > allowGroupChats
Optional. True, if group and supergroup chats can be chosen.
Definition Types.h:14038
std::shared_ptr< SwitchInlineQueryChosenChat > Ptr
Definition Types.h:14017
std::optional< bool > allowBotChats
Optional. True, if private chats with bots can be chosen.
Definition Types.h:14033
std::optional< bool > allowChannelChats
Optional. True, if channel chats can be chosen.
Definition Types.h:14043
std::optional< std::string > query
Optional. The default inline query to be inserted in the input field. If left empty,...
Definition Types.h:14023
std::optional< bool > allowUserChats
Optional. True, if private chats with users can be chosen.
Definition Types.h:14028
This object contains information about the quoted part of a message that is replied to by the given m...
Definition Types.h:14054
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the quote. Currently, only bold, italic,...
Definition Types.h:14067
std::int32_t position
Approximate quote position in the original message in UTF-16 code units as specified by the sender.
Definition Types.h:14073
std::shared_ptr< TextQuote > Ptr
Definition Types.h:14055
std::string text
Text of the quoted part of a message that is replied to by the given message.
Definition Types.h:14060
std::optional< bool > isManual
Optional. True, if the quote was chosen manually by the message sender. Otherwise,...
Definition Types.h:14079
Describes the affiliate program that issued the affiliate commission received via this transaction.
Definition Types.h:14110
std::shared_ptr< TransactionPartnerAffiliateProgram > Ptr
Definition Types.h:14111
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:14129
std::string type
Type of the transaction partner, always “affiliate_program”
Definition Types.h:14118
std::shared_ptr< User > sponsorUser
Optional. Information about the bot that sponsored the affiliate program.
Definition Types.h:14123
static TGBOT_API const std::string TYPE
Definition Types.h:14113
Describes a transaction with a chat.
Definition Types.h:14139
std::shared_ptr< Gift > gift
Optional. The gift sent to the chat by the bot.
Definition Types.h:14157
std::shared_ptr< Chat > chat
Information about the chat.
Definition Types.h:14152
static TGBOT_API const std::string TYPE
Definition Types.h:14142
std::shared_ptr< TransactionPartnerChat > Ptr
Definition Types.h:14140
std::string type
Type of the transaction partner, always “chat”
Definition Types.h:14147
Describes a withdrawal transaction with Fragment.
Definition Types.h:14167
std::shared_ptr< TransactionPartnerFragment > Ptr
Definition Types.h:14168
std::shared_ptr< RevenueWithdrawalState > withdrawalState
Optional. State of the transaction if the transaction is outgoing.
Definition Types.h:14180
static TGBOT_API const std::string TYPE
Definition Types.h:14170
std::string type
Type of the transaction partner, always “fragment”
Definition Types.h:14175
This object describes the source of a transaction, or its recipient for outgoing transactions....
Definition Types.h:14092
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:14099
std::shared_ptr< TransactionPartner > Ptr
Definition Types.h:14093
Describes a transaction with an unknown source or recipient.
Definition Types.h:14190
std::shared_ptr< TransactionPartnerOther > Ptr
Definition Types.h:14191
std::string type
Type of the transaction partner, always “other”
Definition Types.h:14198
static TGBOT_API const std::string TYPE
Definition Types.h:14193
Describes a withdrawal transaction to the Telegram Ads platform.
Definition Types.h:14208
std::string type
Type of the transaction partner, always “telegram_ads”
Definition Types.h:14216
std::shared_ptr< TransactionPartnerTelegramAds > Ptr
Definition Types.h:14209
static TGBOT_API const std::string TYPE
Definition Types.h:14211
Describes a transaction with payment for paid broadcasting.
Definition Types.h:14226
std::int32_t requestCount
The number of successful requests that exceeded regular limits and were therefore billed.
Definition Types.h:14239
std::shared_ptr< TransactionPartnerTelegramApi > Ptr
Definition Types.h:14227
static TGBOT_API const std::string TYPE
Definition Types.h:14229
std::string type
Type of the transaction partner, always “telegram_api”
Definition Types.h:14234
Describes a transaction with a user.
Definition Types.h:14249
std::shared_ptr< User > user
Information about the user.
Definition Types.h:14270
std::optional< std::string > paidMediaPayload
Optional. Bot-specified paid media payload. Can be available only for “paid_media_payment” transactio...
Definition Types.h:14301
std::optional< std::string > invoicePayload
Optional. Bot-specified invoice payload. Can be available only for “invoice_payment” transactions.
Definition Types.h:14283
std::optional< std::int32_t > premiumSubscriptionDuration
Optional. Number of months the gifted Telegram Premium subscription will be active for; for “premium_...
Definition Types.h:14312
std::optional< std::int32_t > subscriptionPeriod
Optional. The duration of the paid subscription. Can be available only for “invoice_payment” transact...
Definition Types.h:14289
std::shared_ptr< AffiliateInfo > affiliate
Optional. Information about the affiliate that received a commission via this transaction....
Definition Types.h:14277
std::string transactionType
Type of the transaction, currently one of “invoice_payment” for payments via invoices,...
Definition Types.h:14265
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:14295
std::string type
Type of the transaction partner, always “user”
Definition Types.h:14257
std::shared_ptr< TransactionPartnerUser > Ptr
Definition Types.h:14250
static TGBOT_API const std::string TYPE
Definition Types.h:14252
std::shared_ptr< Gift > gift
Optional. The gift sent to the user by the bot; for “gift_purchase” transactions only.
Definition Types.h:14306
This object describes the colors of the backdrop of a unique gift.
Definition Types.h:14424
std::int32_t edgeColor
The color on the edges of the backdrop in RGB format.
Definition Types.h:14435
std::shared_ptr< UniqueGiftBackdropColors > Ptr
Definition Types.h:14425
std::int32_t symbolColor
The color to be applied to the symbol in RGB format.
Definition Types.h:14440
std::int32_t textColor
The color for the text on the backdrop in RGB format.
Definition Types.h:14445
std::int32_t centerColor
The color in the center of the backdrop in RGB format.
Definition Types.h:14430
This object describes the backdrop of a unique gift.
Definition Types.h:14398
std::int32_t rarityPerMille
The number of unique gifts that receive this backdrop for every 1000 gifts upgraded.
Definition Types.h:14414
std::string name
Name of the backdrop.
Definition Types.h:14404
std::shared_ptr< UniqueGiftBackdrop > Ptr
Definition Types.h:14399
std::shared_ptr< UniqueGiftBackdropColors > colors
Colors of the backdrop.
Definition Types.h:14409
This object contains information about the color scheme for a user's name, message replies and link p...
Definition Types.h:14456
std::int32_t darkThemeMainColor
Main color used in dark themes; RGB format.
Definition Types.h:14482
std::string modelCustomEmojiId
Custom emoji identifier of the unique gift's model.
Definition Types.h:14462
std::vector< std::int32_t > darkThemeOtherColors
List of 1-3 additional colors used in dark themes; RGB format.
Definition Types.h:14487
std::shared_ptr< UniqueGiftColors > Ptr
Definition Types.h:14457
std::int32_t lightThemeMainColor
Main color used in light themes; RGB format.
Definition Types.h:14472
std::string symbolCustomEmojiId
Custom emoji identifier of the unique gift's symbol.
Definition Types.h:14467
std::vector< std::int32_t > lightThemeOtherColors
List of 1-3 additional colors used in light themes; RGB format.
Definition Types.h:14477
This object describes a unique gift that was upgraded from a regular gift.
Definition Types.h:14322
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:14376
std::shared_ptr< UniqueGift > Ptr
Definition Types.h:14323
std::shared_ptr< UniqueGiftBackdrop > backdrop
Backdrop of the gift.
Definition Types.h:14359
std::int32_t number
Unique number of the upgraded gift among gifts upgraded from the same regular gift.
Definition Types.h:14344
std::string baseName
Human-readable name of the regular gift from which this unique gift was upgraded.
Definition Types.h:14333
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:14383
std::shared_ptr< Chat > publisherChat
Optional. Information about the chat that published the gift.
Definition Types.h:14388
std::shared_ptr< UniqueGiftSymbol > symbol
Symbol of the gift.
Definition Types.h:14354
std::string giftId
Identifier of the regular gift from which the gift was upgraded.
Definition Types.h:14328
std::optional< bool > isPremium
Optional. True, if the original regular gift was exclusively purchaseable by Telegram Premium subscri...
Definition Types.h:14365
std::optional< bool > isBurned
Optional. True, if the gift was used to craft another gift and isn't available anymore.
Definition Types.h:14370
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:14339
std::shared_ptr< UniqueGiftModel > model
Model of the gift.
Definition Types.h:14349
Describes a service message about a unique gift that was sent or received.
Definition Types.h:14497
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:14517
std::shared_ptr< UniqueGift > gift
Information about the gift.
Definition Types.h:14503
std::shared_ptr< UniqueGiftInfo > Ptr
Definition Types.h:14498
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:14535
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:14529
std::string origin
Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts,...
Definition Types.h:14511
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:14523
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:14541
This object describes the model of a unique gift.
Definition Types.h:14551
std::optional< std::string > rarity
Optional. Rarity of the model if it is a crafted model. Currently, can be “uncommon”,...
Definition Types.h:14574
std::shared_ptr< UniqueGiftModel > Ptr
Definition Types.h:14552
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:14568
std::string name
Name of the model.
Definition Types.h:14557
std::shared_ptr< Sticker > sticker
The sticker that represents the unique gift.
Definition Types.h:14562
This object describes the symbol shown on the pattern of a unique gift.
Definition Types.h:14584
std::int32_t rarityPerMille
The number of unique gifts that receive this model for every 1000 gifts upgraded.
Definition Types.h:14600
std::shared_ptr< Sticker > sticker
The sticker that represents the unique gift.
Definition Types.h:14595
std::shared_ptr< UniqueGiftSymbol > Ptr
Definition Types.h:14585
std::string name
Name of the symbol.
Definition Types.h:14590
This object represents an incoming update.At most one of the optional fields can be present in any gi...
Definition Types.h:14611
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:14634
std::shared_ptr< Message > channelPost
Optional. New incoming channel post of any kind - text, photo, sticker, etc.
Definition Types.h:14639
std::shared_ptr< CallbackQuery > callbackQuery
Optional. New incoming callback query.
Definition Types.h:14706
std::shared_ptr< BotSubscriptionUpdated > subscription
Optional. User payment subscription has changed.
Definition Types.h:14776
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:14759
std::shared_ptr< Message > message
Optional. New incoming message of any kind - text, photo, sticker, etc.
Definition Types.h:14627
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:14765
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:14701
std::shared_ptr< ShippingQuery > shippingQuery
Optional. New incoming shipping query. Only for invoices with flexible price.
Definition Types.h:14711
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:14681
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:14753
std::shared_ptr< Update > Ptr
Definition Types.h:14612
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:14747
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:14722
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:14771
std::shared_ptr< PreCheckoutQuery > preCheckoutQuery
Optional. New incoming pre-checkout query. Contains full information about checkout.
Definition Types.h:14716
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:14646
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:14673
std::int32_t updateId
The update's unique identifier. Update identifiers start from a certain positive number and increase ...
Definition Types.h:14622
std::shared_ptr< MessageReactionCountUpdated > messageReactionCount
Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administra...
Definition Types.h:14689
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:14734
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:14652
std::shared_ptr< BusinessMessagesDeleted > deletedBusinessMessages
Optional. Messages were deleted from a connected business account.
Definition Types.h:14667
std::shared_ptr< Message > editedBusinessMessage
Optional. New version of a message from a connected business account.
Definition Types.h:14662
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:14740
std::shared_ptr< InlineQuery > inlineQuery
Optional. New incoming inline query.
Definition Types.h:14694
std::shared_ptr< Message > businessMessage
Optional. New message from a connected business account.
Definition Types.h:14657
std::shared_ptr< Poll > poll
Optional. New poll state. Bots receive only updates about manually stopped polls and polls,...
Definition Types.h:14728
This object represents a list of boosts added to a chat by a user.
Definition Types.h:14896
std::vector< std::shared_ptr< ChatBoost > > boosts
The list of boosts added to the chat by the user.
Definition Types.h:14902
std::shared_ptr< UserChatBoosts > Ptr
Definition Types.h:14897
This object represents a Telegram user or bot.
Definition Types.h:14786
std::optional< std::string > lastName
Optional. User's or bot's last name.
Definition Types.h:14810
std::optional< bool > hasMainWebApp
Optional. True, if the bot has a main Web App. Returned only in getMe.
Definition Types.h:14862
std::optional< bool > allowsUsersToCreateTopics
Optional. True, if the bot allows users to create and delete topics in private chats....
Definition Types.h:14874
std::optional< bool > canJoinGroups
Optional. True, if the bot can be invited to groups. Returned only in getMe.
Definition Types.h:14835
std::optional< bool > supportsInlineQueries
Optional. True, if the bot supports inline queries. Returned only in getMe.
Definition Types.h:14851
std::optional< bool > isPremium
Optional. True, if this user is a Telegram Premium user.
Definition Types.h:14825
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:14880
std::optional< bool > supportsGuestQueries
Optional. True, if the bot supports guest queries from chats it is not a member of....
Definition Types.h:14846
std::string firstName
User's or bot's first name.
Definition Types.h:14805
std::optional< bool > canReadAllGroupMessages
Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.
Definition Types.h:14840
std::optional< std::string > username
Optional. User's or bot's username.
Definition Types.h:14815
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:14857
std::optional< bool > hasTopicsEnabled
Optional. True, if the bot has forum topic mode enabled in private chats. Returned only in getMe.
Definition Types.h:14868
bool isBot
True, if this user is a bot.
Definition Types.h:14800
std::optional< bool > addedToAttachmentMenu
Optional. True, if this user added the bot to the attachment menu.
Definition Types.h:14830
std::shared_ptr< User > Ptr
Definition Types.h:14787
std::optional< std::string > languageCode
Optional. IETF language tag of the user's language.
Definition Types.h:14820
std::optional< bool > supportsJoinRequestQueries
Optional. True, if the bot supports join request queries and can be assigned to process them....
Definition Types.h:14886
This object represents the audios displayed on a user's profile.
Definition Types.h:14912
std::int32_t totalCount
Total number of profile audios for the target user.
Definition Types.h:14918
std::vector< std::shared_ptr< Audio > > audios
Requested profile audios.
Definition Types.h:14923
std::shared_ptr< UserProfileAudios > Ptr
Definition Types.h:14913
This object represent a user's profile pictures.
Definition Types.h:14933
std::vector< std::vector< std::shared_ptr< PhotoSize > > > photos
Requested profile pictures (in up to 4 sizes each).
Definition Types.h:14944
std::int32_t totalCount
Total number of profile pictures the target user has.
Definition Types.h:14939
std::shared_ptr< UserProfilePhotos > Ptr
Definition Types.h:14934
This object describes the rating of a user based on their Telegram Star spendings.
Definition Types.h:14954
std::int32_t level
Current level of the user, indicating their reliability when purchasing digital goods and services....
Definition Types.h:14962
std::shared_ptr< UserRating > Ptr
Definition Types.h:14955
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:14978
std::int32_t currentLevelRating
The rating value required to get the current level.
Definition Types.h:14972
std::int32_t rating
Numerical value of the user's rating; the higher the rating, the better.
Definition Types.h:14967
This object contains information about the users whose identifiers were shared with the bot using a K...
Definition Types.h:14989
std::vector< std::shared_ptr< SharedUser > > users
Information about users shared with the bot.
Definition Types.h:15000
std::shared_ptr< UsersShared > Ptr
Definition Types.h:14990
std::int32_t requestId
Identifier of the request.
Definition Types.h:14995
This object represents a venue.
Definition Types.h:15010
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue.
Definition Types.h:15031
std::string address
Address of the venue.
Definition Types.h:15026
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
Definition Types.h:15047
std::shared_ptr< Location > location
Venue location. Can't be a live location.
Definition Types.h:15016
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”,...
Definition Types.h:15037
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
Definition Types.h:15042
std::shared_ptr< Venue > Ptr
Definition Types.h:15011
std::string title
Name of the venue.
Definition Types.h:15021
This object represents a service message about a video chat ended in the chat.
Definition Types.h:15132
std::int32_t duration
Video chat duration in seconds.
Definition Types.h:15138
std::shared_ptr< VideoChatEnded > Ptr
Definition Types.h:15133
This object represents a service message about new members invited to a video chat.
Definition Types.h:15148
std::shared_ptr< VideoChatParticipantsInvited > Ptr
Definition Types.h:15149
std::vector< std::shared_ptr< User > > users
New members that were invited to the video chat.
Definition Types.h:15154
This object represents a service message about a video chat scheduled in the chat.
Definition Types.h:15164
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:15171
std::shared_ptr< VideoChatScheduled > Ptr
Definition Types.h:15165
This object represents a service message about a video chat started in the chat. Currently holds no i...
Definition Types.h:15182
std::shared_ptr< VideoChatStarted > Ptr
Definition Types.h:15183
This object represents a video file.
Definition Types.h:15057
std::optional< std::string > fileName
Optional. Original filename as defined by the sender.
Definition Types.h:15109
std::optional< std::int32_t > startTimestamp
Optional. Timestamp in seconds from which the video will play in the message.
Definition Types.h:15099
std::optional< std::vector< std::shared_ptr< VideoQuality > > > qualities
Optional. List of available qualities of the video.
Definition Types.h:15104
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:15063
std::shared_ptr< PhotoSize > thumbnail
Optional. Video thumbnail.
Definition Types.h:15089
std::int32_t width
Video width as defined by the sender.
Definition Types.h:15074
std::shared_ptr< Video > Ptr
Definition Types.h:15058
std::int32_t duration
Duration of the video in seconds as defined by the sender.
Definition Types.h:15084
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:15069
std::int32_t height
Video height as defined by the sender.
Definition Types.h:15079
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:15114
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:15122
std::optional< std::vector< std::shared_ptr< PhotoSize > > > cover
Optional. Available sizes of the cover of the video in the message.
Definition Types.h:15094
This object represents a video message (available in Telegram apps as of v.4.0).
Definition Types.h:15193
std::int32_t duration
Duration of the video in seconds as defined by the sender.
Definition Types.h:15215
std::shared_ptr< PhotoSize > thumbnail
Optional. Video thumbnail.
Definition Types.h:15220
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:15199
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:15205
std::optional< std::int32_t > fileSize
Optional. File size in bytes.
Definition Types.h:15225
std::int32_t length
Video width and height (diameter of the video message) as defined by the sender.
Definition Types.h:15210
std::shared_ptr< VideoNote > Ptr
Definition Types.h:15194
This object represents a video file of a specific quality.
Definition Types.h:15235
std::shared_ptr< VideoQuality > Ptr
Definition Types.h:15236
std::int32_t width
Video width.
Definition Types.h:15252
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:15247
std::string codec
Codec that was used to encode the video, for example, “h264”, “h265”, or “av01”
Definition Types.h:15262
std::int32_t height
Video height.
Definition Types.h:15257
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:15241
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:15270
This object represents a voice note.
Definition Types.h:15280
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:15286
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:15310
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:15302
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:15292
std::int32_t duration
Duration of the audio in seconds as defined by the sender.
Definition Types.h:15297
std::shared_ptr< Voice > Ptr
Definition Types.h:15281
Describes data sent from a Web App to the bot.
Definition Types.h:15320
std::shared_ptr< WebAppData > Ptr
Definition Types.h:15321
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:15332
std::string data
The data. Be aware that a bad client can send arbitrary data in this field.
Definition Types.h:15326
Describes a Web App.
Definition Types.h:15342
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:15349
std::shared_ptr< WebAppInfo > Ptr
Definition Types.h:15343
Describes the current status of a webhook.
Definition Types.h:15359
std::optional< std::string > lastErrorMessage
Optional. Error message in human-readable format for the most recent error that happened when trying ...
Definition Types.h:15392
std::optional< std::string > ipAddress
Optional. Currently used webhook IP address.
Definition Types.h:15380
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:15410
std::string url
Webhook URL, may be empty if webhook is not set up.
Definition Types.h:15365
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:15398
std::optional< std::int32_t > maxConnections
Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update deli...
Definition Types.h:15404
std::int32_t pendingUpdateCount
Number of updates awaiting delivery.
Definition Types.h:15375
std::shared_ptr< WebhookInfo > Ptr
Definition Types.h:15360
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:15386
bool hasCustomCertificate
True, if a custom certificate was provided for webhook certificate checks.
Definition Types.h:15370
This object represents a service message about a user allowing a bot to write messages after adding i...
Definition Types.h:15422
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:15441
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:15435
std::shared_ptr< WriteAccessAllowed > Ptr
Definition Types.h:15423
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:15429