tgbot-cpp
Loading...
Searching...
No Matches
Types.h
Go to the documentation of this file.
1// Generated by `make api-generate`. Do not edit.
2
3#pragma once
4
5#include "tgbot/InputFile.h"
6#include "tgbot/export.h"
7
8#include <nlohmann/json_fwd.hpp>
9
10#include <cstdint>
11#include <memory>
12#include <optional>
13#include <string>
14#include <variant>
15#include <vector>
16
17namespace TgBot {
18
20struct AffiliateInfo;
21struct Animation;
22struct AreaPosition;
23struct Audio;
24struct BackgroundFill;
28struct BackgroundType;
33struct Birthdate;
35struct BotCommand;
36struct BotCommandScope;
44struct BotDescription;
45struct BotName;
50struct BusinessIntro;
51struct BusinessLocation;
55struct CallbackGame;
56struct CallbackQuery;
57struct Chat;
59struct ChatBackground;
60struct ChatBoost;
61struct ChatBoostAdded;
62struct ChatBoostRemoved;
63struct ChatBoostSource;
67struct ChatBoostUpdated;
68struct ChatFullInfo;
69struct ChatInviteLink;
70struct ChatJoinRequest;
71struct ChatLocation;
72struct ChatMember;
74struct ChatMemberBanned;
75struct ChatMemberLeft;
76struct ChatMemberMember;
77struct ChatMemberOwner;
80struct ChatOwnerChanged;
81struct ChatOwnerLeft;
82struct ChatPermissions;
83struct ChatPhoto;
84struct ChatShareTheme;
89struct ChatShared;
90struct Checklist;
91struct ChecklistTask;
95struct Community;
99struct Contact;
100struct CopyTextButton;
101struct Dice;
104struct DisabledButton;
105struct Document;
106struct EmojiType;
108struct EmojiTypeEmoji;
112struct ExternalReplyInfo;
113struct File;
114struct ForceReply;
115struct ForumTopic;
116struct ForumTopicClosed;
117struct ForumTopicCreated;
118struct ForumTopicEdited;
119struct ForumTopicReopened;
120struct Game;
121struct GameHighScore;
124struct Gift;
125struct GiftBackground;
126struct GiftInfo;
127struct Gifts;
128struct Giveaway;
129struct GiveawayCompleted;
130struct GiveawayCreated;
131struct GiveawayWinners;
135struct InlineQuery;
136struct InlineQueryResult;
158struct InputChecklist;
159struct InputChecklistTask;
163struct InputMedia;
165struct InputMediaAudio;
166struct InputMediaDocument;
167struct InputMediaLink;
169struct InputMediaLocation;
170struct InputMediaPhoto;
171struct InputMediaSticker;
172struct InputMediaVenue;
173struct InputMediaVideo;
176struct InputPaidMedia;
180struct InputPollMedia;
181struct InputPollOption;
183struct InputProfilePhoto;
186struct InputRichBlock;
198struct InputRichBlockList;
200struct InputRichBlockMap;
212struct InputRichMessage;
216struct InputSticker;
217struct InputStoryContent;
223struct Invoice;
224struct KeyboardButton;
229struct LabeledPrice;
230struct Link;
231struct LinkPreviewOptions;
232struct LivePhoto;
233struct Location;
234struct LocationAddress;
235struct LoginUrl;
236struct ManagedBotCreated;
237struct ManagedBotUpdated;
238struct MaskPosition;
240struct MenuButton;
241struct MenuButtonCommands;
242struct MenuButtonDefault;
243struct MenuButtonWebApp;
244struct Message;
246struct MessageEntity;
248struct MessageId;
249struct MessageOrigin;
251struct MessageOriginChat;
253struct MessageOriginUser;
256struct OrderInfo;
257struct OwnedGift;
258struct OwnedGiftRegular;
259struct OwnedGiftUnique;
260struct OwnedGifts;
261struct PaidMedia;
262struct PaidMediaInfo;
263struct PaidMediaLivePhoto;
264struct PaidMediaPhoto;
265struct PaidMediaPreview;
266struct PaidMediaPurchased;
267struct PaidMediaVideo;
269struct PaidMessagesWaived;
270struct PassportData;
281struct PassportFile;
282struct PhotoSize;
283struct Poll;
284struct PollAnswer;
285struct PollMedia;
286struct PollOption;
287struct PollOptionAdded;
288struct PollOptionDeleted;
289struct PreCheckoutQuery;
293struct ReactionCount;
294struct ReactionType;
296struct ReactionTypeEmoji;
297struct ReactionTypePaid;
298struct RefundedPayment;
301struct ReplyParameters;
302struct ResponseParameters;
307struct RichBlock;
308struct RichBlockAnchor;
309struct RichBlockAnimation;
310struct RichBlockAudio;
312struct RichBlockButtons;
313struct RichBlockCaption;
314struct RichBlockCollage;
315struct RichBlockDetails;
316struct RichBlockDivider;
317struct RichBlockDocument;
319struct RichBlockFooter;
320struct RichBlockList;
321struct RichBlockListItem;
322struct RichBlockMap;
324struct RichBlockParagraph;
325struct RichBlockPhoto;
329struct RichBlockSlideshow;
330struct RichBlockTable;
331struct RichBlockTableCell;
332struct RichBlockThinking;
333struct RichBlockVideo;
334struct RichBlockVoiceNote;
335struct RichMessage;
336struct RichMessageButton;
337struct RichText;
338struct RichTextAnchor;
339struct RichTextAnchorLink;
341struct RichTextBold;
342struct RichTextBotCommand;
343struct RichTextButton;
344struct RichTextCashtag;
345struct RichTextCode;
347struct RichTextDateTime;
349struct RichTextHashtag;
350struct RichTextItalic;
351struct RichTextMarked;
353struct RichTextMention;
355struct RichTextReference;
357struct RichTextSpoiler;
359struct RichTextSubscript;
362struct RichTextTonAddress;
363struct RichTextUnderline;
364struct RichTextUrl;
365struct SentGuestMessage;
366struct SentWebAppMessage;
367struct SharedUser;
368struct SharedWidgetQuery;
369struct ShippingAddress;
370struct ShippingOption;
371struct ShippingQuery;
372struct StarAmount;
373struct StarTransaction;
374struct StarTransactions;
375struct Sticker;
376struct StickerSet;
377struct Story;
378struct StoryArea;
379struct StoryAreaType;
380struct StoryAreaTypeLink;
385struct SuccessfulPayment;
389struct SuggestedPostInfo;
390struct SuggestedPostPaid;
392struct SuggestedPostPrice;
395struct TextQuote;
396struct TonNft;
397struct TonNftAttribute;
398struct TonWalletCard;
400struct TonWalletTransfer;
401struct TransactionPartner;
409struct UniqueGift;
410struct UniqueGiftBackdrop;
412struct UniqueGiftColors;
413struct UniqueGiftInfo;
414struct UniqueGiftModel;
415struct UniqueGiftSymbol;
416struct Update;
417struct User;
418struct UserChatBoosts;
419struct UserProfileAudios;
420struct UserProfilePhotos;
421struct UserRating;
422struct UsersShared;
423struct Venue;
424struct Video;
425struct VideoChatEnded;
427struct VideoChatScheduled;
428struct VideoChatStarted;
429struct VideoNote;
430struct VideoQuality;
431struct Voice;
432struct WebAppData;
433struct WebAppInfo;
434struct WebhookInfo;
435struct Widget;
436struct WidgetQuery;
437struct WidgetQueryType;
441struct WidgetQueryWallet;
442struct WriteAccessAllowed;
443
445
451 using Ptr = std::shared_ptr<AcceptedGiftTypes>;
452
460 bool limitedGifts { };
464 bool uniqueGifts { };
473};
474
475TGBOT_API void from_json(const nlohmann::json& json, AcceptedGiftTypes& value);
476TGBOT_API void to_json(nlohmann::json& json, const AcceptedGiftTypes& value);
477
483 using Ptr = std::shared_ptr<AffiliateInfo>;
484
489 std::shared_ptr<User> affiliateUser { };
493 std::shared_ptr<Chat> affiliateChat { };
498 std::uint32_t commissionPerMille { };
503 std::int64_t amount { };
508 std::optional<std::int32_t> nanostarAmount { };
509};
510
511TGBOT_API void from_json(const nlohmann::json& json, AffiliateInfo& value);
512TGBOT_API void to_json(nlohmann::json& json, const AffiliateInfo& value);
513
518struct Animation {
519 using Ptr = std::shared_ptr<Animation>;
520
524 std::string fileId { };
529 std::string fileUniqueId { };
533 std::uint32_t width { };
537 std::uint32_t height { };
541 std::uint32_t duration { };
545 std::shared_ptr<PhotoSize> thumbnail { };
549 std::optional<std::string> fileName { };
553 std::optional<std::string> mimeType { };
560 std::optional<std::uint64_t> fileSize { };
561};
562
563TGBOT_API void from_json(const nlohmann::json& json, Animation& value);
564TGBOT_API void to_json(nlohmann::json& json, const Animation& value);
565
571 using Ptr = std::shared_ptr<AreaPosition>;
572
576 double xPercentage { };
580 double yPercentage { };
584 double widthPercentage { };
592 double rotationAngle { };
598};
599
600TGBOT_API void from_json(const nlohmann::json& json, AreaPosition& value);
601TGBOT_API void to_json(nlohmann::json& json, const AreaPosition& value);
602
607struct Audio {
608 using Ptr = std::shared_ptr<Audio>;
609
613 std::string fileId { };
618 std::string fileUniqueId { };
622 std::uint32_t duration { };
626 std::optional<std::string> performer { };
630 std::optional<std::string> title { };
634 std::optional<std::string> fileName { };
638 std::optional<std::string> mimeType { };
645 std::optional<std::uint64_t> fileSize { };
649 std::shared_ptr<PhotoSize> thumbnail { };
650};
651
652TGBOT_API void from_json(const nlohmann::json& json, Audio& value);
653TGBOT_API void to_json(nlohmann::json& json, const Audio& value);
654
662 using Ptr = std::shared_ptr<BackgroundFill>;
663
664 std::variant<std::shared_ptr<BackgroundFillSolid>, std::shared_ptr<BackgroundFillGradient>,
665 std::shared_ptr<BackgroundFillFreeformGradient>>
667};
668
669TGBOT_API void from_json(const nlohmann::json& json, BackgroundFill& value);
670TGBOT_API void to_json(nlohmann::json& json, const BackgroundFill& value);
671
677 using Ptr = std::shared_ptr<BackgroundFillFreeformGradient>;
678
679 static TGBOT_API const std::string TYPE;
680
684 std::string type { TYPE };
689 std::vector<std::uint32_t> colors { };
690};
691
692TGBOT_API void from_json(const nlohmann::json& json, BackgroundFillFreeformGradient& value);
693TGBOT_API void to_json(nlohmann::json& json, const BackgroundFillFreeformGradient& value);
694
700 using Ptr = std::shared_ptr<BackgroundFillGradient>;
701
702 static TGBOT_API const std::string TYPE;
703
707 std::string type { TYPE };
711 std::uint32_t topColor { };
715 std::uint32_t bottomColor { };
719 std::uint32_t rotationAngle { };
720};
721
722TGBOT_API void from_json(const nlohmann::json& json, BackgroundFillGradient& value);
723TGBOT_API void to_json(nlohmann::json& json, const BackgroundFillGradient& value);
724
730 using Ptr = std::shared_ptr<BackgroundFillSolid>;
731
732 static TGBOT_API const std::string TYPE;
733
737 std::string type { TYPE };
741 std::uint32_t color { };
742};
743
744TGBOT_API void from_json(const nlohmann::json& json, BackgroundFillSolid& value);
745TGBOT_API void to_json(nlohmann::json& json, const BackgroundFillSolid& value);
746
753 using Ptr = std::shared_ptr<BackgroundType>;
754
755 std::variant<std::shared_ptr<BackgroundTypeFill>, std::shared_ptr<BackgroundTypeWallpaper>,
756 std::shared_ptr<BackgroundTypePattern>, std::shared_ptr<BackgroundTypeChatTheme>>
758};
759
760TGBOT_API void from_json(const nlohmann::json& json, BackgroundType& value);
761TGBOT_API void to_json(nlohmann::json& json, const BackgroundType& value);
762
768 using Ptr = std::shared_ptr<BackgroundTypeChatTheme>;
769
770 static TGBOT_API const std::string TYPE;
771
775 std::string type { TYPE };
779 std::string themeName { };
780};
781
782TGBOT_API void from_json(const nlohmann::json& json, BackgroundTypeChatTheme& value);
783TGBOT_API void to_json(nlohmann::json& json, const BackgroundTypeChatTheme& value);
784
790 using Ptr = std::shared_ptr<BackgroundTypeFill>;
791
792 static TGBOT_API const std::string TYPE;
793
797 std::string type { TYPE };
801 std::shared_ptr<BackgroundFill> fill { };
805 std::uint32_t darkThemeDimming { };
806};
807
808TGBOT_API void from_json(const nlohmann::json& json, BackgroundTypeFill& value);
809TGBOT_API void to_json(nlohmann::json& json, const BackgroundTypeFill& value);
810
818 using Ptr = std::shared_ptr<BackgroundTypePattern>;
819
820 static TGBOT_API const std::string TYPE;
821
825 std::string type { TYPE };
829 std::shared_ptr<Document> document { };
833 std::shared_ptr<BackgroundFill> fill { };
837 std::uint32_t intensity { };
842 std::optional<bool> isInverted { };
846 std::optional<bool> isMoving { };
847};
848
849TGBOT_API void from_json(const nlohmann::json& json, BackgroundTypePattern& value);
850TGBOT_API void to_json(nlohmann::json& json, const BackgroundTypePattern& value);
851
857 using Ptr = std::shared_ptr<BackgroundTypeWallpaper>;
858
859 static TGBOT_API const std::string TYPE;
860
864 std::string type { TYPE };
868 std::shared_ptr<Document> document { };
872 std::uint32_t darkThemeDimming { };
877 std::optional<bool> isBlurred { };
881 std::optional<bool> isMoving { };
882};
883
884TGBOT_API void from_json(const nlohmann::json& json, BackgroundTypeWallpaper& value);
885TGBOT_API void to_json(nlohmann::json& json, const BackgroundTypeWallpaper& value);
886
891struct Birthdate {
892 using Ptr = std::shared_ptr<Birthdate>;
893
897 std::uint32_t day { };
901 std::uint32_t month { };
905 std::optional<std::uint32_t> year { };
906};
907
908TGBOT_API void from_json(const nlohmann::json& json, Birthdate& value);
909TGBOT_API void to_json(nlohmann::json& json, const Birthdate& value);
910
916 using Ptr = std::shared_ptr<BotAccessSettings>;
917
925 std::optional<std::vector<std::shared_ptr<User>>> addedUsers { };
926};
927
928TGBOT_API void from_json(const nlohmann::json& json, BotAccessSettings& value);
929TGBOT_API void to_json(nlohmann::json& json, const BotAccessSettings& value);
930
936 using Ptr = std::shared_ptr<BotCommand>;
937
942 std::string command { };
946 std::string description { };
951 std::optional<bool> isEphemeral { };
952};
953
954TGBOT_API void from_json(const nlohmann::json& json, BotCommand& value);
955TGBOT_API void to_json(nlohmann::json& json, const BotCommand& value);
956
965 using Ptr = std::shared_ptr<BotCommandScope>;
966
967 std::variant<std::shared_ptr<BotCommandScopeDefault>, std::shared_ptr<BotCommandScopeAllPrivateChats>,
968 std::shared_ptr<BotCommandScopeAllGroupChats>, std::shared_ptr<BotCommandScopeAllChatAdministrators>,
969 std::shared_ptr<BotCommandScopeChat>, std::shared_ptr<BotCommandScopeChatAdministrators>,
970 std::shared_ptr<BotCommandScopeChatMember>>
972};
973
974TGBOT_API void from_json(const nlohmann::json& json, BotCommandScope& value);
975TGBOT_API void to_json(nlohmann::json& json, const BotCommandScope& value);
976
982 using Ptr = std::shared_ptr<BotCommandScopeAllChatAdministrators>;
983
984 static TGBOT_API const std::string TYPE;
985
989 std::string type { TYPE };
990};
991
992TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeAllChatAdministrators& value);
993TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeAllChatAdministrators& value);
994
1000 using Ptr = std::shared_ptr<BotCommandScopeAllGroupChats>;
1001
1002 static TGBOT_API const std::string TYPE;
1003
1007 std::string type { TYPE };
1008};
1009
1010TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeAllGroupChats& value);
1011TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeAllGroupChats& value);
1012
1018 using Ptr = std::shared_ptr<BotCommandScopeAllPrivateChats>;
1019
1020 static TGBOT_API const std::string TYPE;
1021
1025 std::string type { TYPE };
1026};
1027
1028TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeAllPrivateChats& value);
1029TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeAllPrivateChats& value);
1030
1036 using Ptr = std::shared_ptr<BotCommandScopeChat>;
1037
1038 static TGBOT_API const std::string TYPE;
1039
1043 std::string type { TYPE };
1048 std::variant<std::int64_t, std::string> chatId { };
1049};
1050
1051TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeChat& value);
1052TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeChat& value);
1053
1060 using Ptr = std::shared_ptr<BotCommandScopeChatAdministrators>;
1061
1062 static TGBOT_API const std::string TYPE;
1063
1067 std::string type { TYPE };
1072 std::variant<std::int64_t, std::string> chatId { };
1073};
1074
1075TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeChatAdministrators& value);
1076TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeChatAdministrators& value);
1077
1084 using Ptr = std::shared_ptr<BotCommandScopeChatMember>;
1085
1086 static TGBOT_API const std::string TYPE;
1087
1091 std::string type { TYPE };
1096 std::variant<std::int64_t, std::string> chatId { };
1100 std::uint64_t userId { };
1101};
1102
1103TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeChatMember& value);
1104TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeChatMember& value);
1105
1112 using Ptr = std::shared_ptr<BotCommandScopeDefault>;
1113
1114 static TGBOT_API const std::string TYPE;
1115
1119 std::string type { TYPE };
1120};
1121
1122TGBOT_API void from_json(const nlohmann::json& json, BotCommandScopeDefault& value);
1123TGBOT_API void to_json(nlohmann::json& json, const BotCommandScopeDefault& value);
1124
1130 using Ptr = std::shared_ptr<BotDescription>;
1131
1135 std::string description { };
1136};
1137
1138TGBOT_API void from_json(const nlohmann::json& json, BotDescription& value);
1139TGBOT_API void to_json(nlohmann::json& json, const BotDescription& value);
1140
1145struct BotName {
1146 using Ptr = std::shared_ptr<BotName>;
1147
1151 std::string name { };
1152};
1153
1154TGBOT_API void from_json(const nlohmann::json& json, BotName& value);
1155TGBOT_API void to_json(nlohmann::json& json, const BotName& value);
1156
1162 using Ptr = std::shared_ptr<BotShortDescription>;
1163
1167 std::string shortDescription { };
1168};
1169
1170TGBOT_API void from_json(const nlohmann::json& json, BotShortDescription& value);
1171TGBOT_API void to_json(nlohmann::json& json, const BotShortDescription& value);
1172
1179 using Ptr = std::shared_ptr<BotSubscriptionUpdated>;
1180
1184 std::shared_ptr<User> user { };
1188 std::string invoicePayload { };
1194 std::string state { };
1195};
1196
1197TGBOT_API void from_json(const nlohmann::json& json, BotSubscriptionUpdated& value);
1198TGBOT_API void to_json(nlohmann::json& json, const BotSubscriptionUpdated& value);
1199
1205 using Ptr = std::shared_ptr<BusinessBotRights>;
1206
1211 std::optional<bool> canReply { };
1215 std::optional<bool> canReadMessages { };
1219 std::optional<bool> canDeleteSentMessages { };
1223 std::optional<bool> canDeleteAllMessages { };
1227 std::optional<bool> canEditName { };
1231 std::optional<bool> canEditBio { };
1235 std::optional<bool> canEditProfilePhoto { };
1239 std::optional<bool> canEditUsername { };
1244 std::optional<bool> canChangeGiftSettings { };
1249 std::optional<bool> canViewGiftsAndStars { };
1254 std::optional<bool> canConvertGiftsToStars { };
1258 std::optional<bool> canTransferAndUpgradeGifts { };
1263 std::optional<bool> canTransferStars { };
1268 std::optional<bool> canManageStories { };
1269};
1270
1271TGBOT_API void from_json(const nlohmann::json& json, BusinessBotRights& value);
1272TGBOT_API void to_json(nlohmann::json& json, const BusinessBotRights& value);
1273
1279 using Ptr = std::shared_ptr<BusinessConnection>;
1280
1284 std::string id { };
1288 std::shared_ptr<User> user { };
1295 std::uint64_t userChatId { };
1299 std::int32_t date { };
1303 std::shared_ptr<BusinessBotRights> rights { };
1307 bool isEnabled { };
1308};
1309
1310TGBOT_API void from_json(const nlohmann::json& json, BusinessConnection& value);
1311TGBOT_API void to_json(nlohmann::json& json, const BusinessConnection& value);
1312
1318 using Ptr = std::shared_ptr<BusinessIntro>;
1319
1323 std::optional<std::string> title { };
1327 std::optional<std::string> message { };
1331 std::shared_ptr<Sticker> sticker { };
1332};
1333
1334TGBOT_API void from_json(const nlohmann::json& json, BusinessIntro& value);
1335TGBOT_API void to_json(nlohmann::json& json, const BusinessIntro& value);
1336
1342 using Ptr = std::shared_ptr<BusinessLocation>;
1343
1347 std::string address { };
1351 std::shared_ptr<Location> location { };
1352};
1353
1354TGBOT_API void from_json(const nlohmann::json& json, BusinessLocation& value);
1355TGBOT_API void to_json(nlohmann::json& json, const BusinessLocation& value);
1356
1362 using Ptr = std::shared_ptr<BusinessMessagesDeleted>;
1363
1367 std::string businessConnectionId { };
1372 std::shared_ptr<Chat> chat { };
1376 std::vector<std::uint32_t> messageIds { };
1377};
1378
1379TGBOT_API void from_json(const nlohmann::json& json, BusinessMessagesDeleted& value);
1380TGBOT_API void to_json(nlohmann::json& json, const BusinessMessagesDeleted& value);
1381
1387 using Ptr = std::shared_ptr<BusinessOpeningHours>;
1388
1392 std::string timeZoneName { };
1396 std::vector<std::shared_ptr<BusinessOpeningHoursInterval>> openingHours { };
1397};
1398
1399TGBOT_API void from_json(const nlohmann::json& json, BusinessOpeningHours& value);
1400TGBOT_API void to_json(nlohmann::json& json, const BusinessOpeningHours& value);
1401
1407 using Ptr = std::shared_ptr<BusinessOpeningHoursInterval>;
1408
1413 std::uint32_t openingMinute { };
1418 std::uint32_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 { };
1453 std::shared_ptr<User> from { };
1457 std::shared_ptr<MaybeInaccessibleMessage> message { };
1462 std::optional<std::string> inlineMessageId { };
1467 std::string chatInstance { };
1472 std::optional<std::string> data { };
1477 std::optional<std::string> gameShortName { };
1478};
1479
1480TGBOT_API void from_json(const nlohmann::json& json, CallbackQuery& value);
1481TGBOT_API void to_json(nlohmann::json& json, const CallbackQuery& value);
1482
1487struct Chat {
1488 using Ptr = std::shared_ptr<Chat>;
1489
1490 enum class Type { Private, Group, Supergroup, Channel };
1491
1498 std::int64_t id { };
1506 std::optional<std::string> title { };
1510 std::optional<std::string> username { };
1514 std::optional<std::string> firstName { };
1518 std::optional<std::string> lastName { };
1522 std::optional<bool> isForum { };
1526 std::optional<bool> isDirectMessages { };
1527};
1528
1529TGBOT_API void from_json(const nlohmann::json& json, Chat::Type& value);
1530TGBOT_API void to_json(nlohmann::json& json, const Chat::Type& value);
1531
1532TGBOT_API void from_json(const nlohmann::json& json, Chat& value);
1533TGBOT_API void to_json(nlohmann::json& json, const Chat& value);
1534
1540 using Ptr = std::shared_ptr<ChatAdministratorRights>;
1541
1545 bool isAnonymous { };
1597 std::optional<bool> canPostMessages { };
1602 std::optional<bool> canEditMessages { };
1606 std::optional<bool> canPinMessages { };
1611 std::optional<bool> canManageTopics { };
1616 std::optional<bool> canManageDirectMessages { };
1621 std::optional<bool> canManageTags { };
1627};
1628
1629TGBOT_API void from_json(const nlohmann::json& json, ChatAdministratorRights& value);
1630TGBOT_API void to_json(nlohmann::json& json, const ChatAdministratorRights& value);
1631
1637 using Ptr = std::shared_ptr<ChatBackground>;
1638
1642 std::shared_ptr<BackgroundType> type { };
1643};
1644
1645TGBOT_API void from_json(const nlohmann::json& json, ChatBackground& value);
1646TGBOT_API void to_json(nlohmann::json& json, const ChatBackground& value);
1647
1653 using Ptr = std::shared_ptr<ChatBoost>;
1654
1658 std::string boostId { };
1662 std::int32_t addDate { };
1667 std::int32_t expirationDate { };
1671 std::shared_ptr<ChatBoostSource> source { };
1672};
1673
1674TGBOT_API void from_json(const nlohmann::json& json, ChatBoost& value);
1675TGBOT_API void to_json(nlohmann::json& json, const ChatBoost& value);
1676
1682 using Ptr = std::shared_ptr<ChatBoostAdded>;
1683
1687 std::uint32_t boostCount { };
1688};
1689
1690TGBOT_API void from_json(const nlohmann::json& json, ChatBoostAdded& value);
1691TGBOT_API void to_json(nlohmann::json& json, const ChatBoostAdded& value);
1692
1698 using Ptr = std::shared_ptr<ChatBoostRemoved>;
1699
1703 std::shared_ptr<Chat> chat { };
1707 std::string boostId { };
1711 std::int32_t removeDate { };
1715 std::shared_ptr<ChatBoostSource> source { };
1716};
1717
1718TGBOT_API void from_json(const nlohmann::json& json, ChatBoostRemoved& value);
1719TGBOT_API void to_json(nlohmann::json& json, const ChatBoostRemoved& value);
1720
1727 using Ptr = std::shared_ptr<ChatBoostSource>;
1728
1729 std::variant<std::shared_ptr<ChatBoostSourcePremium>, std::shared_ptr<ChatBoostSourceGiftCode>,
1730 std::shared_ptr<ChatBoostSourceGiveaway>>
1732};
1733
1734TGBOT_API void from_json(const nlohmann::json& json, ChatBoostSource& value);
1735TGBOT_API void to_json(nlohmann::json& json, const ChatBoostSource& value);
1736
1744 using Ptr = std::shared_ptr<ChatBoostSourceGiftCode>;
1745
1746 static TGBOT_API const std::string SOURCE;
1747
1751 std::string source { SOURCE };
1755 std::shared_ptr<User> user { };
1756};
1757
1758TGBOT_API void from_json(const nlohmann::json& json, ChatBoostSourceGiftCode& value);
1759TGBOT_API void to_json(nlohmann::json& json, const ChatBoostSourceGiftCode& value);
1760
1769 using Ptr = std::shared_ptr<ChatBoostSourceGiveaway>;
1770
1771 static TGBOT_API const std::string SOURCE;
1772
1776 std::string source { SOURCE };
1781 std::uint32_t giveawayMessageId { };
1786 std::shared_ptr<User> user { };
1791 std::optional<std::uint32_t> prizeStarCount { };
1795 std::optional<bool> isUnclaimed { };
1796};
1797
1798TGBOT_API void from_json(const nlohmann::json& json, ChatBoostSourceGiveaway& value);
1799TGBOT_API void to_json(nlohmann::json& json, const ChatBoostSourceGiveaway& value);
1800
1807 using Ptr = std::shared_ptr<ChatBoostSourcePremium>;
1808
1809 static TGBOT_API const std::string SOURCE;
1810
1814 std::string source { SOURCE };
1818 std::shared_ptr<User> user { };
1819};
1820
1821TGBOT_API void from_json(const nlohmann::json& json, ChatBoostSourcePremium& value);
1822TGBOT_API void to_json(nlohmann::json& json, const ChatBoostSourcePremium& value);
1823
1829 using Ptr = std::shared_ptr<ChatBoostUpdated>;
1830
1834 std::shared_ptr<Chat> chat { };
1838 std::shared_ptr<ChatBoost> boost { };
1839};
1840
1841TGBOT_API void from_json(const nlohmann::json& json, ChatBoostUpdated& value);
1842TGBOT_API void to_json(nlohmann::json& json, const ChatBoostUpdated& value);
1843
1849 using Ptr = std::shared_ptr<ChatFullInfo>;
1850
1857 std::int64_t id { };
1861 std::string type { };
1865 std::optional<std::string> title { };
1869 std::optional<std::string> username { };
1873 std::optional<std::string> firstName { };
1877 std::optional<std::string> lastName { };
1881 std::optional<bool> isForum { };
1885 std::optional<bool> isDirectMessages { };
1890 std::uint32_t accentColorId { };
1894 std::uint32_t maxReactionCount { };
1898 std::shared_ptr<ChatPhoto> photo { };
1903 std::optional<std::vector<std::string>> activeUsernames { };
1907 std::shared_ptr<Birthdate> birthdate { };
1911 std::shared_ptr<BusinessIntro> businessIntro { };
1915 std::shared_ptr<BusinessLocation> businessLocation { };
1919 std::shared_ptr<BusinessOpeningHours> businessOpeningHours { };
1923 std::shared_ptr<Chat> personalChat { };
1928 std::shared_ptr<Chat> parentChat { };
1933 std::optional<std::vector<std::shared_ptr<ReactionType>>> availableReactions { };
1938 std::optional<std::string> backgroundCustomEmojiId { };
1943 std::optional<std::uint32_t> profileAccentColorId { };
1948 std::optional<std::string> profileBackgroundCustomEmojiId { };
1953 std::optional<std::string> emojiStatusCustomEmojiId { };
1958 std::optional<std::int32_t> emojiStatusExpirationDate { };
1962 std::optional<std::string> bio { };
1967 std::optional<bool> hasPrivateForwards { };
1972 std::optional<bool> hasRestrictedVoiceAndVideoMessages { };
1976 std::optional<bool> joinToSendMessages { };
1981 std::optional<bool> joinByRequest { };
1985 std::optional<std::string> description { };
1989 std::optional<std::string> inviteLink { };
1993 std::shared_ptr<Message> pinnedMessage { };
1997 std::shared_ptr<ChatPermissions> permissions { };
2002 std::shared_ptr<AcceptedGiftTypes> acceptedGiftTypes { };
2007 std::optional<bool> canSendPaidMedia { };
2012 std::optional<std::uint32_t> slowModeDelay { };
2017 std::optional<std::uint32_t> unrestrictBoostCount { };
2022 std::optional<std::uint32_t> messageAutoDeleteTime { };
2027 std::optional<bool> hasAggressiveAntiSpamEnabled { };
2032 std::optional<bool> hasHiddenMembers { };
2036 std::optional<bool> hasProtectedContent { };
2041 std::optional<bool> hasVisibleHistory { };
2045 std::optional<std::string> stickerSetName { };
2049 std::optional<bool> canSetStickerSet { };
2054 std::optional<std::string> customEmojiStickerSetName { };
2062 std::optional<std::int64_t> linkedChatId { };
2066 std::shared_ptr<ChatLocation> location { };
2070 std::shared_ptr<UserRating> rating { };
2074 std::shared_ptr<Audio> firstProfileAudio { };
2079 std::shared_ptr<UniqueGiftColors> uniqueGiftColors { };
2084 std::optional<std::uint32_t> paidMessageStarCount { };
2089 std::shared_ptr<User> guardBot { };
2093 std::shared_ptr<Community> community { };
2098 std::shared_ptr<TonWalletCard> tonWalletCard { };
2103 std::shared_ptr<ChatShareTheme> shareTheme { };
2104};
2105
2106TGBOT_API void from_json(const nlohmann::json& json, ChatFullInfo& value);
2107TGBOT_API void to_json(nlohmann::json& json, const ChatFullInfo& value);
2108
2114 using Ptr = std::shared_ptr<ChatInviteLink>;
2115
2120 std::string inviteLink { };
2124 std::shared_ptr<User> creator { };
2132 bool isPrimary { };
2136 bool isRevoked { };
2140 std::optional<std::string> name { };
2144 std::optional<std::int32_t> expireDate { };
2149 std::optional<std::uint32_t> memberLimit { };
2153 std::optional<std::uint32_t> pendingJoinRequestCount { };
2158 std::optional<std::uint32_t> subscriptionPeriod { };
2163 std::optional<std::uint32_t> subscriptionPrice { };
2164};
2165
2166TGBOT_API void from_json(const nlohmann::json& json, ChatInviteLink& value);
2167TGBOT_API void to_json(nlohmann::json& json, const ChatInviteLink& value);
2168
2174 using Ptr = std::shared_ptr<ChatJoinRequest>;
2175
2179 std::shared_ptr<Chat> chat { };
2183 std::shared_ptr<User> from { };
2192 std::uint64_t userChatId { };
2196 std::int32_t date { };
2200 std::optional<std::string> bio { };
2204 std::shared_ptr<ChatInviteLink> inviteLink { };
2210 std::optional<std::string> queryId { };
2211};
2212
2213TGBOT_API void from_json(const nlohmann::json& json, ChatJoinRequest& value);
2214TGBOT_API void to_json(nlohmann::json& json, const ChatJoinRequest& value);
2215
2221 using Ptr = std::shared_ptr<ChatLocation>;
2222
2226 std::shared_ptr<Location> location { };
2230 std::string address { };
2231};
2232
2233TGBOT_API void from_json(const nlohmann::json& json, ChatLocation& value);
2234TGBOT_API void to_json(nlohmann::json& json, const ChatLocation& value);
2235
2243 using Ptr = std::shared_ptr<ChatMember>;
2244
2245 std::variant<std::shared_ptr<ChatMemberOwner>, std::shared_ptr<ChatMemberAdministrator>,
2246 std::shared_ptr<ChatMemberMember>, std::shared_ptr<ChatMemberRestricted>,
2247 std::shared_ptr<ChatMemberLeft>, std::shared_ptr<ChatMemberBanned>>
2249};
2250
2251TGBOT_API void from_json(const nlohmann::json& json, ChatMember& value);
2252TGBOT_API void to_json(nlohmann::json& json, const ChatMember& value);
2253
2259 using Ptr = std::shared_ptr<ChatMemberAdministrator>;
2260
2261 static TGBOT_API const std::string STATUS;
2262
2266 std::string status { STATUS };
2270 std::shared_ptr<User> user { };
2274 bool canBeEdited { };
2278 bool isAnonymous { };
2330 std::optional<bool> canPostMessages { };
2335 std::optional<bool> canEditMessages { };
2339 std::optional<bool> canPinMessages { };
2344 std::optional<bool> canManageTopics { };
2349 std::optional<bool> canManageDirectMessages { };
2354 std::optional<bool> canManageTags { };
2363 std::optional<std::string> customTitle { };
2364};
2365
2366TGBOT_API void from_json(const nlohmann::json& json, ChatMemberAdministrator& value);
2367TGBOT_API void to_json(nlohmann::json& json, const ChatMemberAdministrator& value);
2368
2375 using Ptr = std::shared_ptr<ChatMemberBanned>;
2376
2377 static TGBOT_API const std::string STATUS;
2378
2382 std::string status { STATUS };
2386 std::shared_ptr<User> user { };
2391 std::int32_t untilDate { };
2392};
2393
2394TGBOT_API void from_json(const nlohmann::json& json, ChatMemberBanned& value);
2395TGBOT_API void to_json(nlohmann::json& json, const ChatMemberBanned& value);
2396
2403 using Ptr = std::shared_ptr<ChatMemberLeft>;
2404
2405 static TGBOT_API const std::string STATUS;
2406
2410 std::string status { STATUS };
2414 std::shared_ptr<User> user { };
2415};
2416
2417TGBOT_API void from_json(const nlohmann::json& json, ChatMemberLeft& value);
2418TGBOT_API void to_json(nlohmann::json& json, const ChatMemberLeft& value);
2419
2425 using Ptr = std::shared_ptr<ChatMemberMember>;
2426
2427 static TGBOT_API const std::string STATUS;
2428
2432 std::string status { STATUS };
2436 std::optional<std::string> tag { };
2440 std::shared_ptr<User> user { };
2444 std::optional<std::int32_t> untilDate { };
2445};
2446
2447TGBOT_API void from_json(const nlohmann::json& json, ChatMemberMember& value);
2448TGBOT_API void to_json(nlohmann::json& json, const ChatMemberMember& value);
2449
2455 using Ptr = std::shared_ptr<ChatMemberOwner>;
2456
2457 static TGBOT_API const std::string STATUS;
2458
2462 std::string status { STATUS };
2466 std::shared_ptr<User> user { };
2470 bool isAnonymous { };
2474 std::optional<std::string> customTitle { };
2475};
2476
2477TGBOT_API void from_json(const nlohmann::json& json, ChatMemberOwner& value);
2478TGBOT_API void to_json(nlohmann::json& json, const ChatMemberOwner& value);
2479
2485 using Ptr = std::shared_ptr<ChatMemberRestricted>;
2486
2487 static TGBOT_API const std::string STATUS;
2488
2492 std::string status { STATUS };
2496 std::optional<std::string> tag { };
2500 std::shared_ptr<User> user { };
2504 bool isMember { };
2554 bool canEditTag { };
2575 std::int32_t untilDate { };
2576};
2577
2578TGBOT_API void from_json(const nlohmann::json& json, ChatMemberRestricted& value);
2579TGBOT_API void to_json(nlohmann::json& json, const ChatMemberRestricted& value);
2580
2586 using Ptr = std::shared_ptr<ChatMemberUpdated>;
2587
2591 std::shared_ptr<Chat> chat { };
2595 std::shared_ptr<User> from { };
2599 std::int32_t date { };
2603 std::shared_ptr<ChatMember> oldChatMember { };
2607 std::shared_ptr<ChatMember> newChatMember { };
2612 std::shared_ptr<ChatInviteLink> inviteLink { };
2617 std::optional<bool> viaJoinRequest { };
2621 std::optional<bool> viaChatFolderInviteLink { };
2622};
2623
2624TGBOT_API void from_json(const nlohmann::json& json, ChatMemberUpdated& value);
2625TGBOT_API void to_json(nlohmann::json& json, const ChatMemberUpdated& value);
2626
2632 using Ptr = std::shared_ptr<ChatOwnerChanged>;
2633
2637 std::shared_ptr<User> newOwner { };
2638};
2639
2640TGBOT_API void from_json(const nlohmann::json& json, ChatOwnerChanged& value);
2641TGBOT_API void to_json(nlohmann::json& json, const ChatOwnerChanged& value);
2642
2648 using Ptr = std::shared_ptr<ChatOwnerLeft>;
2649
2654 std::shared_ptr<User> newOwner { };
2655};
2656
2657TGBOT_API void from_json(const nlohmann::json& json, ChatOwnerLeft& value);
2658TGBOT_API void to_json(nlohmann::json& json, const ChatOwnerLeft& value);
2659
2665 using Ptr = std::shared_ptr<ChatPermissions>;
2666
2671 std::optional<bool> canSendMessages { };
2675 std::optional<bool> canSendAudios { };
2679 std::optional<bool> canSendDocuments { };
2683 std::optional<bool> canSendPhotos { };
2687 std::optional<bool> canSendVideos { };
2691 std::optional<bool> canSendVideoNotes { };
2695 std::optional<bool> canSendVoiceNotes { };
2699 std::optional<bool> canSendPolls { };
2704 std::optional<bool> canSendOtherMessages { };
2708 std::optional<bool> canAddWebPagePreviews { };
2713 std::optional<bool> canReactToMessages { };
2718 std::optional<bool> canEditTag { };
2723 std::optional<bool> canChangeInfo { };
2727 std::optional<bool> canInviteUsers { };
2731 std::optional<bool> canPinMessages { };
2736 std::optional<bool> canManageTopics { };
2737};
2738
2739TGBOT_API void from_json(const nlohmann::json& json, ChatPermissions& value);
2740TGBOT_API void to_json(nlohmann::json& json, const ChatPermissions& value);
2741
2747 using Ptr = std::shared_ptr<ChatPhoto>;
2748
2753 std::string smallFileId { };
2758 std::string smallFileUniqueId { };
2763 std::string bigFileId { };
2768 std::string bigFileUniqueId { };
2769};
2770
2771TGBOT_API void from_json(const nlohmann::json& json, ChatPhoto& value);
2772TGBOT_API void to_json(nlohmann::json& json, const ChatPhoto& value);
2773
2780 using Ptr = std::shared_ptr<ChatShareTheme>;
2781
2782 std::variant<std::shared_ptr<ChatShareThemeEmoji>, std::shared_ptr<ChatShareThemeUniqueGift>> value;
2783};
2784
2785TGBOT_API void from_json(const nlohmann::json& json, ChatShareTheme& value);
2786TGBOT_API void to_json(nlohmann::json& json, const ChatShareTheme& value);
2787
2794 using Ptr = std::shared_ptr<ChatShareThemeBackdrop>;
2795
2799 std::int32_t id { };
2803 std::string name { };
2807 std::shared_ptr<UniqueGiftBackdropColors> colors { };
2808};
2809
2810TGBOT_API void from_json(const nlohmann::json& json, ChatShareThemeBackdrop& value);
2811TGBOT_API void to_json(nlohmann::json& json, const ChatShareThemeBackdrop& value);
2812
2819 using Ptr = std::shared_ptr<ChatShareThemeBackdrops>;
2820
2824 std::vector<std::shared_ptr<ChatShareThemeBackdrop>> backdrops { };
2825};
2826
2827TGBOT_API void from_json(const nlohmann::json& json, ChatShareThemeBackdrops& value);
2828TGBOT_API void to_json(nlohmann::json& json, const ChatShareThemeBackdrops& value);
2829
2835 using Ptr = std::shared_ptr<ChatShareThemeEmoji>;
2836
2837 static TGBOT_API const std::string TYPE;
2838
2842 std::string type { TYPE };
2846 std::vector<std::shared_ptr<EmojiType>> emojis { };
2851 std::optional<std::int32_t> backgroundBackdropId { };
2852};
2853
2854TGBOT_API void from_json(const nlohmann::json& json, ChatShareThemeEmoji& value);
2855TGBOT_API void to_json(nlohmann::json& json, const ChatShareThemeEmoji& value);
2856
2862 using Ptr = std::shared_ptr<ChatShareThemeUniqueGift>;
2863
2864 static TGBOT_API const std::string TYPE;
2865
2869 std::string type { TYPE };
2873 std::shared_ptr<UniqueGift> gift { };
2874};
2875
2876TGBOT_API void from_json(const nlohmann::json& json, ChatShareThemeUniqueGift& value);
2877TGBOT_API void to_json(nlohmann::json& json, const ChatShareThemeUniqueGift& value);
2878
2885 using Ptr = std::shared_ptr<ChatShared>;
2886
2890 std::int32_t requestId { };
2899 std::int64_t chatId { };
2903 std::optional<std::string> title { };
2907 std::optional<std::string> username { };
2911 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
2912};
2913
2914TGBOT_API void from_json(const nlohmann::json& json, ChatShared& value);
2915TGBOT_API void to_json(nlohmann::json& json, const ChatShared& value);
2916
2922 using Ptr = std::shared_ptr<Checklist>;
2923
2927 std::string title { };
2931 std::optional<std::vector<std::shared_ptr<MessageEntity>>> titleEntities { };
2935 std::vector<std::shared_ptr<ChecklistTask>> tasks { };
2939 std::optional<bool> othersCanAddTasks { };
2944 std::optional<bool> othersCanMarkTasksAsDone { };
2945};
2946
2947TGBOT_API void from_json(const nlohmann::json& json, Checklist& value);
2948TGBOT_API void to_json(nlohmann::json& json, const Checklist& value);
2949
2955 using Ptr = std::shared_ptr<ChecklistTask>;
2956
2960 std::uint32_t id { };
2964 std::string text { };
2968 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
2972 std::shared_ptr<User> completedByUser { };
2976 std::shared_ptr<Chat> completedByChat { };
2981 std::optional<std::int32_t> completionDate { };
2982};
2983
2984TGBOT_API void from_json(const nlohmann::json& json, ChecklistTask& value);
2985TGBOT_API void to_json(nlohmann::json& json, const ChecklistTask& value);
2986
2992 using Ptr = std::shared_ptr<ChecklistTasksAdded>;
2993
2999 std::shared_ptr<Message> checklistMessage { };
3003 std::vector<std::shared_ptr<ChecklistTask>> tasks { };
3004};
3005
3006TGBOT_API void from_json(const nlohmann::json& json, ChecklistTasksAdded& value);
3007TGBOT_API void to_json(nlohmann::json& json, const ChecklistTasksAdded& value);
3008
3014 using Ptr = std::shared_ptr<ChecklistTasksDone>;
3015
3021 std::shared_ptr<Message> checklistMessage { };
3025 std::optional<std::vector<std::uint32_t>> markedAsDoneTaskIds { };
3029 std::optional<std::vector<std::uint32_t>> markedAsNotDoneTaskIds { };
3030};
3031
3032TGBOT_API void from_json(const nlohmann::json& json, ChecklistTasksDone& value);
3033TGBOT_API void to_json(nlohmann::json& json, const ChecklistTasksDone& value);
3034
3041 using Ptr = std::shared_ptr<ChosenInlineResult>;
3042
3046 std::string resultId { };
3050 std::shared_ptr<User> from { };
3054 std::shared_ptr<Location> location { };
3060 std::optional<std::string> inlineMessageId { };
3064 std::string query { };
3065};
3066
3067TGBOT_API void from_json(const nlohmann::json& json, ChosenInlineResult& value);
3068TGBOT_API void to_json(nlohmann::json& json, const ChosenInlineResult& value);
3069
3075 using Ptr = std::shared_ptr<Community>;
3076
3083 std::uint64_t id { };
3087 std::string name { };
3088};
3089
3090TGBOT_API void from_json(const nlohmann::json& json, Community& value);
3091TGBOT_API void to_json(nlohmann::json& json, const Community& value);
3092
3098 using Ptr = std::shared_ptr<CommunityChatAdded>;
3099
3103 std::shared_ptr<Community> community { };
3104};
3105
3106TGBOT_API void from_json(const nlohmann::json& json, CommunityChatAdded& value);
3107TGBOT_API void to_json(nlohmann::json& json, const CommunityChatAdded& value);
3108
3114 using Ptr = std::shared_ptr<CommunityChatJoined>;
3115
3119 std::shared_ptr<Community> community { };
3120};
3121
3122TGBOT_API void from_json(const nlohmann::json& json, CommunityChatJoined& value);
3123TGBOT_API void to_json(nlohmann::json& json, const CommunityChatJoined& value);
3124
3131 using Ptr = std::shared_ptr<CommunityChatRemoved>;
3132};
3133
3134TGBOT_API void from_json(const nlohmann::json& json, CommunityChatRemoved& value);
3135TGBOT_API void to_json(nlohmann::json& json, const CommunityChatRemoved& value);
3136
3141struct Contact {
3142 using Ptr = std::shared_ptr<Contact>;
3143
3147 std::string phoneNumber { };
3151 std::string firstName { };
3155 std::optional<std::string> lastName { };
3162 std::optional<std::uint64_t> userId { };
3166 std::optional<std::string> vcard { };
3167};
3168
3169TGBOT_API void from_json(const nlohmann::json& json, Contact& value);
3170TGBOT_API void to_json(nlohmann::json& json, const Contact& value);
3171
3178 using Ptr = std::shared_ptr<CopyTextButton>;
3179
3183 std::string text { };
3184};
3185
3186TGBOT_API void from_json(const nlohmann::json& json, CopyTextButton& value);
3187TGBOT_API void to_json(nlohmann::json& json, const CopyTextButton& value);
3188
3193struct Dice {
3194 using Ptr = std::shared_ptr<Dice>;
3195
3199 std::string emoji { };
3204 std::uint32_t value { };
3205};
3206
3207TGBOT_API void from_json(const nlohmann::json& json, Dice& value);
3208TGBOT_API void to_json(nlohmann::json& json, const Dice& value);
3209
3216 using Ptr = std::shared_ptr<DirectMessagePriceChanged>;
3217
3227 std::optional<std::uint32_t> directMessageStarCount { };
3228};
3229
3230TGBOT_API void from_json(const nlohmann::json& json, DirectMessagePriceChanged& value);
3231TGBOT_API void to_json(nlohmann::json& json, const DirectMessagePriceChanged& value);
3232
3238 using Ptr = std::shared_ptr<DirectMessagesTopic>;
3239
3246 std::uint64_t topicId { };
3251 std::shared_ptr<User> user { };
3252};
3253
3254TGBOT_API void from_json(const nlohmann::json& json, DirectMessagesTopic& value);
3255TGBOT_API void to_json(nlohmann::json& json, const DirectMessagesTopic& value);
3256
3262 using Ptr = std::shared_ptr<DisabledButton>;
3263};
3264
3265TGBOT_API void from_json(const nlohmann::json& json, DisabledButton& value);
3266TGBOT_API void to_json(nlohmann::json& json, const DisabledButton& value);
3267
3273struct Document {
3274 using Ptr = std::shared_ptr<Document>;
3275
3279 std::string fileId { };
3284 std::string fileUniqueId { };
3288 std::shared_ptr<PhotoSize> thumbnail { };
3292 std::optional<std::string> fileName { };
3296 std::optional<std::string> mimeType { };
3303 std::optional<std::uint64_t> fileSize { };
3304};
3305
3306TGBOT_API void from_json(const nlohmann::json& json, Document& value);
3307TGBOT_API void to_json(nlohmann::json& json, const Document& value);
3308
3315 using Ptr = std::shared_ptr<EmojiType>;
3316
3317 std::variant<std::shared_ptr<EmojiTypeEmoji>, std::shared_ptr<EmojiTypeCustomEmoji>> value;
3318};
3319
3320TGBOT_API void from_json(const nlohmann::json& json, EmojiType& value);
3321TGBOT_API void to_json(nlohmann::json& json, const EmojiType& value);
3322
3328 using Ptr = std::shared_ptr<EmojiTypeCustomEmoji>;
3329
3330 static TGBOT_API const std::string TYPE;
3331
3335 std::string type { TYPE };
3340 std::string customEmojiId { };
3341};
3342
3343TGBOT_API void from_json(const nlohmann::json& json, EmojiTypeCustomEmoji& value);
3344TGBOT_API void to_json(nlohmann::json& json, const EmojiTypeCustomEmoji& value);
3345
3351 using Ptr = std::shared_ptr<EmojiTypeEmoji>;
3352
3353 static TGBOT_API const std::string TYPE;
3354
3358 std::string type { TYPE };
3362 std::string emoji { };
3363};
3364
3365TGBOT_API void from_json(const nlohmann::json& json, EmojiTypeEmoji& value);
3366TGBOT_API void to_json(nlohmann::json& json, const EmojiTypeEmoji& value);
3367
3375 using Ptr = std::shared_ptr<EncryptedCredentials>;
3376
3381 std::string data { };
3385 std::string hash { };
3390 std::string secret { };
3391};
3392
3393TGBOT_API void from_json(const nlohmann::json& json, EncryptedCredentials& value);
3394TGBOT_API void to_json(nlohmann::json& json, const EncryptedCredentials& value);
3395
3401 using Ptr = std::shared_ptr<EncryptedPassportElement>;
3402
3408 std::string type { };
3415 std::optional<std::string> data { };
3419 std::optional<std::string> phoneNumber { };
3423 std::optional<std::string> email { };
3430 std::optional<std::vector<std::shared_ptr<PassportFile>>> files { };
3437 std::shared_ptr<PassportFile> frontSide { };
3443 std::shared_ptr<PassportFile> reverseSide { };
3450 std::shared_ptr<PassportFile> selfie { };
3458 std::optional<std::vector<std::shared_ptr<PassportFile>>> translation { };
3462 std::string hash { };
3463};
3464
3465TGBOT_API void from_json(const nlohmann::json& json, EncryptedPassportElement& value);
3466TGBOT_API void to_json(nlohmann::json& json, const EncryptedPassportElement& value);
3467
3473 using Ptr = std::shared_ptr<EphemeralMessageParameters>;
3474
3484 std::optional<std::uint64_t> receiverUserId { };
3492 std::optional<std::string> callbackQueryId { };
3498 std::optional<bool> replaceCallbackQueryMessage { };
3499};
3500
3501TGBOT_API void from_json(const nlohmann::json& json, EphemeralMessageParameters& value);
3502TGBOT_API void to_json(nlohmann::json& json, const EphemeralMessageParameters& value);
3503
3510 using Ptr = std::shared_ptr<ExternalReplyInfo>;
3511
3515 std::shared_ptr<MessageOrigin> origin { };
3520 std::shared_ptr<Chat> chat { };
3525 std::optional<std::uint32_t> messageId { };
3530 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions { };
3534 std::shared_ptr<Animation> animation { };
3538 std::shared_ptr<Audio> audio { };
3542 std::shared_ptr<Document> document { };
3546 std::shared_ptr<LivePhoto> livePhoto { };
3550 std::shared_ptr<PaidMediaInfo> paidMedia { };
3554 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
3558 std::shared_ptr<Sticker> sticker { };
3562 std::shared_ptr<Story> story { };
3566 std::shared_ptr<Video> video { };
3570 std::shared_ptr<VideoNote> videoNote { };
3574 std::shared_ptr<Voice> voice { };
3578 std::shared_ptr<Widget> widget { };
3582 std::optional<bool> hasMediaSpoiler { };
3586 std::shared_ptr<Checklist> checklist { };
3590 std::shared_ptr<Contact> contact { };
3594 std::shared_ptr<Dice> dice { };
3598 std::shared_ptr<Game> game { };
3602 std::shared_ptr<Giveaway> giveaway { };
3606 std::shared_ptr<GiveawayWinners> giveawayWinners { };
3611 std::shared_ptr<Invoice> invoice { };
3615 std::shared_ptr<Location> location { };
3619 std::shared_ptr<Poll> poll { };
3623 std::shared_ptr<Venue> venue { };
3624};
3625
3626TGBOT_API void from_json(const nlohmann::json& json, ExternalReplyInfo& value);
3627TGBOT_API void to_json(nlohmann::json& json, const ExternalReplyInfo& value);
3628
3636struct File {
3637 using Ptr = std::shared_ptr<File>;
3638
3642 std::string fileId { };
3647 std::string fileUniqueId { };
3654 std::optional<std::uint64_t> fileSize { };
3659 std::optional<std::string> filePath { };
3660};
3661
3662TGBOT_API void from_json(const nlohmann::json& json, File& value);
3663TGBOT_API void to_json(nlohmann::json& json, const File& value);
3664
3674 using Ptr = std::shared_ptr<ForceReply>;
3675
3680 bool forceReply { };
3685 std::optional<std::string> inputFieldPlaceholder { };
3692 std::optional<bool> selective { };
3693};
3694
3695TGBOT_API void from_json(const nlohmann::json& json, ForceReply& value);
3696TGBOT_API void to_json(nlohmann::json& json, const ForceReply& value);
3697
3703 using Ptr = std::shared_ptr<ForumTopic>;
3704
3708 std::uint32_t messageThreadId { };
3712 std::string name { };
3716 std::uint32_t iconColor { };
3720 std::optional<std::string> iconCustomEmojiId { };
3725 std::optional<bool> isNameImplicit { };
3726};
3727
3728TGBOT_API void from_json(const nlohmann::json& json, ForumTopic& value);
3729TGBOT_API void to_json(nlohmann::json& json, const ForumTopic& value);
3730
3737 using Ptr = std::shared_ptr<ForumTopicClosed>;
3738};
3739
3740TGBOT_API void from_json(const nlohmann::json& json, ForumTopicClosed& value);
3741TGBOT_API void to_json(nlohmann::json& json, const ForumTopicClosed& value);
3742
3748 using Ptr = std::shared_ptr<ForumTopicCreated>;
3749
3753 std::string name { };
3757 std::uint32_t iconColor { };
3761 std::optional<std::string> iconCustomEmojiId { };
3766 std::optional<bool> isNameImplicit { };
3767};
3768
3769TGBOT_API void from_json(const nlohmann::json& json, ForumTopicCreated& value);
3770TGBOT_API void to_json(nlohmann::json& json, const ForumTopicCreated& value);
3771
3777 using Ptr = std::shared_ptr<ForumTopicEdited>;
3778
3782 std::optional<std::string> name { };
3787 std::optional<std::string> iconCustomEmojiId { };
3788};
3789
3790TGBOT_API void from_json(const nlohmann::json& json, ForumTopicEdited& value);
3791TGBOT_API void to_json(nlohmann::json& json, const ForumTopicEdited& value);
3792
3799 using Ptr = std::shared_ptr<ForumTopicReopened>;
3800};
3801
3802TGBOT_API void from_json(const nlohmann::json& json, ForumTopicReopened& value);
3803TGBOT_API void to_json(nlohmann::json& json, const ForumTopicReopened& value);
3804
3810struct Game {
3811 using Ptr = std::shared_ptr<Game>;
3812
3816 std::string title { };
3820 std::string description { };
3824 std::vector<std::shared_ptr<PhotoSize>> photo { };
3830 std::optional<std::string> text { };
3835 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
3840 std::shared_ptr<Animation> animation { };
3841};
3842
3843TGBOT_API void from_json(const nlohmann::json& json, Game& value);
3844TGBOT_API void to_json(nlohmann::json& json, const Game& value);
3845
3851 using Ptr = std::shared_ptr<GameHighScore>;
3852
3856 std::uint32_t position { };
3860 std::shared_ptr<User> user { };
3864 std::uint32_t score { };
3865};
3866
3867TGBOT_API void from_json(const nlohmann::json& json, GameHighScore& value);
3868TGBOT_API void to_json(nlohmann::json& json, const GameHighScore& value);
3869
3876 using Ptr = std::shared_ptr<GeneralForumTopicHidden>;
3877};
3878
3879TGBOT_API void from_json(const nlohmann::json& json, GeneralForumTopicHidden& value);
3880TGBOT_API void to_json(nlohmann::json& json, const GeneralForumTopicHidden& value);
3881
3888 using Ptr = std::shared_ptr<GeneralForumTopicUnhidden>;
3889};
3890
3891TGBOT_API void from_json(const nlohmann::json& json, GeneralForumTopicUnhidden& value);
3892TGBOT_API void to_json(nlohmann::json& json, const GeneralForumTopicUnhidden& value);
3893
3898struct Gift {
3899 using Ptr = std::shared_ptr<Gift>;
3900
3904 std::string id { };
3908 std::shared_ptr<Sticker> sticker { };
3912 std::uint32_t starCount { };
3917 std::optional<std::uint32_t> upgradeStarCount { };
3921 std::optional<bool> isPremium { };
3926 std::optional<bool> hasColors { };
3931 std::optional<std::uint32_t> totalCount { };
3936 std::optional<std::uint32_t> remainingCount { };
3941 std::optional<std::uint32_t> personalTotalCount { };
3946 std::optional<std::uint32_t> personalRemainingCount { };
3950 std::shared_ptr<GiftBackground> background { };
3955 std::optional<std::uint32_t> uniqueGiftVariantCount { };
3959 std::shared_ptr<Chat> publisherChat { };
3960};
3961
3962TGBOT_API void from_json(const nlohmann::json& json, Gift& value);
3963TGBOT_API void to_json(nlohmann::json& json, const Gift& value);
3964
3970 using Ptr = std::shared_ptr<GiftBackground>;
3971
3975 std::uint32_t centerColor { };
3979 std::uint32_t edgeColor { };
3983 std::uint32_t textColor { };
3984};
3985
3986TGBOT_API void from_json(const nlohmann::json& json, GiftBackground& value);
3987TGBOT_API void to_json(nlohmann::json& json, const GiftBackground& value);
3988
3993struct GiftInfo {
3994 using Ptr = std::shared_ptr<GiftInfo>;
3995
3999 std::shared_ptr<Gift> gift { };
4004 std::optional<std::string> ownedGiftId { };
4009 std::optional<std::uint32_t> convertStarCount { };
4013 std::optional<std::uint32_t> prepaidUpgradeStarCount { };
4017 std::optional<bool> isUpgradeSeparate { };
4021 std::optional<bool> canBeUpgraded { };
4025 std::optional<std::string> text { };
4029 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
4034 std::optional<bool> isPrivate { };
4039 std::optional<std::uint32_t> uniqueGiftNumber { };
4040};
4041
4042TGBOT_API void from_json(const nlohmann::json& json, GiftInfo& value);
4043TGBOT_API void to_json(nlohmann::json& json, const GiftInfo& value);
4044
4049struct Gifts {
4050 using Ptr = std::shared_ptr<Gifts>;
4051
4055 std::vector<std::shared_ptr<Gift>> gifts { };
4056};
4057
4058TGBOT_API void from_json(const nlohmann::json& json, Gifts& value);
4059TGBOT_API void to_json(nlohmann::json& json, const Gifts& value);
4060
4065struct Giveaway {
4066 using Ptr = std::shared_ptr<Giveaway>;
4067
4071 std::vector<std::shared_ptr<Chat>> chats { };
4075 std::int32_t winnersSelectionDate { };
4079 std::uint32_t winnerCount { };
4084 std::optional<bool> onlyNewMembers { };
4088 std::optional<bool> hasPublicWinners { };
4092 std::optional<std::string> prizeDescription { };
4099 std::optional<std::vector<std::string>> countryCodes { };
4104 std::optional<std::uint32_t> prizeStarCount { };
4109 std::optional<std::uint32_t> premiumSubscriptionMonthCount { };
4110};
4111
4112TGBOT_API void from_json(const nlohmann::json& json, Giveaway& value);
4113TGBOT_API void to_json(nlohmann::json& json, const Giveaway& value);
4114
4121 using Ptr = std::shared_ptr<GiveawayCompleted>;
4122
4126 std::uint32_t winnerCount { };
4130 std::optional<std::uint32_t> unclaimedPrizeCount { };
4134 std::shared_ptr<Message> giveawayMessage { };
4139 std::optional<bool> isStarGiveaway { };
4140};
4141
4142TGBOT_API void from_json(const nlohmann::json& json, GiveawayCompleted& value);
4143TGBOT_API void to_json(nlohmann::json& json, const GiveawayCompleted& value);
4144
4150 using Ptr = std::shared_ptr<GiveawayCreated>;
4151
4156 std::optional<std::uint32_t> prizeStarCount { };
4157};
4158
4159TGBOT_API void from_json(const nlohmann::json& json, GiveawayCreated& value);
4160TGBOT_API void to_json(nlohmann::json& json, const GiveawayCreated& value);
4161
4167 using Ptr = std::shared_ptr<GiveawayWinners>;
4168
4172 std::shared_ptr<Chat> chat { };
4176 std::uint32_t giveawayMessageId { };
4180 std::int32_t winnersSelectionDate { };
4184 std::uint32_t winnerCount { };
4188 std::vector<std::shared_ptr<User>> winners { };
4193 std::optional<std::uint32_t> additionalChatCount { };
4198 std::optional<std::uint32_t> prizeStarCount { };
4203 std::optional<std::uint32_t> premiumSubscriptionMonthCount { };
4207 std::optional<std::uint32_t> unclaimedPrizeCount { };
4212 std::optional<bool> onlyNewMembers { };
4216 std::optional<bool> wasRefunded { };
4220 std::optional<std::string> prizeDescription { };
4221};
4222
4223TGBOT_API void from_json(const nlohmann::json& json, GiveawayWinners& value);
4224TGBOT_API void to_json(nlohmann::json& json, const GiveawayWinners& value);
4225
4231 using Ptr = std::shared_ptr<InaccessibleMessage>;
4232
4236 std::shared_ptr<Chat> chat { };
4240 std::uint32_t messageId { };
4244 std::uint32_t date { };
4245};
4246
4247TGBOT_API void from_json(const nlohmann::json& json, InaccessibleMessage& value);
4248TGBOT_API void to_json(nlohmann::json& json, const InaccessibleMessage& value);
4249
4256 using Ptr = std::shared_ptr<InlineKeyboardButton>;
4257
4261 std::string text { };
4268 std::optional<std::string> iconCustomEmojiId { };
4273 std::optional<std::string> style { };
4279 std::optional<std::string> url { };
4284 std::optional<std::string> callbackData { };
4292 std::shared_ptr<WebAppInfo> webApp { };
4297 std::shared_ptr<LoginUrl> loginUrl { };
4305 std::optional<std::string> switchInlineQuery { };
4314 std::optional<std::string> switchInlineQueryCurrentChat { };
4321 std::shared_ptr<SwitchInlineQueryChosenChat> switchInlineQueryChosenChat { };
4325 std::shared_ptr<CopyTextButton> copyText { };
4330 std::shared_ptr<CallbackGame> callbackGame { };
4336 std::optional<bool> pay { };
4340 std::shared_ptr<DisabledButton> disabled { };
4341};
4342
4343TGBOT_API void from_json(const nlohmann::json& json, InlineKeyboardButton& value);
4344TGBOT_API void to_json(nlohmann::json& json, const InlineKeyboardButton& value);
4345
4352 using Ptr = std::shared_ptr<InlineKeyboardMarkup>;
4353
4357 std::vector<std::vector<std::shared_ptr<InlineKeyboardButton>>> inlineKeyboard { };
4363 std::optional<bool> forceReply { };
4364};
4365
4366TGBOT_API void from_json(const nlohmann::json& json, InlineKeyboardMarkup& value);
4367TGBOT_API void to_json(nlohmann::json& json, const InlineKeyboardMarkup& value);
4368
4375 using Ptr = std::shared_ptr<InlineQuery>;
4376
4380 std::string id { };
4384 std::shared_ptr<User> from { };
4388 std::string query { };
4392 std::string offset { };
4399 std::optional<std::string> chatType { };
4403 std::shared_ptr<Location> location { };
4404};
4405
4406TGBOT_API void from_json(const nlohmann::json& json, InlineQuery& value);
4407TGBOT_API void to_json(nlohmann::json& json, const InlineQuery& value);
4408
4423 using Ptr = std::shared_ptr<InlineQueryResult>;
4424
4425 std::variant<std::shared_ptr<InlineQueryResultCachedAudio>, std::shared_ptr<InlineQueryResultCachedDocument>,
4426 std::shared_ptr<InlineQueryResultCachedGif>, std::shared_ptr<InlineQueryResultCachedMpeg4Gif>,
4427 std::shared_ptr<InlineQueryResultCachedPhoto>, std::shared_ptr<InlineQueryResultCachedSticker>,
4428 std::shared_ptr<InlineQueryResultCachedVideo>, std::shared_ptr<InlineQueryResultCachedVoice>,
4429 std::shared_ptr<InlineQueryResultArticle>, std::shared_ptr<InlineQueryResultAudio>,
4430 std::shared_ptr<InlineQueryResultContact>, std::shared_ptr<InlineQueryResultGame>,
4431 std::shared_ptr<InlineQueryResultDocument>, std::shared_ptr<InlineQueryResultGif>,
4432 std::shared_ptr<InlineQueryResultLocation>, std::shared_ptr<InlineQueryResultMpeg4Gif>,
4433 std::shared_ptr<InlineQueryResultPhoto>, std::shared_ptr<InlineQueryResultVenue>,
4434 std::shared_ptr<InlineQueryResultVideo>, std::shared_ptr<InlineQueryResultVoice>>
4436};
4437
4438TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResult& value);
4439TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResult& value);
4440
4446 using Ptr = std::shared_ptr<InlineQueryResultArticle>;
4447
4448 static TGBOT_API const std::string TYPE;
4449
4453 std::string type { TYPE };
4457 std::string id { };
4461 std::string title { };
4465 std::shared_ptr<InputMessageContent> inputMessageContent { };
4469 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4473 std::optional<std::string> url { };
4477 std::optional<std::string> description { };
4481 std::optional<std::string> thumbnailUrl { };
4485 std::optional<std::uint32_t> thumbnailWidth { };
4489 std::optional<std::uint32_t> thumbnailHeight { };
4490};
4491
4492TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultArticle& value);
4493TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultArticle& value);
4494
4502 using Ptr = std::shared_ptr<InlineQueryResultAudio>;
4503
4504 static TGBOT_API const std::string TYPE;
4505
4509 std::string type { TYPE };
4513 std::string id { };
4517 std::string audioUrl { };
4521 std::string title { };
4525 std::optional<std::string> caption { };
4530 std::optional<std::string> parseMode { };
4535 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4539 std::optional<std::string> performer { };
4543 std::optional<std::uint32_t> audioDuration { };
4547 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4551 std::shared_ptr<InputMessageContent> inputMessageContent { };
4552};
4553
4554TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultAudio& value);
4555TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultAudio& value);
4556
4564 using Ptr = std::shared_ptr<InlineQueryResultCachedAudio>;
4565
4566 static TGBOT_API const std::string TYPE;
4567
4571 std::string type { TYPE };
4575 std::string id { };
4579 std::string audioFileId { };
4583 std::optional<std::string> caption { };
4588 std::optional<std::string> parseMode { };
4593 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4597 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4601 std::shared_ptr<InputMessageContent> inputMessageContent { };
4602};
4603
4604TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedAudio& value);
4605TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedAudio& value);
4606
4614 using Ptr = std::shared_ptr<InlineQueryResultCachedDocument>;
4615
4616 static TGBOT_API const std::string TYPE;
4617
4621 std::string type { TYPE };
4625 std::string id { };
4629 std::string title { };
4633 std::string documentFileId { };
4637 std::optional<std::string> description { };
4641 std::optional<std::string> caption { };
4646 std::optional<std::string> parseMode { };
4651 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4655 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4659 std::shared_ptr<InputMessageContent> inputMessageContent { };
4660};
4661
4662TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedDocument& value);
4663TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedDocument& value);
4664
4672 using Ptr = std::shared_ptr<InlineQueryResultCachedGif>;
4673
4674 static TGBOT_API const std::string TYPE;
4675
4679 std::string type { TYPE };
4683 std::string id { };
4687 std::string gifFileId { };
4691 std::optional<std::string> title { };
4695 std::optional<std::string> caption { };
4700 std::optional<std::string> parseMode { };
4705 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4709 std::optional<bool> showCaptionAboveMedia { };
4713 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4717 std::shared_ptr<InputMessageContent> inputMessageContent { };
4718};
4719
4720TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedGif& value);
4721TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedGif& value);
4722
4731 using Ptr = std::shared_ptr<InlineQueryResultCachedMpeg4Gif>;
4732
4733 static TGBOT_API const std::string TYPE;
4734
4738 std::string type { TYPE };
4742 std::string id { };
4746 std::string mpeg4FileId { };
4750 std::optional<std::string> title { };
4755 std::optional<std::string> caption { };
4760 std::optional<std::string> parseMode { };
4765 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4769 std::optional<bool> showCaptionAboveMedia { };
4773 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4777 std::shared_ptr<InputMessageContent> inputMessageContent { };
4778};
4779
4780TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedMpeg4Gif& value);
4781TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedMpeg4Gif& value);
4782
4790 using Ptr = std::shared_ptr<InlineQueryResultCachedPhoto>;
4791
4792 static TGBOT_API const std::string TYPE;
4793
4797 std::string type { TYPE };
4801 std::string id { };
4805 std::string photoFileId { };
4809 std::optional<std::string> title { };
4813 std::optional<std::string> description { };
4817 std::optional<std::string> caption { };
4822 std::optional<std::string> parseMode { };
4827 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4831 std::optional<bool> showCaptionAboveMedia { };
4835 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4839 std::shared_ptr<InputMessageContent> inputMessageContent { };
4840};
4841
4842TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedPhoto& value);
4843TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedPhoto& value);
4844
4852 using Ptr = std::shared_ptr<InlineQueryResultCachedSticker>;
4853
4854 static TGBOT_API const std::string TYPE;
4855
4859 std::string type { TYPE };
4863 std::string id { };
4867 std::string stickerFileId { };
4871 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4875 std::shared_ptr<InputMessageContent> inputMessageContent { };
4876};
4877
4878TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedSticker& value);
4879TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedSticker& value);
4880
4888 using Ptr = std::shared_ptr<InlineQueryResultCachedVideo>;
4889
4890 static TGBOT_API const std::string TYPE;
4891
4895 std::string type { TYPE };
4899 std::string id { };
4903 std::string videoFileId { };
4907 std::string title { };
4911 std::optional<std::string> description { };
4915 std::optional<std::string> caption { };
4920 std::optional<std::string> parseMode { };
4925 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4929 std::optional<bool> showCaptionAboveMedia { };
4933 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4937 std::shared_ptr<InputMessageContent> inputMessageContent { };
4938};
4939
4940TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedVideo& value);
4941TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedVideo& value);
4942
4950 using Ptr = std::shared_ptr<InlineQueryResultCachedVoice>;
4951
4952 static TGBOT_API const std::string TYPE;
4953
4957 std::string type { TYPE };
4961 std::string id { };
4965 std::string voiceFileId { };
4969 std::string title { };
4973 std::optional<std::string> caption { };
4978 std::optional<std::string> parseMode { };
4983 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
4987 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
4991 std::shared_ptr<InputMessageContent> inputMessageContent { };
4992};
4993
4994TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultCachedVoice& value);
4995TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultCachedVoice& value);
4996
5004 using Ptr = std::shared_ptr<InlineQueryResultContact>;
5005
5006 static TGBOT_API const std::string TYPE;
5007
5011 std::string type { TYPE };
5015 std::string id { };
5019 std::string phoneNumber { };
5023 std::string firstName { };
5027 std::optional<std::string> lastName { };
5031 std::optional<std::string> vcard { };
5035 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5039 std::shared_ptr<InputMessageContent> inputMessageContent { };
5043 std::optional<std::string> thumbnailUrl { };
5047 std::optional<std::uint32_t> thumbnailWidth { };
5051 std::optional<std::uint32_t> thumbnailHeight { };
5052};
5053
5054TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultContact& value);
5055TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultContact& value);
5056
5065 using Ptr = std::shared_ptr<InlineQueryResultDocument>;
5066
5067 static TGBOT_API const std::string TYPE;
5068
5072 std::string type { TYPE };
5076 std::string id { };
5080 std::string title { };
5084 std::optional<std::string> caption { };
5089 std::optional<std::string> parseMode { };
5094 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5098 std::string documentUrl { };
5102 std::string mimeType { };
5106 std::optional<std::string> description { };
5110 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5114 std::shared_ptr<InputMessageContent> inputMessageContent { };
5118 std::optional<std::string> thumbnailUrl { };
5122 std::optional<std::uint32_t> thumbnailWidth { };
5126 std::optional<std::uint32_t> thumbnailHeight { };
5127};
5128
5129TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultDocument& value);
5130TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultDocument& value);
5131
5137 using Ptr = std::shared_ptr<InlineQueryResultGame>;
5138
5139 static TGBOT_API const std::string TYPE;
5140
5144 std::string type { TYPE };
5148 std::string id { };
5152 std::string gameShortName { };
5156 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5157};
5158
5159TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultGame& value);
5160TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultGame& value);
5161
5169 using Ptr = std::shared_ptr<InlineQueryResultGif>;
5170
5171 static TGBOT_API const std::string TYPE;
5172
5176 std::string type { TYPE };
5180 std::string id { };
5184 std::string gifUrl { };
5188 std::optional<std::uint32_t> gifWidth { };
5192 std::optional<std::uint32_t> gifHeight { };
5196 std::optional<std::uint32_t> gifDuration { };
5200 std::string thumbnailUrl { };
5205 std::optional<std::string> thumbnailMimeType { };
5209 std::optional<std::string> title { };
5213 std::optional<std::string> caption { };
5218 std::optional<std::string> parseMode { };
5223 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5227 std::optional<bool> showCaptionAboveMedia { };
5231 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5235 std::shared_ptr<InputMessageContent> inputMessageContent { };
5236};
5237
5238TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultGif& value);
5239TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultGif& value);
5240
5248 using Ptr = std::shared_ptr<InlineQueryResultLocation>;
5249
5250 static TGBOT_API const std::string TYPE;
5251
5255 std::string type { TYPE };
5259 std::string id { };
5263 double latitude { };
5267 double longitude { };
5271 std::string title { };
5275 std::optional<double> horizontalAccuracy { };
5280 std::optional<std::uint32_t> livePeriod { };
5285 std::optional<std::uint32_t> heading { };
5290 std::optional<std::uint32_t> proximityAlertRadius { };
5294 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5298 std::shared_ptr<InputMessageContent> inputMessageContent { };
5302 std::optional<std::string> thumbnailUrl { };
5306 std::optional<std::uint32_t> thumbnailWidth { };
5310 std::optional<std::uint32_t> thumbnailHeight { };
5311};
5312
5313TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultLocation& value);
5314TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultLocation& value);
5315
5324 using Ptr = std::shared_ptr<InlineQueryResultMpeg4Gif>;
5325
5326 static TGBOT_API const std::string TYPE;
5327
5331 std::string type { TYPE };
5335 std::string id { };
5339 std::string mpeg4Url { };
5343 std::optional<std::uint32_t> mpeg4Width { };
5347 std::optional<std::uint32_t> mpeg4Height { };
5351 std::optional<std::uint32_t> mpeg4Duration { };
5355 std::string thumbnailUrl { };
5360 std::optional<std::string> thumbnailMimeType { };
5364 std::optional<std::string> title { };
5369 std::optional<std::string> caption { };
5374 std::optional<std::string> parseMode { };
5379 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5383 std::optional<bool> showCaptionAboveMedia { };
5387 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5391 std::shared_ptr<InputMessageContent> inputMessageContent { };
5392};
5393
5394TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultMpeg4Gif& value);
5395TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultMpeg4Gif& value);
5396
5404 using Ptr = std::shared_ptr<InlineQueryResultPhoto>;
5405
5406 static TGBOT_API const std::string TYPE;
5407
5411 std::string type { TYPE };
5415 std::string id { };
5419 std::string photoUrl { };
5423 std::string thumbnailUrl { };
5427 std::optional<std::uint32_t> photoWidth { };
5431 std::optional<std::uint32_t> photoHeight { };
5435 std::optional<std::string> title { };
5439 std::optional<std::string> description { };
5443 std::optional<std::string> caption { };
5448 std::optional<std::string> parseMode { };
5453 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5457 std::optional<bool> showCaptionAboveMedia { };
5461 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5465 std::shared_ptr<InputMessageContent> inputMessageContent { };
5466};
5467
5468TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultPhoto& value);
5469TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultPhoto& value);
5470
5477 using Ptr = std::shared_ptr<InlineQueryResultVenue>;
5478
5479 static TGBOT_API const std::string TYPE;
5480
5484 std::string type { TYPE };
5488 std::string id { };
5492 double latitude { };
5496 double longitude { };
5500 std::string title { };
5504 std::string address { };
5508 std::optional<std::string> foursquareId { };
5513 std::optional<std::string> foursquareType { };
5517 std::optional<std::string> googlePlaceId { };
5521 std::optional<std::string> googlePlaceType { };
5525 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5529 std::shared_ptr<InputMessageContent> inputMessageContent { };
5533 std::optional<std::string> thumbnailUrl { };
5537 std::optional<std::uint32_t> thumbnailWidth { };
5541 std::optional<std::uint32_t> thumbnailHeight { };
5542};
5543
5544TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultVenue& value);
5545TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultVenue& value);
5546
5554 using Ptr = std::shared_ptr<InlineQueryResultVideo>;
5555
5556 static TGBOT_API const std::string TYPE;
5557
5561 std::string type { TYPE };
5565 std::string id { };
5569 std::string videoUrl { };
5573 std::string mimeType { };
5577 std::string thumbnailUrl { };
5581 std::string title { };
5585 std::optional<std::string> caption { };
5590 std::optional<std::string> parseMode { };
5595 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5599 std::optional<bool> showCaptionAboveMedia { };
5603 std::optional<std::uint32_t> videoWidth { };
5607 std::optional<std::uint32_t> videoHeight { };
5611 std::optional<std::uint32_t> videoDuration { };
5615 std::optional<std::string> description { };
5619 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5625 std::shared_ptr<InputMessageContent> inputMessageContent { };
5626};
5627
5628TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultVideo& value);
5629TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultVideo& value);
5630
5639 using Ptr = std::shared_ptr<InlineQueryResultVoice>;
5640
5641 static TGBOT_API const std::string TYPE;
5642
5646 std::string type { TYPE };
5650 std::string id { };
5654 std::string voiceUrl { };
5658 std::string title { };
5662 std::optional<std::string> caption { };
5667 std::optional<std::string> parseMode { };
5672 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
5676 std::optional<std::uint32_t> voiceDuration { };
5680 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
5684 std::shared_ptr<InputMessageContent> inputMessageContent { };
5685};
5686
5687TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultVoice& value);
5688TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultVoice& value);
5689
5696 using Ptr = std::shared_ptr<InlineQueryResultsButton>;
5697
5701 std::string text { };
5707 std::shared_ptr<WebAppInfo> webApp { };
5719 std::optional<std::string> startParameter { };
5720};
5721
5722TGBOT_API void from_json(const nlohmann::json& json, InlineQueryResultsButton& value);
5723TGBOT_API void to_json(nlohmann::json& json, const InlineQueryResultsButton& value);
5724
5730 using Ptr = std::shared_ptr<InputChecklist>;
5731
5735 std::string title { };
5740 std::optional<std::string> parseMode { };
5746 std::optional<std::vector<std::shared_ptr<MessageEntity>>> titleEntities { };
5750 std::vector<std::shared_ptr<InputChecklistTask>> tasks { };
5754 std::optional<bool> othersCanAddTasks { };
5758 std::optional<bool> othersCanMarkTasksAsDone { };
5759};
5760
5761TGBOT_API void from_json(const nlohmann::json& json, InputChecklist& value);
5762TGBOT_API void to_json(nlohmann::json& json, const InputChecklist& value);
5763
5769 using Ptr = std::shared_ptr<InputChecklistTask>;
5770
5775 std::uint32_t id { };
5779 std::string text { };
5784 std::optional<std::string> parseMode { };
5790 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
5791};
5792
5793TGBOT_API void from_json(const nlohmann::json& json, InputChecklistTask& value);
5794TGBOT_API void to_json(nlohmann::json& json, const InputChecklistTask& value);
5795
5801 using Ptr = std::shared_ptr<InputContactMessageContent>;
5802
5806 std::string phoneNumber { };
5810 std::string firstName { };
5814 std::optional<std::string> lastName { };
5818 std::optional<std::string> vcard { };
5819};
5820
5821TGBOT_API void from_json(const nlohmann::json& json, InputContactMessageContent& value);
5822TGBOT_API void to_json(nlohmann::json& json, const InputContactMessageContent& value);
5823
5829 using Ptr = std::shared_ptr<InputInvoiceMessageContent>;
5830
5834 std::string title { };
5838 std::string description { };
5843 std::string payload { };
5848 std::optional<std::string> providerToken { };
5853 std::string currency { };
5859 std::vector<std::shared_ptr<LabeledPrice>> prices { };
5867 std::optional<std::uint64_t> maxTipAmount { };
5874 std::optional<std::vector<std::uint64_t>> suggestedTipAmounts { };
5880 std::optional<std::string> providerData { };
5885 std::optional<std::string> photoUrl { };
5889 std::optional<std::uint32_t> photoSize { };
5893 std::optional<std::uint32_t> photoWidth { };
5897 std::optional<std::uint32_t> photoHeight { };
5902 std::optional<bool> needName { };
5907 std::optional<bool> needPhoneNumber { };
5912 std::optional<bool> needEmail { };
5917 std::optional<bool> needShippingAddress { };
5922 std::optional<bool> sendPhoneNumberToProvider { };
5927 std::optional<bool> sendEmailToProvider { };
5932 std::optional<bool> isFlexible { };
5933};
5934
5935TGBOT_API void from_json(const nlohmann::json& json, InputInvoiceMessageContent& value);
5936TGBOT_API void to_json(nlohmann::json& json, const InputInvoiceMessageContent& value);
5937
5943 using Ptr = std::shared_ptr<InputLocationMessageContent>;
5944
5948 double latitude { };
5952 double longitude { };
5956 std::optional<double> horizontalAccuracy { };
5961 std::optional<std::uint32_t> livePeriod { };
5966 std::optional<std::uint32_t> heading { };
5971 std::optional<std::uint32_t> proximityAlertRadius { };
5972};
5973
5974TGBOT_API void from_json(const nlohmann::json& json, InputLocationMessageContent& value);
5975TGBOT_API void to_json(nlohmann::json& json, const InputLocationMessageContent& value);
5976
5984 using Ptr = std::shared_ptr<InputMedia>;
5985
5986 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaAudio>,
5987 std::shared_ptr<InputMediaDocument>, std::shared_ptr<InputMediaLivePhoto>,
5988 std::shared_ptr<InputMediaPhoto>, std::shared_ptr<InputMediaVideo>>
5990};
5991
5992TGBOT_API void from_json(const nlohmann::json& json, InputMedia& value);
5993TGBOT_API void to_json(nlohmann::json& json, const InputMedia& value);
5994
6000 using Ptr = std::shared_ptr<InputMediaAnimation>;
6001
6002 static TGBOT_API const std::string TYPE;
6003
6007 std::string type { TYPE };
6014 std::string media { };
6024 std::optional<std::string> thumbnail { };
6028 std::optional<std::string> caption { };
6033 std::optional<std::string> parseMode { };
6038 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6042 std::optional<bool> showCaptionAboveMedia { };
6046 std::optional<std::uint32_t> width { };
6050 std::optional<std::uint32_t> height { };
6054 std::optional<std::uint32_t> duration { };
6058 std::optional<bool> hasSpoiler { };
6059};
6060
6061TGBOT_API void from_json(const nlohmann::json& json, InputMediaAnimation& value);
6062TGBOT_API void to_json(nlohmann::json& json, const InputMediaAnimation& value);
6063
6069 using Ptr = std::shared_ptr<InputMediaAudio>;
6070
6071 static TGBOT_API const std::string TYPE;
6072
6076 std::string type { TYPE };
6083 std::string media { };
6093 std::optional<std::string> thumbnail { };
6097 std::optional<std::string> caption { };
6102 std::optional<std::string> parseMode { };
6107 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6111 std::optional<std::uint32_t> duration { };
6115 std::optional<std::string> performer { };
6119 std::optional<std::string> title { };
6120};
6121
6122TGBOT_API void from_json(const nlohmann::json& json, InputMediaAudio& value);
6123TGBOT_API void to_json(nlohmann::json& json, const InputMediaAudio& value);
6124
6130 using Ptr = std::shared_ptr<InputMediaDocument>;
6131
6132 static TGBOT_API const std::string TYPE;
6133
6137 std::string type { TYPE };
6144 std::string media { };
6154 std::optional<std::string> thumbnail { };
6158 std::optional<std::string> caption { };
6163 std::optional<std::string> parseMode { };
6168 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6173 std::optional<bool> disableContentTypeDetection { };
6174};
6175
6176TGBOT_API void from_json(const nlohmann::json& json, InputMediaDocument& value);
6177TGBOT_API void to_json(nlohmann::json& json, const InputMediaDocument& value);
6178
6184 using Ptr = std::shared_ptr<InputMediaLink>;
6185
6186 static TGBOT_API const std::string TYPE;
6187
6191 std::string type { TYPE };
6195 std::string url { };
6196};
6197
6198TGBOT_API void from_json(const nlohmann::json& json, InputMediaLink& value);
6199TGBOT_API void to_json(nlohmann::json& json, const InputMediaLink& value);
6200
6206 using Ptr = std::shared_ptr<InputMediaLivePhoto>;
6207
6208 static TGBOT_API const std::string TYPE;
6209
6213 std::string type { TYPE };
6220 std::string media { };
6227 std::string photo { };
6231 std::optional<std::string> caption { };
6236 std::optional<std::string> parseMode { };
6241 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6245 std::optional<bool> showCaptionAboveMedia { };
6249 std::optional<bool> hasSpoiler { };
6250};
6251
6252TGBOT_API void from_json(const nlohmann::json& json, InputMediaLivePhoto& value);
6253TGBOT_API void to_json(nlohmann::json& json, const InputMediaLivePhoto& value);
6254
6260 using Ptr = std::shared_ptr<InputMediaLocation>;
6261
6262 static TGBOT_API const std::string TYPE;
6263
6267 std::string type { TYPE };
6271 double latitude { };
6275 double longitude { };
6279 std::optional<double> horizontalAccuracy { };
6280};
6281
6282TGBOT_API void from_json(const nlohmann::json& json, InputMediaLocation& value);
6283TGBOT_API void to_json(nlohmann::json& json, const InputMediaLocation& value);
6284
6290 using Ptr = std::shared_ptr<InputMediaPhoto>;
6291
6292 static TGBOT_API const std::string TYPE;
6293
6297 std::string type { TYPE };
6304 std::string media { };
6308 std::optional<std::string> caption { };
6313 std::optional<std::string> parseMode { };
6318 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6322 std::optional<bool> showCaptionAboveMedia { };
6326 std::optional<bool> hasSpoiler { };
6327};
6328
6329TGBOT_API void from_json(const nlohmann::json& json, InputMediaPhoto& value);
6330TGBOT_API void to_json(nlohmann::json& json, const InputMediaPhoto& value);
6331
6337 using Ptr = std::shared_ptr<InputMediaSticker>;
6338
6339 static TGBOT_API const std::string TYPE;
6340
6344 std::string type { TYPE };
6352 std::string media { };
6356 std::optional<std::string> emoji { };
6357};
6358
6359TGBOT_API void from_json(const nlohmann::json& json, InputMediaSticker& value);
6360TGBOT_API void to_json(nlohmann::json& json, const InputMediaSticker& value);
6361
6367 using Ptr = std::shared_ptr<InputMediaVenue>;
6368
6369 static TGBOT_API const std::string TYPE;
6370
6374 std::string type { TYPE };
6378 double latitude { };
6382 double longitude { };
6386 std::string title { };
6390 std::string address { };
6394 std::optional<std::string> foursquareId { };
6399 std::optional<std::string> foursquareType { };
6403 std::optional<std::string> googlePlaceId { };
6407 std::optional<std::string> googlePlaceType { };
6408};
6409
6410TGBOT_API void from_json(const nlohmann::json& json, InputMediaVenue& value);
6411TGBOT_API void to_json(nlohmann::json& json, const InputMediaVenue& value);
6412
6418 using Ptr = std::shared_ptr<InputMediaVideo>;
6419
6420 static TGBOT_API const std::string TYPE;
6421
6425 std::string type { TYPE };
6432 std::string media { };
6442 std::optional<std::string> thumbnail { };
6449 std::optional<std::string> cover { };
6453 std::optional<std::uint32_t> startTimestamp { };
6457 std::optional<std::string> caption { };
6462 std::optional<std::string> parseMode { };
6467 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6471 std::optional<bool> showCaptionAboveMedia { };
6475 std::optional<std::uint32_t> width { };
6479 std::optional<std::uint32_t> height { };
6483 std::optional<std::uint32_t> duration { };
6487 std::optional<bool> supportsStreaming { };
6491 std::optional<bool> hasSpoiler { };
6492};
6493
6494TGBOT_API void from_json(const nlohmann::json& json, InputMediaVideo& value);
6495TGBOT_API void to_json(nlohmann::json& json, const InputMediaVideo& value);
6496
6502 using Ptr = std::shared_ptr<InputMediaVoiceNote>;
6503
6504 static TGBOT_API const std::string TYPE;
6505
6509 std::string type { TYPE };
6516 std::string media { };
6521 std::optional<std::string> caption { };
6526 std::optional<std::string> parseMode { };
6531 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
6535 std::optional<std::uint32_t> duration { };
6536};
6537
6538TGBOT_API void from_json(const nlohmann::json& json, InputMediaVoiceNote& value);
6539TGBOT_API void to_json(nlohmann::json& json, const InputMediaVoiceNote& value);
6540
6550 using Ptr = std::shared_ptr<InputMessageContent>;
6551
6552 std::variant<std::shared_ptr<InputTextMessageContent>, std::shared_ptr<InputRichMessageContent>,
6553 std::shared_ptr<InputLocationMessageContent>, std::shared_ptr<InputVenueMessageContent>,
6554 std::shared_ptr<InputContactMessageContent>, std::shared_ptr<InputInvoiceMessageContent>,
6555 std::shared_ptr<InputWidgetMessageContent>, std::shared_ptr<InputSharedWidgetMessageContent>>
6557};
6558
6559TGBOT_API void from_json(const nlohmann::json& json, InputMessageContent& value);
6560TGBOT_API void to_json(nlohmann::json& json, const InputMessageContent& value);
6561
6568 using Ptr = std::shared_ptr<InputPaidMedia>;
6569
6570 std::variant<std::shared_ptr<InputPaidMediaLivePhoto>, std::shared_ptr<InputPaidMediaPhoto>,
6571 std::shared_ptr<InputPaidMediaVideo>>
6573};
6574
6575TGBOT_API void from_json(const nlohmann::json& json, InputPaidMedia& value);
6576TGBOT_API void to_json(nlohmann::json& json, const InputPaidMedia& value);
6577
6583 using Ptr = std::shared_ptr<InputPaidMediaLivePhoto>;
6584
6585 static TGBOT_API const std::string TYPE;
6586
6590 std::string type { TYPE };
6597 std::string media { };
6604 std::string photo { };
6605};
6606
6607TGBOT_API void from_json(const nlohmann::json& json, InputPaidMediaLivePhoto& value);
6608TGBOT_API void to_json(nlohmann::json& json, const InputPaidMediaLivePhoto& value);
6609
6615 using Ptr = std::shared_ptr<InputPaidMediaPhoto>;
6616
6617 static TGBOT_API const std::string TYPE;
6618
6622 std::string type { TYPE };
6629 std::string media { };
6630};
6631
6632TGBOT_API void from_json(const nlohmann::json& json, InputPaidMediaPhoto& value);
6633TGBOT_API void to_json(nlohmann::json& json, const InputPaidMediaPhoto& value);
6634
6640 using Ptr = std::shared_ptr<InputPaidMediaVideo>;
6641
6642 static TGBOT_API const std::string TYPE;
6643
6647 std::string type { TYPE };
6654 std::string media { };
6664 std::optional<std::string> thumbnail { };
6671 std::optional<std::string> cover { };
6675 std::optional<std::uint32_t> startTimestamp { };
6679 std::optional<std::uint32_t> width { };
6683 std::optional<std::uint32_t> height { };
6687 std::optional<std::uint32_t> duration { };
6691 std::optional<bool> supportsStreaming { };
6692};
6693
6694TGBOT_API void from_json(const nlohmann::json& json, InputPaidMediaVideo& value);
6695TGBOT_API void to_json(nlohmann::json& json, const InputPaidMediaVideo& value);
6696
6704 using Ptr = std::shared_ptr<InputPollMedia>;
6705
6706 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaAudio>,
6707 std::shared_ptr<InputMediaDocument>, std::shared_ptr<InputMediaLivePhoto>,
6708 std::shared_ptr<InputMediaLocation>, std::shared_ptr<InputMediaPhoto>,
6709 std::shared_ptr<InputMediaVenue>, std::shared_ptr<InputMediaVideo>>
6711};
6712
6713TGBOT_API void from_json(const nlohmann::json& json, InputPollMedia& value);
6714TGBOT_API void to_json(nlohmann::json& json, const InputPollMedia& value);
6715
6721 using Ptr = std::shared_ptr<InputPollOption>;
6722
6726 std::string text { };
6731 std::optional<std::string> textParseMode { };
6736 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
6740 std::shared_ptr<InputPollOptionMedia> media { };
6741};
6742
6743TGBOT_API void from_json(const nlohmann::json& json, InputPollOption& value);
6744TGBOT_API void to_json(nlohmann::json& json, const InputPollOption& value);
6745
6753 using Ptr = std::shared_ptr<InputPollOptionMedia>;
6754
6755 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaLink>,
6756 std::shared_ptr<InputMediaLivePhoto>, std::shared_ptr<InputMediaLocation>,
6757 std::shared_ptr<InputMediaPhoto>, std::shared_ptr<InputMediaSticker>, std::shared_ptr<InputMediaVenue>,
6758 std::shared_ptr<InputMediaVideo>>
6760};
6761
6762TGBOT_API void from_json(const nlohmann::json& json, InputPollOptionMedia& value);
6763TGBOT_API void to_json(nlohmann::json& json, const InputPollOptionMedia& value);
6764
6771 using Ptr = std::shared_ptr<InputProfilePhoto>;
6772
6773 std::variant<std::shared_ptr<InputProfilePhotoStatic>, std::shared_ptr<InputProfilePhotoAnimated>> value;
6774};
6775
6776TGBOT_API void from_json(const nlohmann::json& json, InputProfilePhoto& value);
6777TGBOT_API void to_json(nlohmann::json& json, const InputProfilePhoto& value);
6778
6784 using Ptr = std::shared_ptr<InputProfilePhotoAnimated>;
6785
6786 static TGBOT_API const std::string TYPE;
6787
6791 std::string type { TYPE };
6797 std::string animation { };
6802 std::optional<double> mainFrameTimestamp { };
6803};
6804
6805TGBOT_API void from_json(const nlohmann::json& json, InputProfilePhotoAnimated& value);
6806TGBOT_API void to_json(nlohmann::json& json, const InputProfilePhotoAnimated& value);
6807
6813 using Ptr = std::shared_ptr<InputProfilePhotoStatic>;
6814
6815 static TGBOT_API const std::string TYPE;
6816
6820 std::string type { TYPE };
6826 std::string photo { };
6827};
6828
6829TGBOT_API void from_json(const nlohmann::json& json, InputProfilePhotoStatic& value);
6830TGBOT_API void to_json(nlohmann::json& json, const InputProfilePhotoStatic& value);
6831
6845 using Ptr = std::shared_ptr<InputRichBlock>;
6846
6847 std::variant<std::shared_ptr<InputRichBlockParagraph>, std::shared_ptr<InputRichBlockSectionHeading>,
6848 std::shared_ptr<InputRichBlockPreformatted>, std::shared_ptr<InputRichBlockFooter>,
6849 std::shared_ptr<InputRichBlockDivider>, std::shared_ptr<InputRichBlockMathematicalExpression>,
6850 std::shared_ptr<InputRichBlockAnchor>, std::shared_ptr<InputRichBlockList>,
6851 std::shared_ptr<InputRichBlockBlockQuotation>, std::shared_ptr<InputRichBlockExpandableBlockQuotation>,
6852 std::shared_ptr<InputRichBlockPullQuotation>, std::shared_ptr<InputRichBlockCollage>,
6853 std::shared_ptr<InputRichBlockSlideshow>, std::shared_ptr<InputRichBlockTable>,
6854 std::shared_ptr<InputRichBlockDetails>, std::shared_ptr<InputRichBlockMap>,
6855 std::shared_ptr<InputRichBlockButtons>, std::shared_ptr<InputRichBlockAnimation>,
6856 std::shared_ptr<InputRichBlockAudio>, std::shared_ptr<InputRichBlockDocument>,
6857 std::shared_ptr<InputRichBlockPhoto>, std::shared_ptr<InputRichBlockVideo>,
6858 std::shared_ptr<InputRichBlockVoiceNote>, std::shared_ptr<InputRichBlockThinking>>
6860};
6861
6862TGBOT_API void from_json(const nlohmann::json& json, InputRichBlock& value);
6863TGBOT_API void to_json(nlohmann::json& json, const InputRichBlock& value);
6864
6870 using Ptr = std::shared_ptr<InputRichBlockAnchor>;
6871
6872 static TGBOT_API const std::string TYPE;
6873
6877 std::string type { TYPE };
6881 std::string name { };
6882};
6883
6884TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockAnchor& value);
6885TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockAnchor& value);
6886
6892 using Ptr = std::shared_ptr<InputRichBlockAnimation>;
6893
6894 static TGBOT_API const std::string TYPE;
6895
6899 std::string type { TYPE };
6903 std::shared_ptr<InputMediaAnimation> animation { };
6907 std::shared_ptr<RichBlockCaption> caption { };
6908};
6909
6910TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockAnimation& value);
6911TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockAnimation& value);
6912
6918 using Ptr = std::shared_ptr<InputRichBlockAudio>;
6919
6920 static TGBOT_API const std::string TYPE;
6921
6925 std::string type { TYPE };
6929 std::shared_ptr<InputMediaAudio> audio { };
6933 std::shared_ptr<RichBlockCaption> caption { };
6934};
6935
6936TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockAudio& value);
6937TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockAudio& value);
6938
6944 using Ptr = std::shared_ptr<InputRichBlockBlockQuotation>;
6945
6946 static TGBOT_API const std::string TYPE;
6947
6951 std::string type { TYPE };
6955 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
6959 std::shared_ptr<RichText> credit { };
6960};
6961
6962TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockBlockQuotation& value);
6963TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockBlockQuotation& value);
6964
6971 using Ptr = std::shared_ptr<InputRichBlockButtons>;
6972
6973 static TGBOT_API const std::string TYPE;
6974
6978 std::string type { TYPE };
6982 std::vector<std::shared_ptr<RichMessageButton>> buttons { };
6987 std::optional<std::string> align { };
6988};
6989
6990TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockButtons& value);
6991TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockButtons& value);
6992
6998 using Ptr = std::shared_ptr<InputRichBlockCollage>;
6999
7000 static TGBOT_API const std::string TYPE;
7001
7005 std::string type { TYPE };
7009 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
7013 std::shared_ptr<RichBlockCaption> caption { };
7014};
7015
7016TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockCollage& value);
7017TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockCollage& value);
7018
7024 using Ptr = std::shared_ptr<InputRichBlockDetails>;
7025
7026 static TGBOT_API const std::string TYPE;
7027
7031 std::string type { TYPE };
7035 std::shared_ptr<RichText> summary { };
7039 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
7043 std::optional<bool> isOpen { };
7044};
7045
7046TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockDetails& value);
7047TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockDetails& value);
7048
7054 using Ptr = std::shared_ptr<InputRichBlockDivider>;
7055
7056 static TGBOT_API const std::string TYPE;
7057
7061 std::string type { TYPE };
7062};
7063
7064TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockDivider& value);
7065TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockDivider& value);
7066
7072 using Ptr = std::shared_ptr<InputRichBlockDocument>;
7073
7074 static TGBOT_API const std::string TYPE;
7075
7079 std::string type { TYPE };
7083 std::shared_ptr<InputMediaDocument> document { };
7087 std::shared_ptr<RichBlockCaption> caption { };
7088};
7089
7090TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockDocument& value);
7091TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockDocument& value);
7092
7099 using Ptr = std::shared_ptr<InputRichBlockExpandableBlockQuotation>;
7100
7101 static TGBOT_API const std::string TYPE;
7102
7106 std::string type { TYPE };
7110 std::shared_ptr<RichText> text { };
7114 std::shared_ptr<RichText> credit { };
7115};
7116
7117TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockExpandableBlockQuotation& value);
7118TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockExpandableBlockQuotation& value);
7119
7125 using Ptr = std::shared_ptr<InputRichBlockFooter>;
7126
7127 static TGBOT_API const std::string TYPE;
7128
7132 std::string type { TYPE };
7136 std::shared_ptr<RichText> text { };
7137};
7138
7139TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockFooter& value);
7140TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockFooter& value);
7141
7147 using Ptr = std::shared_ptr<InputRichBlockList>;
7148
7149 static TGBOT_API const std::string TYPE;
7150
7154 std::string type { TYPE };
7158 std::vector<std::shared_ptr<InputRichBlockListItem>> items { };
7159};
7160
7161TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockList& value);
7162TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockList& value);
7163
7169 using Ptr = std::shared_ptr<InputRichBlockListItem>;
7170
7174 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
7178 std::optional<bool> hasCheckbox { };
7182 std::optional<bool> isChecked { };
7186 std::optional<std::int32_t> value { };
7192 std::optional<std::string> type { };
7193};
7194
7195TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockListItem& value);
7196TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockListItem& value);
7197
7204 using Ptr = std::shared_ptr<InputRichBlockMap>;
7205
7206 static TGBOT_API const std::string TYPE;
7207
7211 std::string type { TYPE };
7215 std::shared_ptr<Location> location { };
7219 std::optional<std::uint32_t> zoom { };
7223 std::optional<std::uint32_t> width { };
7227 std::optional<std::uint32_t> height { };
7231 std::shared_ptr<RichBlockCaption> caption { };
7232};
7233
7234TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockMap& value);
7235TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockMap& value);
7236
7243 using Ptr = std::shared_ptr<InputRichBlockMathematicalExpression>;
7244
7245 static TGBOT_API const std::string TYPE;
7246
7250 std::string type { TYPE };
7254 std::string expression { };
7255};
7256
7257TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockMathematicalExpression& value);
7258TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockMathematicalExpression& value);
7259
7265 using Ptr = std::shared_ptr<InputRichBlockParagraph>;
7266
7267 static TGBOT_API const std::string TYPE;
7268
7272 std::string type { TYPE };
7276 std::shared_ptr<RichText> text { };
7277};
7278
7279TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockParagraph& value);
7280TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockParagraph& value);
7281
7287 using Ptr = std::shared_ptr<InputRichBlockPhoto>;
7288
7289 static TGBOT_API const std::string TYPE;
7290
7294 std::string type { TYPE };
7298 std::shared_ptr<InputMediaPhoto> photo { };
7302 std::shared_ptr<RichBlockCaption> caption { };
7303};
7304
7305TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockPhoto& value);
7306TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockPhoto& value);
7307
7313 using Ptr = std::shared_ptr<InputRichBlockPreformatted>;
7314
7315 static TGBOT_API const std::string TYPE;
7316
7320 std::string type { TYPE };
7324 std::shared_ptr<RichText> text { };
7328 std::optional<std::string> language { };
7329};
7330
7331TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockPreformatted& value);
7332TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockPreformatted& value);
7333
7339 using Ptr = std::shared_ptr<InputRichBlockPullQuotation>;
7340
7341 static TGBOT_API const std::string TYPE;
7342
7346 std::string type { TYPE };
7350 std::shared_ptr<RichText> text { };
7354 std::shared_ptr<RichText> credit { };
7355};
7356
7357TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockPullQuotation& value);
7358TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockPullQuotation& value);
7359
7365 using Ptr = std::shared_ptr<InputRichBlockSectionHeading>;
7366
7367 static TGBOT_API const std::string TYPE;
7368
7372 std::string type { TYPE };
7376 std::shared_ptr<RichText> text { };
7380 std::uint32_t size { };
7381};
7382
7383TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockSectionHeading& value);
7384TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockSectionHeading& value);
7385
7391 using Ptr = std::shared_ptr<InputRichBlockSlideshow>;
7392
7393 static TGBOT_API const std::string TYPE;
7394
7398 std::string type { TYPE };
7402 std::vector<std::shared_ptr<InputRichBlock>> blocks { };
7406 std::shared_ptr<RichBlockCaption> caption { };
7407};
7408
7409TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockSlideshow& value);
7410TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockSlideshow& value);
7411
7417 using Ptr = std::shared_ptr<InputRichBlockTable>;
7418
7419 static TGBOT_API const std::string TYPE;
7420
7424 std::string type { TYPE };
7428 std::vector<std::vector<std::shared_ptr<RichBlockTableCell>>> cells { };
7432 std::optional<bool> isBordered { };
7436 std::optional<bool> isStriped { };
7440 std::optional<bool> isCompact { };
7444 std::shared_ptr<RichText> caption { };
7445};
7446
7447TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockTable& value);
7448TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockTable& value);
7449
7458 using Ptr = std::shared_ptr<InputRichBlockThinking>;
7459
7460 static TGBOT_API const std::string TYPE;
7461
7465 std::string type { TYPE };
7470 std::shared_ptr<RichText> text { };
7471};
7472
7473TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockThinking& value);
7474TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockThinking& value);
7475
7481 using Ptr = std::shared_ptr<InputRichBlockVideo>;
7482
7483 static TGBOT_API const std::string TYPE;
7484
7488 std::string type { TYPE };
7492 std::shared_ptr<InputMediaVideo> video { };
7496 std::shared_ptr<RichBlockCaption> caption { };
7497};
7498
7499TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockVideo& value);
7500TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockVideo& value);
7501
7507 using Ptr = std::shared_ptr<InputRichBlockVoiceNote>;
7508
7509 static TGBOT_API const std::string TYPE;
7510
7514 std::string type { TYPE };
7518 std::shared_ptr<InputMediaVoiceNote> voiceNote { };
7522 std::shared_ptr<RichBlockCaption> caption { };
7523};
7524
7525TGBOT_API void from_json(const nlohmann::json& json, InputRichBlockVoiceNote& value);
7526TGBOT_API void to_json(nlohmann::json& json, const InputRichBlockVoiceNote& value);
7527
7534 using Ptr = std::shared_ptr<InputRichMessage>;
7535
7539 std::optional<std::vector<std::shared_ptr<InputRichBlock>>> blocks { };
7545 std::optional<std::string> html { };
7551 std::optional<std::string> markdown { };
7556 std::optional<std::vector<std::shared_ptr<InputRichMessageMedia>>> media { };
7560 std::optional<bool> isRtl { };
7566 std::optional<bool> skipEntityDetection { };
7567};
7568
7569TGBOT_API void from_json(const nlohmann::json& json, InputRichMessage& value);
7570TGBOT_API void to_json(nlohmann::json& json, const InputRichMessage& value);
7571
7577 using Ptr = std::shared_ptr<InputRichMessageContent>;
7578
7582 std::shared_ptr<InputRichMessage> richMessage { };
7583};
7584
7585TGBOT_API void from_json(const nlohmann::json& json, InputRichMessageContent& value);
7586TGBOT_API void to_json(nlohmann::json& json, const InputRichMessageContent& value);
7587
7593 using Ptr = std::shared_ptr<InputRichMessageMedia>;
7594
7600 std::string id { };
7604 std::variant<std::shared_ptr<InputMediaAnimation>, std::shared_ptr<InputMediaAudio>,
7605 std::shared_ptr<InputMediaDocument>, std::shared_ptr<InputMediaPhoto>,
7606 std::shared_ptr<InputMediaVideo>, std::shared_ptr<InputMediaVoiceNote>>
7608};
7609
7610TGBOT_API void from_json(const nlohmann::json& json, InputRichMessageMedia& value);
7611TGBOT_API void to_json(nlohmann::json& json, const InputRichMessageMedia& value);
7612
7620 using Ptr = std::shared_ptr<InputSharedWidgetMessageContent>;
7621
7625 std::string widgetId { };
7629 std::optional<std::string> chatData { };
7633 std::optional<std::string> caption { };
7638 std::optional<std::string> parseMode { };
7643 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
7647 std::optional<bool> showCaptionAboveMedia { };
7648};
7649
7650TGBOT_API void from_json(const nlohmann::json& json, InputSharedWidgetMessageContent& value);
7651TGBOT_API void to_json(nlohmann::json& json, const InputSharedWidgetMessageContent& value);
7652
7658 using Ptr = std::shared_ptr<InputSticker>;
7659
7667 std::string sticker { };
7672 std::string format { };
7676 std::vector<std::string> emojiList { };
7680 std::shared_ptr<MaskPosition> maskPosition { };
7685 std::optional<std::vector<std::string>> keywords { };
7686};
7687
7688TGBOT_API void from_json(const nlohmann::json& json, InputSticker& value);
7689TGBOT_API void to_json(nlohmann::json& json, const InputSticker& value);
7690
7697 using Ptr = std::shared_ptr<InputStoryContent>;
7698
7699 std::variant<std::shared_ptr<InputStoryContentPhoto>, std::shared_ptr<InputStoryContentVideo>> value;
7700};
7701
7702TGBOT_API void from_json(const nlohmann::json& json, InputStoryContent& value);
7703TGBOT_API void to_json(nlohmann::json& json, const InputStoryContent& value);
7704
7710 using Ptr = std::shared_ptr<InputStoryContentPhoto>;
7711
7712 static TGBOT_API const std::string TYPE;
7713
7717 std::string type { TYPE };
7724 std::string photo { };
7725};
7726
7727TGBOT_API void from_json(const nlohmann::json& json, InputStoryContentPhoto& value);
7728TGBOT_API void to_json(nlohmann::json& json, const InputStoryContentPhoto& value);
7729
7735 using Ptr = std::shared_ptr<InputStoryContentVideo>;
7736
7737 static TGBOT_API const std::string TYPE;
7738
7742 std::string type { TYPE };
7750 std::string video { };
7754 std::optional<double> duration { };
7759 std::optional<double> coverFrameTimestamp { };
7763 std::optional<bool> isAnimation { };
7764};
7765
7766TGBOT_API void from_json(const nlohmann::json& json, InputStoryContentVideo& value);
7767TGBOT_API void to_json(nlohmann::json& json, const InputStoryContentVideo& value);
7768
7774 using Ptr = std::shared_ptr<InputTextMessageContent>;
7775
7779 std::string messageText { };
7784 std::optional<std::string> parseMode { };
7789 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
7793 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions { };
7794};
7795
7796TGBOT_API void from_json(const nlohmann::json& json, InputTextMessageContent& value);
7797TGBOT_API void to_json(nlohmann::json& json, const InputTextMessageContent& value);
7798
7804 using Ptr = std::shared_ptr<InputVenueMessageContent>;
7805
7809 double latitude { };
7813 double longitude { };
7817 std::string title { };
7821 std::string address { };
7825 std::optional<std::string> foursquareId { };
7830 std::optional<std::string> foursquareType { };
7834 std::optional<std::string> googlePlaceId { };
7838 std::optional<std::string> googlePlaceType { };
7839};
7840
7841TGBOT_API void from_json(const nlohmann::json& json, InputVenueMessageContent& value);
7842TGBOT_API void to_json(nlohmann::json& json, const InputVenueMessageContent& value);
7843
7851 using Ptr = std::shared_ptr<InputWidgetMessageContent>;
7852
7857 std::string html { };
7863 std::optional<std::uint32_t> width { };
7868 std::optional<std::uint32_t> height { };
7874 std::optional<std::string> publicData { };
7878 std::optional<std::string> chatData { };
7882 std::optional<std::string> caption { };
7887 std::optional<std::string> parseMode { };
7892 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
7896 std::optional<bool> showCaptionAboveMedia { };
7900 std::optional<bool> allowQueries { };
7907 std::optional<bool> isShared { };
7908};
7909
7910TGBOT_API void from_json(const nlohmann::json& json, InputWidgetMessageContent& value);
7911TGBOT_API void to_json(nlohmann::json& json, const InputWidgetMessageContent& value);
7912
7917struct Invoice {
7918 using Ptr = std::shared_ptr<Invoice>;
7919
7923 std::string title { };
7927 std::string description { };
7931 std::string startParameter { };
7935 std::string currency { };
7942 std::uint64_t totalAmount { };
7943};
7944
7945TGBOT_API void from_json(const nlohmann::json& json, Invoice& value);
7946TGBOT_API void to_json(nlohmann::json& json, const Invoice& value);
7947
7956 using Ptr = std::shared_ptr<KeyboardButton>;
7957
7962 std::string text { };
7969 std::optional<std::string> iconCustomEmojiId { };
7974 std::optional<std::string> style { };
7980 std::shared_ptr<KeyboardButtonRequestUsers> requestUsers { };
7986 std::shared_ptr<KeyboardButtonRequestChat> requestChat { };
7992 std::shared_ptr<KeyboardButtonRequestManagedBot> requestManagedBot { };
7997 std::optional<bool> requestContact { };
8002 std::optional<bool> requestLocation { };
8007 std::shared_ptr<KeyboardButtonPollType> requestPoll { };
8013 std::shared_ptr<WebAppInfo> webApp { };
8014};
8015
8016TGBOT_API void from_json(const nlohmann::json& json, KeyboardButton& value);
8017TGBOT_API void to_json(nlohmann::json& json, const KeyboardButton& value);
8018
8025 using Ptr = std::shared_ptr<KeyboardButtonPollType>;
8026
8032 std::optional<std::string> type { };
8033};
8034
8035TGBOT_API void from_json(const nlohmann::json& json, KeyboardButtonPollType& value);
8036TGBOT_API void to_json(nlohmann::json& json, const KeyboardButtonPollType& value);
8037
8045 using Ptr = std::shared_ptr<KeyboardButtonRequestChat>;
8046
8051 std::int32_t requestId { };
8060 std::optional<bool> chatIsForum { };
8066 std::optional<bool> chatHasUsername { };
8071 std::optional<bool> chatIsCreated { };
8077 std::shared_ptr<ChatAdministratorRights> userAdministratorRights { };
8083 std::shared_ptr<ChatAdministratorRights> botAdministratorRights { };
8088 std::optional<bool> botIsMember { };
8092 std::optional<bool> requestTitle { };
8096 std::optional<bool> requestUsername { };
8100 std::optional<bool> requestPhoto { };
8101};
8102
8103TGBOT_API void from_json(const nlohmann::json& json, KeyboardButtonRequestChat& value);
8104TGBOT_API void to_json(nlohmann::json& json, const KeyboardButtonRequestChat& value);
8105
8113 using Ptr = std::shared_ptr<KeyboardButtonRequestManagedBot>;
8114
8118 std::int32_t requestId { };
8122 std::optional<std::string> suggestedName { };
8130 std::optional<std::string> suggestedUsername { };
8131};
8132
8133TGBOT_API void from_json(const nlohmann::json& json, KeyboardButtonRequestManagedBot& value);
8134TGBOT_API void to_json(nlohmann::json& json, const KeyboardButtonRequestManagedBot& value);
8135
8143 using Ptr = std::shared_ptr<KeyboardButtonRequestUsers>;
8144
8149 std::int32_t requestId { };
8154 std::optional<bool> userIsBot { };
8159 std::optional<bool> userIsPremium { };
8163 std::optional<std::uint32_t> maxQuantity { };
8167 std::optional<bool> requestName { };
8171 std::optional<bool> requestUsername { };
8175 std::optional<bool> requestPhoto { };
8176};
8177
8178TGBOT_API void from_json(const nlohmann::json& json, KeyboardButtonRequestUsers& value);
8179TGBOT_API void to_json(nlohmann::json& json, const KeyboardButtonRequestUsers& value);
8180
8186 using Ptr = std::shared_ptr<LabeledPrice>;
8187
8191 std::string label { };
8198 std::int64_t amount { };
8199};
8200
8201TGBOT_API void from_json(const nlohmann::json& json, LabeledPrice& value);
8202TGBOT_API void to_json(nlohmann::json& json, const LabeledPrice& value);
8203
8208struct Link {
8209 using Ptr = std::shared_ptr<Link>;
8210
8214 std::string url { };
8215};
8216
8217TGBOT_API void from_json(const nlohmann::json& json, Link& value);
8218TGBOT_API void to_json(nlohmann::json& json, const Link& value);
8219
8225 using Ptr = std::shared_ptr<LinkPreviewOptions>;
8226
8230 std::optional<bool> isDisabled { };
8235 std::optional<std::string> url { };
8240 std::optional<bool> preferSmallMedia { };
8245 std::optional<bool> preferLargeMedia { };
8250 std::optional<bool> showAboveText { };
8251};
8252
8253TGBOT_API void from_json(const nlohmann::json& json, LinkPreviewOptions& value);
8254TGBOT_API void to_json(nlohmann::json& json, const LinkPreviewOptions& value);
8255
8261 using Ptr = std::shared_ptr<LivePhoto>;
8262
8266 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
8270 std::string fileId { };
8275 std::string fileUniqueId { };
8279 std::uint32_t width { };
8283 std::uint32_t height { };
8287 std::uint32_t duration { };
8291 std::optional<std::string> mimeType { };
8298 std::optional<std::uint64_t> fileSize { };
8299};
8300
8301TGBOT_API void from_json(const nlohmann::json& json, LivePhoto& value);
8302TGBOT_API void to_json(nlohmann::json& json, const LivePhoto& value);
8303
8308struct Location {
8309 using Ptr = std::shared_ptr<Location>;
8310
8314 double latitude { };
8318 double longitude { };
8322 std::optional<double> horizontalAccuracy { };
8327 std::optional<std::uint32_t> livePeriod { };
8332 std::optional<std::uint32_t> heading { };
8337 std::optional<std::uint32_t> proximityAlertRadius { };
8338};
8339
8340TGBOT_API void from_json(const nlohmann::json& json, Location& value);
8341TGBOT_API void to_json(nlohmann::json& json, const Location& value);
8342
8348 using Ptr = std::shared_ptr<LocationAddress>;
8349
8354 std::string countryCode { };
8358 std::optional<std::string> state { };
8362 std::optional<std::string> city { };
8366 std::optional<std::string> street { };
8367};
8368
8369TGBOT_API void from_json(const nlohmann::json& json, LocationAddress& value);
8370TGBOT_API void to_json(nlohmann::json& json, const LocationAddress& value);
8371
8379struct LoginUrl {
8380 using Ptr = std::shared_ptr<LoginUrl>;
8381
8390 std::string url { };
8394 std::optional<std::string> forwardText { };
8401 std::optional<std::string> botUsername { };
8405 std::optional<bool> requestWriteAccess { };
8406};
8407
8408TGBOT_API void from_json(const nlohmann::json& json, LoginUrl& value);
8409TGBOT_API void to_json(nlohmann::json& json, const LoginUrl& value);
8410
8417 using Ptr = std::shared_ptr<ManagedBotCreated>;
8418
8423 std::shared_ptr<User> bot { };
8424};
8425
8426TGBOT_API void from_json(const nlohmann::json& json, ManagedBotCreated& value);
8427TGBOT_API void to_json(nlohmann::json& json, const ManagedBotCreated& value);
8428
8435 using Ptr = std::shared_ptr<ManagedBotUpdated>;
8436
8440 std::shared_ptr<User> user { };
8445 std::shared_ptr<User> bot { };
8446};
8447
8448TGBOT_API void from_json(const nlohmann::json& json, ManagedBotUpdated& value);
8449TGBOT_API void to_json(nlohmann::json& json, const ManagedBotUpdated& value);
8450
8456 using Ptr = std::shared_ptr<MaskPosition>;
8457
8462 std::string point { };
8468 double xShift { };
8473 double yShift { };
8477 double scale { };
8478};
8479
8480TGBOT_API void from_json(const nlohmann::json& json, MaskPosition& value);
8481TGBOT_API void to_json(nlohmann::json& json, const MaskPosition& value);
8482
8489 using Ptr = std::shared_ptr<MaybeInaccessibleMessage>;
8490
8491 std::variant<std::shared_ptr<Message>, std::shared_ptr<InaccessibleMessage>> value;
8492};
8493
8494TGBOT_API void from_json(const nlohmann::json& json, MaybeInaccessibleMessage& value);
8495TGBOT_API void to_json(nlohmann::json& json, const MaybeInaccessibleMessage& value);
8496
8505 using Ptr = std::shared_ptr<MenuButton>;
8506
8507 std::variant<std::shared_ptr<MenuButtonCommands>, std::shared_ptr<MenuButtonWebApp>,
8508 std::shared_ptr<MenuButtonDefault>>
8510};
8511
8512TGBOT_API void from_json(const nlohmann::json& json, MenuButton& value);
8513TGBOT_API void to_json(nlohmann::json& json, const MenuButton& value);
8514
8520 using Ptr = std::shared_ptr<MenuButtonCommands>;
8521
8522 static TGBOT_API const std::string TYPE;
8523
8527 std::string type { TYPE };
8528};
8529
8530TGBOT_API void from_json(const nlohmann::json& json, MenuButtonCommands& value);
8531TGBOT_API void to_json(nlohmann::json& json, const MenuButtonCommands& value);
8532
8538 using Ptr = std::shared_ptr<MenuButtonDefault>;
8539
8540 static TGBOT_API const std::string TYPE;
8541
8545 std::string type { TYPE };
8546};
8547
8548TGBOT_API void from_json(const nlohmann::json& json, MenuButtonDefault& value);
8549TGBOT_API void to_json(nlohmann::json& json, const MenuButtonDefault& value);
8550
8556 using Ptr = std::shared_ptr<MenuButtonWebApp>;
8557
8558 static TGBOT_API const std::string TYPE;
8559
8563 std::string type { TYPE };
8567 std::string text { };
8575 std::shared_ptr<WebAppInfo> webApp { };
8576};
8577
8578TGBOT_API void from_json(const nlohmann::json& json, MenuButtonWebApp& value);
8579TGBOT_API void to_json(nlohmann::json& json, const MenuButtonWebApp& value);
8580
8585struct Message {
8586 using Ptr = std::shared_ptr<Message>;
8587
8594 std::uint32_t messageId { };
8599 std::optional<std::uint32_t> messageThreadId { };
8603 std::shared_ptr<DirectMessagesTopic> directMessagesTopic { };
8609 std::shared_ptr<User> from { };
8617 std::shared_ptr<Chat> senderChat { };
8622 std::optional<std::uint32_t> senderBoostCount { };
8627 std::shared_ptr<User> senderBusinessBot { };
8631 std::optional<std::string> senderTag { };
8635 std::shared_ptr<User> receiverUser { };
8641 std::optional<std::uint32_t> ephemeralMessageId { };
8646 std::uint32_t date { };
8653 std::optional<std::string> guestQueryId { };
8660 std::optional<std::string> businessConnectionId { };
8664 std::shared_ptr<Chat> chat { };
8668 std::shared_ptr<MessageOrigin> forwardOrigin { };
8673 std::optional<bool> isTopicMessage { };
8678 std::optional<bool> isAutomaticForward { };
8685 std::shared_ptr<Message> replyToMessage { };
8690 std::shared_ptr<ExternalReplyInfo> externalReply { };
8695 std::shared_ptr<TextQuote> quote { };
8699 std::shared_ptr<Story> replyToStory { };
8703 std::optional<std::uint32_t> replyToChecklistTaskId { };
8707 std::optional<std::string> replyToPollOptionId { };
8711 std::shared_ptr<User> viaBot { };
8716 std::shared_ptr<User> guestBotCallerUser { };
8721 std::shared_ptr<Chat> guestBotCallerChat { };
8725 std::optional<std::int32_t> editDate { };
8729 std::optional<bool> hasProtectedContent { };
8734 std::optional<bool> isFromOffline { };
8739 std::optional<bool> isPaidPost { };
8744 std::optional<std::string> mediaGroupId { };
8749 std::optional<std::string> authorSignature { };
8754 std::optional<std::uint32_t> paidStarCount { };
8758 std::optional<std::string> text { };
8763 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
8768 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions { };
8774 std::shared_ptr<SuggestedPostInfo> suggestedPostInfo { };
8778 std::optional<std::string> effectId { };
8782 std::shared_ptr<RichMessage> richMessage { };
8787 std::shared_ptr<Animation> animation { };
8791 std::shared_ptr<Audio> audio { };
8795 std::shared_ptr<Document> document { };
8800 std::shared_ptr<LivePhoto> livePhoto { };
8804 std::shared_ptr<PaidMediaInfo> paidMedia { };
8808 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
8812 std::shared_ptr<Sticker> sticker { };
8816 std::shared_ptr<Story> story { };
8820 std::shared_ptr<Video> video { };
8824 std::shared_ptr<VideoNote> videoNote { };
8828 std::shared_ptr<Voice> voice { };
8832 std::shared_ptr<Widget> widget { };
8837 std::optional<std::string> caption { };
8842 std::optional<std::vector<std::shared_ptr<MessageEntity>>> captionEntities { };
8846 std::optional<bool> showCaptionAboveMedia { };
8850 std::optional<bool> hasMediaSpoiler { };
8854 std::shared_ptr<Checklist> checklist { };
8858 std::shared_ptr<Contact> contact { };
8862 std::shared_ptr<Dice> dice { };
8866 std::shared_ptr<Game> game { };
8870 std::shared_ptr<Poll> poll { };
8875 std::shared_ptr<Venue> venue { };
8879 std::shared_ptr<Location> location { };
8884 std::optional<std::vector<std::shared_ptr<User>>> newChatMembers { };
8889 std::shared_ptr<User> leftChatMember { };
8893 std::shared_ptr<ChatOwnerLeft> chatOwnerLeft { };
8897 std::shared_ptr<ChatOwnerChanged> chatOwnerChanged { };
8901 std::optional<std::string> newChatTitle { };
8905 std::optional<std::vector<std::shared_ptr<PhotoSize>>> newChatPhoto { };
8909 std::optional<bool> deleteChatPhoto { };
8913 std::optional<bool> groupChatCreated { };
8920 std::optional<bool> supergroupChatCreated { };
8927 std::optional<bool> channelChatCreated { };
8931 std::shared_ptr<MessageAutoDeleteTimerChanged> messageAutoDeleteTimerChanged { };
8939 std::optional<std::int64_t> migrateToChatId { };
8947 std::optional<std::int64_t> migrateFromChatId { };
8952 std::shared_ptr<MaybeInaccessibleMessage> pinnedMessage { };
8957 std::shared_ptr<Invoice> invoice { };
8962 std::shared_ptr<SuccessfulPayment> successfulPayment { };
8967 std::shared_ptr<RefundedPayment> refundedPayment { };
8971 std::shared_ptr<UsersShared> usersShared { };
8975 std::shared_ptr<ChatShared> chatShared { };
8979 std::shared_ptr<GiftInfo> gift { };
8983 std::shared_ptr<UniqueGiftInfo> uniqueGift { };
8987 std::shared_ptr<GiftInfo> giftUpgradeSent { };
8992 std::optional<std::string> connectedWebsite { };
8998 std::shared_ptr<WriteAccessAllowed> writeAccessAllowed { };
9002 std::shared_ptr<PassportData> passportData { };
9007 std::shared_ptr<ProximityAlertTriggered> proximityAlertTriggered { };
9011 std::shared_ptr<ChatBoostAdded> boostAdded { };
9015 std::shared_ptr<ChatBackground> chatBackgroundSet { };
9019 std::shared_ptr<ChecklistTasksDone> checklistTasksDone { };
9023 std::shared_ptr<ChecklistTasksAdded> checklistTasksAdded { };
9027 std::shared_ptr<CommunityChatAdded> communityChatAdded { };
9031 std::shared_ptr<CommunityChatJoined> communityChatJoined { };
9035 std::shared_ptr<CommunityChatRemoved> communityChatRemoved { };
9040 std::shared_ptr<DirectMessagePriceChanged> directMessagePriceChanged { };
9044 std::shared_ptr<ForumTopicCreated> forumTopicCreated { };
9048 std::shared_ptr<ForumTopicEdited> forumTopicEdited { };
9052 std::shared_ptr<ForumTopicClosed> forumTopicClosed { };
9056 std::shared_ptr<ForumTopicReopened> forumTopicReopened { };
9060 std::shared_ptr<GeneralForumTopicHidden> generalForumTopicHidden { };
9064 std::shared_ptr<GeneralForumTopicUnhidden> generalForumTopicUnhidden { };
9068 std::shared_ptr<GiveawayCreated> giveawayCreated { };
9072 std::shared_ptr<Giveaway> giveaway { };
9076 std::shared_ptr<GiveawayWinners> giveawayWinners { };
9080 std::shared_ptr<GiveawayCompleted> giveawayCompleted { };
9084 std::shared_ptr<ManagedBotCreated> managedBotCreated { };
9088 std::shared_ptr<PaidMessagePriceChanged> paidMessagePriceChanged { };
9093 std::shared_ptr<PaidMessagesWaived> paidMessagesWaived { };
9097 std::shared_ptr<PollOptionAdded> pollOptionAdded { };
9101 std::shared_ptr<PollOptionDeleted> pollOptionDeleted { };
9105 std::shared_ptr<SuggestedPostApproved> suggestedPostApproved { };
9109 std::shared_ptr<SuggestedPostApprovalFailed> suggestedPostApprovalFailed { };
9113 std::shared_ptr<SuggestedPostDeclined> suggestedPostDeclined { };
9117 std::shared_ptr<SuggestedPostPaid> suggestedPostPaid { };
9121 std::shared_ptr<SuggestedPostRefunded> suggestedPostRefunded { };
9125 std::shared_ptr<TonWalletTransfer> tonWalletTransfer { };
9129 std::shared_ptr<VideoChatScheduled> videoChatScheduled { };
9133 std::shared_ptr<VideoChatStarted> videoChatStarted { };
9137 std::shared_ptr<VideoChatEnded> videoChatEnded { };
9141 std::shared_ptr<VideoChatParticipantsInvited> videoChatParticipantsInvited { };
9145 std::shared_ptr<WebAppData> webAppData { };
9150 std::shared_ptr<InlineKeyboardMarkup> replyMarkup { };
9151};
9152
9153TGBOT_API void from_json(const nlohmann::json& json, Message& value);
9154TGBOT_API void to_json(nlohmann::json& json, const Message& value);
9155
9161 using Ptr = std::shared_ptr<MessageAutoDeleteTimerChanged>;
9162
9166 std::uint32_t messageAutoDeleteTime { };
9167};
9168
9169TGBOT_API void from_json(const nlohmann::json& json, MessageAutoDeleteTimerChanged& value);
9170TGBOT_API void to_json(nlohmann::json& json, const MessageAutoDeleteTimerChanged& value);
9171
9178 using Ptr = std::shared_ptr<MessageEntity>;
9179
9180 enum class Type {
9181 Mention,
9182 Hashtag,
9183 Cashtag,
9185 Url,
9186 Email,
9187 PhoneNumber,
9188 Bold,
9189 Italic,
9190 Underline,
9191 Strikethrough,
9192 Spoiler,
9193 Blockquote,
9194 ExpandableBlockquote,
9195 Code,
9196 Pre,
9197 TextLink,
9198 TextMention,
9199 CustomEmoji,
9200 DateTime,
9201 TonAddress,
9202 BankCardNumber
9203 };
9204
9221 std::uint32_t offset { };
9225 std::uint32_t length { };
9229 std::optional<std::string> url { };
9233 std::shared_ptr<User> user { };
9237 std::optional<std::string> language { };
9242 std::optional<std::string> customEmojiId { };
9246 std::optional<std::int32_t> unixTime { };
9251 std::optional<std::string> dateTimeFormat { };
9252};
9253
9254TGBOT_API void from_json(const nlohmann::json& json, MessageEntity::Type& value);
9255TGBOT_API void to_json(nlohmann::json& json, const MessageEntity::Type& value);
9256
9257TGBOT_API void from_json(const nlohmann::json& json, MessageEntity& value);
9258TGBOT_API void to_json(nlohmann::json& json, const MessageEntity& value);
9259
9265 using Ptr = std::shared_ptr<MessageGenerationStopped>;
9266
9270 std::shared_ptr<Chat> chat { };
9274 std::optional<std::uint32_t> messageThreadId { };
9278 std::int64_t draftId { };
9279};
9280
9281TGBOT_API void from_json(const nlohmann::json& json, MessageGenerationStopped& value);
9282TGBOT_API void to_json(nlohmann::json& json, const MessageGenerationStopped& value);
9283
9289 using Ptr = std::shared_ptr<MessageId>;
9290
9297 std::uint32_t messageId { };
9298};
9299
9300TGBOT_API void from_json(const nlohmann::json& json, MessageId& value);
9301TGBOT_API void to_json(nlohmann::json& json, const MessageId& value);
9302
9309 using Ptr = std::shared_ptr<MessageOrigin>;
9310
9311 std::variant<std::shared_ptr<MessageOriginUser>, std::shared_ptr<MessageOriginHiddenUser>,
9312 std::shared_ptr<MessageOriginChat>, std::shared_ptr<MessageOriginChannel>>
9314};
9315
9316TGBOT_API void from_json(const nlohmann::json& json, MessageOrigin& value);
9317TGBOT_API void to_json(nlohmann::json& json, const MessageOrigin& value);
9318
9324 using Ptr = std::shared_ptr<MessageOriginChannel>;
9325
9326 static TGBOT_API const std::string TYPE;
9327
9331 std::string type { TYPE };
9335 std::int32_t date { };
9339 std::shared_ptr<Chat> chat { };
9343 std::uint32_t messageId { };
9347 std::optional<std::string> authorSignature { };
9348};
9349
9350TGBOT_API void from_json(const nlohmann::json& json, MessageOriginChannel& value);
9351TGBOT_API void to_json(nlohmann::json& json, const MessageOriginChannel& value);
9352
9358 using Ptr = std::shared_ptr<MessageOriginChat>;
9359
9360 static TGBOT_API const std::string TYPE;
9361
9365 std::string type { TYPE };
9369 std::int32_t date { };
9373 std::shared_ptr<Chat> senderChat { };
9378 std::optional<std::string> authorSignature { };
9379};
9380
9381TGBOT_API void from_json(const nlohmann::json& json, MessageOriginChat& value);
9382TGBOT_API void to_json(nlohmann::json& json, const MessageOriginChat& value);
9383
9389 using Ptr = std::shared_ptr<MessageOriginHiddenUser>;
9390
9391 static TGBOT_API const std::string TYPE;
9392
9396 std::string type { TYPE };
9400 std::int32_t date { };
9404 std::string senderUserName { };
9405};
9406
9407TGBOT_API void from_json(const nlohmann::json& json, MessageOriginHiddenUser& value);
9408TGBOT_API void to_json(nlohmann::json& json, const MessageOriginHiddenUser& value);
9409
9415 using Ptr = std::shared_ptr<MessageOriginUser>;
9416
9417 static TGBOT_API const std::string TYPE;
9418
9422 std::string type { TYPE };
9426 std::int32_t date { };
9430 std::shared_ptr<User> senderUser { };
9431};
9432
9433TGBOT_API void from_json(const nlohmann::json& json, MessageOriginUser& value);
9434TGBOT_API void to_json(nlohmann::json& json, const MessageOriginUser& value);
9435
9441 using Ptr = std::shared_ptr<MessageReactionCountUpdated>;
9442
9446 std::shared_ptr<Chat> chat { };
9450 std::uint32_t messageId { };
9454 std::int32_t date { };
9458 std::vector<std::shared_ptr<ReactionCount>> reactions { };
9459};
9460
9461TGBOT_API void from_json(const nlohmann::json& json, MessageReactionCountUpdated& value);
9462TGBOT_API void to_json(nlohmann::json& json, const MessageReactionCountUpdated& value);
9463
9469 using Ptr = std::shared_ptr<MessageReactionUpdated>;
9470
9474 std::shared_ptr<Chat> chat { };
9478 std::uint32_t messageId { };
9482 std::shared_ptr<User> user { };
9486 std::shared_ptr<Chat> actorChat { };
9490 std::int32_t date { };
9494 std::vector<std::shared_ptr<ReactionType>> oldReaction { };
9498 std::vector<std::shared_ptr<ReactionType>> newReaction { };
9499};
9500
9501TGBOT_API void from_json(const nlohmann::json& json, MessageReactionUpdated& value);
9502TGBOT_API void to_json(nlohmann::json& json, const MessageReactionUpdated& value);
9503
9509 using Ptr = std::shared_ptr<OrderInfo>;
9510
9514 std::optional<std::string> name { };
9518 std::optional<std::string> phoneNumber { };
9522 std::optional<std::string> email { };
9526 std::shared_ptr<ShippingAddress> shippingAddress { };
9527};
9528
9529TGBOT_API void from_json(const nlohmann::json& json, OrderInfo& value);
9530TGBOT_API void to_json(nlohmann::json& json, const OrderInfo& value);
9531
9538 using Ptr = std::shared_ptr<OwnedGift>;
9539
9540 std::variant<std::shared_ptr<OwnedGiftRegular>, std::shared_ptr<OwnedGiftUnique>> value;
9541};
9542
9543TGBOT_API void from_json(const nlohmann::json& json, OwnedGift& value);
9544TGBOT_API void to_json(nlohmann::json& json, const OwnedGift& value);
9545
9551 using Ptr = std::shared_ptr<OwnedGiftRegular>;
9552
9553 static TGBOT_API const std::string TYPE;
9554
9558 std::string type { TYPE };
9562 std::shared_ptr<Gift> gift { };
9567 std::optional<std::string> ownedGiftId { };
9571 std::shared_ptr<User> senderUser { };
9575 std::int32_t sendDate { };
9579 std::optional<std::string> text { };
9583 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
9588 std::optional<bool> isPrivate { };
9593 std::optional<bool> isSaved { };
9598 std::optional<bool> canBeUpgraded { };
9602 std::optional<bool> wasRefunded { };
9608 std::optional<std::uint32_t> convertStarCount { };
9612 std::optional<std::uint32_t> prepaidUpgradeStarCount { };
9617 std::optional<bool> isUpgradeSeparate { };
9622 std::optional<std::uint32_t> uniqueGiftNumber { };
9623};
9624
9625TGBOT_API void from_json(const nlohmann::json& json, OwnedGiftRegular& value);
9626TGBOT_API void to_json(nlohmann::json& json, const OwnedGiftRegular& value);
9627
9633 using Ptr = std::shared_ptr<OwnedGiftUnique>;
9634
9635 static TGBOT_API const std::string TYPE;
9636
9640 std::string type { TYPE };
9644 std::shared_ptr<UniqueGift> gift { };
9649 std::optional<std::string> ownedGiftId { };
9653 std::shared_ptr<User> senderUser { };
9657 std::int32_t sendDate { };
9662 std::optional<bool> isSaved { };
9667 std::optional<bool> canBeTransferred { };
9672 std::optional<std::uint32_t> transferStarCount { };
9677 std::optional<std::int32_t> nextTransferDate { };
9678};
9679
9680TGBOT_API void from_json(const nlohmann::json& json, OwnedGiftUnique& value);
9681TGBOT_API void to_json(nlohmann::json& json, const OwnedGiftUnique& value);
9682
9688 using Ptr = std::shared_ptr<OwnedGifts>;
9689
9693 std::uint32_t totalCount { };
9697 std::vector<std::shared_ptr<OwnedGift>> gifts { };
9701 std::optional<std::string> nextOffset { };
9702};
9703
9704TGBOT_API void from_json(const nlohmann::json& json, OwnedGifts& value);
9705TGBOT_API void to_json(nlohmann::json& json, const OwnedGifts& value);
9706
9713 using Ptr = std::shared_ptr<PaidMedia>;
9714
9715 std::variant<std::shared_ptr<PaidMediaLivePhoto>, std::shared_ptr<PaidMediaPhoto>,
9716 std::shared_ptr<PaidMediaPreview>, std::shared_ptr<PaidMediaVideo>>
9718};
9719
9720TGBOT_API void from_json(const nlohmann::json& json, PaidMedia& value);
9721TGBOT_API void to_json(nlohmann::json& json, const PaidMedia& value);
9722
9728 using Ptr = std::shared_ptr<PaidMediaInfo>;
9729
9733 std::uint32_t starCount { };
9737 std::vector<std::shared_ptr<PaidMedia>> paidMedia { };
9738};
9739
9740TGBOT_API void from_json(const nlohmann::json& json, PaidMediaInfo& value);
9741TGBOT_API void to_json(nlohmann::json& json, const PaidMediaInfo& value);
9742
9748 using Ptr = std::shared_ptr<PaidMediaLivePhoto>;
9749
9750 static TGBOT_API const std::string TYPE;
9751
9755 std::string type { TYPE };
9759 std::shared_ptr<LivePhoto> livePhoto { };
9760};
9761
9762TGBOT_API void from_json(const nlohmann::json& json, PaidMediaLivePhoto& value);
9763TGBOT_API void to_json(nlohmann::json& json, const PaidMediaLivePhoto& value);
9764
9770 using Ptr = std::shared_ptr<PaidMediaPhoto>;
9771
9772 static TGBOT_API const std::string TYPE;
9773
9777 std::string type { TYPE };
9781 std::vector<std::shared_ptr<PhotoSize>> photo { };
9782};
9783
9784TGBOT_API void from_json(const nlohmann::json& json, PaidMediaPhoto& value);
9785TGBOT_API void to_json(nlohmann::json& json, const PaidMediaPhoto& value);
9786
9792 using Ptr = std::shared_ptr<PaidMediaPreview>;
9793
9794 static TGBOT_API const std::string TYPE;
9795
9799 std::string type { TYPE };
9803 std::optional<std::uint32_t> width { };
9807 std::optional<std::uint32_t> height { };
9811 std::optional<std::uint32_t> duration { };
9812};
9813
9814TGBOT_API void from_json(const nlohmann::json& json, PaidMediaPreview& value);
9815TGBOT_API void to_json(nlohmann::json& json, const PaidMediaPreview& value);
9816
9822 using Ptr = std::shared_ptr<PaidMediaPurchased>;
9823
9827 std::shared_ptr<User> from { };
9831 std::string paidMediaPayload { };
9832};
9833
9834TGBOT_API void from_json(const nlohmann::json& json, PaidMediaPurchased& value);
9835TGBOT_API void to_json(nlohmann::json& json, const PaidMediaPurchased& value);
9836
9842 using Ptr = std::shared_ptr<PaidMediaVideo>;
9843
9844 static TGBOT_API const std::string TYPE;
9845
9849 std::string type { TYPE };
9853 std::shared_ptr<Video> video { };
9854};
9855
9856TGBOT_API void from_json(const nlohmann::json& json, PaidMediaVideo& value);
9857TGBOT_API void to_json(nlohmann::json& json, const PaidMediaVideo& value);
9858
9864 using Ptr = std::shared_ptr<PaidMessagePriceChanged>;
9865
9870 std::uint32_t paidMessageStarCount { };
9871};
9872
9873TGBOT_API void from_json(const nlohmann::json& json, PaidMessagePriceChanged& value);
9874TGBOT_API void to_json(nlohmann::json& json, const PaidMessagePriceChanged& value);
9875
9883 using Ptr = std::shared_ptr<PaidMessagesWaived>;
9884};
9885
9886TGBOT_API void from_json(const nlohmann::json& json, PaidMessagesWaived& value);
9887TGBOT_API void to_json(nlohmann::json& json, const PaidMessagesWaived& value);
9888
9894 using Ptr = std::shared_ptr<PassportData>;
9895
9900 std::vector<std::shared_ptr<EncryptedPassportElement>> data { };
9904 std::shared_ptr<EncryptedCredentials> credentials { };
9905};
9906
9907TGBOT_API void from_json(const nlohmann::json& json, PassportData& value);
9908TGBOT_API void to_json(nlohmann::json& json, const PassportData& value);
9909
9919 using Ptr = std::shared_ptr<PassportElementError>;
9920
9921 std::variant<std::shared_ptr<PassportElementErrorDataField>, std::shared_ptr<PassportElementErrorFrontSide>,
9922 std::shared_ptr<PassportElementErrorReverseSide>, std::shared_ptr<PassportElementErrorSelfie>,
9923 std::shared_ptr<PassportElementErrorFile>, std::shared_ptr<PassportElementErrorFiles>,
9924 std::shared_ptr<PassportElementErrorTranslationFile>,
9925 std::shared_ptr<PassportElementErrorTranslationFiles>,
9926 std::shared_ptr<PassportElementErrorUnspecified>>
9928};
9929
9930TGBOT_API void from_json(const nlohmann::json& json, PassportElementError& value);
9931TGBOT_API void to_json(nlohmann::json& json, const PassportElementError& value);
9932
9939 using Ptr = std::shared_ptr<PassportElementErrorDataField>;
9940
9941 static TGBOT_API const std::string SOURCE;
9942
9946 std::string source { SOURCE };
9952 std::string type { };
9956 std::string fieldName { };
9960 std::string dataHash { };
9964 std::string message { };
9965};
9966
9967TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorDataField& value);
9968TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorDataField& value);
9969
9976 using Ptr = std::shared_ptr<PassportElementErrorFile>;
9977
9978 static TGBOT_API const std::string SOURCE;
9979
9983 std::string source { SOURCE };
9988 std::string type { };
9992 std::string fileHash { };
9996 std::string message { };
9997};
9998
9999TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorFile& value);
10000TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorFile& value);
10001
10008 using Ptr = std::shared_ptr<PassportElementErrorFiles>;
10009
10010 static TGBOT_API const std::string SOURCE;
10011
10015 std::string source { SOURCE };
10020 std::string type { };
10024 std::vector<std::string> fileHashes { };
10028 std::string message { };
10029};
10030
10031TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorFiles& value);
10032TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorFiles& value);
10033
10040 using Ptr = std::shared_ptr<PassportElementErrorFrontSide>;
10041
10042 static TGBOT_API const std::string SOURCE;
10043
10047 std::string source { SOURCE };
10052 std::string type { };
10056 std::string fileHash { };
10060 std::string message { };
10061};
10062
10063TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorFrontSide& value);
10064TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorFrontSide& value);
10065
10072 using Ptr = std::shared_ptr<PassportElementErrorReverseSide>;
10073
10074 static TGBOT_API const std::string SOURCE;
10075
10079 std::string source { SOURCE };
10084 std::string type { };
10088 std::string fileHash { };
10092 std::string message { };
10093};
10094
10095TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorReverseSide& value);
10096TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorReverseSide& value);
10097
10104 using Ptr = std::shared_ptr<PassportElementErrorSelfie>;
10105
10106 static TGBOT_API const std::string SOURCE;
10107
10111 std::string source { SOURCE };
10116 std::string type { };
10120 std::string fileHash { };
10124 std::string message { };
10125};
10126
10127TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorSelfie& value);
10128TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorSelfie& value);
10129
10136 using Ptr = std::shared_ptr<PassportElementErrorTranslationFile>;
10137
10138 static TGBOT_API const std::string SOURCE;
10139
10143 std::string source { SOURCE };
10149 std::string type { };
10153 std::string fileHash { };
10157 std::string message { };
10158};
10159
10160TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorTranslationFile& value);
10161TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorTranslationFile& value);
10162
10169 using Ptr = std::shared_ptr<PassportElementErrorTranslationFiles>;
10170
10171 static TGBOT_API const std::string SOURCE;
10172
10176 std::string source { SOURCE };
10182 std::string type { };
10186 std::vector<std::string> fileHashes { };
10190 std::string message { };
10191};
10192
10193TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorTranslationFiles& value);
10194TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorTranslationFiles& value);
10195
10202 using Ptr = std::shared_ptr<PassportElementErrorUnspecified>;
10203
10204 static TGBOT_API const std::string SOURCE;
10205
10209 std::string source { SOURCE };
10213 std::string type { };
10217 std::string elementHash { };
10221 std::string message { };
10222};
10223
10224TGBOT_API void from_json(const nlohmann::json& json, PassportElementErrorUnspecified& value);
10225TGBOT_API void to_json(nlohmann::json& json, const PassportElementErrorUnspecified& value);
10226
10233 using Ptr = std::shared_ptr<PassportFile>;
10234
10238 std::string fileId { };
10243 std::string fileUniqueId { };
10247 std::uint32_t fileSize { };
10251 std::int32_t fileDate { };
10252};
10253
10254TGBOT_API void from_json(const nlohmann::json& json, PassportFile& value);
10255TGBOT_API void to_json(nlohmann::json& json, const PassportFile& value);
10256
10262 using Ptr = std::shared_ptr<PhotoSize>;
10263
10267 std::string fileId { };
10272 std::string fileUniqueId { };
10276 std::uint32_t width { };
10280 std::uint32_t height { };
10284 std::optional<std::uint32_t> fileSize { };
10285};
10286
10287TGBOT_API void from_json(const nlohmann::json& json, PhotoSize& value);
10288TGBOT_API void to_json(nlohmann::json& json, const PhotoSize& value);
10289
10294struct Poll {
10295 using Ptr = std::shared_ptr<Poll>;
10296
10300 std::string id { };
10304 std::string question { };
10309 std::optional<std::vector<std::shared_ptr<MessageEntity>>> questionEntities { };
10313 std::vector<std::shared_ptr<PollOption>> options { };
10317 std::uint32_t totalVoterCount { };
10321 bool isClosed { };
10325 bool isAnonymous { };
10329 std::string type { };
10342 bool membersOnly { };
10348 std::optional<std::vector<std::string>> countryCodes { };
10354 std::optional<std::vector<std::uint32_t>> correctOptionIds { };
10359 std::optional<std::string> explanation { };
10364 std::optional<std::vector<std::shared_ptr<MessageEntity>>> explanationEntities { };
10368 std::shared_ptr<PollMedia> explanationMedia { };
10372 std::optional<std::uint32_t> openPeriod { };
10376 std::optional<std::int32_t> closeDate { };
10380 std::optional<std::string> description { };
10385 std::optional<std::vector<std::shared_ptr<MessageEntity>>> descriptionEntities { };
10389 std::shared_ptr<PollMedia> media { };
10390};
10391
10392TGBOT_API void from_json(const nlohmann::json& json, Poll& value);
10393TGBOT_API void to_json(nlohmann::json& json, const Poll& value);
10394
10400 using Ptr = std::shared_ptr<PollAnswer>;
10401
10405 std::string pollId { };
10409 std::shared_ptr<Chat> voterChat { };
10413 std::shared_ptr<User> user { };
10417 std::vector<std::uint32_t> optionIds { };
10422 std::vector<std::string> optionPersistentIds { };
10423};
10424
10425TGBOT_API void from_json(const nlohmann::json& json, PollAnswer& value);
10426TGBOT_API void to_json(nlohmann::json& json, const PollAnswer& value);
10427
10433 using Ptr = std::shared_ptr<PollMedia>;
10434
10438 std::shared_ptr<Animation> animation { };
10443 std::shared_ptr<Audio> audio { };
10448 std::shared_ptr<Document> document { };
10452 std::shared_ptr<Link> link { };
10456 std::shared_ptr<LivePhoto> livePhoto { };
10460 std::shared_ptr<Location> location { };
10464 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
10469 std::shared_ptr<Sticker> sticker { };
10473 std::shared_ptr<Venue> venue { };
10477 std::shared_ptr<Video> video { };
10478};
10479
10480TGBOT_API void from_json(const nlohmann::json& json, PollMedia& value);
10481TGBOT_API void to_json(nlohmann::json& json, const PollMedia& value);
10482
10488 using Ptr = std::shared_ptr<PollOption>;
10489
10493 std::string persistentId { };
10497 std::string text { };
10502 std::optional<std::vector<std::shared_ptr<MessageEntity>>> textEntities { };
10506 std::shared_ptr<PollMedia> media { };
10510 std::uint32_t voterCount { };
10515 std::shared_ptr<User> addedByUser { };
10520 std::shared_ptr<Chat> addedByChat { };
10525 std::optional<std::int32_t> additionDate { };
10526};
10527
10528TGBOT_API void from_json(const nlohmann::json& json, PollOption& value);
10529TGBOT_API void to_json(nlohmann::json& json, const PollOption& value);
10530
10536 using Ptr = std::shared_ptr<PollOptionAdded>;
10537
10543 std::shared_ptr<MaybeInaccessibleMessage> pollMessage { };
10547 std::string optionPersistentId { };
10551 std::string optionText { };
10555 std::optional<std::vector<std::shared_ptr<MessageEntity>>> optionTextEntities { };
10556};
10557
10558TGBOT_API void from_json(const nlohmann::json& json, PollOptionAdded& value);
10559TGBOT_API void to_json(nlohmann::json& json, const PollOptionAdded& value);
10560
10566 using Ptr = std::shared_ptr<PollOptionDeleted>;
10567
10573 std::shared_ptr<MaybeInaccessibleMessage> pollMessage { };
10577 std::string optionPersistentId { };
10581 std::string optionText { };
10585 std::optional<std::vector<std::shared_ptr<MessageEntity>>> optionTextEntities { };
10586};
10587
10588TGBOT_API void from_json(const nlohmann::json& json, PollOptionDeleted& value);
10589TGBOT_API void to_json(nlohmann::json& json, const PollOptionDeleted& value);
10590
10596 using Ptr = std::shared_ptr<PreCheckoutQuery>;
10597
10601 std::string id { };
10605 std::shared_ptr<User> from { };
10609 std::string currency { };
10616 std::uint64_t totalAmount { };
10620 std::string invoicePayload { };
10624 std::optional<std::string> shippingOptionId { };
10628 std::shared_ptr<OrderInfo> orderInfo { };
10629};
10630
10631TGBOT_API void from_json(const nlohmann::json& json, PreCheckoutQuery& value);
10632TGBOT_API void to_json(nlohmann::json& json, const PreCheckoutQuery& value);
10633
10639 using Ptr = std::shared_ptr<PreparedInlineMessage>;
10640
10644 std::string id { };
10649 std::int32_t expirationDate { };
10650};
10651
10652TGBOT_API void from_json(const nlohmann::json& json, PreparedInlineMessage& value);
10653TGBOT_API void to_json(nlohmann::json& json, const PreparedInlineMessage& value);
10654
10660 using Ptr = std::shared_ptr<PreparedKeyboardButton>;
10661
10665 std::string id { };
10666};
10667
10668TGBOT_API void from_json(const nlohmann::json& json, PreparedKeyboardButton& value);
10669TGBOT_API void to_json(nlohmann::json& json, const PreparedKeyboardButton& value);
10670
10677 using Ptr = std::shared_ptr<ProximityAlertTriggered>;
10678
10682 std::shared_ptr<User> traveler { };
10686 std::shared_ptr<User> watcher { };
10690 std::uint32_t distance { };
10691};
10692
10693TGBOT_API void from_json(const nlohmann::json& json, ProximityAlertTriggered& value);
10694TGBOT_API void to_json(nlohmann::json& json, const ProximityAlertTriggered& value);
10695
10701 using Ptr = std::shared_ptr<ReactionCount>;
10702
10706 std::shared_ptr<ReactionType> type { };
10710 std::uint32_t totalCount { };
10711};
10712
10713TGBOT_API void from_json(const nlohmann::json& json, ReactionCount& value);
10714TGBOT_API void to_json(nlohmann::json& json, const ReactionCount& value);
10715
10722 using Ptr = std::shared_ptr<ReactionType>;
10723
10724 std::variant<std::shared_ptr<ReactionTypeEmoji>, std::shared_ptr<ReactionTypeCustomEmoji>,
10725 std::shared_ptr<ReactionTypePaid>>
10727};
10728
10729TGBOT_API void from_json(const nlohmann::json& json, ReactionType& value);
10730TGBOT_API void to_json(nlohmann::json& json, const ReactionType& value);
10731
10737 using Ptr = std::shared_ptr<ReactionTypeCustomEmoji>;
10738
10739 static TGBOT_API const std::string TYPE;
10740
10744 std::string type { TYPE };
10748 std::string customEmojiId { };
10749};
10750
10751TGBOT_API void from_json(const nlohmann::json& json, ReactionTypeCustomEmoji& value);
10752TGBOT_API void to_json(nlohmann::json& json, const ReactionTypeCustomEmoji& value);
10753
10759 using Ptr = std::shared_ptr<ReactionTypeEmoji>;
10760
10761 static TGBOT_API const std::string TYPE;
10762
10766 std::string type { TYPE };
10773 std::string emoji { };
10774};
10775
10776TGBOT_API void from_json(const nlohmann::json& json, ReactionTypeEmoji& value);
10777TGBOT_API void to_json(nlohmann::json& json, const ReactionTypeEmoji& value);
10778
10784 using Ptr = std::shared_ptr<ReactionTypePaid>;
10785
10786 static TGBOT_API const std::string TYPE;
10787
10791 std::string type { TYPE };
10792};
10793
10794TGBOT_API void from_json(const nlohmann::json& json, ReactionTypePaid& value);
10795TGBOT_API void to_json(nlohmann::json& json, const ReactionTypePaid& value);
10796
10802 using Ptr = std::shared_ptr<RefundedPayment>;
10803
10808 std::string currency { };
10815 std::uint64_t totalAmount { };
10819 std::string invoicePayload { };
10827 std::optional<std::string> providerPaymentChargeId { };
10828};
10829
10830TGBOT_API void from_json(const nlohmann::json& json, RefundedPayment& value);
10831TGBOT_API void to_json(nlohmann::json& json, const RefundedPayment& value);
10832
10840 using Ptr = std::shared_ptr<ReplyKeyboardMarkup>;
10841
10845 std::vector<std::vector<std::shared_ptr<KeyboardButton>>> keyboard { };
10851 std::optional<bool> isPersistent { };
10857 std::optional<bool> resizeKeyboard { };
10864 std::optional<bool> oneTimeKeyboard { };
10869 std::optional<std::string> inputFieldPlaceholder { };
10878 std::optional<bool> selective { };
10883 std::optional<bool> forceReply { };
10884};
10885
10886TGBOT_API void from_json(const nlohmann::json& json, ReplyKeyboardMarkup& value);
10887TGBOT_API void to_json(nlohmann::json& json, const ReplyKeyboardMarkup& value);
10888
10898 using Ptr = std::shared_ptr<ReplyKeyboardRemove>;
10899
10914 std::optional<bool> selective { };
10915};
10916
10917TGBOT_API void from_json(const nlohmann::json& json, ReplyKeyboardRemove& value);
10918TGBOT_API void to_json(nlohmann::json& json, const ReplyKeyboardRemove& value);
10919
10925 using Ptr = std::shared_ptr<ReplyParameters>;
10926
10931 std::optional<std::uint32_t> messageId { };
10938 std::optional<std::variant<std::int64_t, std::string>> chatId { };
10945 std::optional<std::uint32_t> ephemeralMessageId { };
10951 std::optional<bool> allowSendingWithoutReply { };
10959 std::optional<std::string> quote { };
10964 std::optional<std::string> quoteParseMode { };
10969 std::optional<std::vector<std::shared_ptr<MessageEntity>>> quoteEntities { };
10990 std::optional<std::vector<std::shared_ptr<RichText>>> quoteRichTexts { };
10996 std::optional<std::uint32_t> quotePosition { };
11000 std::optional<std::uint32_t> checklistTaskId { };
11004 std::optional<std::string> pollOptionId { };
11005};
11006
11007TGBOT_API void from_json(const nlohmann::json& json, ReplyParameters& value);
11008TGBOT_API void to_json(nlohmann::json& json, const ReplyParameters& value);
11009
11015 using Ptr = std::shared_ptr<ResponseParameters>;
11016
11024 std::optional<std::int64_t> migrateToChatId { };
11029 std::optional<std::uint32_t> retryAfter { };
11030};
11031
11032TGBOT_API void from_json(const nlohmann::json& json, ResponseParameters& value);
11033TGBOT_API void to_json(nlohmann::json& json, const ResponseParameters& value);
11034
11042 using Ptr = std::shared_ptr<RevenueWithdrawalState>;
11043
11044 std::variant<std::shared_ptr<RevenueWithdrawalStatePending>, std::shared_ptr<RevenueWithdrawalStateSucceeded>,
11045 std::shared_ptr<RevenueWithdrawalStateFailed>>
11047};
11048
11049TGBOT_API void from_json(const nlohmann::json& json, RevenueWithdrawalState& value);
11050TGBOT_API void to_json(nlohmann::json& json, const RevenueWithdrawalState& value);
11051
11057 using Ptr = std::shared_ptr<RevenueWithdrawalStateFailed>;
11058
11059 static TGBOT_API const std::string TYPE;
11060
11064 std::string type { TYPE };
11065};
11066
11067TGBOT_API void from_json(const nlohmann::json& json, RevenueWithdrawalStateFailed& value);
11068TGBOT_API void to_json(nlohmann::json& json, const RevenueWithdrawalStateFailed& value);
11069
11075 using Ptr = std::shared_ptr<RevenueWithdrawalStatePending>;
11076
11077 static TGBOT_API const std::string TYPE;
11078
11082 std::string type { TYPE };
11083};
11084
11085TGBOT_API void from_json(const nlohmann::json& json, RevenueWithdrawalStatePending& value);
11086TGBOT_API void to_json(nlohmann::json& json, const RevenueWithdrawalStatePending& value);
11087
11093 using Ptr = std::shared_ptr<RevenueWithdrawalStateSucceeded>;
11094
11095 static TGBOT_API const std::string TYPE;
11096
11100 std::string type { TYPE };
11104 std::int32_t date { };
11108 std::string url { };
11109};
11110
11111TGBOT_API void from_json(const nlohmann::json& json, RevenueWithdrawalStateSucceeded& value);
11112TGBOT_API void to_json(nlohmann::json& json, const RevenueWithdrawalStateSucceeded& value);
11113
11125 using Ptr = std::shared_ptr<RichBlock>;
11126
11127 std::variant<std::shared_ptr<RichBlockParagraph>, std::shared_ptr<RichBlockSectionHeading>,
11128 std::shared_ptr<RichBlockPreformatted>, std::shared_ptr<RichBlockFooter>,
11129 std::shared_ptr<RichBlockDivider>, std::shared_ptr<RichBlockMathematicalExpression>,
11130 std::shared_ptr<RichBlockAnchor>, std::shared_ptr<RichBlockList>,
11131 std::shared_ptr<RichBlockBlockQuotation>, std::shared_ptr<RichBlockExpandableBlockQuotation>,
11132 std::shared_ptr<RichBlockPullQuotation>, std::shared_ptr<RichBlockCollage>,
11133 std::shared_ptr<RichBlockSlideshow>, std::shared_ptr<RichBlockTable>,
11134 std::shared_ptr<RichBlockDetails>, std::shared_ptr<RichBlockMap>, std::shared_ptr<RichBlockButtons>,
11135 std::shared_ptr<RichBlockAnimation>, std::shared_ptr<RichBlockAudio>,
11136 std::shared_ptr<RichBlockDocument>, std::shared_ptr<RichBlockPhoto>, std::shared_ptr<RichBlockVideo>,
11137 std::shared_ptr<RichBlockVoiceNote>, std::shared_ptr<RichBlockThinking>>
11139};
11140
11141TGBOT_API void from_json(const nlohmann::json& json, RichBlock& value);
11142TGBOT_API void to_json(nlohmann::json& json, const RichBlock& value);
11143
11149 using Ptr = std::shared_ptr<RichBlockAnchor>;
11150
11151 static TGBOT_API const std::string TYPE;
11152
11156 std::string type { TYPE };
11160 std::string name { };
11161};
11162
11163TGBOT_API void from_json(const nlohmann::json& json, RichBlockAnchor& value);
11164TGBOT_API void to_json(nlohmann::json& json, const RichBlockAnchor& value);
11165
11171 using Ptr = std::shared_ptr<RichBlockAnimation>;
11172
11173 static TGBOT_API const std::string TYPE;
11174
11178 std::string type { TYPE };
11182 std::shared_ptr<Animation> animation { };
11186 std::optional<bool> hasSpoiler { };
11190 std::shared_ptr<RichBlockCaption> caption { };
11191};
11192
11193TGBOT_API void from_json(const nlohmann::json& json, RichBlockAnimation& value);
11194TGBOT_API void to_json(nlohmann::json& json, const RichBlockAnimation& value);
11195
11201 using Ptr = std::shared_ptr<RichBlockAudio>;
11202
11203 static TGBOT_API const std::string TYPE;
11204
11208 std::string type { TYPE };
11212 std::shared_ptr<Audio> audio { };
11216 std::shared_ptr<RichBlockCaption> caption { };
11217};
11218
11219TGBOT_API void from_json(const nlohmann::json& json, RichBlockAudio& value);
11220TGBOT_API void to_json(nlohmann::json& json, const RichBlockAudio& value);
11221
11227 using Ptr = std::shared_ptr<RichBlockBlockQuotation>;
11228
11229 static TGBOT_API const std::string TYPE;
11230
11234 std::string type { TYPE };
11238 std::vector<std::shared_ptr<RichBlock>> blocks { };
11242 std::shared_ptr<RichText> credit { };
11243};
11244
11245TGBOT_API void from_json(const nlohmann::json& json, RichBlockBlockQuotation& value);
11246TGBOT_API void to_json(nlohmann::json& json, const RichBlockBlockQuotation& value);
11247
11254 using Ptr = std::shared_ptr<RichBlockButtons>;
11255
11256 static TGBOT_API const std::string TYPE;
11257
11261 std::string type { TYPE };
11265 std::vector<std::shared_ptr<RichMessageButton>> buttons { };
11270 std::optional<std::string> align { };
11271};
11272
11273TGBOT_API void from_json(const nlohmann::json& json, RichBlockButtons& value);
11274TGBOT_API void to_json(nlohmann::json& json, const RichBlockButtons& value);
11275
11281 using Ptr = std::shared_ptr<RichBlockCaption>;
11282
11286 std::shared_ptr<RichText> text { };
11290 std::shared_ptr<RichText> credit { };
11291};
11292
11293TGBOT_API void from_json(const nlohmann::json& json, RichBlockCaption& value);
11294TGBOT_API void to_json(nlohmann::json& json, const RichBlockCaption& value);
11295
11301 using Ptr = std::shared_ptr<RichBlockCollage>;
11302
11303 static TGBOT_API const std::string TYPE;
11304
11308 std::string type { TYPE };
11312 std::vector<std::shared_ptr<RichBlock>> blocks { };
11316 std::shared_ptr<RichBlockCaption> caption { };
11317};
11318
11319TGBOT_API void from_json(const nlohmann::json& json, RichBlockCollage& value);
11320TGBOT_API void to_json(nlohmann::json& json, const RichBlockCollage& value);
11321
11327 using Ptr = std::shared_ptr<RichBlockDetails>;
11328
11329 static TGBOT_API const std::string TYPE;
11330
11334 std::string type { TYPE };
11338 std::shared_ptr<RichText> summary { };
11342 std::vector<std::shared_ptr<RichBlock>> blocks { };
11346 std::optional<bool> isOpen { };
11347};
11348
11349TGBOT_API void from_json(const nlohmann::json& json, RichBlockDetails& value);
11350TGBOT_API void to_json(nlohmann::json& json, const RichBlockDetails& value);
11351
11357 using Ptr = std::shared_ptr<RichBlockDivider>;
11358
11359 static TGBOT_API const std::string TYPE;
11360
11364 std::string type { TYPE };
11365};
11366
11367TGBOT_API void from_json(const nlohmann::json& json, RichBlockDivider& value);
11368TGBOT_API void to_json(nlohmann::json& json, const RichBlockDivider& value);
11369
11375 using Ptr = std::shared_ptr<RichBlockDocument>;
11376
11377 static TGBOT_API const std::string TYPE;
11378
11382 std::string type { TYPE };
11386 std::shared_ptr<Document> document { };
11390 std::shared_ptr<RichBlockCaption> caption { };
11391};
11392
11393TGBOT_API void from_json(const nlohmann::json& json, RichBlockDocument& value);
11394TGBOT_API void to_json(nlohmann::json& json, const RichBlockDocument& value);
11395
11402 using Ptr = std::shared_ptr<RichBlockExpandableBlockQuotation>;
11403
11404 static TGBOT_API const std::string TYPE;
11405
11409 std::string type { TYPE };
11413 std::shared_ptr<RichText> text { };
11417 std::shared_ptr<RichText> credit { };
11418};
11419
11420TGBOT_API void from_json(const nlohmann::json& json, RichBlockExpandableBlockQuotation& value);
11421TGBOT_API void to_json(nlohmann::json& json, const RichBlockExpandableBlockQuotation& value);
11422
11428 using Ptr = std::shared_ptr<RichBlockFooter>;
11429
11430 static TGBOT_API const std::string TYPE;
11431
11435 std::string type { TYPE };
11439 std::shared_ptr<RichText> text { };
11440};
11441
11442TGBOT_API void from_json(const nlohmann::json& json, RichBlockFooter& value);
11443TGBOT_API void to_json(nlohmann::json& json, const RichBlockFooter& value);
11444
11450 using Ptr = std::shared_ptr<RichBlockList>;
11451
11452 static TGBOT_API const std::string TYPE;
11453
11457 std::string type { TYPE };
11461 std::vector<std::shared_ptr<RichBlockListItem>> items { };
11462};
11463
11464TGBOT_API void from_json(const nlohmann::json& json, RichBlockList& value);
11465TGBOT_API void to_json(nlohmann::json& json, const RichBlockList& value);
11466
11472 using Ptr = std::shared_ptr<RichBlockListItem>;
11473
11477 std::string label { };
11481 std::vector<std::shared_ptr<RichBlock>> blocks { };
11485 std::optional<bool> hasCheckbox { };
11489 std::optional<bool> isChecked { };
11493 std::optional<std::int32_t> value { };
11499 std::optional<std::string> type { };
11500};
11501
11502TGBOT_API void from_json(const nlohmann::json& json, RichBlockListItem& value);
11503TGBOT_API void to_json(nlohmann::json& json, const RichBlockListItem& value);
11504
11510 using Ptr = std::shared_ptr<RichBlockMap>;
11511
11512 static TGBOT_API const std::string TYPE;
11513
11517 std::string type { TYPE };
11521 std::shared_ptr<Location> location { };
11525 std::uint32_t zoom { };
11529 std::uint32_t width { };
11533 std::uint32_t height { };
11537 std::shared_ptr<RichBlockCaption> caption { };
11538};
11539
11540TGBOT_API void from_json(const nlohmann::json& json, RichBlockMap& value);
11541TGBOT_API void to_json(nlohmann::json& json, const RichBlockMap& value);
11542
11549 using Ptr = std::shared_ptr<RichBlockMathematicalExpression>;
11550
11551 static TGBOT_API const std::string TYPE;
11552
11556 std::string type { TYPE };
11560 std::string expression { };
11561};
11562
11563TGBOT_API void from_json(const nlohmann::json& json, RichBlockMathematicalExpression& value);
11564TGBOT_API void to_json(nlohmann::json& json, const RichBlockMathematicalExpression& value);
11565
11571 using Ptr = std::shared_ptr<RichBlockParagraph>;
11572
11573 static TGBOT_API const std::string TYPE;
11574
11578 std::string type { TYPE };
11582 std::shared_ptr<RichText> text { };
11583};
11584
11585TGBOT_API void from_json(const nlohmann::json& json, RichBlockParagraph& value);
11586TGBOT_API void to_json(nlohmann::json& json, const RichBlockParagraph& value);
11587
11593 using Ptr = std::shared_ptr<RichBlockPhoto>;
11594
11595 static TGBOT_API const std::string TYPE;
11596
11600 std::string type { TYPE };
11604 std::vector<std::shared_ptr<PhotoSize>> photo { };
11608 std::optional<bool> hasSpoiler { };
11612 std::shared_ptr<RichBlockCaption> caption { };
11613};
11614
11615TGBOT_API void from_json(const nlohmann::json& json, RichBlockPhoto& value);
11616TGBOT_API void to_json(nlohmann::json& json, const RichBlockPhoto& value);
11617
11623 using Ptr = std::shared_ptr<RichBlockPreformatted>;
11624
11625 static TGBOT_API const std::string TYPE;
11626
11630 std::string type { TYPE };
11634 std::shared_ptr<RichText> text { };
11638 std::optional<std::string> language { };
11639};
11640
11641TGBOT_API void from_json(const nlohmann::json& json, RichBlockPreformatted& value);
11642TGBOT_API void to_json(nlohmann::json& json, const RichBlockPreformatted& value);
11643
11649 using Ptr = std::shared_ptr<RichBlockPullQuotation>;
11650
11651 static TGBOT_API const std::string TYPE;
11652
11656 std::string type { TYPE };
11660 std::shared_ptr<RichText> text { };
11664 std::shared_ptr<RichText> credit { };
11665};
11666
11667TGBOT_API void from_json(const nlohmann::json& json, RichBlockPullQuotation& value);
11668TGBOT_API void to_json(nlohmann::json& json, const RichBlockPullQuotation& value);
11669
11675 using Ptr = std::shared_ptr<RichBlockSectionHeading>;
11676
11677 static TGBOT_API const std::string TYPE;
11678
11682 std::string type { TYPE };
11686 std::shared_ptr<RichText> text { };
11690 std::uint32_t size { };
11691};
11692
11693TGBOT_API void from_json(const nlohmann::json& json, RichBlockSectionHeading& value);
11694TGBOT_API void to_json(nlohmann::json& json, const RichBlockSectionHeading& value);
11695
11701 using Ptr = std::shared_ptr<RichBlockSlideshow>;
11702
11703 static TGBOT_API const std::string TYPE;
11704
11708 std::string type { TYPE };
11712 std::vector<std::shared_ptr<RichBlock>> blocks { };
11716 std::shared_ptr<RichBlockCaption> caption { };
11717};
11718
11719TGBOT_API void from_json(const nlohmann::json& json, RichBlockSlideshow& value);
11720TGBOT_API void to_json(nlohmann::json& json, const RichBlockSlideshow& value);
11721
11727 using Ptr = std::shared_ptr<RichBlockTable>;
11728
11729 static TGBOT_API const std::string TYPE;
11730
11734 std::string type { TYPE };
11738 std::vector<std::vector<std::shared_ptr<RichBlockTableCell>>> cells { };
11742 std::optional<bool> isBordered { };
11746 std::optional<bool> isStriped { };
11750 std::optional<bool> isCompact { };
11754 std::shared_ptr<RichText> caption { };
11755};
11756
11757TGBOT_API void from_json(const nlohmann::json& json, RichBlockTable& value);
11758TGBOT_API void to_json(nlohmann::json& json, const RichBlockTable& value);
11759
11765 using Ptr = std::shared_ptr<RichBlockTableCell>;
11766
11770 std::shared_ptr<RichText> text { };
11774 std::optional<bool> isHeader { };
11778 std::optional<std::uint32_t> colspan { };
11782 std::optional<std::uint32_t> rowspan { };
11787 std::string align { };
11791 std::string valign { };
11792};
11793
11794TGBOT_API void from_json(const nlohmann::json& json, RichBlockTableCell& value);
11795TGBOT_API void to_json(nlohmann::json& json, const RichBlockTableCell& value);
11796
11805 using Ptr = std::shared_ptr<RichBlockThinking>;
11806
11807 static TGBOT_API const std::string TYPE;
11808
11812 std::string type { TYPE };
11817 std::shared_ptr<RichText> text { };
11818};
11819
11820TGBOT_API void from_json(const nlohmann::json& json, RichBlockThinking& value);
11821TGBOT_API void to_json(nlohmann::json& json, const RichBlockThinking& value);
11822
11828 using Ptr = std::shared_ptr<RichBlockVideo>;
11829
11830 static TGBOT_API const std::string TYPE;
11831
11835 std::string type { TYPE };
11839 std::shared_ptr<Video> video { };
11843 std::optional<bool> hasSpoiler { };
11847 std::shared_ptr<RichBlockCaption> caption { };
11848};
11849
11850TGBOT_API void from_json(const nlohmann::json& json, RichBlockVideo& value);
11851TGBOT_API void to_json(nlohmann::json& json, const RichBlockVideo& value);
11852
11858 using Ptr = std::shared_ptr<RichBlockVoiceNote>;
11859
11860 static TGBOT_API const std::string TYPE;
11861
11865 std::string type { TYPE };
11869 std::shared_ptr<Voice> voiceNote { };
11873 std::shared_ptr<RichBlockCaption> caption { };
11874};
11875
11876TGBOT_API void from_json(const nlohmann::json& json, RichBlockVoiceNote& value);
11877TGBOT_API void to_json(nlohmann::json& json, const RichBlockVoiceNote& value);
11878
11884 using Ptr = std::shared_ptr<RichMessage>;
11885
11889 std::vector<std::shared_ptr<RichBlock>> blocks { };
11893 std::optional<bool> isRtl { };
11894};
11895
11896TGBOT_API void from_json(const nlohmann::json& json, RichMessage& value);
11897TGBOT_API void to_json(nlohmann::json& json, const RichMessage& value);
11898
11905 using Ptr = std::shared_ptr<RichMessageButton>;
11906
11911 std::shared_ptr<RichText> text { };
11918 std::optional<std::string> style { };
11924 std::optional<std::string> url { };
11929 std::optional<std::string> callbackData { };
11936 std::shared_ptr<WebAppInfo> webApp { };
11941 std::shared_ptr<LoginUrl> loginUrl { };
11949 std::optional<std::string> switchInlineQuery { };
11956 std::optional<std::string> switchInlineQueryCurrentChat { };
11963 std::shared_ptr<SwitchInlineQueryChosenChat> switchInlineQueryChosenChat { };
11967 std::shared_ptr<CopyTextButton> copyText { };
11971 std::shared_ptr<DisabledButton> disabled { };
11972};
11973
11974TGBOT_API void from_json(const nlohmann::json& json, RichMessageButton& value);
11975TGBOT_API void to_json(nlohmann::json& json, const RichMessageButton& value);
11976
11988struct RichText {
11989 using Ptr = std::shared_ptr<RichText>;
11990
11991 std::variant<
11992 std::shared_ptr<RichTextBold>, std::shared_ptr<RichTextItalic>, std::shared_ptr<RichTextUnderline>,
11993 std::shared_ptr<RichTextStrikethrough>, std::shared_ptr<RichTextSpoiler>, std::shared_ptr<RichTextDateTime>,
11994 std::shared_ptr<RichTextTextMention>, std::shared_ptr<RichTextSubscript>, std::shared_ptr<RichTextSuperscript>,
11995 std::shared_ptr<RichTextMarked>, std::shared_ptr<RichTextCode>, std::shared_ptr<RichTextCustomEmoji>,
11996 std::shared_ptr<RichTextMathematicalExpression>, std::shared_ptr<RichTextUrl>,
11997 std::shared_ptr<RichTextEmailAddress>, std::shared_ptr<RichTextPhoneNumber>,
11998 std::shared_ptr<RichTextBankCardNumber>, std::shared_ptr<RichTextMention>, std::shared_ptr<RichTextHashtag>,
11999 std::shared_ptr<RichTextCashtag>, std::shared_ptr<RichTextBotCommand>, std::shared_ptr<RichTextButton>,
12000 std::shared_ptr<RichTextAnchor>, std::shared_ptr<RichTextAnchorLink>, std::shared_ptr<RichTextReference>,
12001 std::shared_ptr<RichTextReferenceLink>, std::string, std::vector<std::shared_ptr<RichText>>,
12002 std::shared_ptr<RichTextTonAddress>>
12004};
12005
12006TGBOT_API void from_json(const nlohmann::json& json, RichText& value);
12007TGBOT_API void to_json(nlohmann::json& json, const RichText& value);
12008
12014 using Ptr = std::shared_ptr<RichTextAnchor>;
12015
12016 static TGBOT_API const std::string TYPE;
12017
12021 std::string type { TYPE };
12025 std::string name { };
12026};
12027
12028TGBOT_API void from_json(const nlohmann::json& json, RichTextAnchor& value);
12029TGBOT_API void to_json(nlohmann::json& json, const RichTextAnchor& value);
12030
12036 using Ptr = std::shared_ptr<RichTextAnchorLink>;
12037
12038 static TGBOT_API const std::string TYPE;
12039
12043 std::string type { TYPE };
12047 std::shared_ptr<RichText> text { };
12052 std::string anchorName { };
12053};
12054
12055TGBOT_API void from_json(const nlohmann::json& json, RichTextAnchorLink& value);
12056TGBOT_API void to_json(nlohmann::json& json, const RichTextAnchorLink& value);
12057
12063 using Ptr = std::shared_ptr<RichTextBankCardNumber>;
12064
12065 static TGBOT_API const std::string TYPE;
12066
12070 std::string type { TYPE };
12074 std::shared_ptr<RichText> text { };
12078 std::string bankCardNumber { };
12079};
12080
12081TGBOT_API void from_json(const nlohmann::json& json, RichTextBankCardNumber& value);
12082TGBOT_API void to_json(nlohmann::json& json, const RichTextBankCardNumber& value);
12083
12089 using Ptr = std::shared_ptr<RichTextBold>;
12090
12091 static TGBOT_API const std::string TYPE;
12092
12096 std::string type { TYPE };
12100 std::shared_ptr<RichText> text { };
12101};
12102
12103TGBOT_API void from_json(const nlohmann::json& json, RichTextBold& value);
12104TGBOT_API void to_json(nlohmann::json& json, const RichTextBold& value);
12105
12111 using Ptr = std::shared_ptr<RichTextBotCommand>;
12112
12113 static TGBOT_API const std::string TYPE;
12114
12118 std::string type { TYPE };
12122 std::shared_ptr<RichText> text { };
12126 std::string botCommand { };
12127};
12128
12129TGBOT_API void from_json(const nlohmann::json& json, RichTextBotCommand& value);
12130TGBOT_API void to_json(nlohmann::json& json, const RichTextBotCommand& value);
12131
12137 using Ptr = std::shared_ptr<RichTextButton>;
12138
12139 static TGBOT_API const std::string TYPE;
12140
12144 std::string type { TYPE };
12148 std::shared_ptr<RichMessageButton> button { };
12149};
12150
12151TGBOT_API void from_json(const nlohmann::json& json, RichTextButton& value);
12152TGBOT_API void to_json(nlohmann::json& json, const RichTextButton& value);
12153
12159 using Ptr = std::shared_ptr<RichTextCashtag>;
12160
12161 static TGBOT_API const std::string TYPE;
12162
12166 std::string type { TYPE };
12170 std::shared_ptr<RichText> text { };
12174 std::string cashtag { };
12175};
12176
12177TGBOT_API void from_json(const nlohmann::json& json, RichTextCashtag& value);
12178TGBOT_API void to_json(nlohmann::json& json, const RichTextCashtag& value);
12179
12185 using Ptr = std::shared_ptr<RichTextCode>;
12186
12187 static TGBOT_API const std::string TYPE;
12188
12192 std::string type { TYPE };
12196 std::shared_ptr<RichText> text { };
12197};
12198
12199TGBOT_API void from_json(const nlohmann::json& json, RichTextCode& value);
12200TGBOT_API void to_json(nlohmann::json& json, const RichTextCode& value);
12201
12207 using Ptr = std::shared_ptr<RichTextCustomEmoji>;
12208
12209 static TGBOT_API const std::string TYPE;
12210
12214 std::string type { TYPE };
12219 std::string customEmojiId { };
12223 std::string alternativeText { };
12224};
12225
12226TGBOT_API void from_json(const nlohmann::json& json, RichTextCustomEmoji& value);
12227TGBOT_API void to_json(nlohmann::json& json, const RichTextCustomEmoji& value);
12228
12234 using Ptr = std::shared_ptr<RichTextDateTime>;
12235
12236 static TGBOT_API const std::string TYPE;
12237
12241 std::string type { TYPE };
12245 std::shared_ptr<RichText> text { };
12249 std::int32_t unixTime { };
12254 std::string dateTimeFormat { };
12255};
12256
12257TGBOT_API void from_json(const nlohmann::json& json, RichTextDateTime& value);
12258TGBOT_API void to_json(nlohmann::json& json, const RichTextDateTime& value);
12259
12265 using Ptr = std::shared_ptr<RichTextEmailAddress>;
12266
12267 static TGBOT_API const std::string TYPE;
12268
12272 std::string type { TYPE };
12276 std::shared_ptr<RichText> text { };
12280 std::string emailAddress { };
12281};
12282
12283TGBOT_API void from_json(const nlohmann::json& json, RichTextEmailAddress& value);
12284TGBOT_API void to_json(nlohmann::json& json, const RichTextEmailAddress& value);
12285
12291 using Ptr = std::shared_ptr<RichTextHashtag>;
12292
12293 static TGBOT_API const std::string TYPE;
12294
12298 std::string type { TYPE };
12302 std::shared_ptr<RichText> text { };
12306 std::string hashtag { };
12307};
12308
12309TGBOT_API void from_json(const nlohmann::json& json, RichTextHashtag& value);
12310TGBOT_API void to_json(nlohmann::json& json, const RichTextHashtag& value);
12311
12317 using Ptr = std::shared_ptr<RichTextItalic>;
12318
12319 static TGBOT_API const std::string TYPE;
12320
12324 std::string type { TYPE };
12328 std::shared_ptr<RichText> text { };
12329};
12330
12331TGBOT_API void from_json(const nlohmann::json& json, RichTextItalic& value);
12332TGBOT_API void to_json(nlohmann::json& json, const RichTextItalic& value);
12333
12339 using Ptr = std::shared_ptr<RichTextMarked>;
12340
12341 static TGBOT_API const std::string TYPE;
12342
12346 std::string type { TYPE };
12350 std::shared_ptr<RichText> text { };
12351};
12352
12353TGBOT_API void from_json(const nlohmann::json& json, RichTextMarked& value);
12354TGBOT_API void to_json(nlohmann::json& json, const RichTextMarked& value);
12355
12361 using Ptr = std::shared_ptr<RichTextMathematicalExpression>;
12362
12363 static TGBOT_API const std::string TYPE;
12364
12368 std::string type { TYPE };
12372 std::string expression { };
12373};
12374
12375TGBOT_API void from_json(const nlohmann::json& json, RichTextMathematicalExpression& value);
12376TGBOT_API void to_json(nlohmann::json& json, const RichTextMathematicalExpression& value);
12377
12383 using Ptr = std::shared_ptr<RichTextMention>;
12384
12385 static TGBOT_API const std::string TYPE;
12386
12390 std::string type { TYPE };
12394 std::shared_ptr<RichText> text { };
12398 std::string username { };
12399};
12400
12401TGBOT_API void from_json(const nlohmann::json& json, RichTextMention& value);
12402TGBOT_API void to_json(nlohmann::json& json, const RichTextMention& value);
12403
12409 using Ptr = std::shared_ptr<RichTextPhoneNumber>;
12410
12411 static TGBOT_API const std::string TYPE;
12412
12416 std::string type { TYPE };
12420 std::shared_ptr<RichText> text { };
12424 std::string phoneNumber { };
12425};
12426
12427TGBOT_API void from_json(const nlohmann::json& json, RichTextPhoneNumber& value);
12428TGBOT_API void to_json(nlohmann::json& json, const RichTextPhoneNumber& value);
12429
12435 using Ptr = std::shared_ptr<RichTextReference>;
12436
12437 static TGBOT_API const std::string TYPE;
12438
12442 std::string type { TYPE };
12446 std::shared_ptr<RichText> text { };
12450 std::string name { };
12451};
12452
12453TGBOT_API void from_json(const nlohmann::json& json, RichTextReference& value);
12454TGBOT_API void to_json(nlohmann::json& json, const RichTextReference& value);
12455
12461 using Ptr = std::shared_ptr<RichTextReferenceLink>;
12462
12463 static TGBOT_API const std::string TYPE;
12464
12468 std::string type { TYPE };
12472 std::shared_ptr<RichText> text { };
12476 std::string referenceName { };
12477};
12478
12479TGBOT_API void from_json(const nlohmann::json& json, RichTextReferenceLink& value);
12480TGBOT_API void to_json(nlohmann::json& json, const RichTextReferenceLink& value);
12481
12487 using Ptr = std::shared_ptr<RichTextSpoiler>;
12488
12489 static TGBOT_API const std::string TYPE;
12490
12494 std::string type { TYPE };
12498 std::shared_ptr<RichText> text { };
12499};
12500
12501TGBOT_API void from_json(const nlohmann::json& json, RichTextSpoiler& value);
12502TGBOT_API void to_json(nlohmann::json& json, const RichTextSpoiler& value);
12503
12509 using Ptr = std::shared_ptr<RichTextStrikethrough>;
12510
12511 static TGBOT_API const std::string TYPE;
12512
12516 std::string type { TYPE };
12520 std::shared_ptr<RichText> text { };
12521};
12522
12523TGBOT_API void from_json(const nlohmann::json& json, RichTextStrikethrough& value);
12524TGBOT_API void to_json(nlohmann::json& json, const RichTextStrikethrough& value);
12525
12531 using Ptr = std::shared_ptr<RichTextSubscript>;
12532
12533 static TGBOT_API const std::string TYPE;
12534
12538 std::string type { TYPE };
12542 std::shared_ptr<RichText> text { };
12543};
12544
12545TGBOT_API void from_json(const nlohmann::json& json, RichTextSubscript& value);
12546TGBOT_API void to_json(nlohmann::json& json, const RichTextSubscript& value);
12547
12553 using Ptr = std::shared_ptr<RichTextSuperscript>;
12554
12555 static TGBOT_API const std::string TYPE;
12556
12560 std::string type { TYPE };
12564 std::shared_ptr<RichText> text { };
12565};
12566
12567TGBOT_API void from_json(const nlohmann::json& json, RichTextSuperscript& value);
12568TGBOT_API void to_json(nlohmann::json& json, const RichTextSuperscript& value);
12569
12575 using Ptr = std::shared_ptr<RichTextTextMention>;
12576
12577 static TGBOT_API const std::string TYPE;
12578
12582 std::string type { TYPE };
12586 std::shared_ptr<RichText> text { };
12590 std::shared_ptr<User> user { };
12591};
12592
12593TGBOT_API void from_json(const nlohmann::json& json, RichTextTextMention& value);
12594TGBOT_API void to_json(nlohmann::json& json, const RichTextTextMention& value);
12595
12601 using Ptr = std::shared_ptr<RichTextTonAddress>;
12602
12603 static TGBOT_API const std::string TYPE;
12604
12608 std::string type { TYPE };
12612 std::shared_ptr<RichText> text { };
12616 std::string address { };
12617};
12618
12619TGBOT_API void from_json(const nlohmann::json& json, RichTextTonAddress& value);
12620TGBOT_API void to_json(nlohmann::json& json, const RichTextTonAddress& value);
12621
12627 using Ptr = std::shared_ptr<RichTextUnderline>;
12628
12629 static TGBOT_API const std::string TYPE;
12630
12634 std::string type { TYPE };
12638 std::shared_ptr<RichText> text { };
12639};
12640
12641TGBOT_API void from_json(const nlohmann::json& json, RichTextUnderline& value);
12642TGBOT_API void to_json(nlohmann::json& json, const RichTextUnderline& value);
12643
12649 using Ptr = std::shared_ptr<RichTextUrl>;
12650
12651 static TGBOT_API const std::string TYPE;
12652
12656 std::string type { TYPE };
12660 std::shared_ptr<RichText> text { };
12664 std::string url { };
12665};
12666
12667TGBOT_API void from_json(const nlohmann::json& json, RichTextUrl& value);
12668TGBOT_API void to_json(nlohmann::json& json, const RichTextUrl& value);
12669
12675 using Ptr = std::shared_ptr<SentGuestMessage>;
12676
12680 std::string inlineMessageId { };
12681};
12682
12683TGBOT_API void from_json(const nlohmann::json& json, SentGuestMessage& value);
12684TGBOT_API void to_json(nlohmann::json& json, const SentGuestMessage& value);
12685
12691 using Ptr = std::shared_ptr<SentWebAppMessage>;
12692
12697 std::optional<std::string> inlineMessageId { };
12698};
12699
12700TGBOT_API void from_json(const nlohmann::json& json, SentWebAppMessage& value);
12701TGBOT_API void to_json(nlohmann::json& json, const SentWebAppMessage& value);
12702
12709 using Ptr = std::shared_ptr<SharedUser>;
12710
12719 std::uint64_t userId { };
12723 std::optional<std::string> firstName { };
12727 std::optional<std::string> lastName { };
12731 std::optional<std::string> username { };
12735 std::optional<std::vector<std::shared_ptr<PhotoSize>>> photo { };
12736};
12737
12738TGBOT_API void from_json(const nlohmann::json& json, SharedUser& value);
12739TGBOT_API void to_json(nlohmann::json& json, const SharedUser& value);
12740
12748 using Ptr = std::shared_ptr<SharedWidgetQuery>;
12749
12753 std::string id { };
12757 std::shared_ptr<User> from { };
12761 std::shared_ptr<WidgetQueryType> type { };
12765 std::string data { };
12769 std::string widgetId { };
12770};
12771
12772TGBOT_API void from_json(const nlohmann::json& json, SharedWidgetQuery& value);
12773TGBOT_API void to_json(nlohmann::json& json, const SharedWidgetQuery& value);
12774
12780 using Ptr = std::shared_ptr<ShippingAddress>;
12781
12785 std::string countryCode { };
12789 std::string state { };
12793 std::string city { };
12797 std::string streetLine1 { };
12801 std::string streetLine2 { };
12805 std::string postCode { };
12806};
12807
12808TGBOT_API void from_json(const nlohmann::json& json, ShippingAddress& value);
12809TGBOT_API void to_json(nlohmann::json& json, const ShippingAddress& value);
12810
12816 using Ptr = std::shared_ptr<ShippingOption>;
12817
12821 std::string id { };
12825 std::string title { };
12829 std::vector<std::shared_ptr<LabeledPrice>> prices { };
12830};
12831
12832TGBOT_API void from_json(const nlohmann::json& json, ShippingOption& value);
12833TGBOT_API void to_json(nlohmann::json& json, const ShippingOption& value);
12834
12840 using Ptr = std::shared_ptr<ShippingQuery>;
12841
12845 std::string id { };
12849 std::shared_ptr<User> from { };
12853 std::string invoicePayload { };
12857 std::shared_ptr<ShippingAddress> shippingAddress { };
12858};
12859
12860TGBOT_API void from_json(const nlohmann::json& json, ShippingQuery& value);
12861TGBOT_API void to_json(nlohmann::json& json, const ShippingQuery& value);
12862
12868 using Ptr = std::shared_ptr<StarAmount>;
12869
12873 std::int64_t amount { };
12878 std::optional<std::int32_t> nanostarAmount { };
12879};
12880
12881TGBOT_API void from_json(const nlohmann::json& json, StarAmount& value);
12882TGBOT_API void to_json(nlohmann::json& json, const StarAmount& value);
12883
12892 using Ptr = std::shared_ptr<StarTransaction>;
12893
12900 std::string id { };
12904 std::uint64_t amount { };
12909 std::optional<std::uint32_t> nanostarAmount { };
12913 std::int32_t date { };
12918 std::shared_ptr<TransactionPartner> source { };
12923 std::shared_ptr<TransactionPartner> receiver { };
12924};
12925
12926TGBOT_API void from_json(const nlohmann::json& json, StarTransaction& value);
12927TGBOT_API void to_json(nlohmann::json& json, const StarTransaction& value);
12928
12934 using Ptr = std::shared_ptr<StarTransactions>;
12935
12939 std::vector<std::shared_ptr<StarTransaction>> transactions { };
12940};
12941
12942TGBOT_API void from_json(const nlohmann::json& json, StarTransactions& value);
12943TGBOT_API void to_json(nlohmann::json& json, const StarTransactions& value);
12944
12949struct Sticker {
12950 using Ptr = std::shared_ptr<Sticker>;
12951
12952 enum class Type { Regular, Mask, CustomEmoji };
12953
12957 std::string fileId { };
12962 std::string fileUniqueId { };
12972 std::uint32_t width { };
12976 std::uint32_t height { };
12980 bool isAnimated { };
12984 bool isVideo { };
12988 std::shared_ptr<PhotoSize> thumbnail { };
12992 std::optional<std::string> emoji { };
12996 std::optional<std::string> setName { };
13000 std::shared_ptr<File> premiumAnimation { };
13004 std::shared_ptr<MaskPosition> maskPosition { };
13008 std::optional<std::string> customEmojiId { };
13014 std::optional<bool> needsRepainting { };
13018 std::optional<std::uint32_t> fileSize { };
13019};
13020
13021TGBOT_API void from_json(const nlohmann::json& json, Sticker::Type& value);
13022TGBOT_API void to_json(nlohmann::json& json, const Sticker::Type& value);
13023
13024TGBOT_API void from_json(const nlohmann::json& json, Sticker& value);
13025TGBOT_API void to_json(nlohmann::json& json, const Sticker& value);
13026
13032 using Ptr = std::shared_ptr<StickerSet>;
13033
13034 enum class Type { Regular, Mask, CustomEmoji };
13035
13039 std::string name { };
13043 std::string title { };
13051 std::vector<std::shared_ptr<Sticker>> stickers { };
13055 std::shared_ptr<PhotoSize> thumbnail { };
13056};
13057
13058TGBOT_API void from_json(const nlohmann::json& json, StickerSet::Type& value);
13059TGBOT_API void to_json(nlohmann::json& json, const StickerSet::Type& value);
13060
13061TGBOT_API void from_json(const nlohmann::json& json, StickerSet& value);
13062TGBOT_API void to_json(nlohmann::json& json, const StickerSet& value);
13063
13068struct Story {
13069 using Ptr = std::shared_ptr<Story>;
13070
13074 std::shared_ptr<Chat> chat { };
13078 std::uint32_t id { };
13079};
13080
13081TGBOT_API void from_json(const nlohmann::json& json, Story& value);
13082TGBOT_API void to_json(nlohmann::json& json, const Story& value);
13083
13089 using Ptr = std::shared_ptr<StoryArea>;
13090
13094 std::shared_ptr<AreaPosition> position { };
13098 std::shared_ptr<StoryAreaType> type { };
13099};
13100
13101TGBOT_API void from_json(const nlohmann::json& json, StoryArea& value);
13102TGBOT_API void to_json(nlohmann::json& json, const StoryArea& value);
13103
13111 using Ptr = std::shared_ptr<StoryAreaType>;
13112
13113 std::variant<std::shared_ptr<StoryAreaTypeLocation>, std::shared_ptr<StoryAreaTypeSuggestedReaction>,
13114 std::shared_ptr<StoryAreaTypeLink>, std::shared_ptr<StoryAreaTypeWeather>,
13115 std::shared_ptr<StoryAreaTypeUniqueGift>>
13117};
13118
13119TGBOT_API void from_json(const nlohmann::json& json, StoryAreaType& value);
13120TGBOT_API void to_json(nlohmann::json& json, const StoryAreaType& value);
13121
13128 using Ptr = std::shared_ptr<StoryAreaTypeLink>;
13129
13130 static TGBOT_API const std::string TYPE;
13131
13135 std::string type { TYPE };
13139 std::string url { };
13140};
13141
13142TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeLink& value);
13143TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeLink& value);
13144
13151 using Ptr = std::shared_ptr<StoryAreaTypeLocation>;
13152
13153 static TGBOT_API const std::string TYPE;
13154
13158 std::string type { TYPE };
13162 double latitude { };
13166 double longitude { };
13170 std::shared_ptr<LocationAddress> address { };
13171};
13172
13173TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeLocation& value);
13174TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeLocation& value);
13175
13182 using Ptr = std::shared_ptr<StoryAreaTypeSuggestedReaction>;
13183
13184 static TGBOT_API const std::string TYPE;
13185
13189 std::string type { TYPE };
13193 std::shared_ptr<ReactionType> reactionType { };
13197 std::optional<bool> isDark { };
13201 std::optional<bool> isFlipped { };
13202};
13203
13204TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeSuggestedReaction& value);
13205TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeSuggestedReaction& value);
13206
13213 using Ptr = std::shared_ptr<StoryAreaTypeUniqueGift>;
13214
13215 static TGBOT_API const std::string TYPE;
13216
13220 std::string type { TYPE };
13224 std::string name { };
13225};
13226
13227TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeUniqueGift& value);
13228TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeUniqueGift& value);
13229
13236 using Ptr = std::shared_ptr<StoryAreaTypeWeather>;
13237
13238 static TGBOT_API const std::string TYPE;
13239
13243 std::string type { TYPE };
13247 double temperature { };
13251 std::string emoji { };
13255 std::uint32_t backgroundColor { };
13256};
13257
13258TGBOT_API void from_json(const nlohmann::json& json, StoryAreaTypeWeather& value);
13259TGBOT_API void to_json(nlohmann::json& json, const StoryAreaTypeWeather& value);
13260
13268 using Ptr = std::shared_ptr<SuccessfulPayment>;
13269
13273 std::string currency { };
13280 std::uint64_t totalAmount { };
13284 std::string invoicePayload { };
13288 std::optional<std::int32_t> subscriptionExpirationDate { };
13292 std::optional<bool> isRecurring { };
13296 std::optional<bool> isFirstRecurring { };
13300 std::optional<std::string> shippingOptionId { };
13304 std::shared_ptr<OrderInfo> orderInfo { };
13313};
13314
13315TGBOT_API void from_json(const nlohmann::json& json, SuccessfulPayment& value);
13316TGBOT_API void to_json(nlohmann::json& json, const SuccessfulPayment& value);
13317
13324 using Ptr = std::shared_ptr<SuggestedPostApprovalFailed>;
13325
13331 std::shared_ptr<Message> suggestedPostMessage { };
13335 std::shared_ptr<SuggestedPostPrice> price { };
13336};
13337
13338TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostApprovalFailed& value);
13339TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostApprovalFailed& value);
13340
13346 using Ptr = std::shared_ptr<SuggestedPostApproved>;
13347
13352 std::shared_ptr<Message> suggestedPostMessage { };
13356 std::shared_ptr<SuggestedPostPrice> price { };
13360 std::int32_t sendDate { };
13361};
13362
13363TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostApproved& value);
13364TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostApproved& value);
13365
13371 using Ptr = std::shared_ptr<SuggestedPostDeclined>;
13372
13377 std::shared_ptr<Message> suggestedPostMessage { };
13381 std::optional<std::string> comment { };
13382};
13383
13384TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostDeclined& value);
13385TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostDeclined& value);
13386
13392 using Ptr = std::shared_ptr<SuggestedPostInfo>;
13393
13398 std::string state { };
13402 std::shared_ptr<SuggestedPostPrice> price { };
13408 std::optional<std::int32_t> sendDate { };
13409};
13410
13411TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostInfo& value);
13412TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostInfo& value);
13413
13419 using Ptr = std::shared_ptr<SuggestedPostPaid>;
13420
13425 std::shared_ptr<Message> suggestedPostMessage { };
13430 std::string currency { };
13435 std::optional<std::uint64_t> amount { };
13440 std::shared_ptr<StarAmount> starAmount { };
13441};
13442
13443TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostPaid& value);
13444TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostPaid& value);
13445
13451 using Ptr = std::shared_ptr<SuggestedPostParameters>;
13452
13456 std::shared_ptr<SuggestedPostPrice> price { };
13463 std::optional<std::int32_t> sendDate { };
13464};
13465
13466TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostParameters& value);
13467TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostParameters& value);
13468
13474 using Ptr = std::shared_ptr<SuggestedPostPrice>;
13475
13480 std::string currency { };
13487 std::uint64_t amount { };
13488};
13489
13490TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostPrice& value);
13491TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostPrice& value);
13492
13498 using Ptr = std::shared_ptr<SuggestedPostRefunded>;
13499
13504 std::shared_ptr<Message> suggestedPostMessage { };
13510 std::string reason { };
13511};
13512
13513TGBOT_API void from_json(const nlohmann::json& json, SuggestedPostRefunded& value);
13514TGBOT_API void to_json(nlohmann::json& json, const SuggestedPostRefunded& value);
13515
13522 using Ptr = std::shared_ptr<SwitchInlineQueryChosenChat>;
13523
13528 std::optional<std::string> query { };
13532 std::optional<bool> allowUserChats { };
13536 std::optional<bool> allowBotChats { };
13540 std::optional<bool> allowGroupChats { };
13544 std::optional<bool> allowChannelChats { };
13545};
13546
13547TGBOT_API void from_json(const nlohmann::json& json, SwitchInlineQueryChosenChat& value);
13548TGBOT_API void to_json(nlohmann::json& json, const SwitchInlineQueryChosenChat& value);
13549
13556 using Ptr = std::shared_ptr<TextQuote>;
13557
13562 std::string text { };
13568 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
13575 std::optional<std::vector<std::shared_ptr<RichText>>> richTexts { };
13581 std::uint32_t position { };
13586 std::optional<bool> isManual { };
13587};
13588
13589TGBOT_API void from_json(const nlohmann::json& json, TextQuote& value);
13590TGBOT_API void to_json(nlohmann::json& json, const TextQuote& value);
13591
13596struct TonNft {
13597 using Ptr = std::shared_ptr<TonNft>;
13598
13602 std::string address { };
13606 std::optional<std::string> collectionAddress { };
13610 std::string index { };
13614 std::string name { };
13618 std::string description { };
13622 std::optional<std::vector<std::shared_ptr<TonNftAttribute>>> attributes { };
13626 std::shared_ptr<UniqueGift> gift { };
13627};
13628
13629TGBOT_API void from_json(const nlohmann::json& json, TonNft& value);
13630TGBOT_API void to_json(nlohmann::json& json, const TonNft& value);
13631
13637 using Ptr = std::shared_ptr<TonNftAttribute>;
13638
13642 std::string traitType { };
13646 std::string value { };
13647};
13648
13649TGBOT_API void from_json(const nlohmann::json& json, TonNftAttribute& value);
13650TGBOT_API void to_json(nlohmann::json& json, const TonNftAttribute& value);
13651
13658 using Ptr = std::shared_ptr<TonWalletCard>;
13659
13663 std::string address { };
13667 std::string amount { };
13671 std::vector<std::shared_ptr<TonWalletCardSticker>> stickers { };
13676 std::optional<std::string> backgroundNftAddress { };
13677};
13678
13679TGBOT_API void from_json(const nlohmann::json& json, TonWalletCard& value);
13680TGBOT_API void to_json(nlohmann::json& json, const TonWalletCard& value);
13681
13687 using Ptr = std::shared_ptr<TonWalletCardSticker>;
13688
13692 std::shared_ptr<AreaPosition> position { };
13696 std::shared_ptr<TonNft> nft { };
13697};
13698
13699TGBOT_API void from_json(const nlohmann::json& json, TonWalletCardSticker& value);
13700TGBOT_API void to_json(nlohmann::json& json, const TonWalletCardSticker& value);
13701
13707 using Ptr = std::shared_ptr<TonWalletTransfer>;
13708
13712 std::string transactionId { };
13716 std::string peerAddress { };
13721 std::string amount { };
13725 std::optional<std::string> comment { };
13726};
13727
13728TGBOT_API void from_json(const nlohmann::json& json, TonWalletTransfer& value);
13729TGBOT_API void to_json(nlohmann::json& json, const TonWalletTransfer& value);
13730
13739 using Ptr = std::shared_ptr<TransactionPartner>;
13740
13741 std::variant<std::shared_ptr<TransactionPartnerUser>, std::shared_ptr<TransactionPartnerChat>,
13742 std::shared_ptr<TransactionPartnerAffiliateProgram>, std::shared_ptr<TransactionPartnerFragment>,
13743 std::shared_ptr<TransactionPartnerTelegramAds>, std::shared_ptr<TransactionPartnerTelegramApi>,
13744 std::shared_ptr<TransactionPartnerOther>>
13746};
13747
13748TGBOT_API void from_json(const nlohmann::json& json, TransactionPartner& value);
13749TGBOT_API void to_json(nlohmann::json& json, const TransactionPartner& value);
13750
13757 using Ptr = std::shared_ptr<TransactionPartnerAffiliateProgram>;
13758
13759 static TGBOT_API const std::string TYPE;
13760
13764 std::string type { TYPE };
13768 std::shared_ptr<User> sponsorUser { };
13773 std::uint32_t commissionPerMille { };
13774};
13775
13776TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerAffiliateProgram& value);
13777TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerAffiliateProgram& value);
13778
13784 using Ptr = std::shared_ptr<TransactionPartnerChat>;
13785
13786 static TGBOT_API const std::string TYPE;
13787
13791 std::string type { TYPE };
13795 std::shared_ptr<Chat> chat { };
13799 std::shared_ptr<Gift> gift { };
13800};
13801
13802TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerChat& value);
13803TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerChat& value);
13804
13810 using Ptr = std::shared_ptr<TransactionPartnerFragment>;
13811
13812 static TGBOT_API const std::string TYPE;
13813
13817 std::string type { TYPE };
13821 std::shared_ptr<RevenueWithdrawalState> withdrawalState { };
13822};
13823
13824TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerFragment& value);
13825TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerFragment& value);
13826
13832 using Ptr = std::shared_ptr<TransactionPartnerOther>;
13833
13834 static TGBOT_API const std::string TYPE;
13835
13839 std::string type { TYPE };
13840};
13841
13842TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerOther& value);
13843TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerOther& value);
13844
13850 using Ptr = std::shared_ptr<TransactionPartnerTelegramAds>;
13851
13852 static TGBOT_API const std::string TYPE;
13853
13857 std::string type { TYPE };
13858};
13859
13860TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerTelegramAds& value);
13861TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerTelegramAds& value);
13862
13868 using Ptr = std::shared_ptr<TransactionPartnerTelegramApi>;
13869
13870 static TGBOT_API const std::string TYPE;
13871
13875 std::string type { TYPE };
13879 std::uint32_t requestCount { };
13880};
13881
13882TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerTelegramApi& value);
13883TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerTelegramApi& value);
13884
13890 using Ptr = std::shared_ptr<TransactionPartnerUser>;
13891
13892 static TGBOT_API const std::string TYPE;
13893
13897 std::string type { TYPE };
13904 std::string transactionType { };
13908 std::shared_ptr<User> user { };
13914 std::shared_ptr<AffiliateInfo> affiliate { };
13919 std::optional<std::string> invoicePayload { };
13924 std::optional<std::uint32_t> subscriptionPeriod { };
13929 std::optional<std::vector<std::shared_ptr<PaidMedia>>> paidMedia { };
13934 std::optional<std::string> paidMediaPayload { };
13938 std::shared_ptr<Gift> gift { };
13943 std::optional<std::uint32_t> premiumSubscriptionDuration { };
13944};
13945
13946TGBOT_API void from_json(const nlohmann::json& json, TransactionPartnerUser& value);
13947TGBOT_API void to_json(nlohmann::json& json, const TransactionPartnerUser& value);
13948
13954 using Ptr = std::shared_ptr<UniqueGift>;
13955
13959 std::string giftId { };
13963 std::string baseName { };
13968 std::string name { };
13972 std::uint32_t number { };
13976 std::shared_ptr<UniqueGiftModel> model { };
13980 std::shared_ptr<UniqueGiftSymbol> symbol { };
13984 std::shared_ptr<UniqueGiftBackdrop> backdrop { };
13989 std::optional<bool> isPremium { };
13993 std::optional<bool> isBurned { };
13998 std::optional<bool> isFromBlockchain { };
14004 std::shared_ptr<UniqueGiftColors> colors { };
14008 std::shared_ptr<Chat> publisherChat { };
14009};
14010
14011TGBOT_API void from_json(const nlohmann::json& json, UniqueGift& value);
14012TGBOT_API void to_json(nlohmann::json& json, const UniqueGift& value);
14013
14019 using Ptr = std::shared_ptr<UniqueGiftBackdrop>;
14020
14024 std::string name { };
14028 std::shared_ptr<UniqueGiftBackdropColors> colors { };
14032 std::uint32_t rarityPerMille { };
14033};
14034
14035TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftBackdrop& value);
14036TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftBackdrop& value);
14037
14043 using Ptr = std::shared_ptr<UniqueGiftBackdropColors>;
14044
14048 std::uint32_t centerColor { };
14052 std::uint32_t edgeColor { };
14056 std::uint32_t symbolColor { };
14060 std::uint32_t textColor { };
14061};
14062
14063TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftBackdropColors& value);
14064TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftBackdropColors& value);
14065
14072 using Ptr = std::shared_ptr<UniqueGiftColors>;
14073
14077 std::string modelCustomEmojiId { };
14081 std::string symbolCustomEmojiId { };
14085 std::uint32_t lightThemeMainColor { };
14089 std::vector<std::uint32_t> lightThemeOtherColors { };
14093 std::uint32_t darkThemeMainColor { };
14097 std::vector<std::uint32_t> darkThemeOtherColors { };
14098};
14099
14100TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftColors& value);
14101TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftColors& value);
14102
14108 using Ptr = std::shared_ptr<UniqueGiftInfo>;
14109
14113 std::shared_ptr<UniqueGift> gift { };
14120 std::string origin { };
14124 std::optional<std::string> text { };
14128 std::optional<std::vector<std::shared_ptr<MessageEntity>>> entities { };
14133 std::optional<bool> isPrivate { };
14138 std::optional<std::string> lastResaleCurrency { };
14143 std::optional<std::uint64_t> lastResaleAmount { };
14148 std::optional<std::string> ownedGiftId { };
14153 std::optional<std::uint32_t> transferStarCount { };
14158 std::optional<std::int32_t> nextTransferDate { };
14159};
14160
14161TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftInfo& value);
14162TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftInfo& value);
14163
14169 using Ptr = std::shared_ptr<UniqueGiftModel>;
14170
14174 std::string name { };
14178 std::shared_ptr<Sticker> sticker { };
14183 std::uint32_t rarityPerMille { };
14188 std::optional<std::string> rarity { };
14189};
14190
14191TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftModel& value);
14192TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftModel& value);
14193
14199 using Ptr = std::shared_ptr<UniqueGiftSymbol>;
14200
14204 std::string name { };
14208 std::shared_ptr<Sticker> sticker { };
14212 std::uint32_t rarityPerMille { };
14213};
14214
14215TGBOT_API void from_json(const nlohmann::json& json, UniqueGiftSymbol& value);
14216TGBOT_API void to_json(nlohmann::json& json, const UniqueGiftSymbol& value);
14217
14223struct Update {
14224 using Ptr = std::shared_ptr<Update>;
14225
14234 std::uint32_t updateId { };
14238 std::shared_ptr<Message> message { };
14244 std::shared_ptr<Message> editedMessage { };
14248 std::shared_ptr<Message> channelPost { };
14254 std::shared_ptr<Message> editedChannelPost { };
14259 std::shared_ptr<BusinessConnection> businessConnection { };
14263 std::shared_ptr<Message> businessMessage { };
14267 std::shared_ptr<Message> editedBusinessMessage { };
14271 std::shared_ptr<BusinessMessagesDeleted> deletedBusinessMessages { };
14276 std::shared_ptr<Message> guestMessage { };
14283 std::shared_ptr<MessageReactionUpdated> messageReaction { };
14290 std::shared_ptr<MessageReactionCountUpdated> messageReactionCount { };
14294 std::shared_ptr<InlineQuery> inlineQuery { };
14300 std::shared_ptr<ChosenInlineResult> chosenInlineResult { };
14304 std::shared_ptr<CallbackQuery> callbackQuery { };
14308 std::shared_ptr<WidgetQuery> widgetQuery { };
14312 std::shared_ptr<SharedWidgetQuery> sharedWidgetQuery { };
14316 std::shared_ptr<ShippingQuery> shippingQuery { };
14320 std::shared_ptr<PreCheckoutQuery> preCheckoutQuery { };
14325 std::shared_ptr<PaidMediaPurchased> purchasedPaidMedia { };
14330 std::shared_ptr<Poll> poll { };
14335 std::shared_ptr<PollAnswer> pollAnswer { };
14340 std::shared_ptr<ChatMemberUpdated> myChatMember { };
14346 std::shared_ptr<ChatMemberUpdated> chatMember { };
14351 std::shared_ptr<ChatJoinRequest> chatJoinRequest { };
14356 std::shared_ptr<ChatBoostUpdated> chatBoost { };
14361 std::shared_ptr<ChatBoostRemoved> removedChatBoost { };
14366 std::shared_ptr<ManagedBotUpdated> managedBot { };
14370 std::shared_ptr<BotSubscriptionUpdated> subscription { };
14374 std::shared_ptr<MessageGenerationStopped> stoppedMessageGeneration { };
14375};
14376
14377TGBOT_API void from_json(const nlohmann::json& json, Update& value);
14378TGBOT_API void to_json(nlohmann::json& json, const Update& value);
14379
14384struct User {
14385 using Ptr = std::shared_ptr<User>;
14386
14393 std::uint64_t id { };
14397 bool isBot { };
14401 std::string firstName { };
14405 std::optional<std::string> lastName { };
14409 std::optional<std::string> username { };
14413 std::optional<std::string> languageCode { };
14417 std::optional<bool> isPremium { };
14421 std::optional<bool> addedToAttachmentMenu { };
14425 std::optional<bool> canJoinGroups { };
14429 std::optional<bool> canReadAllGroupMessages { };
14434 std::optional<bool> supportsGuestQueries { };
14438 std::optional<bool> supportsInlineQueries { };
14443 std::optional<bool> canConnectToBusiness { };
14447 std::optional<bool> hasMainWebApp { };
14452 std::optional<bool> hasTopicsEnabled { };
14457 std::optional<bool> allowsUsersToCreateTopics { };
14462 std::optional<bool> canManageBots { };
14467 std::optional<bool> supportsJoinRequestQueries { };
14468};
14469
14470TGBOT_API void from_json(const nlohmann::json& json, User& value);
14471TGBOT_API void to_json(nlohmann::json& json, const User& value);
14472
14478 using Ptr = std::shared_ptr<UserChatBoosts>;
14479
14483 std::vector<std::shared_ptr<ChatBoost>> boosts { };
14484};
14485
14486TGBOT_API void from_json(const nlohmann::json& json, UserChatBoosts& value);
14487TGBOT_API void to_json(nlohmann::json& json, const UserChatBoosts& value);
14488
14494 using Ptr = std::shared_ptr<UserProfileAudios>;
14495
14499 std::uint32_t totalCount { };
14503 std::vector<std::shared_ptr<Audio>> audios { };
14504};
14505
14506TGBOT_API void from_json(const nlohmann::json& json, UserProfileAudios& value);
14507TGBOT_API void to_json(nlohmann::json& json, const UserProfileAudios& value);
14508
14514 using Ptr = std::shared_ptr<UserProfilePhotos>;
14515
14519 std::uint32_t totalCount { };
14523 std::vector<std::vector<std::shared_ptr<PhotoSize>>> photos { };
14524};
14525
14526TGBOT_API void from_json(const nlohmann::json& json, UserProfilePhotos& value);
14527TGBOT_API void to_json(nlohmann::json& json, const UserProfilePhotos& value);
14528
14534 using Ptr = std::shared_ptr<UserRating>;
14535
14541 std::int32_t level { };
14545 std::int32_t rating { };
14549 std::int32_t currentLevelRating { };
14554 std::optional<std::int32_t> nextLevelRating { };
14555};
14556
14557TGBOT_API void from_json(const nlohmann::json& json, UserRating& value);
14558TGBOT_API void to_json(nlohmann::json& json, const UserRating& value);
14559
14566 using Ptr = std::shared_ptr<UsersShared>;
14567
14571 std::int32_t requestId { };
14575 std::vector<std::shared_ptr<SharedUser>> users { };
14576};
14577
14578TGBOT_API void from_json(const nlohmann::json& json, UsersShared& value);
14579TGBOT_API void to_json(nlohmann::json& json, const UsersShared& value);
14580
14585struct Venue {
14586 using Ptr = std::shared_ptr<Venue>;
14587
14591 std::shared_ptr<Location> location { };
14595 std::string title { };
14599 std::string address { };
14603 std::optional<std::string> foursquareId { };
14608 std::optional<std::string> foursquareType { };
14612 std::optional<std::string> googlePlaceId { };
14616 std::optional<std::string> googlePlaceType { };
14617};
14618
14619TGBOT_API void from_json(const nlohmann::json& json, Venue& value);
14620TGBOT_API void to_json(nlohmann::json& json, const Venue& value);
14621
14626struct Video {
14627 using Ptr = std::shared_ptr<Video>;
14628
14632 std::string fileId { };
14637 std::string fileUniqueId { };
14641 std::uint32_t width { };
14645 std::uint32_t height { };
14649 std::uint32_t duration { };
14653 std::shared_ptr<PhotoSize> thumbnail { };
14657 std::optional<std::vector<std::shared_ptr<PhotoSize>>> cover { };
14661 std::optional<std::uint32_t> startTimestamp { };
14665 std::optional<std::vector<std::shared_ptr<VideoQuality>>> qualities { };
14669 std::optional<std::string> fileName { };
14673 std::optional<std::string> mimeType { };
14680 std::optional<std::uint64_t> fileSize { };
14681};
14682
14683TGBOT_API void from_json(const nlohmann::json& json, Video& value);
14684TGBOT_API void to_json(nlohmann::json& json, const Video& value);
14685
14691 using Ptr = std::shared_ptr<VideoChatEnded>;
14692
14696 std::uint32_t duration { };
14697};
14698
14699TGBOT_API void from_json(const nlohmann::json& json, VideoChatEnded& value);
14700TGBOT_API void to_json(nlohmann::json& json, const VideoChatEnded& value);
14701
14707 using Ptr = std::shared_ptr<VideoChatParticipantsInvited>;
14708
14712 std::vector<std::shared_ptr<User>> users { };
14713};
14714
14715TGBOT_API void from_json(const nlohmann::json& json, VideoChatParticipantsInvited& value);
14716TGBOT_API void to_json(nlohmann::json& json, const VideoChatParticipantsInvited& value);
14717
14723 using Ptr = std::shared_ptr<VideoChatScheduled>;
14724
14729 std::int32_t startDate { };
14730};
14731
14732TGBOT_API void from_json(const nlohmann::json& json, VideoChatScheduled& value);
14733TGBOT_API void to_json(nlohmann::json& json, const VideoChatScheduled& value);
14734
14741 using Ptr = std::shared_ptr<VideoChatStarted>;
14742};
14743
14744TGBOT_API void from_json(const nlohmann::json& json, VideoChatStarted& value);
14745TGBOT_API void to_json(nlohmann::json& json, const VideoChatStarted& value);
14746
14752 using Ptr = std::shared_ptr<VideoNote>;
14753
14757 std::string fileId { };
14762 std::string fileUniqueId { };
14766 std::uint32_t length { };
14770 std::uint32_t duration { };
14774 std::shared_ptr<PhotoSize> thumbnail { };
14778 std::optional<std::uint32_t> fileSize { };
14779};
14780
14781TGBOT_API void from_json(const nlohmann::json& json, VideoNote& value);
14782TGBOT_API void to_json(nlohmann::json& json, const VideoNote& value);
14783
14789 using Ptr = std::shared_ptr<VideoQuality>;
14790
14794 std::string fileId { };
14799 std::string fileUniqueId { };
14803 std::uint32_t width { };
14807 std::uint32_t height { };
14811 std::string codec { };
14818 std::optional<std::uint64_t> fileSize { };
14819};
14820
14821TGBOT_API void from_json(const nlohmann::json& json, VideoQuality& value);
14822TGBOT_API void to_json(nlohmann::json& json, const VideoQuality& value);
14823
14828struct Voice {
14829 using Ptr = std::shared_ptr<Voice>;
14830
14834 std::string fileId { };
14839 std::string fileUniqueId { };
14843 std::uint32_t duration { };
14847 std::optional<std::string> mimeType { };
14854 std::optional<std::uint64_t> fileSize { };
14855};
14856
14857TGBOT_API void from_json(const nlohmann::json& json, Voice& value);
14858TGBOT_API void to_json(nlohmann::json& json, const Voice& value);
14859
14865 using Ptr = std::shared_ptr<WebAppData>;
14866
14870 std::string data { };
14875 std::string buttonText { };
14876};
14877
14878TGBOT_API void from_json(const nlohmann::json& json, WebAppData& value);
14879TGBOT_API void to_json(nlohmann::json& json, const WebAppData& value);
14880
14886 using Ptr = std::shared_ptr<WebAppInfo>;
14887
14892 std::string url { };
14893};
14894
14895TGBOT_API void from_json(const nlohmann::json& json, WebAppInfo& value);
14896TGBOT_API void to_json(nlohmann::json& json, const WebAppInfo& value);
14897
14903 using Ptr = std::shared_ptr<WebhookInfo>;
14904
14908 std::string url { };
14916 std::uint32_t pendingUpdateCount { };
14920 std::optional<std::string> ipAddress { };
14925 std::optional<std::int32_t> lastErrorDate { };
14930 std::optional<std::string> lastErrorMessage { };
14935 std::optional<std::int32_t> lastSynchronizationErrorDate { };
14940 std::optional<std::uint32_t> maxConnections { };
14945 std::optional<std::vector<std::string>> allowedUpdates { };
14946};
14947
14948TGBOT_API void from_json(const nlohmann::json& json, WebhookInfo& value);
14949TGBOT_API void to_json(nlohmann::json& json, const WebhookInfo& value);
14950
14955struct Widget {
14956 using Ptr = std::shared_ptr<Widget>;
14957
14962 std::optional<std::string> id { };
14967 std::optional<std::uint32_t> width { };
14972 std::optional<std::uint32_t> height { };
14976 std::string html { };
14981 std::optional<std::string> publicData { };
14985 std::optional<std::string> chatData { };
14986};
14987
14988TGBOT_API void from_json(const nlohmann::json& json, Widget& value);
14989TGBOT_API void to_json(nlohmann::json& json, const Widget& value);
14990
14998 using Ptr = std::shared_ptr<WidgetQuery>;
14999
15003 std::string id { };
15007 std::shared_ptr<User> from { };
15012 std::shared_ptr<Chat> chat { };
15017 std::optional<std::uint32_t> messageId { };
15021 std::optional<std::string> inlineMessageId { };
15026 std::string chatInstance { };
15032 std::optional<std::string> chatType { };
15036 std::shared_ptr<WidgetQueryType> type { };
15040 std::string data { };
15045 std::optional<std::string> widgetId { };
15046};
15047
15048TGBOT_API void from_json(const nlohmann::json& json, WidgetQuery& value);
15049TGBOT_API void to_json(nlohmann::json& json, const WidgetQuery& value);
15050
15057 using Ptr = std::shared_ptr<WidgetQueryType>;
15058
15059 std::variant<std::shared_ptr<WidgetQueryTypeData>, std::shared_ptr<WidgetQueryTypeSignData>,
15060 std::shared_ptr<WidgetQueryTypeSentTransaction>>
15062};
15063
15064TGBOT_API void from_json(const nlohmann::json& json, WidgetQueryType& value);
15065TGBOT_API void to_json(nlohmann::json& json, const WidgetQueryType& value);
15066
15072 using Ptr = std::shared_ptr<WidgetQueryTypeData>;
15073
15074 static TGBOT_API const std::string TYPE;
15075
15079 std::string type { TYPE };
15084 std::shared_ptr<TonWalletCard> walletCard { };
15085};
15086
15087TGBOT_API void from_json(const nlohmann::json& json, WidgetQueryTypeData& value);
15088TGBOT_API void to_json(nlohmann::json& json, const WidgetQueryTypeData& value);
15089
15096 using Ptr = std::shared_ptr<WidgetQueryTypeSentTransaction>;
15097
15098 static TGBOT_API const std::string TYPE;
15099
15103 std::string type { TYPE };
15107 std::shared_ptr<WidgetQueryWallet> wallet { };
15111 std::string msgHash { };
15112};
15113
15114TGBOT_API void from_json(const nlohmann::json& json, WidgetQueryTypeSentTransaction& value);
15115TGBOT_API void to_json(nlohmann::json& json, const WidgetQueryTypeSentTransaction& value);
15116
15123 using Ptr = std::shared_ptr<WidgetQueryTypeSignData>;
15124
15125 static TGBOT_API const std::string TYPE;
15126
15130 std::string type { TYPE };
15134 std::shared_ptr<WidgetQueryWallet> wallet { };
15138 std::string signData { };
15139};
15140
15141TGBOT_API void from_json(const nlohmann::json& json, WidgetQueryTypeSignData& value);
15142TGBOT_API void to_json(nlohmann::json& json, const WidgetQueryTypeSignData& value);
15143
15149 using Ptr = std::shared_ptr<WidgetQueryWallet>;
15150
15154 std::string address { };
15158 std::string amount { };
15162 std::optional<std::string> publicKey { };
15167 std::optional<std::string> stateInit { };
15168};
15169
15170TGBOT_API void from_json(const nlohmann::json& json, WidgetQueryWallet& value);
15171TGBOT_API void to_json(nlohmann::json& json, const WidgetQueryWallet& value);
15172
15180 using Ptr = std::shared_ptr<WriteAccessAllowed>;
15181
15186 std::optional<bool> fromRequest { };
15191 std::optional<std::string> webAppName { };
15196 std::optional<bool> fromAttachmentMenu { };
15197};
15198
15199TGBOT_API void from_json(const nlohmann::json& json, WriteAccessAllowed& value);
15200TGBOT_API void to_json(nlohmann::json& json, const WriteAccessAllowed& value);
15201
15210 std::uint64_t userId { };
15211
15215 std::string name { };
15216
15222 std::shared_ptr<InputSticker> sticker { };
15223
15229 std::vector<InputFileAttachment> attachments = { };
15230};
15231
15240 std::string callbackQueryId { };
15241
15246 std::string text = "";
15247
15252 bool showAlert = false;
15253
15261 std::string url = "";
15262
15267 std::uint32_t cacheTime = 0;
15268};
15269
15278 std::string chatJoinRequestQueryId { };
15279
15285 std::string result { };
15286};
15287
15296 std::string guestQueryId { };
15297
15301 std::shared_ptr<InlineQueryResult> result { };
15302};
15303
15312 std::string inlineQueryId { };
15313
15317 std::vector<std::shared_ptr<InlineQueryResult>> results { };
15318
15323 std::uint32_t cacheTime = 300;
15324
15330 bool isPersonal = false;
15331
15338 std::string nextOffset = "";
15339
15344 std::shared_ptr<InlineQueryResultsButton> button = nullptr;
15345};
15346
15355 std::string preCheckoutQueryId { };
15356
15362 bool ok { };
15363
15372 std::string errorMessage = "";
15373};
15374
15383 std::string shippingQueryId { };
15384
15390 bool ok { };
15391
15396 std::vector<std::shared_ptr<ShippingOption>> shippingOptions = { };
15397
15404 std::string errorMessage = "";
15405};
15406
15415 std::string webAppQueryId { };
15416
15420 std::shared_ptr<InlineQueryResult> result { };
15421};
15422
15431 std::string widgetQueryId { };
15432
15436 std::string data = "";
15437};
15438
15448 std::variant<std::int64_t, std::string> chatId { };
15449
15453 std::uint64_t userId { };
15454};
15455
15464 std::variant<std::int64_t, std::string> chatId { };
15465
15469 std::uint32_t messageId { };
15470
15477 std::int32_t sendDate = 0;
15478};
15479
15489 std::variant<std::int64_t, std::string> chatId { };
15490
15494 std::uint64_t userId { };
15495
15502 std::int32_t untilDate = 0;
15503
15510 bool revokeMessages = true;
15511};
15512
15522 std::variant<std::int64_t, std::string> chatId { };
15523
15527 std::int64_t senderChatId { };
15528};
15529
15539 std::variant<std::int64_t, std::string> chatId { };
15540
15544 std::uint32_t messageThreadId { };
15545};
15546
15556 std::variant<std::int64_t, std::string> chatId { };
15557};
15558
15567 std::string businessConnectionId { };
15568
15573 std::string ownedGiftId { };
15574};
15575
15585 std::variant<std::int64_t, std::string> chatId { };
15586
15592 std::variant<std::int64_t, std::string> fromChatId { };
15593
15597 std::uint32_t messageId { };
15598
15603 std::string caption = "";
15604
15609 std::string parseMode = "";
15610
15615 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
15616
15622
15626 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
15627
15633 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
15634 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
15636
15640 bool protectContent = false;
15641
15647 std::uint32_t messageThreadId = 0;
15648
15655
15660 std::uint64_t directMessagesTopicId = 0;
15661
15666 std::string messageEffectId = "";
15667
15673
15680 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
15681
15685 std::uint32_t videoStartTimestamp = 0;
15686};
15687
15697 std::variant<std::int64_t, std::string> chatId { };
15698
15704 std::variant<std::int64_t, std::string> fromChatId { };
15705
15711 std::vector<std::uint32_t> messageIds { };
15712
15718 std::uint32_t messageThreadId = 0;
15719
15725
15729 bool protectContent = false;
15730
15734 bool removeCaption = false;
15735
15740 std::uint64_t directMessagesTopicId = 0;
15741};
15742
15752 std::variant<std::int64_t, std::string> chatId { };
15753
15757 std::int32_t expireDate = 0;
15758
15763 std::uint32_t memberLimit = 0;
15764
15768 std::string name = "";
15769
15775};
15776
15786 std::variant<std::int64_t, std::string> chatId { };
15787
15792 std::uint32_t subscriptionPeriod { };
15793
15798 std::uint32_t subscriptionPrice { };
15799
15803 std::string name = "";
15804};
15805
15815 std::variant<std::int64_t, std::string> chatId { };
15816
15820 std::string name { };
15821
15827 std::uint32_t iconColor = 0;
15828
15833 std::string iconCustomEmojiId = "";
15834};
15835
15844 std::string title { };
15845
15849 std::string description { };
15850
15855 std::string payload { };
15856
15861 std::string providerToken { };
15862
15867 std::string currency { };
15868
15874 std::vector<std::shared_ptr<LabeledPrice>> prices { };
15875
15884 std::uint64_t maxTipAmount = 0;
15885
15893 std::vector<std::uint64_t> suggestedTipAmounts = { };
15894
15900 std::string providerData = "";
15901
15906 std::string photoUrl = "";
15907
15911 std::uint32_t photoSize = 0;
15912
15916 std::uint32_t photoWidth = 0;
15917
15921 std::uint32_t photoHeight = 0;
15922
15927 bool needName = false;
15928
15933 bool needPhoneNumber = false;
15934
15939 bool needEmail = false;
15940
15946
15952
15958
15963 bool isFlexible = false;
15964
15969 std::string businessConnectionId = "";
15970
15979 std::uint32_t subscriptionPeriod = 0;
15980};
15981
15990 std::uint64_t userId { };
15991
15999 std::string name { };
16000
16004 std::string title { };
16005
16010 std::vector<std::shared_ptr<InputSticker>> stickers { };
16011
16017
16024 bool needsRepainting = false;
16025
16031 std::vector<InputFileAttachment> attachments = { };
16032};
16033
16043 std::variant<std::int64_t, std::string> chatId { };
16044
16048 std::uint64_t userId { };
16049};
16050
16059 std::variant<std::int64_t, std::string> chatId { };
16060
16064 std::uint32_t messageId { };
16065
16069 std::string comment = "";
16070};
16071
16081 std::variant<std::int64_t, std::string> chatId { };
16082
16087 std::int64_t actorChatId = 0;
16088
16093 std::uint64_t userId = 0;
16094};
16095
16104 std::string businessConnectionId { };
16105
16109 std::string ownedGiftId { };
16110};
16111
16121 std::string businessConnectionId { };
16122
16128 std::vector<std::uint32_t> messageIds { };
16129};
16130
16140 std::variant<std::int64_t, std::string> chatId { };
16141};
16142
16152 std::variant<std::int64_t, std::string> chatId { };
16153};
16154
16164 std::variant<std::int64_t, std::string> chatId { };
16165
16169 std::uint32_t ephemeralMessageId { };
16170
16174 std::uint64_t receiverUserId { };
16175};
16176
16186 std::variant<std::int64_t, std::string> chatId { };
16187
16191 std::uint32_t messageThreadId { };
16192};
16193
16203 std::variant<std::int64_t, std::string> chatId { };
16204
16208 std::uint32_t messageId { };
16209};
16210
16220 std::variant<std::int64_t, std::string> chatId { };
16221
16225 std::uint32_t messageId { };
16226
16231 std::int64_t actorChatId = 0;
16232
16237 std::uint64_t userId = 0;
16238};
16239
16249 std::variant<std::int64_t, std::string> chatId { };
16250
16255 std::vector<std::uint32_t> messageIds { };
16256};
16257
16267 std::shared_ptr<BotCommandScope> scope = nullptr;
16268
16274 std::string languageCode = "";
16275};
16276
16285 std::string sticker { };
16286};
16287
16296 std::string name { };
16297};
16298
16307 std::string businessConnectionId { };
16308
16312 std::uint32_t storyId { };
16313};
16314
16324};
16325
16335 std::variant<std::int64_t, std::string> chatId { };
16336
16340 std::string inviteLink { };
16341
16345 std::int32_t expireDate = 0;
16346
16351 std::uint32_t memberLimit = 0;
16352
16356 std::string name = "";
16357
16363};
16364
16374 std::variant<std::int64_t, std::string> chatId { };
16375
16379 std::string inviteLink { };
16380
16384 std::string name = "";
16385};
16386
16396 std::variant<std::int64_t, std::string> chatId { };
16397
16401 std::uint32_t ephemeralMessageId { };
16402
16406 std::uint64_t receiverUserId { };
16407
16411 std::string caption = "";
16412
16417 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
16418
16423 std::string parseMode = "";
16424
16428 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
16429
16435};
16436
16446 std::variant<std::int64_t, std::string> chatId { };
16447
16451 std::uint32_t ephemeralMessageId { };
16452
16456 std::shared_ptr<InputMedia> media { };
16457
16461 std::uint64_t receiverUserId { };
16462
16466 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
16467
16473 std::vector<InputFileAttachment> attachments = { };
16474};
16475
16485 std::variant<std::int64_t, std::string> chatId { };
16486
16490 std::uint32_t ephemeralMessageId { };
16491
16495 std::uint64_t receiverUserId { };
16496
16500 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
16501};
16502
16512 std::variant<std::int64_t, std::string> chatId { };
16513
16517 std::uint32_t ephemeralMessageId { };
16518
16522 std::uint64_t receiverUserId { };
16523
16528 std::string text = "";
16529
16534 std::vector<std::shared_ptr<MessageEntity>> entities = { };
16535
16539 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions = nullptr;
16540
16545 std::string parseMode = "";
16546
16550 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
16551
16555 std::shared_ptr<InputRichMessage> richMessage = nullptr;
16556};
16557
16567 std::variant<std::int64_t, std::string> chatId { };
16568
16572 std::uint32_t messageThreadId { };
16573
16578 std::string name = "";
16579
16586 std::string iconCustomEmojiId = "";
16587};
16588
16598 std::variant<std::int64_t, std::string> chatId { };
16599
16603 std::string name { };
16604};
16605
16616 std::variant<std::int64_t, std::string> chatId = { };
16617
16622 std::uint32_t messageId = 0;
16623
16627 std::string caption = "";
16628
16633 std::string inlineMessageId = "";
16634
16638 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
16639
16644 std::string parseMode = "";
16645
16650 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
16651
16656 std::string businessConnectionId = "";
16657
16663};
16664
16674 std::variant<std::int64_t, std::string> chatId { };
16675
16680 std::string businessConnectionId { };
16681
16685 std::shared_ptr<InputChecklist> checklist { };
16686
16690 std::uint32_t messageId { };
16691
16695 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
16696};
16697
16706 double latitude { };
16707
16711 double longitude { };
16712
16718 std::variant<std::int64_t, std::string> chatId = { };
16719
16724 std::uint32_t messageId = 0;
16725
16730 std::string inlineMessageId = "";
16731
16735 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
16736
16741
16746 std::uint32_t heading = 0;
16747
16752 std::uint32_t proximityAlertRadius = 0;
16753
16758 std::string businessConnectionId = "";
16759
16768 std::uint32_t livePeriod = 0;
16769};
16770
16779 std::shared_ptr<InputMedia> media { };
16780
16786 std::variant<std::int64_t, std::string> chatId = { };
16787
16792 std::uint32_t messageId = 0;
16793
16798 std::string inlineMessageId = "";
16799
16803 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
16804
16809 std::string businessConnectionId = "";
16810
16816 std::vector<InputFileAttachment> attachments = { };
16817};
16818
16829 std::variant<std::int64_t, std::string> chatId = { };
16830
16835 std::uint32_t messageId = 0;
16836
16841 std::string inlineMessageId = "";
16842
16846 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
16847
16852 std::string businessConnectionId = "";
16853};
16854
16864 std::string text = "";
16865
16871 std::variant<std::int64_t, std::string> chatId = { };
16872
16877 std::uint32_t messageId = 0;
16878
16883 std::string inlineMessageId = "";
16884
16889 std::string parseMode = "";
16890
16894 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions = nullptr;
16895
16899 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
16900
16905 std::vector<std::shared_ptr<MessageEntity>> entities = { };
16906
16911 std::string businessConnectionId = "";
16912
16918 std::shared_ptr<InputRichMessage> richMessage = nullptr;
16919
16925 std::vector<InputFileAttachment> attachments = { };
16926};
16927
16938 std::string chatData = "";
16939
16945 std::variant<std::int64_t, std::string> chatId = { };
16946
16951 std::string inlineMessageId = "";
16952
16957 std::uint32_t messageId = 0;
16958
16963 std::string publicData = "";
16964};
16965
16975 std::string publicData { };
16976
16980 std::string widgetId { };
16981
16987 std::uint32_t cacheTime = 0;
16988};
16989
16998 std::string businessConnectionId { };
16999
17003 std::shared_ptr<InputStoryContent> content { };
17004
17008 std::uint32_t storyId { };
17009
17013 std::vector<std::shared_ptr<StoryArea>> areas = { };
17014
17018 std::string caption = "";
17019
17024 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
17025
17030 std::string parseMode = "";
17031
17037 std::vector<InputFileAttachment> attachments = { };
17038};
17039
17051 bool isCanceled { };
17052
17057
17061 std::uint64_t userId { };
17062};
17063
17073 std::variant<std::int64_t, std::string> chatId { };
17074};
17075
17085 std::variant<std::int64_t, std::string> chatId { };
17086
17092 std::variant<std::int64_t, std::string> fromChatId { };
17093
17097 std::uint32_t messageId { };
17098
17104
17109 bool protectContent = false;
17110
17116 std::uint32_t messageThreadId = 0;
17117
17123 std::uint64_t directMessagesTopicId = 0;
17124
17129 std::string messageEffectId = "";
17130
17135 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
17136
17140 std::uint32_t videoStartTimestamp = 0;
17141};
17142
17152 std::variant<std::int64_t, std::string> chatId { };
17153
17159 std::variant<std::int64_t, std::string> fromChatId { };
17160
17166 std::vector<std::uint32_t> messageIds { };
17167
17173 std::uint32_t messageThreadId = 0;
17174
17180
17185 bool protectContent = false;
17186
17192 std::uint64_t directMessagesTopicId = 0;
17193};
17194
17203 std::string businessConnectionId { };
17204
17210
17216
17222
17226 bool excludeSaved = false;
17227
17231 bool excludeUnique = false;
17232
17237 bool excludeUnlimited = false;
17238
17243 bool excludeUnsaved = false;
17244
17248 std::uint32_t limit = 0;
17249
17254 std::string offset = "";
17255
17260 bool sortByPrice = false;
17261};
17262
17273
17282 std::string businessConnectionId { };
17283};
17284
17294 std::variant<std::int64_t, std::string> chatId { };
17295};
17296
17306 std::variant<std::int64_t, std::string> chatId { };
17307
17312 bool returnBots = false;
17313};
17314
17324 std::variant<std::int64_t, std::string> chatId { };
17325
17331
17337
17343
17349 bool excludeSaved = false;
17350
17354 bool excludeUnique = false;
17355
17360 bool excludeUnlimited = false;
17361
17367 bool excludeUnsaved = false;
17368
17372 std::uint32_t limit = 0;
17373
17378 std::string offset = "";
17379
17384 bool sortByPrice = false;
17385};
17386
17396 std::variant<std::int64_t, std::string> chatId { };
17397
17401 std::uint64_t userId { };
17402};
17403
17413 std::variant<std::int64_t, std::string> chatId { };
17414};
17415
17425 std::variant<std::uint64_t, std::string> chatId = { };
17426};
17427
17437 std::vector<std::string> customEmojiIds { };
17438};
17439
17448 std::string fileId { };
17449};
17450
17459 std::uint64_t userId { };
17460
17465 std::variant<std::int64_t, std::string> chatId = { };
17466
17471 std::uint32_t messageId = 0;
17472
17477 std::string inlineMessageId = "";
17478};
17479
17489 std::uint64_t userId { };
17490};
17491
17500 std::uint64_t userId { };
17501};
17502
17512 std::shared_ptr<BotCommandScope> scope = nullptr;
17513
17517 std::string languageCode = "";
17518};
17519
17532
17541 std::string languageCode = "";
17542};
17543
17552 std::string languageCode = "";
17553};
17554
17563 std::string languageCode = "";
17564};
17565
17575 std::uint32_t limit = 0;
17576
17580 std::uint32_t offset = 0;
17581};
17582
17591 std::string name { };
17592};
17593
17602 std::string name { };
17603};
17604
17619 std::int32_t offset = 0;
17620
17625 std::uint32_t limit = 100;
17626
17632 std::uint32_t timeout = 0;
17633
17645 std::vector<std::string> allowedUpdates = { };
17646};
17647
17657 std::variant<std::int64_t, std::string> chatId { };
17658
17662 std::uint64_t userId { };
17663};
17664
17673 std::uint64_t userId { };
17674
17680
17686
17692
17696 bool excludeUnique = false;
17697
17702 bool excludeUnlimited = false;
17703
17707 std::uint32_t limit = 0;
17708
17713 std::string offset = "";
17714
17719 bool sortByPrice = false;
17720};
17721
17730 std::uint32_t limit { };
17731
17735 std::uint64_t userId { };
17736};
17737
17746 std::uint64_t userId { };
17747
17752 std::uint32_t limit = 0;
17753
17758 std::uint32_t offset = 0;
17759};
17760
17769 std::uint64_t userId { };
17770
17775 std::uint32_t offset = 0;
17776
17781 std::uint32_t limit = 100;
17782};
17783
17793 std::uint32_t monthCount { };
17794
17799 std::uint32_t starCount { };
17800
17805 std::uint64_t userId { };
17806
17811 std::string text = "";
17812
17819 std::vector<std::shared_ptr<MessageEntity>> textEntities = { };
17820
17826 std::string textParseMode = "";
17827};
17828
17838 std::variant<std::int64_t, std::string> chatId { };
17839};
17840
17851 std::variant<std::int64_t, std::string> chatId { };
17852};
17853
17863 std::variant<std::int64_t, std::string> chatId { };
17864
17868 std::uint32_t messageId { };
17869
17874 std::string businessConnectionId = "";
17875
17882};
17883
17893 std::uint32_t activePeriod { };
17894
17898 std::string businessConnectionId { };
17899
17903 std::shared_ptr<InputStoryContent> content { };
17904
17908 std::vector<std::shared_ptr<StoryArea>> areas = { };
17909
17913 std::string caption = "";
17914
17919 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
17920
17925 std::string parseMode = "";
17926
17930 bool postToChatPage = false;
17931
17936 bool protectContent = false;
17937
17943 std::vector<InputFileAttachment> attachments = { };
17944};
17945
17955 std::variant<std::int64_t, std::string> chatId { };
17956
17960 std::uint64_t userId { };
17961
17966 bool canChangeInfo = false;
17967
17972 bool canPostMessages = false;
17973
17978 bool canEditMessages = false;
17979
17983 bool canDeleteMessages = false;
17984
17988 bool canInviteUsers = false;
17989
17993 bool canPinMessages = false;
17994
18001 bool canPromoteMembers = false;
18002
18006 bool isAnonymous = false;
18007
18014 bool canManageChat = false;
18015
18020
18027
18032 bool canManageTopics = false;
18033
18037 bool canPostStories = false;
18038
18044 bool canEditStories = false;
18045
18049 bool canDeleteStories = false;
18050
18056
18061 bool canManageTags = false;
18062
18068};
18069
18079 std::variant<std::int64_t, std::string> chatId { };
18080
18085 std::string businessConnectionId { };
18086
18090 std::uint32_t messageId { };
18091};
18092
18102
18106 std::uint64_t userId { };
18107};
18108
18117 std::string businessConnectionId { };
18118
18125 bool isPublic = false;
18126};
18127
18137 std::variant<std::int64_t, std::string> chatId { };
18138};
18139
18148 std::uint64_t userId { };
18149};
18150
18160 std::variant<std::int64_t, std::string> chatId { };
18161
18165 std::uint32_t messageThreadId { };
18166};
18167
18177 std::variant<std::int64_t, std::string> chatId { };
18178};
18179
18188 std::uint64_t userId { };
18189};
18190
18199 std::uint64_t userId { };
18200
18204 std::string name { };
18205
18209 std::string oldSticker { };
18210
18216 std::shared_ptr<InputSticker> sticker { };
18217
18223 std::vector<InputFileAttachment> attachments = { };
18224};
18225
18235 std::uint32_t activePeriod { };
18236
18240 std::string businessConnectionId { };
18241
18246 std::variant<std::int64_t, std::string> fromChatId { };
18247
18251 std::uint32_t fromStoryId { };
18252
18256 bool postToChatPage = false;
18257
18262 bool protectContent = false;
18263};
18264
18274 std::variant<std::int64_t, std::string> chatId { };
18275
18279 std::uint64_t userId { };
18280
18284 std::shared_ptr<ChatPermissions> permissions { };
18285
18291 std::int32_t untilDate = 0;
18292
18302};
18303
18313 std::variant<std::int64_t, std::string> chatId { };
18314
18318 std::string inviteLink { };
18319};
18320
18329 std::shared_ptr<InlineQueryResult> result { };
18330
18334 std::uint64_t userId { };
18335
18339 bool allowBotChats = false;
18340
18344 bool allowChannelChats = false;
18345
18349 bool allowGroupChats = false;
18350
18354 bool allowUserChats = false;
18355};
18356
18366 std::shared_ptr<KeyboardButton> button { };
18367
18371 std::uint64_t userId { };
18372};
18373
18384 std::variant<std::int64_t, std::string> chatId { };
18385
18393 std::variant<std::shared_ptr<InputFile>, std::string> animation { };
18394
18398 std::uint32_t duration = 0;
18399
18403 std::uint32_t width = 0;
18404
18408 std::uint32_t height = 0;
18409
18420 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { };
18421
18426 std::string caption = "";
18427
18431 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
18432
18438 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18439 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18441
18446 std::string parseMode = "";
18447
18453
18458 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
18459
18465 std::uint32_t messageThreadId = 0;
18466
18470 bool protectContent = false;
18471
18475 bool hasSpoiler = false;
18476
18481 std::string businessConnectionId = "";
18482
18489
18493 std::string callbackQueryId = "";
18494
18499 std::uint64_t directMessagesTopicId = 0;
18500
18505 std::string messageEffectId = "";
18506
18510 std::uint64_t receiverUserId = 0;
18511
18516
18523 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
18524
18529 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
18530};
18531
18542 std::variant<std::int64_t, std::string> chatId { };
18543
18550 std::variant<std::shared_ptr<InputFile>, std::string> audio { };
18551
18555 std::string caption = "";
18556
18560 std::uint32_t duration = 0;
18561
18565 std::string performer = "";
18566
18570 std::string title = "";
18571
18582 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { };
18583
18587 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
18588
18594 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18595 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18597
18602 std::string parseMode = "";
18603
18609
18614 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
18615
18621 std::uint32_t messageThreadId = 0;
18622
18626 bool protectContent = false;
18627
18632 std::string businessConnectionId = "";
18633
18640
18644 std::string callbackQueryId = "";
18645
18650 std::uint64_t directMessagesTopicId = 0;
18651
18656 std::string messageEffectId = "";
18657
18661 std::uint64_t receiverUserId = 0;
18662
18669 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
18670
18675 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
18676};
18677
18688 std::variant<std::int64_t, std::string> chatId { };
18689
18698 std::string action { };
18699
18704 std::uint32_t messageThreadId = 0;
18705
18710 std::string businessConnectionId = "";
18711};
18712
18721 std::string chatJoinRequestQueryId { };
18722
18727 std::string webAppUrl { };
18728};
18729
18739 std::variant<std::int64_t, std::string> chatId { };
18740
18745 std::string businessConnectionId { };
18746
18750 std::shared_ptr<InputChecklist> checklist { };
18751
18757
18761 std::string messageEffectId = "";
18762
18766 bool protectContent = false;
18767
18771 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
18772
18776 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
18777};
18778
18789 std::variant<std::int64_t, std::string> chatId { };
18790
18794 std::string phoneNumber { };
18795
18799 std::string firstName { };
18800
18804 std::string lastName = "";
18805
18809 std::string vcard = "";
18810
18816
18820 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
18821
18827 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18828 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18830
18836 std::uint32_t messageThreadId = 0;
18837
18841 bool protectContent = false;
18842
18847 std::string businessConnectionId = "";
18848
18855
18859 std::string callbackQueryId = "";
18860
18865 std::uint64_t directMessagesTopicId = 0;
18866
18871 std::string messageEffectId = "";
18872
18876 std::uint64_t receiverUserId = 0;
18877
18884 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
18885
18890 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
18891};
18892
18902 std::variant<std::int64_t, std::string> chatId { };
18903
18909
18913 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
18914
18920 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
18921 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
18923
18929 std::string emoji = "";
18930
18936 std::uint32_t messageThreadId = 0;
18937
18941 bool protectContent = false;
18942
18947 std::string businessConnectionId = "";
18948
18955
18960 std::uint64_t directMessagesTopicId = 0;
18961
18966 std::string messageEffectId = "";
18967
18974 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
18975};
18976
18987 std::variant<std::int64_t, std::string> chatId { };
18988
18995 std::variant<std::shared_ptr<InputFile>, std::string> document { };
18996
19007 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { };
19008
19013 std::string caption = "";
19014
19018 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
19019
19025 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19026 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19028
19033 std::string parseMode = "";
19034
19040
19045 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
19046
19052
19058 std::uint32_t messageThreadId = 0;
19059
19063 bool protectContent = false;
19064
19069 std::string businessConnectionId = "";
19070
19077
19081 std::string callbackQueryId = "";
19082
19087 std::uint64_t directMessagesTopicId = 0;
19088
19093 std::string messageEffectId = "";
19094
19098 std::uint64_t receiverUserId = 0;
19099
19106 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
19107
19112 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
19113};
19114
19125 std::variant<std::int64_t, std::string> chatId { };
19126
19131 std::string gameShortName { };
19132
19136 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
19137
19143 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
19144
19150
19156 std::uint32_t messageThreadId = 0;
19157
19161 bool protectContent = false;
19162
19167 std::string businessConnectionId = "";
19168
19175
19180 std::string messageEffectId = "";
19181};
19182
19191 std::string giftId { };
19192
19198 std::variant<std::int64_t, std::string> chatId = { };
19199
19204 bool payForUpgrade = false;
19205
19209 std::string text = "";
19210
19217 std::vector<std::shared_ptr<MessageEntity>> textEntities = { };
19218
19224 std::string textParseMode = "";
19225
19230 std::uint64_t userId = 0;
19231};
19232
19242 std::variant<std::int64_t, std::string> chatId { };
19243
19247 std::string title { };
19248
19252 std::string description { };
19253
19258 std::string payload { };
19259
19264 std::string providerToken { };
19265
19270 std::string currency { };
19271
19277 std::vector<std::shared_ptr<LabeledPrice>> prices { };
19278
19284 std::string providerData = "";
19285
19291 std::string photoUrl = "";
19292
19296 std::uint32_t photoSize = 0;
19297
19301 std::uint32_t photoWidth = 0;
19302
19306 std::uint32_t photoHeight = 0;
19307
19312 bool needName = false;
19313
19318 bool needPhoneNumber = false;
19319
19324 bool needEmail = false;
19325
19331
19337
19343
19348 bool isFlexible = false;
19349
19353 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
19354
19360 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
19361
19367
19373 std::uint32_t messageThreadId = 0;
19374
19383 std::uint64_t maxTipAmount = 0;
19384
19392 std::vector<std::uint64_t> suggestedTipAmounts = { };
19393
19402 std::string startParameter = "";
19403
19407 bool protectContent = false;
19408
19415
19420 std::uint64_t directMessagesTopicId = 0;
19421
19426 std::string messageEffectId = "";
19427
19434 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
19435};
19436
19447 std::variant<std::int64_t, std::string> chatId { };
19448
19456 std::variant<std::shared_ptr<InputFile>, std::string> livePhoto { };
19457
19464 std::variant<std::shared_ptr<InputFile>, std::string> photo { };
19465
19472
19477 std::string businessConnectionId = "";
19478
19482 std::string callbackQueryId = "";
19483
19488 std::string caption = "";
19489
19494 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
19495
19500 std::uint64_t directMessagesTopicId = 0;
19501
19507
19511 bool hasSpoiler = false;
19512
19517 std::string messageEffectId = "";
19518
19524 std::uint32_t messageThreadId = 0;
19525
19530 std::string parseMode = "";
19531
19535 bool protectContent = false;
19536
19540 std::uint64_t receiverUserId = 0;
19541
19547 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19548 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19550
19554 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
19555
19560
19567 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
19568
19573 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
19574};
19575
19586 std::variant<std::int64_t, std::string> chatId { };
19587
19591 double latitude { };
19592
19596 double longitude { };
19597
19604 std::uint32_t livePeriod = 0;
19605
19609 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
19610
19616 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19617 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19619
19625
19630
19635 std::uint32_t heading = 0;
19636
19642 std::uint32_t proximityAlertRadius = 0;
19643
19649 std::uint32_t messageThreadId = 0;
19650
19654 bool protectContent = false;
19655
19660 std::string businessConnectionId = "";
19661
19668
19672 std::string callbackQueryId = "";
19673
19678 std::uint64_t directMessagesTopicId = 0;
19679
19684 std::string messageEffectId = "";
19685
19689 std::uint64_t receiverUserId = 0;
19690
19697 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
19698
19703 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
19704};
19705
19715 std::variant<std::int64_t, std::string> chatId { };
19716
19721 std::vector<std::variant<std::shared_ptr<InputMediaAudio>, std::shared_ptr<InputMediaDocument>,
19722 std::shared_ptr<InputMediaLivePhoto>, std::shared_ptr<InputMediaPhoto>,
19723 std::shared_ptr<InputMediaVideo>>>
19725
19731
19735 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
19736
19742 std::uint32_t messageThreadId = 0;
19743
19747 bool protectContent = false;
19748
19753 std::string businessConnectionId = "";
19754
19761
19766 std::uint64_t directMessagesTopicId = 0;
19767
19772 std::string messageEffectId = "";
19773
19779 std::vector<InputFileAttachment> attachments = { };
19780};
19781
19792 std::variant<std::int64_t, std::string> chatId { };
19793
19797 std::string text { };
19798
19802 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions = nullptr;
19803
19807 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
19808
19814 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
19815 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
19817
19822 std::string parseMode = "";
19823
19829
19834 std::vector<std::shared_ptr<MessageEntity>> entities = { };
19835
19841 std::uint32_t messageThreadId = 0;
19842
19846 bool protectContent = false;
19847
19852 std::string businessConnectionId = "";
19853
19860
19864 std::string callbackQueryId = "";
19865
19870 std::uint64_t directMessagesTopicId = 0;
19871
19876 std::string messageEffectId = "";
19877
19881 std::uint64_t receiverUserId = 0;
19882
19889 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
19890
19895 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
19896};
19897
19906 std::variant<std::uint64_t, std::string> chatId { };
19907
19913 std::int64_t draftId { };
19914
19919 std::vector<std::shared_ptr<MessageEntity>> entities = { };
19920
19924 std::uint32_t messageThreadId = 0;
19925
19930 std::string parseMode = "";
19931
19936 std::string text = "";
19937
19943 bool canStop = false;
19944
19951 bool keepOnStop = false;
19952};
19953
19966 std::variant<std::int64_t, std::string> chatId { };
19967
19971 std::vector<std::shared_ptr<InputPaidMedia>> media { };
19972
19977 std::uint32_t starCount { };
19978
19985
19990 std::string businessConnectionId = "";
19991
19995 std::string caption = "";
19996
20001 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
20002
20007 std::uint64_t directMessagesTopicId = 0;
20008
20014
20020 std::uint32_t messageThreadId = 0;
20021
20026 std::string parseMode = "";
20027
20032 std::string payload = "";
20033
20037 bool protectContent = false;
20038
20044 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20045 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20047
20051 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
20052
20057
20064 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
20065
20071 std::vector<InputFileAttachment> attachments = { };
20072};
20073
20084 std::variant<std::int64_t, std::string> chatId { };
20085
20094 std::variant<std::shared_ptr<InputFile>, std::string> photo { };
20095
20100 std::string caption = "";
20101
20105 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
20106
20112 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20113 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20115
20120 std::string parseMode = "";
20121
20127
20132 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
20133
20139 std::uint32_t messageThreadId = 0;
20140
20144 bool protectContent = false;
20145
20149 bool hasSpoiler = false;
20150
20155 std::string businessConnectionId = "";
20156
20163
20167 std::string callbackQueryId = "";
20168
20173 std::uint64_t directMessagesTopicId = 0;
20174
20179 std::string messageEffectId = "";
20180
20184 std::uint64_t receiverUserId = 0;
20185
20190
20197 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
20198
20203 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
20204};
20205
20216 std::variant<std::int64_t, std::string> chatId { };
20217
20221 std::string question { };
20222
20226 std::vector<std::shared_ptr<InputPollOption>> options { };
20227
20233
20237 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
20238
20244 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20245 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20247
20251 bool isAnonymous = true;
20252
20256 std::string type = "";
20257
20262
20268 std::string explanation = "";
20269
20274 std::string explanationParseMode = "";
20275
20280 std::vector<std::shared_ptr<MessageEntity>> explanationEntities = { };
20281
20286 std::uint32_t openPeriod = 0;
20287
20293 std::int32_t closeDate = 0;
20294
20299 bool isClosed = false;
20300
20306 std::uint32_t messageThreadId = 0;
20307
20311 bool protectContent = false;
20312
20317 std::string businessConnectionId = "";
20318
20324
20331
20336 bool allowsRevoting = false;
20337
20342 std::vector<std::uint32_t> correctOptionIds = { };
20343
20351 std::vector<std::string> countryCodes = { };
20352
20357 std::string description = "";
20358
20363 std::vector<std::shared_ptr<MessageEntity>> descriptionEntities = { };
20364
20369 std::string descriptionParseMode = "";
20370
20374 std::shared_ptr<InputPollMedia> explanationMedia = nullptr;
20375
20380
20384 std::shared_ptr<InputPollMedia> media = nullptr;
20385
20391 bool membersOnly = false;
20392
20397 std::string messageEffectId = "";
20398
20403 std::vector<std::shared_ptr<MessageEntity>> questionEntities = { };
20404
20409 std::string questionParseMode = "";
20410
20414 bool shuffleOptions = false;
20415};
20416
20427 std::variant<std::int64_t, std::string> chatId { };
20428
20432 std::shared_ptr<InputRichMessage> richMessage { };
20433
20440
20446 std::string businessConnectionId = "";
20447
20452 std::uint64_t directMessagesTopicId = 0;
20453
20459
20464 std::string messageEffectId = "";
20465
20471 std::uint32_t messageThreadId = 0;
20472
20476 bool protectContent = false;
20477
20483 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20484 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20486
20490 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
20491
20498 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
20499
20505 std::vector<InputFileAttachment> attachments = { };
20506
20511 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
20512};
20513
20522 std::variant<std::uint64_t, std::string> chatId { };
20523
20529 std::int64_t draftId { };
20530
20535 std::shared_ptr<InputRichMessage> richMessage { };
20536
20540 std::uint32_t messageThreadId = 0;
20541
20547 bool canStop = false;
20548
20555 bool keepOnStop = false;
20556};
20557
20567 std::variant<std::int64_t, std::string> chatId { };
20568
20572 std::string widgetId { };
20573
20580
20584 std::string caption = "";
20585
20590 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
20591
20595 std::string chatData = "";
20596
20602
20607 std::string messageEffectId = "";
20608
20614 std::uint32_t messageThreadId = 0;
20615
20620 std::string parseMode = "";
20621
20625 bool protectContent = false;
20626
20632 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20633 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20635
20639 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
20640
20645};
20646
20657 std::variant<std::int64_t, std::string> chatId { };
20658
20667 std::variant<std::shared_ptr<InputFile>, std::string> sticker { };
20668
20672 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
20673
20679 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20680 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20682
20688
20694 std::uint32_t messageThreadId = 0;
20695
20699 bool protectContent = false;
20700
20704 std::string emoji = "";
20705
20710 std::string businessConnectionId = "";
20711
20718
20722 std::string callbackQueryId = "";
20723
20728 std::uint64_t directMessagesTopicId = 0;
20729
20734 std::string messageEffectId = "";
20735
20739 std::uint64_t receiverUserId = 0;
20740
20747 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
20748
20753 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
20754};
20755
20766 std::variant<std::int64_t, std::string> chatId { };
20767
20771 double latitude { };
20772
20776 double longitude { };
20777
20781 std::string title { };
20782
20786 std::string address { };
20787
20791 std::string foursquareId = "";
20792
20798 std::string foursquareType = "";
20799
20805
20809 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
20810
20816 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20817 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20819
20823 std::string googlePlaceId = "";
20824
20828 std::string googlePlaceType = "";
20829
20835 std::uint32_t messageThreadId = 0;
20836
20840 bool protectContent = false;
20841
20846 std::string businessConnectionId = "";
20847
20854
20858 std::string callbackQueryId = "";
20859
20864 std::uint64_t directMessagesTopicId = 0;
20865
20870 std::string messageEffectId = "";
20871
20875 std::uint64_t receiverUserId = 0;
20876
20883 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
20884
20889 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
20890};
20891
20902 std::variant<std::int64_t, std::string> chatId { };
20903
20910 std::variant<std::shared_ptr<InputFile>, std::string> video { };
20911
20915 bool supportsStreaming = false;
20916
20920 std::uint32_t duration = 0;
20921
20925 std::uint32_t width = 0;
20926
20930 std::uint32_t height = 0;
20931
20942 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { };
20943
20948 std::string caption = "";
20949
20953 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
20954
20960 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
20961 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
20963
20968 std::string parseMode = "";
20969
20975
20980 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
20981
20987 std::uint32_t messageThreadId = 0;
20988
20992 bool protectContent = false;
20993
20997 bool hasSpoiler = false;
20998
21003 std::string businessConnectionId = "";
21004
21011
21015 std::string callbackQueryId = "";
21016
21024 std::variant<std::shared_ptr<InputFile>, std::string> cover = { };
21025
21030 std::uint64_t directMessagesTopicId = 0;
21031
21036 std::string messageEffectId = "";
21037
21041 std::uint64_t receiverUserId = 0;
21042
21047
21051 std::uint32_t startTimestamp = 0;
21052
21059 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
21060
21065 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
21066};
21067
21078 std::variant<std::int64_t, std::string> chatId { };
21079
21086 std::variant<std::shared_ptr<InputFile>, std::string> videoNote { };
21087
21091 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
21092
21098
21102 std::uint32_t duration = 0;
21103
21107 std::uint32_t length = 0;
21108
21119 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { };
21120
21126 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
21127 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
21129
21135 std::uint32_t messageThreadId = 0;
21136
21140 bool protectContent = false;
21141
21146 std::string businessConnectionId = "";
21147
21154
21158 std::string callbackQueryId = "";
21159
21164 std::uint64_t directMessagesTopicId = 0;
21165
21170 std::string messageEffectId = "";
21171
21175 std::uint64_t receiverUserId = 0;
21176
21183 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
21184
21189 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
21190};
21191
21202 std::variant<std::int64_t, std::string> chatId { };
21203
21210 std::variant<std::shared_ptr<InputFile>, std::string> voice { };
21211
21215 std::string caption = "";
21216
21220 std::uint32_t duration = 0;
21221
21225 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
21226
21232 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
21233 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
21235
21240 std::string parseMode = "";
21241
21247
21252 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
21253
21259 std::uint32_t messageThreadId = 0;
21260
21264 bool protectContent = false;
21265
21270 std::string businessConnectionId = "";
21271
21278
21282 std::string callbackQueryId = "";
21283
21288 std::uint64_t directMessagesTopicId = 0;
21289
21294 std::string messageEffectId = "";
21295
21299 std::uint64_t receiverUserId = 0;
21300
21307 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters = nullptr;
21308
21313 std::shared_ptr<EphemeralMessageParameters> ephemeralMessageParameters = nullptr;
21314};
21315
21325 std::variant<std::int64_t, std::string> chatId { };
21326
21331 std::string html { };
21332
21339
21343 bool allowQueries = false;
21344
21348 std::string caption = "";
21349
21354 std::vector<std::shared_ptr<MessageEntity>> captionEntities = { };
21355
21359 std::string chatData = "";
21360
21366
21371 std::uint32_t height = 0;
21372
21377 bool isShared = false;
21378
21383 std::string messageEffectId = "";
21384
21390 std::uint32_t messageThreadId = 0;
21391
21396 std::string parseMode = "";
21397
21401 bool protectContent = false;
21402
21408 std::string publicData = "";
21409
21415 std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>,
21416 std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply>>
21418
21422 std::shared_ptr<ReplyParameters> replyParameters = nullptr;
21423
21428
21434 std::uint32_t width = 0;
21435};
21436
21445 std::string businessConnectionId { };
21446
21450 std::string bio = "";
21451};
21452
21461 std::shared_ptr<AcceptedGiftTypes> acceptedGiftTypes { };
21462
21466 std::string businessConnectionId { };
21467
21473};
21474
21483 std::string businessConnectionId { };
21484
21489 std::string firstName { };
21490
21494 std::string lastName = "";
21495};
21496
21505 std::string businessConnectionId { };
21506
21510 std::shared_ptr<InputProfilePhoto> photo { };
21511
21517 bool isPublic = false;
21518
21524 std::vector<InputFileAttachment> attachments = { };
21525};
21526
21535 std::string businessConnectionId { };
21536
21540 std::string username = "";
21541};
21542
21552 std::variant<std::int64_t, std::string> chatId { };
21553
21557 std::uint64_t userId { };
21558
21563 std::string customTitle { };
21564};
21565
21575 std::variant<std::int64_t, std::string> chatId { };
21576
21580 std::string description = "";
21581};
21582
21592 std::variant<std::int64_t, std::string> chatId { };
21593
21597 std::uint64_t userId { };
21598
21602 std::string tag = "";
21603};
21604
21614 std::variant<std::uint64_t, std::string> chatId = { };
21615
21620 std::shared_ptr<MenuButton> menuButton = nullptr;
21621};
21622
21632 std::variant<std::int64_t, std::string> chatId { };
21633
21637 std::shared_ptr<ChatPermissions> permissions { };
21638
21648};
21649
21659 std::variant<std::int64_t, std::string> chatId { };
21660
21664 std::variant<std::shared_ptr<InputFile>, std::string> photo { };
21665};
21666
21676 std::variant<std::int64_t, std::string> chatId { };
21677
21681 std::string stickerSetName { };
21682};
21683
21693 std::variant<std::int64_t, std::string> chatId { };
21694
21698 std::string title { };
21699};
21700
21709 std::string name { };
21710
21715 std::string customEmojiId = "";
21716};
21717
21726 std::uint64_t userId { };
21727
21731 std::uint32_t score { };
21732
21737 bool force = false;
21738
21744
21749 std::variant<std::int64_t, std::string> chatId = { };
21750
21755 std::uint32_t messageId = 0;
21756
21761 std::string inlineMessageId = "";
21762};
21763
21774
21778 std::uint64_t userId { };
21779
21785 std::vector<std::uint64_t> addedUserIds = { };
21786};
21787
21797 std::variant<std::int64_t, std::string> chatId { };
21798
21804 std::uint32_t messageId { };
21805
21813 std::vector<std::shared_ptr<ReactionType>> reaction = { };
21814
21818 bool isBig = false;
21819};
21820
21830 std::vector<std::shared_ptr<BotCommand>> commands { };
21831
21836 std::shared_ptr<BotCommandScope> scope = nullptr;
21837
21843 std::string languageCode = "";
21844};
21845
21855 std::shared_ptr<ChatAdministratorRights> rights = nullptr;
21856
21862 bool forChannels = false;
21863};
21864
21874 std::string description = "";
21875
21881 std::string languageCode = "";
21882};
21883
21893 std::string name = "";
21894
21899 std::string languageCode = "";
21900};
21901
21910 std::shared_ptr<InputProfilePhoto> photo { };
21911
21917 std::vector<InputFileAttachment> attachments = { };
21918};
21919
21929 std::string shortDescription = "";
21930
21936 std::string languageCode = "";
21937};
21938
21947 std::uint64_t userId { };
21948
21952 std::vector<std::shared_ptr<PassportElementError>> errors { };
21953};
21954
21963 std::string sticker { };
21964
21968 std::vector<std::string> emojiList { };
21969};
21970
21979 std::string sticker { };
21980
21985 std::vector<std::string> keywords = { };
21986};
21987
21996 std::string sticker { };
21997
22002 std::shared_ptr<MaskPosition> maskPosition = nullptr;
22003};
22004
22013 std::string sticker { };
22014
22018 std::uint32_t position { };
22019};
22020
22029 std::string name { };
22030
22034 std::uint64_t userId { };
22035
22040 std::string format { };
22041
22057 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { };
22058};
22059
22068 std::string name { };
22069
22073 std::string title { };
22074};
22075
22084 std::uint64_t userId { };
22085
22091
22096};
22097
22107 std::string url { };
22108
22113 std::shared_ptr<InputFile> certificate = nullptr;
22114
22121 std::uint32_t maxConnections = 40;
22122
22134 std::vector<std::string> allowedUpdates = { };
22135
22140 std::string ipAddress = "";
22141
22146
22153 std::string secretToken = "";
22154};
22155
22166 std::variant<std::int64_t, std::string> chatId = { };
22167
22172 std::uint32_t messageId = 0;
22173
22178 std::string inlineMessageId = "";
22179
22183 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
22184
22189 std::string businessConnectionId = "";
22190};
22191
22201 std::variant<std::int64_t, std::string> chatId { };
22202
22206 std::uint32_t messageId { };
22207
22212 std::string businessConnectionId = "";
22213
22217 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr;
22218};
22219
22228 std::string businessConnectionId { };
22229
22233 std::uint32_t starCount { };
22234};
22235
22244 std::string businessConnectionId { };
22245
22250 std::int64_t newOwnerChatId { };
22251
22255 std::string ownedGiftId { };
22256
22262 std::uint32_t starCount = 0;
22263};
22264
22274 std::variant<std::int64_t, std::string> chatId { };
22275
22279 std::uint64_t userId { };
22280
22284 bool onlyIfBanned = false;
22285};
22286
22296 std::variant<std::int64_t, std::string> chatId { };
22297
22301 std::int64_t senderChatId { };
22302};
22303
22313 std::variant<std::int64_t, std::string> chatId { };
22314};
22315
22325 std::variant<std::int64_t, std::string> chatId { };
22326};
22327
22337 std::variant<std::int64_t, std::string> chatId { };
22338
22342 std::uint32_t messageThreadId { };
22343};
22344
22354 std::variant<std::int64_t, std::string> chatId { };
22355};
22356
22366 std::variant<std::int64_t, std::string> chatId { };
22367
22372 std::string businessConnectionId = "";
22373
22379 std::uint32_t messageId = 0;
22380};
22381
22390 std::string businessConnectionId { };
22391
22396 std::string ownedGiftId { };
22397
22403
22410 std::uint32_t starCount = 0;
22411};
22412
22421 std::uint64_t userId { };
22422
22428 std::variant<std::shared_ptr<InputFile>, std::string> sticker { };
22429
22433 std::string stickerFormat { };
22434};
22435
22446 std::variant<std::int64_t, std::string> chatId { };
22447
22453 std::string customDescription = "";
22454
22460 std::vector<std::shared_ptr<MessageEntity>> customDescriptionEntities = { };
22461
22467};
22468
22477 std::uint64_t userId { };
22478
22484 std::string customDescription = "";
22485
22491 std::vector<std::shared_ptr<MessageEntity>> customDescriptionEntities = { };
22492
22498};
22499
22500} // namespace TgBot
#define TGBOT_API
Definition export.h:5
Definition Api.h:18
TGBOT_API void to_json(nlohmann::json &json, const AcceptedGiftTypes &value)
AreaPosition StoryAreaPosition
Definition Types.h:444
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:450
bool unlimitedGifts
True, if unlimited regular gifts are accepted.
Definition Types.h:456
bool giftsFromChannels
True, if transfers of unique gifts from channels are accepted.
Definition Types.h:472
std::shared_ptr< AcceptedGiftTypes > Ptr
Definition Types.h:451
bool limitedGifts
True, if limited regular gifts are accepted.
Definition Types.h:460
bool uniqueGifts
True, if unique gifts or gifts that can be upgraded to unique for free are accepted.
Definition Types.h:464
bool premiumSubscription
True, if a Telegram Premium subscription is accepted.
Definition Types.h:468
Arguments for Api::addStickerToSet.
Definition Types.h:15206
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:15229
std::string name
Sticker set name.
Definition Types.h:15215
std::shared_ptr< InputSticker > sticker
A JSON-serialized object with information about the added sticker. If exactly the same sticker had al...
Definition Types.h:15222
std::uint64_t userId
User identifier of sticker set owner.
Definition Types.h:15210
Contains information about the affiliate that received a commission via this transaction.
Definition Types.h:482
std::shared_ptr< Chat > affiliateChat
Optional. The chat that received an affiliate commission if it was received by a chat.
Definition Types.h:493
std::shared_ptr< AffiliateInfo > Ptr
Definition Types.h:483
std::int64_t amount
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be...
Definition Types.h:503
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:508
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:489
std::uint32_t commissionPerMille
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the b...
Definition Types.h:498
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
Definition Types.h:518
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:529
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
Definition Types.h:560
std::optional< std::string > fileName
Optional. Original animation filename as defined by the sender.
Definition Types.h:549
std::uint32_t height
Video height as defined by the sender.
Definition Types.h:537
std::shared_ptr< Animation > Ptr
Definition Types.h:519
std::shared_ptr< PhotoSize > thumbnail
Optional. Animation thumbnail as defined by the sender.
Definition Types.h:545
std::uint32_t duration
Duration of the video in seconds as defined by the sender.
Definition Types.h:541
std::uint32_t width
Video width as defined by the sender.
Definition Types.h:533
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:553
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:524
Arguments for Api::answerCallbackQuery.
Definition Types.h:15236
std::uint32_t cacheTime
The maximum amount of time in seconds that the result of the callback query may be cached client-side...
Definition Types.h:15267
std::string text
Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters.
Definition Types.h:15246
std::string url
URL that will be opened by the user's client. If you have created a Game and accepted the conditions ...
Definition Types.h:15261
std::string callbackQueryId
Unique identifier for the query to be answered.
Definition Types.h:15240
bool showAlert
If True, an alert will be shown by the client instead of a notification at the top of the chat screen...
Definition Types.h:15252
Arguments for Api::answerChatJoinRequestQuery.
Definition Types.h:15274
std::string result
Result of the query. Must be either “approve” to allow the user to join the chat, “decline” to disall...
Definition Types.h:15285
std::string chatJoinRequestQueryId
Unique identifier of the join request query.
Definition Types.h:15278
Arguments for Api::answerGuestQuery.
Definition Types.h:15292
std::shared_ptr< InlineQueryResult > result
A JSON-serialized object describing the message to be sent.
Definition Types.h:15301
std::string guestQueryId
Unique identifier for the query to be answered.
Definition Types.h:15296
Arguments for Api::answerInlineQuery.
Definition Types.h:15308
std::vector< std::shared_ptr< InlineQueryResult > > results
A JSON-serialized Array of results for the inline query.
Definition Types.h:15317
std::uint32_t cacheTime
The maximum amount of time in seconds that the result of the inline query may be cached on the server...
Definition Types.h:15323
std::string inlineQueryId
Unique identifier for the answered query.
Definition Types.h:15312
std::string nextOffset
Pass the offset that a client should send in the next query with the same text to receive more result...
Definition Types.h:15338
bool isPersonal
Pass True if results may be cached on the server side only for the user that sent the query....
Definition Types.h:15330
std::shared_ptr< InlineQueryResultsButton > button
A JSON-serialized object describing a button to be shown above inline query results.
Definition Types.h:15344
Arguments for Api::answerPreCheckoutQuery.
Definition Types.h:15351
std::string errorMessage
Required if ok is False. Error message in human readable form that explains the reason for failure to...
Definition Types.h:15372
std::string preCheckoutQueryId
Unique identifier for the query to be answered.
Definition Types.h:15355
bool ok
Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed wit...
Definition Types.h:15362
Arguments for Api::answerShippingQuery.
Definition Types.h:15379
std::vector< std::shared_ptr< ShippingOption > > shippingOptions
Required if ok is True. A JSON-serialized Array of available shipping options.
Definition Types.h:15396
std::string shippingQueryId
Unique identifier for the query to be answered.
Definition Types.h:15383
std::string errorMessage
Required if ok is False. Error message in human readable form that explains why it is impossible to c...
Definition Types.h:15404
bool ok
Pass True if delivery to the specified address is possible and False if there are any problems (for e...
Definition Types.h:15390
Arguments for Api::answerWebAppQuery.
Definition Types.h:15411
std::string webAppQueryId
Unique identifier for the query to be answered.
Definition Types.h:15415
std::shared_ptr< InlineQueryResult > result
A JSON-serialized object describing the message to be sent.
Definition Types.h:15420
Arguments for Api::answerWidgetQuery.
Definition Types.h:15427
std::string data
Data to be returned to the widget, 0-1024 bytes.
Definition Types.h:15436
std::string widgetQueryId
Unique identifier for the query to be answered.
Definition Types.h:15431
Arguments for Api::approveChatJoinRequest.
Definition Types.h:15443
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:15448
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:15453
Arguments for Api::approveSuggestedPost.
Definition Types.h:15460
std::uint32_t messageId
Identifier of a suggested post message to approve.
Definition Types.h:15469
std::int32_t sendDate
Point in time (Unix timestamp) when the post is expected to be published; omit if the date has alread...
Definition Types.h:15477
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target direct messages chat.
Definition Types.h:15464
Describes the position of a rectangle area on a story media or a TON wallet card.
Definition Types.h:570
double widthPercentage
The width of the area's rectangle, as a percentage of the media or the card width.
Definition Types.h:584
double cornerRadiusPercentage
The radius of the rectangle corner rounding, as a percentage of the media or the card width.
Definition Types.h:597
double yPercentage
The ordinate of the area's center, as a percentage of the media or the card height.
Definition Types.h:580
double rotationAngle
The clockwise rotation angle of the rectangle, in degrees; 0-360.
Definition Types.h:592
double heightPercentage
The height of the area's rectangle, as a percentage of the media or the card height.
Definition Types.h:588
std::shared_ptr< AreaPosition > Ptr
Definition Types.h:571
double xPercentage
The abscissa of the area's center, as a percentage of the media or the card width.
Definition Types.h:576
This object represents an audio file to be treated as music by the Telegram clients.
Definition Types.h:607
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:638
std::optional< std::string > performer
Optional. Performer of the audio as defined by the sender or by audio tags.
Definition Types.h:626
std::optional< std::string > title
Optional. Title of the audio as defined by the sender or by audio tags.
Definition Types.h:630
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
Definition Types.h:645
std::shared_ptr< Audio > Ptr
Definition Types.h:608
std::optional< std::string > fileName
Optional. Original filename as defined by the sender.
Definition Types.h:634
std::shared_ptr< PhotoSize > thumbnail
Optional. Thumbnail of the album cover to which the music file belongs.
Definition Types.h:649
std::uint32_t duration
Duration of the audio in seconds as defined by the sender.
Definition Types.h:622
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:613
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:618
The background is a freeform gradient that rotates after every message in the chat.
Definition Types.h:676
static TGBOT_API const std::string TYPE
Definition Types.h:679
std::vector< std::uint32_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:689
std::string type
Type of the background fill, always “freeform_gradient”
Definition Types.h:684
std::shared_ptr< BackgroundFillFreeformGradient > Ptr
Definition Types.h:677
The background is a gradient fill.
Definition Types.h:699
static TGBOT_API const std::string TYPE
Definition Types.h:702
std::string type
Type of the background fill, always “gradient”
Definition Types.h:707
std::uint32_t bottomColor
Bottom color of the gradient in the RGB24 format.
Definition Types.h:715
std::uint32_t rotationAngle
Clockwise rotation angle of the background fill in degrees; 0-359.
Definition Types.h:719
std::uint32_t topColor
Top color of the gradient in the RGB24 format.
Definition Types.h:711
std::shared_ptr< BackgroundFillGradient > Ptr
Definition Types.h:700
This object describes the way a background is filled based on the selected colors....
Definition Types.h:661
std::shared_ptr< BackgroundFill > Ptr
Definition Types.h:662
std::variant< std::shared_ptr< BackgroundFillSolid >, std::shared_ptr< BackgroundFillGradient >, std::shared_ptr< BackgroundFillFreeformGradient > > value
Definition Types.h:666
The background is filled using the selected color.
Definition Types.h:729
static TGBOT_API const std::string TYPE
Definition Types.h:732
std::uint32_t color
The color of the background fill in the RGB24 format.
Definition Types.h:741
std::shared_ptr< BackgroundFillSolid > Ptr
Definition Types.h:730
std::string type
Type of the background fill, always “solid”
Definition Types.h:737
The background is taken directly from a built-in chat theme.
Definition Types.h:767
std::string themeName
Name of the chat theme, which is usually an emoji.
Definition Types.h:779
static TGBOT_API const std::string TYPE
Definition Types.h:770
std::string type
Type of the background, always “chat_theme”
Definition Types.h:775
std::shared_ptr< BackgroundTypeChatTheme > Ptr
Definition Types.h:768
The background is automatically filled based on the selected colors.
Definition Types.h:789
std::shared_ptr< BackgroundTypeFill > Ptr
Definition Types.h:790
std::shared_ptr< BackgroundFill > fill
The background fill.
Definition Types.h:801
std::string type
Type of the background, always “fill”
Definition Types.h:797
std::uint32_t darkThemeDimming
Dimming of the background in dark themes, as a percentage; 0-100.
Definition Types.h:805
static TGBOT_API const std::string TYPE
Definition Types.h:792
This object describes the type of a background. Currently, it can be one of BackgroundTypeFill Backgr...
Definition Types.h:752
std::variant< std::shared_ptr< BackgroundTypeFill >, std::shared_ptr< BackgroundTypeWallpaper >, std::shared_ptr< BackgroundTypePattern >, std::shared_ptr< BackgroundTypeChatTheme > > value
Definition Types.h:757
std::shared_ptr< BackgroundType > Ptr
Definition Types.h:753
The background is a .PNG or .TGV (gzipped subset of SVG with MIME type “application/x-tgwallpattern”)...
Definition Types.h:817
std::shared_ptr< BackgroundTypePattern > Ptr
Definition Types.h:818
std::shared_ptr< BackgroundFill > fill
The background fill that is combined with the pattern.
Definition Types.h:833
std::shared_ptr< Document > document
Document with the pattern.
Definition Types.h:829
std::uint32_t intensity
Intensity of the pattern when it is shown above the filled background; 0-100.
Definition Types.h:837
std::optional< bool > isInverted
Optional. True, if the background fill must be applied only to the pattern itself....
Definition Types.h:842
static TGBOT_API const std::string TYPE
Definition Types.h:820
std::string type
Type of the background, always “pattern”
Definition Types.h:825
std::optional< bool > isMoving
Optional. True, if the background moves slightly when the device is tilted.
Definition Types.h:846
The background is a wallpaper in the JPEG format.
Definition Types.h:856
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:877
std::optional< bool > isMoving
Optional. True, if the background moves slightly when the device is tilted.
Definition Types.h:881
std::string type
Type of the background, always “wallpaper”
Definition Types.h:864
std::shared_ptr< BackgroundTypeWallpaper > Ptr
Definition Types.h:857
std::shared_ptr< Document > document
Document with the wallpaper.
Definition Types.h:868
static TGBOT_API const std::string TYPE
Definition Types.h:859
std::uint32_t darkThemeDimming
Dimming of the background in dark themes, as a percentage; 0-100.
Definition Types.h:872
Arguments for Api::banChatMember.
Definition Types.h:15484
bool revokeMessages
Pass True to delete all messages from the chat for the user that is being removed....
Definition Types.h:15510
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:15494
std::int32_t untilDate
Date when the user will be unbanned; Unix time. If user is banned for more than 366 days or less than...
Definition Types.h:15502
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target group or username of the target supergroup or channel in the format ...
Definition Types.h:15489
Arguments for Api::banChatSenderChat.
Definition Types.h:15517
std::int64_t senderChatId
Unique identifier of the target sender chat.
Definition Types.h:15527
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:15522
Describes the birthdate of a user.
Definition Types.h:891
std::uint32_t month
Month of the user's birth; 1-12.
Definition Types.h:901
std::optional< std::uint32_t > year
Optional. Year of the user's birth.
Definition Types.h:905
std::uint32_t day
Day of the user's birth; 1-31.
Definition Types.h:897
std::shared_ptr< Birthdate > Ptr
Definition Types.h:892
This object describes the access settings of a bot.
Definition Types.h:915
std::shared_ptr< BotAccessSettings > Ptr
Definition Types.h:916
bool isAccessRestricted
True, if only selected users can access the bot. The bot's owner can always access it.
Definition Types.h:921
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:925
This object represents a bot command.
Definition Types.h:935
std::string command
Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and undersco...
Definition Types.h:942
std::shared_ptr< BotCommand > Ptr
Definition Types.h:936
std::string description
Description of the command; 1-256 characters.
Definition Types.h:946
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:951
Represents the scope of bot commands, covering all group and supergroup chat administrators.
Definition Types.h:981
std::shared_ptr< BotCommandScopeAllChatAdministrators > Ptr
Definition Types.h:982
std::string type
Scope type, must be all_chat_administrators.
Definition Types.h:989
static TGBOT_API const std::string TYPE
Definition Types.h:984
Represents the scope of bot commands, covering all group and supergroup chats.
Definition Types.h:999
std::shared_ptr< BotCommandScopeAllGroupChats > Ptr
Definition Types.h:1000
static TGBOT_API const std::string TYPE
Definition Types.h:1002
std::string type
Scope type, must be all_group_chats.
Definition Types.h:1007
Represents the scope of bot commands, covering all private chats.
Definition Types.h:1017
std::shared_ptr< BotCommandScopeAllPrivateChats > Ptr
Definition Types.h:1018
static TGBOT_API const std::string TYPE
Definition Types.h:1020
std::string type
Scope type, must be all_private_chats.
Definition Types.h:1025
Represents the scope of bot commands, covering all administrators of a specific group or supergroup c...
Definition Types.h:1059
static TGBOT_API const std::string TYPE
Definition Types.h:1062
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username....
Definition Types.h:1072
std::string type
Scope type, must be chat_administrators.
Definition Types.h:1067
std::shared_ptr< BotCommandScopeChatAdministrators > Ptr
Definition Types.h:1060
Represents the scope of bot commands, covering a specific chat.
Definition Types.h:1035
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username....
Definition Types.h:1048
static TGBOT_API const std::string TYPE
Definition Types.h:1038
std::shared_ptr< BotCommandScopeChat > Ptr
Definition Types.h:1036
std::string type
Scope type, must be chat.
Definition Types.h:1043
Represents the scope of bot commands, covering a specific member of a group or supergroup chat.
Definition Types.h:1083
std::shared_ptr< BotCommandScopeChatMember > Ptr
Definition Types.h:1084
static TGBOT_API const std::string TYPE
Definition Types.h:1086
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username....
Definition Types.h:1096
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:1100
std::string type
Scope type, must be chat_member.
Definition Types.h:1091
Represents the default scope of bot commands. Default commands are used if no commands with a narrowe...
Definition Types.h:1111
std::shared_ptr< BotCommandScopeDefault > Ptr
Definition Types.h:1112
std::string type
Scope type, must be default.
Definition Types.h:1119
static TGBOT_API const std::string TYPE
Definition Types.h:1114
This object represents the scope to which bot commands are applied. Currently, the following 7 scopes...
Definition Types.h:964
std::shared_ptr< BotCommandScope > Ptr
Definition Types.h:965
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:971
This object represents the bot's description.
Definition Types.h:1129
std::string description
The bot's description.
Definition Types.h:1135
std::shared_ptr< BotDescription > Ptr
Definition Types.h:1130
This object represents the bot's name.
Definition Types.h:1145
std::string name
The bot's name.
Definition Types.h:1151
std::shared_ptr< BotName > Ptr
Definition Types.h:1146
This object represents the bot's short description.
Definition Types.h:1161
std::shared_ptr< BotShortDescription > Ptr
Definition Types.h:1162
std::string shortDescription
The bot's short description.
Definition Types.h:1167
This object contains information about changes to a user payment subscription toward the current bot.
Definition Types.h:1178
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:1188
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:1194
std::shared_ptr< User > user
User who subscribed for payments toward the bot.
Definition Types.h:1184
std::shared_ptr< BotSubscriptionUpdated > Ptr
Definition Types.h:1179
Represents the rights of a business bot.
Definition Types.h:1204
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:1249
std::shared_ptr< BusinessBotRights > Ptr
Definition Types.h:1205
std::optional< bool > canEditUsername
Optional. True, if the bot can edit the username of the business account.
Definition Types.h:1239
std::optional< bool > canDeleteAllMessages
Optional. True, if the bot can delete all private messages in managed chats.
Definition Types.h:1223
std::optional< bool > canManageStories
Optional. True, if the bot can post, edit and delete stories on behalf of the business account.
Definition Types.h:1268
std::optional< bool > canEditProfilePhoto
Optional. True, if the bot can edit the profile photo of the business account.
Definition Types.h:1235
std::optional< bool > canEditName
Optional. True, if the bot can edit the first and last name of the business account.
Definition Types.h:1227
std::optional< bool > canTransferAndUpgradeGifts
Optional. True, if the bot can transfer and upgrade gifts owned by the business account.
Definition Types.h:1258
std::optional< bool > canChangeGiftSettings
Optional. True, if the bot can change the privacy settings pertaining to gifts for the business accou...
Definition Types.h:1244
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:1263
std::optional< bool > canDeleteSentMessages
Optional. True, if the bot can delete messages sent by the bot.
Definition Types.h:1219
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:1211
std::optional< bool > canConvertGiftsToStars
Optional. True, if the bot can convert regular gifts owned by the business account to Telegram Stars.
Definition Types.h:1254
std::optional< bool > canReadMessages
Optional. True, if the bot can mark incoming private messages as read.
Definition Types.h:1215
std::optional< bool > canEditBio
Optional. True, if the bot can edit the bio of the business account.
Definition Types.h:1231
Describes the connection of the bot with a business account.
Definition Types.h:1278
std::shared_ptr< User > user
Business account user that created the business connection.
Definition Types.h:1288
bool isEnabled
True, if the connection is active.
Definition Types.h:1307
std::int32_t date
Date the connection was established in Unix time.
Definition Types.h:1299
std::shared_ptr< BusinessBotRights > rights
Optional. Rights of the business bot.
Definition Types.h:1303
std::shared_ptr< BusinessConnection > Ptr
Definition Types.h:1279
std::uint64_t userChatId
Identifier of a private chat with the user who created the business connection. This number may have ...
Definition Types.h:1295
Contains information about the start page settings of a Telegram Business account.
Definition Types.h:1317
std::shared_ptr< BusinessIntro > Ptr
Definition Types.h:1318
std::optional< std::string > message
Optional. Message text of the business intro.
Definition Types.h:1327
std::optional< std::string > title
Optional. Title text of the business intro.
Definition Types.h:1323
std::shared_ptr< Sticker > sticker
Optional. Sticker of the business intro.
Definition Types.h:1331
Contains information about the location of a Telegram Business account.
Definition Types.h:1341
std::shared_ptr< BusinessLocation > Ptr
Definition Types.h:1342
std::shared_ptr< Location > location
Optional. Location of the business.
Definition Types.h:1351
std::string address
Address of the business.
Definition Types.h:1347
This object is received when messages are deleted from a connected business account.
Definition Types.h:1361
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:1367
std::shared_ptr< BusinessMessagesDeleted > Ptr
Definition Types.h:1362
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:1372
std::vector< std::uint32_t > messageIds
The list of identifiers of deleted messages in the chat of the business account.
Definition Types.h:1376
Describes the opening hours of a business.
Definition Types.h:1386
std::string timeZoneName
Unique name of the time zone for which the opening hours are defined.
Definition Types.h:1392
std::shared_ptr< BusinessOpeningHours > Ptr
Definition Types.h:1387
std::vector< std::shared_ptr< BusinessOpeningHoursInterval > > openingHours
List of time intervals describing business opening hours.
Definition Types.h:1396
Describes an interval of time during which a business is open.
Definition Types.h:1406
std::uint32_t openingMinute
The minute's sequence number in a week, starting on Monday, marking the start of the time interval du...
Definition Types.h:1413
std::uint32_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:1407
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:1467
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:1457
std::shared_ptr< User > from
Sender.
Definition Types.h:1453
std::optional< std::string > data
Optional. Data associated with the callback button. Be aware that the message originated the query ca...
Definition Types.h:1472
std::optional< std::string > inlineMessageId
Optional. Identifier of the message sent via the bot in inline mode, that originated the query.
Definition Types.h:1462
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:1477
Represents the rights of an administrator in a chat.
Definition Types.h:1539
std::optional< bool > canPinMessages
Optional. True, if the user is allowed to pin messages; for groups and supergroups only.
Definition Types.h:1606
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
Definition Types.h:1575
bool canManageVideoChats
True, if the administrator can manage video chats.
Definition Types.h:1560
bool canEditStories
True, if the administrator can edit stories posted by other users, post stories to the chat page,...
Definition Types.h:1588
std::optional< bool > canManageTopics
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergr...
Definition Types.h:1611
std::optional< bool > canManageDirectMessages
Optional. True, if the administrator can manage direct messages of the channel and decline suggested ...
Definition Types.h:1616
bool canDeleteStories
True, if the administrator can delete stories posted by other users.
Definition Types.h:1592
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
Definition Types.h:1579
std::optional< bool > canEditMessages
Optional. True, if the administrator can edit messages of other users and can pin messages; for chann...
Definition Types.h:1602
bool canSendWelcomeMessages
True, if the administrator can manage chat welcome messages or directly send them in the case of bots...
Definition Types.h:1626
bool canPromoteMembers
True, if the administrator can add new administrators with a subset of their own privileges or demote...
Definition Types.h:1571
bool canDeleteMessages
True, if the administrator can delete messages of other users.
Definition Types.h:1556
bool canManageChat
True, if the administrator can access the chat event log, get boost list, see hidden supergroup and c...
Definition Types.h:1552
std::optional< bool > canPostMessages
Optional. True, if the administrator can post messages in the channel, approve suggested posts,...
Definition Types.h:1597
std::optional< bool > canManageTags
Optional. True, if the administrator can edit the tags of regular members; for groups and supergroups...
Definition Types.h:1621
bool isAnonymous
True, if the user's presence in the chat is hidden.
Definition Types.h:1545
bool canRestrictMembers
True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics.
Definition Types.h:1565
std::shared_ptr< ChatAdministratorRights > Ptr
Definition Types.h:1540
bool canPostStories
True, if the administrator can post stories to the chat.
Definition Types.h:1583
This object represents a chat background.
Definition Types.h:1636
std::shared_ptr< BackgroundType > type
Type of the background.
Definition Types.h:1642
std::shared_ptr< ChatBackground > Ptr
Definition Types.h:1637
This object represents a service message about a user boosting a chat.
Definition Types.h:1681
std::uint32_t boostCount
Number of boosts added by the user.
Definition Types.h:1687
std::shared_ptr< ChatBoostAdded > Ptr
Definition Types.h:1682
This object contains information about a chat boost.
Definition Types.h:1652
std::int32_t expirationDate
Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegra...
Definition Types.h:1667
std::string boostId
Unique identifier of the boost.
Definition Types.h:1658
std::shared_ptr< ChatBoostSource > source
Source of the added boost.
Definition Types.h:1671
std::int32_t addDate
Point in time (Unix timestamp) when the chat was boosted.
Definition Types.h:1662
std::shared_ptr< ChatBoost > Ptr
Definition Types.h:1653
This object represents a boost removed from a chat.
Definition Types.h:1697
std::shared_ptr< ChatBoostRemoved > Ptr
Definition Types.h:1698
std::shared_ptr< Chat > chat
Chat which was boosted.
Definition Types.h:1703
std::shared_ptr< ChatBoostSource > source
Source of the removed boost.
Definition Types.h:1715
std::string boostId
Unique identifier of the boost.
Definition Types.h:1707
std::int32_t removeDate
Point in time (Unix timestamp) when the boost was removed.
Definition Types.h:1711
The boost was obtained by the creation of Telegram Premium gift codes to boost a chat....
Definition Types.h:1743
std::shared_ptr< ChatBoostSourceGiftCode > Ptr
Definition Types.h:1744
std::shared_ptr< User > user
User for which the gift code was created.
Definition Types.h:1755
std::string source
Source of the boost, always “gift_code”
Definition Types.h:1751
static TGBOT_API const std::string SOURCE
Definition Types.h:1746
The boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway....
Definition Types.h:1768
std::shared_ptr< User > user
Optional. User that won the prize in the giveaway if any; for Telegram Premium giveaways only.
Definition Types.h:1786
std::uint32_t giveawayMessageId
Identifier of a message in the chat with the giveaway; the message could have been deleted already....
Definition Types.h:1781
std::optional< bool > isUnclaimed
Optional. True, if the giveaway was completed, but there was no user to win the prize.
Definition Types.h:1795
std::shared_ptr< ChatBoostSourceGiveaway > Ptr
Definition Types.h:1769
static TGBOT_API const std::string SOURCE
Definition Types.h:1771
std::optional< std::uint32_t > prizeStarCount
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaw...
Definition Types.h:1791
std::string source
Source of the boost, always “giveaway”
Definition Types.h:1776
This object describes the source of a chat boost. It can be one of ChatBoostSourcePremium ChatBoostSo...
Definition Types.h:1726
std::shared_ptr< ChatBoostSource > Ptr
Definition Types.h:1727
std::variant< std::shared_ptr< ChatBoostSourcePremium >, std::shared_ptr< ChatBoostSourceGiftCode >, std::shared_ptr< ChatBoostSourceGiveaway > > value
Definition Types.h:1731
The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscripti...
Definition Types.h:1806
std::shared_ptr< User > user
User that boosted the chat.
Definition Types.h:1818
std::shared_ptr< ChatBoostSourcePremium > Ptr
Definition Types.h:1807
std::string source
Source of the boost, always “premium”
Definition Types.h:1814
static TGBOT_API const std::string SOURCE
Definition Types.h:1809
This object represents a boost added to a chat or changed.
Definition Types.h:1828
std::shared_ptr< ChatBoostUpdated > Ptr
Definition Types.h:1829
std::shared_ptr< ChatBoost > boost
Information about the chat boost.
Definition Types.h:1838
std::shared_ptr< Chat > chat
Chat which was boosted.
Definition Types.h:1834
This object contains full information about a chat.
Definition Types.h:1848
std::optional< std::uint32_t > unrestrictBoostCount
Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in...
Definition Types.h:2017
std::shared_ptr< Message > pinnedMessage
Optional. The most recent pinned message (by sending date).
Definition Types.h:1993
std::string type
Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
Definition Types.h:1861
std::shared_ptr< Audio > firstProfileAudio
Optional. For private chats, the first audio added to the profile of the user.
Definition Types.h:2074
std::shared_ptr< UserRating > rating
Optional. For private chats, the rating of the user if any.
Definition Types.h:2070
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:2062
std::optional< bool > hasRestrictedVoiceAndVideoMessages
Optional. True, if the privacy settings of the other party restrict sending voice and video note mess...
Definition Types.h:1972
std::shared_ptr< Chat > personalChat
Optional. For private chats, the personal channel of the user.
Definition Types.h:1923
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:1938
std::optional< std::string > inviteLink
Optional. Primary invite link, for groups, supergroups and channel chats.
Definition Types.h:1989
std::shared_ptr< ChatFullInfo > Ptr
Definition Types.h:1849
std::optional< std::string > description
Optional. Description, for groups, supergroups and channel chats.
Definition Types.h:1985
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:2089
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:1958
std::optional< bool > hasVisibleHistory
Optional. True, if new chat members will have access to old messages; available only to chat administ...
Definition Types.h:2041
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:1933
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:2054
std::optional< std::uint32_t > messageAutoDeleteTime
Optional. The time after which all messages sent to the chat will be automatically deleted; in second...
Definition Types.h:2022
std::optional< std::uint32_t > paidMessageStarCount
Optional. The number of Telegram Stars a general user has to pay to send a message to the chat.
Definition Types.h:2084
std::optional< std::string > bio
Optional. Bio of the other party in a private chat.
Definition Types.h:1962
std::optional< std::string > profileBackgroundCustomEmojiId
Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background.
Definition Types.h:1948
std::optional< std::string > username
Optional. Username, for private chats, supergroups and channels if available.
Definition Types.h:1869
std::optional< std::string > title
Optional. Title, for supergroups, channels and group chats.
Definition Types.h:1865
std::shared_ptr< ChatLocation > location
Optional. For supergroups, the location to which the supergroup is connected.
Definition Types.h:2066
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:2002
std::shared_ptr< ChatPermissions > permissions
Optional. Default chat member permissions, for groups and supergroups.
Definition Types.h:1997
std::shared_ptr< Community > community
Optional. The Community to which the chat belongs.
Definition Types.h:2093
std::shared_ptr< TonWalletCard > tonWalletCard
Optional. For private chats, the TON wallet card of the user, which is shown on their profile page.
Definition Types.h:2098
std::optional< bool > hasHiddenMembers
Optional. True, if non-administrators can only get the list of bots and administrators in the chat.
Definition Types.h:2032
std::shared_ptr< BusinessLocation > businessLocation
Optional. For private chats with business accounts, the location of the business.
Definition Types.h:1915
std::shared_ptr< Chat > parentChat
Optional. Information about the corresponding channel chat; for direct messages chats only.
Definition Types.h:1928
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:2079
std::optional< std::string > firstName
Optional. First name of the other party in a private chat.
Definition Types.h:1873
std::optional< bool > hasProtectedContent
Optional. True, if messages from the chat can't be forwarded to other chats.
Definition Types.h:2036
std::optional< std::uint32_t > slowModeDelay
Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriv...
Definition Types.h:2012
std::shared_ptr< BusinessIntro > businessIntro
Optional. For private chats with business accounts, the intro of the business.
Definition Types.h:1911
std::optional< bool > hasAggressiveAntiSpamEnabled
Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only avail...
Definition Types.h:2027
std::optional< std::string > lastName
Optional. Last name of the other party in a private chat.
Definition Types.h:1877
std::uint32_t accentColorId
Identifier of the accent color for the chat name and backgrounds of the chat photo,...
Definition Types.h:1890
std::shared_ptr< ChatPhoto > photo
Optional. Chat photo.
Definition Types.h:1898
std::optional< bool > isDirectMessages
Optional. True, if the chat is the direct messages chat of a channel.
Definition Types.h:1885
std::optional< bool > isForum
Optional. True, if the supergroup chat is a forum (has topics enabled).
Definition Types.h:1881
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:1953
std::optional< bool > joinByRequest
Optional. True, if all users directly joining the supergroup without using an invite link need to be ...
Definition Types.h:1981
std::uint32_t maxReactionCount
The maximum number of reactions that can be set on a message in the chat.
Definition Types.h:1894
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:1903
std::optional< bool > canSetStickerSet
Optional. True, if the bot can change the group sticker set.
Definition Types.h:2049
std::optional< std::string > stickerSetName
Optional. For supergroups, name of the group sticker set.
Definition Types.h:2045
std::optional< std::uint32_t > profileAccentColorId
Optional. Identifier of the accent color for the chat's profile background. See profile accent colors...
Definition Types.h:1943
std::shared_ptr< Birthdate > birthdate
Optional. For private chats, the date of birth of the user.
Definition Types.h:1907
std::shared_ptr< BusinessOpeningHours > businessOpeningHours
Optional. For private chats with business accounts, the opening hours of the business.
Definition Types.h:1919
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:1967
std::optional< bool > canSendPaidMedia
Optional. True, if paid media messages can be sent or forwarded to the channel chat....
Definition Types.h:2007
std::optional< bool > joinToSendMessages
Optional. True, if users need to join the supergroup before they can send messages.
Definition Types.h:1976
std::shared_ptr< ChatShareTheme > shareTheme
Optional. For private chats, supergroups and channels, the theme of the screen for sharing a link to ...
Definition Types.h:2103
This object represents a chat.
Definition Types.h:1487
std::optional< std::string > firstName
Optional. First name of the other party in a private chat.
Definition Types.h:1514
std::optional< std::string > lastName
Optional. Last name of the other party in a private chat.
Definition Types.h:1518
std::optional< bool > isForum
Optional. True, if the supergroup chat is a forum (has topics enabled).
Definition Types.h:1522
std::optional< bool > isDirectMessages
Optional. True, if the chat is the direct messages chat of a channel.
Definition Types.h:1526
Type type
Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
Definition Types.h:1502
std::optional< std::string > title
Optional. Title, for supergroups, channels and group chats.
Definition Types.h:1506
std::shared_ptr< Chat > Ptr
Definition Types.h:1488
std::optional< std::string > username
Optional. Username, for private chats, supergroups and channels if available.
Definition Types.h:1510
Represents a join request sent to a chat.
Definition Types.h:2173
std::shared_ptr< Chat > chat
Chat to which the request was sent.
Definition Types.h:2179
std::int32_t date
Date the request was sent in Unix time.
Definition Types.h:2196
std::optional< std::string > queryId
Optional. Identifier of the join request query; for bots assigned to process join requests only....
Definition Types.h:2210
std::optional< std::string > bio
Optional. Bio of the user.
Definition Types.h:2200
std::shared_ptr< User > from
User that sent the join request.
Definition Types.h:2183
std::uint64_t userChatId
Identifier of a private chat with the user who sent the join request. This number may have more than ...
Definition Types.h:2192
std::shared_ptr< ChatJoinRequest > Ptr
Definition Types.h:2174
std::shared_ptr< ChatInviteLink > inviteLink
Optional. Chat invite link that was used by the user to send the join request.
Definition Types.h:2204
Represents a location to which a chat is connected.
Definition Types.h:2220
std::shared_ptr< ChatLocation > Ptr
Definition Types.h:2221
std::shared_ptr< Location > location
The location to which the supergroup is connected. Can't be a live location.
Definition Types.h:2226
std::string address
Location address; 1-64 characters, as defined by the chat owner.
Definition Types.h:2230
Represents a chat member that has some additional privileges.
Definition Types.h:2258
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
Definition Types.h:2312
bool canManageVideoChats
True, if the administrator can manage video chats.
Definition Types.h:2293
bool canPromoteMembers
True, if the administrator can add new administrators with a subset of their own privileges or demote...
Definition Types.h:2304
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2270
std::shared_ptr< ChatMemberAdministrator > Ptr
Definition Types.h:2259
bool canSendWelcomeMessages
True, if the administrator can manage chat welcome messages or directly send them in the case of bots...
Definition Types.h:2359
std::optional< bool > canManageDirectMessages
Optional. True, if the administrator can manage direct messages of the channel and decline suggested ...
Definition Types.h:2349
std::optional< std::string > customTitle
Optional. Custom title for this user.
Definition Types.h:2363
std::string status
The member's status in the chat, always “administrator”
Definition Types.h:2266
bool isAnonymous
True, if the user's presence in the chat is hidden.
Definition Types.h:2278
static TGBOT_API const std::string STATUS
Definition Types.h:2261
std::optional< bool > canManageTags
Optional. True, if the administrator can edit the tags of regular members; for groups and supergroups...
Definition Types.h:2354
std::optional< bool > canManageTopics
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergr...
Definition Types.h:2344
bool canEditStories
True, if the administrator can edit stories posted by other users, post stories to the chat page,...
Definition Types.h:2321
bool canManageChat
True, if the administrator can access the chat event log, get boost list, see hidden supergroup and c...
Definition Types.h:2285
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
Definition Types.h:2308
bool canPostStories
True, if the administrator can post stories to the chat.
Definition Types.h:2316
std::optional< bool > canEditMessages
Optional. True, if the administrator can edit messages of other users and can pin messages; for chann...
Definition Types.h:2335
bool canBeEdited
True, if the bot is allowed to edit administrator privileges of that user.
Definition Types.h:2274
bool canRestrictMembers
True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics.
Definition Types.h:2298
std::optional< bool > canPinMessages
Optional. True, if the user is allowed to pin messages; for groups and supergroups only.
Definition Types.h:2339
bool canDeleteStories
True, if the administrator can delete stories posted by other users.
Definition Types.h:2325
bool canDeleteMessages
True, if the administrator can delete messages of other users.
Definition Types.h:2289
std::optional< bool > canPostMessages
Optional. True, if the administrator can post messages in the channel, approve suggested posts,...
Definition Types.h:2330
Represents a chat member that was banned in the chat and can't return to the chat or view chat messag...
Definition Types.h:2374
std::shared_ptr< ChatMemberBanned > Ptr
Definition Types.h:2375
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:2391
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2386
std::string status
The member's status in the chat, always “kicked”
Definition Types.h:2382
static TGBOT_API const std::string STATUS
Definition Types.h:2377
This object contains information about one member of a chat. Currently, the following 6 types of chat...
Definition Types.h:2242
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:2248
std::shared_ptr< ChatMember > Ptr
Definition Types.h:2243
Represents a chat member that isn't currently a member of the chat, but may join it themselves.
Definition Types.h:2402
std::shared_ptr< ChatMemberLeft > Ptr
Definition Types.h:2403
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2414
static TGBOT_API const std::string STATUS
Definition Types.h:2405
std::string status
The member's status in the chat, always “left”
Definition Types.h:2410
Represents a chat member that has no additional privileges or restrictions.
Definition Types.h:2424
std::shared_ptr< ChatMemberMember > Ptr
Definition Types.h:2425
std::string status
The member's status in the chat, always “member”
Definition Types.h:2432
static TGBOT_API const std::string STATUS
Definition Types.h:2427
std::optional< std::int32_t > untilDate
Optional. Date when the user's subscription will expire; Unix time.
Definition Types.h:2444
std::optional< std::string > tag
Optional. Tag of the member.
Definition Types.h:2436
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2440
Represents a chat member that owns the chat and has all administrator privileges.
Definition Types.h:2454
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2466
bool isAnonymous
True, if the user's presence in the chat is hidden.
Definition Types.h:2470
std::optional< std::string > customTitle
Optional. Custom title for this user.
Definition Types.h:2474
std::shared_ptr< ChatMemberOwner > Ptr
Definition Types.h:2455
std::string status
The member's status in the chat, always “creator”
Definition Types.h:2462
static TGBOT_API const std::string STATUS
Definition Types.h:2457
Represents a chat member that is under certain restrictions in the chat. Supergroups only.
Definition Types.h:2484
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
Definition Types.h:2558
bool canSendVideoNotes
True, if the user is allowed to send video notes.
Definition Types.h:2529
bool canSendDocuments
True, if the user is allowed to send documents.
Definition Types.h:2517
bool canSendPolls
True, if the user is allowed to send polls and checklists.
Definition Types.h:2537
std::shared_ptr< User > user
Information about the user.
Definition Types.h:2500
std::string status
The member's status in the chat, always “restricted”
Definition Types.h:2492
bool canPinMessages
True, if the user is allowed to pin messages.
Definition Types.h:2566
bool canSendVideos
True, if the user is allowed to send videos.
Definition Types.h:2525
bool canSendPhotos
True, if the user is allowed to send photos.
Definition Types.h:2521
bool canSendVoiceNotes
True, if the user is allowed to send voice notes.
Definition Types.h:2533
bool canAddWebPagePreviews
True, if the user is allowed to add web page previews to their messages.
Definition Types.h:2546
bool isMember
True, if the user is a member of the chat at the moment of the request.
Definition Types.h:2504
std::shared_ptr< ChatMemberRestricted > Ptr
Definition Types.h:2485
bool canManageTopics
True, if the user is allowed to create forum topics.
Definition Types.h:2570
bool canSendOtherMessages
True, if the user is allowed to send animations, games, stickers, widgets and use inline bots.
Definition Types.h:2542
bool canSendMessages
True, if the user is allowed to send text messages, rich messages, contacts, giveaways,...
Definition Types.h:2509
bool canEditTag
True, if the user is allowed to edit their own tag.
Definition Types.h:2554
bool canSendAudios
True, if the user is allowed to send audios.
Definition Types.h:2513
static TGBOT_API const std::string STATUS
Definition Types.h:2487
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
Definition Types.h:2562
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:2575
std::optional< std::string > tag
Optional. Tag of the member.
Definition Types.h:2496
bool canReactToMessages
True, if the user is allowed to react to messages.
Definition Types.h:2550
This object represents changes in the status of a chat member.
Definition Types.h:2585
std::int32_t date
Date the change was done in Unix time.
Definition Types.h:2599
std::shared_ptr< Chat > chat
Chat the user belongs to.
Definition Types.h:2591
std::optional< bool > viaChatFolderInviteLink
Optional. True, if the user joined the chat via a chat folder invite link.
Definition Types.h:2621
std::shared_ptr< ChatMemberUpdated > Ptr
Definition Types.h:2586
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:2617
std::shared_ptr< User > from
Performer of the action, which resulted in the change.
Definition Types.h:2595
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:2612
std::shared_ptr< ChatMember > newChatMember
New information about the chat member.
Definition Types.h:2607
std::shared_ptr< ChatMember > oldChatMember
Previous information about the chat member.
Definition Types.h:2603
Describes a service message about an ownership change in the chat.
Definition Types.h:2631
std::shared_ptr< User > newOwner
The new owner of the chat.
Definition Types.h:2637
std::shared_ptr< ChatOwnerChanged > Ptr
Definition Types.h:2632
Describes a service message about the chat owner leaving the chat.
Definition Types.h:2647
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:2654
std::shared_ptr< ChatOwnerLeft > Ptr
Definition Types.h:2648
Describes actions that a non-administrator user is allowed to take in a chat.
Definition Types.h:2664
std::optional< bool > canSendAudios
Optional. True, if the user is allowed to send audios.
Definition Types.h:2675
std::optional< bool > canSendDocuments
Optional. True, if the user is allowed to send documents.
Definition Types.h:2679
std::optional< bool > canInviteUsers
Optional. True, if the user is allowed to invite new users to the chat.
Definition Types.h:2727
std::optional< bool > canSendOtherMessages
Optional. True, if the user is allowed to send animations, games, stickers, widgets and use inline bo...
Definition Types.h:2704
std::optional< bool > canAddWebPagePreviews
Optional. True, if the user is allowed to add web page previews to their messages.
Definition Types.h:2708
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:2718
std::optional< bool > canSendPolls
Optional. True, if the user is allowed to send polls and checklists.
Definition Types.h:2699
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:2713
std::optional< bool > canChangeInfo
Optional. True, if the user is allowed to change the chat title, photo and other settings....
Definition Types.h:2723
std::optional< bool > canSendMessages
Optional. True, if the user is allowed to send text messages, rich messages, contacts,...
Definition Types.h:2671
std::optional< bool > canPinMessages
Optional. True, if the user is allowed to pin messages. Ignored in public supergroups.
Definition Types.h:2731
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:2736
std::shared_ptr< ChatPermissions > Ptr
Definition Types.h:2665
std::optional< bool > canSendVideos
Optional. True, if the user is allowed to send videos.
Definition Types.h:2687
std::optional< bool > canSendVoiceNotes
Optional. True, if the user is allowed to send voice notes.
Definition Types.h:2695
std::optional< bool > canSendPhotos
Optional. True, if the user is allowed to send photos.
Definition Types.h:2683
std::optional< bool > canSendVideoNotes
Optional. True, if the user is allowed to send video notes.
Definition Types.h:2691
This object represents a chat photo.
Definition Types.h:2746
std::string smallFileUniqueId
Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and ...
Definition Types.h:2758
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:2753
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:2768
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:2763
std::shared_ptr< ChatPhoto > Ptr
Definition Types.h:2747
This object describes a backdrop, which can be used as the background of a theme of the screen for sh...
Definition Types.h:2793
std::shared_ptr< ChatShareThemeBackdrop > Ptr
Definition Types.h:2794
std::shared_ptr< UniqueGiftBackdropColors > colors
Colors of the backdrop.
Definition Types.h:2807
std::string name
Name of the backdrop.
Definition Types.h:2803
This object contains a list of backdrops, which can be used as the background of a theme of the scree...
Definition Types.h:2818
std::vector< std::shared_ptr< ChatShareThemeBackdrop > > backdrops
The list of backdrops.
Definition Types.h:2824
std::shared_ptr< ChatShareThemeBackdrops > Ptr
Definition Types.h:2819
The theme with emoji placed on a background.
Definition Types.h:2834
std::shared_ptr< ChatShareThemeEmoji > Ptr
Definition Types.h:2835
std::vector< std::shared_ptr< EmojiType > > emojis
The emoji; 0-6 regular or custom emoji.
Definition Types.h:2846
static TGBOT_API const std::string TYPE
Definition Types.h:2837
std::optional< std::int32_t > backgroundBackdropId
Optional. Identifier of the backdrop used as the background; omitted if the default background is use...
Definition Types.h:2851
std::string type
Type of the theme, always “emoji”
Definition Types.h:2842
This object describes the theme of the screen for sharing a link to a user or a chat....
Definition Types.h:2779
std::shared_ptr< ChatShareTheme > Ptr
Definition Types.h:2780
std::variant< std::shared_ptr< ChatShareThemeEmoji >, std::shared_ptr< ChatShareThemeUniqueGift > > value
Definition Types.h:2782
The theme based on a unique gift owned by the user or the chat.
Definition Types.h:2861
std::shared_ptr< ChatShareThemeUniqueGift > Ptr
Definition Types.h:2862
static TGBOT_API const std::string TYPE
Definition Types.h:2864
std::shared_ptr< UniqueGift > gift
The gift.
Definition Types.h:2873
std::string type
Type of the theme, always “unique_gift”
Definition Types.h:2869
This object contains information about a chat that was shared with the bot using a KeyboardButtonRequ...
Definition Types.h:2884
std::optional< std::string > username
Optional. Username of the chat, if the username was requested by the bot and available.
Definition Types.h:2907
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:2911
std::int32_t requestId
Identifier of the request.
Definition Types.h:2890
std::optional< std::string > title
Optional. Title of the chat, if the title was requested by the bot.
Definition Types.h:2903
std::int64_t chatId
Identifier of the shared chat. This number may have more than 32 significant bits and some programmin...
Definition Types.h:2899
std::shared_ptr< ChatShared > Ptr
Definition Types.h:2885
Describes a checklist.
Definition Types.h:2921
std::shared_ptr< Checklist > Ptr
Definition Types.h:2922
std::string title
Title of the checklist.
Definition Types.h:2927
std::optional< bool > othersCanAddTasks
Optional. True, if users other than the creator of the list can add tasks to the list.
Definition Types.h:2939
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:2944
std::vector< std::shared_ptr< ChecklistTask > > tasks
List of tasks in the checklist.
Definition Types.h:2935
std::optional< std::vector< std::shared_ptr< MessageEntity > > > titleEntities
Optional. Special entities that appear in the checklist title.
Definition Types.h:2931
Describes a task in a checklist.
Definition Types.h:2954
std::optional< std::vector< std::shared_ptr< MessageEntity > > > textEntities
Optional. Special entities that appear in the task text.
Definition Types.h:2968
std::shared_ptr< User > completedByUser
Optional. User that completed the task; omitted if the task wasn't completed by a user.
Definition Types.h:2972
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:2981
std::shared_ptr< ChecklistTask > Ptr
Definition Types.h:2955
std::shared_ptr< Chat > completedByChat
Optional. Chat that completed the task; omitted if the task wasn't completed by a chat.
Definition Types.h:2976
std::string text
Text of the task.
Definition Types.h:2964
Describes a service message about tasks added to a checklist.
Definition Types.h:2991
std::shared_ptr< ChecklistTasksAdded > Ptr
Definition Types.h:2992
std::vector< std::shared_ptr< ChecklistTask > > tasks
List of tasks added to the checklist.
Definition Types.h:3003
std::shared_ptr< Message > checklistMessage
Optional. Message containing the checklist to which the tasks were added. Note that the Message objec...
Definition Types.h:2999
Describes a service message about checklist tasks marked as done or not done.
Definition Types.h:3013
std::optional< std::vector< std::uint32_t > > markedAsDoneTaskIds
Optional. Identifiers of the tasks that were marked as done.
Definition Types.h:3025
std::shared_ptr< ChecklistTasksDone > Ptr
Definition Types.h:3014
std::optional< std::vector< std::uint32_t > > markedAsNotDoneTaskIds
Optional. Identifiers of the tasks that were marked as not done.
Definition Types.h:3029
std::shared_ptr< Message > checklistMessage
Optional. Message containing the checklist whose tasks were marked as done or not done....
Definition Types.h:3021
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
Definition Types.h:3040
std::string query
The query that was used to obtain the result.
Definition Types.h:3064
std::optional< std::string > inlineMessageId
Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attach...
Definition Types.h:3060
std::shared_ptr< Location > location
Optional. Sender location, only for bots that require user location.
Definition Types.h:3054
std::string resultId
The unique identifier for the result that was chosen.
Definition Types.h:3046
std::shared_ptr< ChosenInlineResult > Ptr
Definition Types.h:3041
std::shared_ptr< User > from
The user that chose the result.
Definition Types.h:3050
Arguments for Api::closeForumTopic.
Definition Types.h:15534
std::uint32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
Definition Types.h:15544
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:15539
Arguments for Api::closeGeneralForumTopic.
Definition Types.h:15551
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:15556
Describes a service message about a chat or a bot being added to a community.
Definition Types.h:3097
std::shared_ptr< CommunityChatAdded > Ptr
Definition Types.h:3098
std::shared_ptr< Community > community
The new community to which the chat or the bot belongs.
Definition Types.h:3103
Describes a service message about a chat being joined by a user from a community.
Definition Types.h:3113
std::shared_ptr< Community > community
The community from which the chat was joined.
Definition Types.h:3119
std::shared_ptr< CommunityChatJoined > Ptr
Definition Types.h:3114
Describes a service message about a chat or a bot being removed from a community. Currently holds no ...
Definition Types.h:3130
std::shared_ptr< CommunityChatRemoved > Ptr
Definition Types.h:3131
Represents a community (a group of chats).
Definition Types.h:3074
std::string name
Name of the community.
Definition Types.h:3087
std::shared_ptr< Community > Ptr
Definition Types.h:3075
This object represents a phone contact.
Definition Types.h:3141
std::optional< std::uint64_t > userId
Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits a...
Definition Types.h:3162
std::optional< std::string > vcard
Optional. Additional data about the contact in the form of a vCard.
Definition Types.h:3166
std::optional< std::string > lastName
Optional. Contact's last name.
Definition Types.h:3155
std::string firstName
Contact's first name.
Definition Types.h:3151
std::string phoneNumber
Contact's phone number.
Definition Types.h:3147
std::shared_ptr< Contact > Ptr
Definition Types.h:3142
Arguments for Api::convertGiftToStars.
Definition Types.h:15563
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:15567
std::string ownedGiftId
Unique identifier of the regular gift that should be converted to Telegram Stars.
Definition Types.h:15573
Arguments for Api::copyMessage.
Definition Types.h:15580
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:15585
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the new caption, which can be specified ins...
Definition Types.h:15615
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:15626
std::variant< std::int64_t, std::string > fromChatId
Unique identifier for the chat where the original message was sent (or username of the target bot,...
Definition Types.h:15592
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:15654
std::string parseMode
Mode for parsing entities in the new caption. See formatting options for more details.
Definition Types.h:15609
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:15660
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media. Ignored if a new caption isn't specif...
Definition Types.h:15672
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:15621
std::string messageEffectId
Unique identifier of the message effect to be added to the message; only available when copying to pr...
Definition Types.h:15666
std::uint32_t messageId
Message identifier in the chat specified in from_chat_id.
Definition Types.h:15597
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:15647
std::uint32_t videoStartTimestamp
New start timestamp for the copied video in the message.
Definition Types.h:15685
std::string caption
New caption for media, 0-1024 characters after entities parsing. If not specified,...
Definition Types.h:15603
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:15640
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:15635
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:15680
Arguments for Api::copyMessages.
Definition Types.h:15692
std::vector< std::uint32_t > messageIds
A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to copy....
Definition Types.h:15711
std::variant< std::int64_t, std::string > fromChatId
Unique identifier for the chat where the original messages were sent (or username of the target bot,...
Definition Types.h:15704
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the messages will be sent; required if the messages ...
Definition Types.h:15740
bool disableNotification
Sends the messages silently. Users will receive a notification with no sound.
Definition Types.h:15724
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:15697
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:15718
bool removeCaption
Pass True to copy the messages without their captions.
Definition Types.h:15734
bool protectContent
Protects the contents of the sent messages from forwarding and saving.
Definition Types.h:15729
This object represents an inline keyboard button that copies specified text to the clipboard.
Definition Types.h:3177
std::shared_ptr< CopyTextButton > Ptr
Definition Types.h:3178
std::string text
The text to be copied to the clipboard; 1-256 characters.
Definition Types.h:3183
Arguments for Api::createForumTopic.
Definition Types.h:15810
std::uint32_t iconColor
Color of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0),...
Definition Types.h:15827
std::string iconCustomEmojiId
Unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get a...
Definition Types.h:15833
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:15815
std::string name
Topic name, 1-128 characters.
Definition Types.h:15820
Arguments for Api::createNewStickerSet.
Definition Types.h:15986
bool needsRepainting
Pass True if stickers in the sticker set must be repainted to the color of text when used in messages...
Definition Types.h:16024
std::vector< std::shared_ptr< InputSticker > > stickers
A JSON-serialized list of 1-50 initial stickers to be added to the sticker set.
Definition Types.h:16010
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:16031
std::string name
Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only Eng...
Definition Types.h:15999
std::string title
Sticker set title, 1-64 characters.
Definition Types.h:16004
Sticker::Type stickerType
Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default,...
Definition Types.h:16016
std::uint64_t userId
User identifier of created sticker set owner.
Definition Types.h:15990
Arguments for Api::declineChatJoinRequest.
Definition Types.h:16038
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:16043
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:16048
Arguments for Api::declineSuggestedPost.
Definition Types.h:16055
std::uint32_t messageId
Identifier of a suggested post message to decline.
Definition Types.h:16064
std::string comment
Comment for the creator of the suggested post; 0-128 characters.
Definition Types.h:16069
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target direct messages chat.
Definition Types.h:16059
Arguments for Api::deleteAllMessageReactions.
Definition Types.h:16076
std::int64_t actorChatId
Identifier of the chat whose reactions will be removed, if the reactions were added by a chat.
Definition Types.h:16087
std::uint64_t userId
Identifier of the user whose reactions will be removed, if the reactions were added by a user.
Definition Types.h:16093
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:16081
Arguments for Api::deleteBusinessAccountGift.
Definition Types.h:16100
std::string ownedGiftId
Unique identifier of the regular gift that should be deleted.
Definition Types.h:16109
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:16104
Arguments for Api::deleteBusinessMessages.
Definition Types.h:16116
std::string businessConnectionId
Unique identifier of the business connection on behalf of which to delete the messages.
Definition Types.h:16121
std::vector< std::uint32_t > messageIds
A JSON-serialized list of 1-100 identifiers of messages to delete. All messages must be from the same...
Definition Types.h:16128
Arguments for Api::deleteChatPhoto.
Definition Types.h:16135
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:16140
Arguments for Api::deleteChatStickerSet.
Definition Types.h:16147
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:16152
Arguments for Api::deleteEphemeralMessage.
Definition Types.h:16159
std::uint32_t ephemeralMessageId
Identifier of the ephemeral message to delete.
Definition Types.h:16169
std::uint64_t receiverUserId
Identifier of the user who received the message.
Definition Types.h:16174
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:16164
Arguments for Api::deleteForumTopic.
Definition Types.h:16181
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:16186
std::uint32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
Definition Types.h:16191
Arguments for Api::deleteMessage.
Definition Types.h:16198
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:16203
std::uint32_t messageId
Identifier of the message to delete.
Definition Types.h:16208
Arguments for Api::deleteMessageReaction.
Definition Types.h:16215
std::int64_t actorChatId
Identifier of the chat whose reaction will be removed, if the reaction was added by a chat.
Definition Types.h:16231
std::uint32_t messageId
Identifier of the target message.
Definition Types.h:16225
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:16220
std::uint64_t userId
Identifier of the user whose reaction will be removed, if the reaction was added by a user.
Definition Types.h:16237
Arguments for Api::deleteMessages.
Definition Types.h:16244
std::vector< std::uint32_t > messageIds
A JSON-serialized list of 1-100 identifiers of messages to delete. See deleteMessage for limitations ...
Definition Types.h:16255
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:16249
Arguments for Api::deleteMyCommands.
Definition Types.h:16262
std::shared_ptr< BotCommandScope > scope
A JSON-serialized object, describing scope of users for which the commands are relevant....
Definition Types.h:16267
std::string languageCode
A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given ...
Definition Types.h:16274
Arguments for Api::deleteStickerFromSet.
Definition Types.h:16281
std::string sticker
File identifier of the sticker.
Definition Types.h:16285
Arguments for Api::deleteStickerSet.
Definition Types.h:16292
std::string name
Sticker set name.
Definition Types.h:16296
Arguments for Api::deleteStory.
Definition Types.h:16303
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:16307
std::uint32_t storyId
Unique identifier of the story to delete.
Definition Types.h:16312
Arguments for Api::deleteWebhook.
Definition Types.h:16319
bool dropPendingUpdates
Pass True to drop all pending updates.
Definition Types.h:16323
This object represents an animated emoji that displays a random value.
Definition Types.h:3193
std::uint32_t value
Value of the dice, 1-6 for “”, “” and “” base emoji, 1-5 for “” and “” base emoji,...
Definition Types.h:3204
std::shared_ptr< Dice > Ptr
Definition Types.h:3194
std::string emoji
Emoji on which the dice throw animation is based.
Definition Types.h:3199
Describes a service message about a change in the price of direct messages sent to a channel chat.
Definition Types.h:3215
std::optional< std::uint32_t > directMessageStarCount
Optional. The new number of Telegram Stars that must be paid by users for each direct message sent to...
Definition Types.h:3227
bool areDirectMessagesEnabled
True, if direct messages are enabled for the channel chat; False otherwise.
Definition Types.h:3221
std::shared_ptr< DirectMessagePriceChanged > Ptr
Definition Types.h:3216
Describes a topic of a direct messages chat.
Definition Types.h:3237
std::shared_ptr< DirectMessagesTopic > Ptr
Definition Types.h:3238
std::uint64_t topicId
Unique identifier of the topic. This number may have more than 32 significant bits and some programmi...
Definition Types.h:3246
std::shared_ptr< User > user
Optional. Information about the user that created the topic. Currently, it is always present.
Definition Types.h:3251
This object represents a disabled button which does nothing. Currently holds no information.
Definition Types.h:3261
std::shared_ptr< DisabledButton > Ptr
Definition Types.h:3262
This object represents a general file (as opposed to photos, voice messages and audio files).
Definition Types.h:3273
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
Definition Types.h:3303
std::shared_ptr< PhotoSize > thumbnail
Optional. Document thumbnail as defined by the sender.
Definition Types.h:3288
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:3279
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:3284
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:3296
std::shared_ptr< Document > Ptr
Definition Types.h:3274
std::optional< std::string > fileName
Optional. Original filename as defined by the sender.
Definition Types.h:3292
Arguments for Api::editEphemeralMessageCaption.
Definition Types.h:16391
std::uint32_t ephemeralMessageId
Identifier of the ephemeral message to edit.
Definition Types.h:16401
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media. Supported only for animation,...
Definition Types.h:16434
std::string parseMode
Mode for parsing entities in the message caption. See formatting options for more details.
Definition Types.h:16423
std::uint64_t receiverUserId
Identifier of the user who received the message.
Definition Types.h:16406
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:16417
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:16396
std::string caption
New caption of the message, 0-1024 characters after entities parsing.
Definition Types.h:16411
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:16428
Arguments for Api::editEphemeralMessageMedia.
Definition Types.h:16441
std::uint32_t ephemeralMessageId
Identifier of the ephemeral message to edit.
Definition Types.h:16451
std::uint64_t receiverUserId
Identifier of the user who received the message.
Definition Types.h:16461
std::shared_ptr< InputMedia > media
A JSON-serialized object for the new media content of the message.
Definition Types.h:16456
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:16473
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:16446
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:16466
Arguments for Api::editEphemeralMessageReplyMarkup.
Definition Types.h:16480
std::uint32_t ephemeralMessageId
Identifier of the ephemeral message to edit.
Definition Types.h:16490
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:16485
std::uint64_t receiverUserId
Identifier of the user who received the message.
Definition Types.h:16495
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:16500
Arguments for Api::editEphemeralMessageText.
Definition Types.h:16507
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:16550
std::shared_ptr< InputRichMessage > richMessage
New rich content of the message; required if text isn't specified.
Definition Types.h:16555
std::uint64_t receiverUserId
Identifier of the user who received the message.
Definition Types.h:16522
std::string text
New text of the message, 1-4096 characters after entity parsing; required if rich_message isn't speci...
Definition Types.h:16528
std::vector< std::shared_ptr< MessageEntity > > entities
A JSON-serialized list of special entities that appear in message text, which can be specified instea...
Definition Types.h:16534
std::uint32_t ephemeralMessageId
Identifier of the ephemeral message to edit.
Definition Types.h:16517
std::string parseMode
Mode for parsing entities in the message text. See formatting options for more details.
Definition Types.h:16545
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Link preview generation options for the message.
Definition Types.h:16539
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:16512
Arguments for Api::editForumTopic.
Definition Types.h:16562
std::string iconCustomEmojiId
New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to g...
Definition Types.h:16586
std::uint32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
Definition Types.h:16572
std::string name
New topic name, 0-128 characters. If not specified or empty, the current name of the topic will be ke...
Definition Types.h:16578
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:16567
Arguments for Api::editGeneralForumTopic.
Definition Types.h:16593
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:16598
std::string name
New topic name, 1-128 characters.
Definition Types.h:16603
Arguments for Api::editMessageCaption.
Definition Types.h:16610
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
Definition Types.h:16622
std::string parseMode
Mode for parsing entities in the message caption. See formatting options for more details.
Definition Types.h:16644
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat or username of ...
Definition Types.h:16616
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
Definition Types.h:16656
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:16633
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:16638
std::string caption
New caption of the message, 0-1024 characters after entities parsing.
Definition Types.h:16627
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:16650
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media. Supported only for animation,...
Definition Types.h:16662
Arguments for Api::editMessageChecklist.
Definition Types.h:16669
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for the new inline keyboard for the message.
Definition Types.h:16695
std::uint32_t messageId
Unique identifier for the target message.
Definition Types.h:16690
std::shared_ptr< InputChecklist > checklist
A JSON-serialized object for the new checklist.
Definition Types.h:16685
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:16680
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot in the format @username.
Definition Types.h:16674
Arguments for Api::editMessageLiveLocation.
Definition Types.h:16702
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
Definition Types.h:16724
double horizontalAccuracy
The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:16740
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
Definition Types.h:16758
double latitude
Latitude of new location.
Definition Types.h:16706
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat or username of ...
Definition Types.h:16718
std::uint32_t heading
Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
Definition Types.h:16746
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for a new inline keyboard.
Definition Types.h:16735
double longitude
Longitude of new location.
Definition Types.h:16711
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:16730
std::uint32_t livePeriod
New period in seconds during which the location can be updated, starting from the message send date....
Definition Types.h:16768
std::uint32_t proximityAlertRadius
The maximum distance for proximity alerts about approaching another chat member, in meters....
Definition Types.h:16752
Arguments for Api::editMessageMedia.
Definition Types.h:16775
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
Definition Types.h:16809
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
Definition Types.h:16792
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:16816
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat or username of ...
Definition Types.h:16786
std::shared_ptr< InputMedia > media
A JSON-serialized object for the new media content of the message.
Definition Types.h:16779
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:16798
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for a new inline keyboard.
Definition Types.h:16803
Arguments for Api::editMessageReplyMarkup.
Definition Types.h:16823
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:16846
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:16841
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
Definition Types.h:16852
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
Definition Types.h:16835
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat or username of ...
Definition Types.h:16829
Arguments for Api::editMessageText.
Definition Types.h:16859
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
Definition Types.h:16911
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:16883
std::shared_ptr< InputRichMessage > richMessage
New rich content of the message; required if text isn't specified. Direct upload of new files and exp...
Definition Types.h:16918
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the message to edit.
Definition Types.h:16877
std::string text
New text of the message, 1-4096 characters after entity parsing; required if rich_message isn't speci...
Definition Types.h:16864
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Link preview generation options for the message.
Definition Types.h:16894
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat or username of ...
Definition Types.h:16871
std::vector< std::shared_ptr< MessageEntity > > entities
A JSON-serialized list of special entities that appear in message text, which can be specified instea...
Definition Types.h:16905
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:16925
std::string parseMode
Mode for parsing entities in the message text. See formatting options for more details.
Definition Types.h:16889
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:16899
Arguments for Api::editMessageWidgetData.
Definition Types.h:16932
std::string publicData
New public data of the widget, 0-1024 bytes; pass an empty string to remove the public data....
Definition Types.h:16963
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat or username of ...
Definition Types.h:16945
std::string chatData
New data of the widget, which is specific to the message, 0-1024 bytes; pass an empty string to remov...
Definition Types.h:16938
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the message with the widget.
Definition Types.h:16957
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:16951
Arguments for Api::editSharedWidgetData.
Definition Types.h:16970
std::uint32_t cacheTime
The maximum amount of time in seconds that the public data of the widget may be cached client-side; 5...
Definition Types.h:16987
std::string widgetId
Unique identifier of the shared widget.
Definition Types.h:16980
std::string publicData
New public data of the widget, 0-1024 bytes; pass an empty string to remove the public data.
Definition Types.h:16975
Arguments for Api::editStory.
Definition Types.h:16994
std::string caption
Caption of the story, 0-2048 characters after entities parsing.
Definition Types.h:17018
std::string parseMode
Mode for parsing entities in the story caption. See formatting options for more details.
Definition Types.h:17030
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:16998
std::uint32_t storyId
Unique identifier of the story to edit.
Definition Types.h:17008
std::vector< std::shared_ptr< StoryArea > > areas
A JSON-serialized list of clickable areas to be shown on the story.
Definition Types.h:17013
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:17024
std::shared_ptr< InputStoryContent > content
Content of the story.
Definition Types.h:17003
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:17037
Arguments for Api::editUserStarSubscription.
Definition Types.h:17044
std::uint64_t userId
Identifier of the user whose subscription will be edited.
Definition Types.h:17061
std::string telegramPaymentChargeId
Telegram payment identifier for the subscription.
Definition Types.h:17056
bool isCanceled
Pass True to cancel extension of the user subscription; the subscription must be active up to the end...
Definition Types.h:17051
A custom emoji.
Definition Types.h:3327
std::string customEmojiId
Identifier of the custom emoji. Use getCustomEmojiStickers to get full information about the sticker.
Definition Types.h:3340
static TGBOT_API const std::string TYPE
Definition Types.h:3330
std::string type
Type of the emoji, always “custom_emoji”
Definition Types.h:3335
std::shared_ptr< EmojiTypeCustomEmoji > Ptr
Definition Types.h:3328
A regular emoji.
Definition Types.h:3350
static TGBOT_API const std::string TYPE
Definition Types.h:3353
std::string type
Type of the emoji, always “emoji”
Definition Types.h:3358
std::string emoji
The emoji.
Definition Types.h:3362
std::shared_ptr< EmojiTypeEmoji > Ptr
Definition Types.h:3351
This object describes an emoji. Currently, it can be one of EmojiTypeEmoji EmojiTypeCustomEmoji.
Definition Types.h:3314
std::shared_ptr< EmojiType > Ptr
Definition Types.h:3315
std::variant< std::shared_ptr< EmojiTypeEmoji >, std::shared_ptr< EmojiTypeCustomEmoji > > value
Definition Types.h:3317
Describes data required for decrypting and authenticating EncryptedPassportElement....
Definition Types.h:3374
std::string data
Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets req...
Definition Types.h:3381
std::string hash
Base64-encoded data hash for data authentication.
Definition Types.h:3385
std::shared_ptr< EncryptedCredentials > Ptr
Definition Types.h:3375
std::string secret
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption.
Definition Types.h:3390
Describes documents or other Telegram Passport elements shared with the bot by the user.
Definition Types.h:3400
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:3458
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:3437
std::optional< std::string > email
Optional. User's verified email address; available only for “email” type.
Definition Types.h:3423
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:3430
std::optional< std::string > phoneNumber
Optional. User's verified phone number; available only for “phone_number” type.
Definition Types.h:3419
std::string type
Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”,...
Definition Types.h:3408
std::shared_ptr< PassportFile > reverseSide
Optional. Encrypted file with the reverse side of the document, provided by the user; available only ...
Definition Types.h:3443
std::shared_ptr< EncryptedPassportElement > Ptr
Definition Types.h:3401
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:3450
std::optional< std::string > data
Optional. Base64-encoded encrypted Telegram Passport element data provided by the user; available onl...
Definition Types.h:3415
std::string hash
Base64-encoded element hash for using in PassportElementErrorUnspecified.
Definition Types.h:3462
std::shared_ptr< EphemeralMessageParameters > Ptr
Definition Types.h:3473
std::optional< bool > replaceCallbackQueryMessage
Optional. Pass True if the ephemeral message must be shown in place of the original message....
Definition Types.h:3498
std::optional< std::uint64_t > receiverUserId
Optional. Identifier of the user who will receive the message; required unless the message is sent as...
Definition Types.h:3484
std::optional< std::string > callbackQueryId
Optional. Identifier of the callback query which triggered the message, if any. If specified and rece...
Definition Types.h:3492
This object contains information about a message that is being replied to, which may come from anothe...
Definition Types.h:3509
std::optional< bool > hasMediaSpoiler
Optional. True, if the message media is covered by a spoiler animation.
Definition Types.h:3582
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:3530
std::shared_ptr< Poll > poll
Optional. Message is a native poll, information about the poll.
Definition Types.h:3619
std::shared_ptr< Widget > widget
Optional. Message is an HTML widget, information about the widget.
Definition Types.h:3578
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:3550
std::shared_ptr< Checklist > checklist
Optional. Message is a checklist.
Definition Types.h:3586
std::optional< std::uint32_t > messageId
Optional. Unique message identifier inside the original chat. Available only if the original chat is ...
Definition Types.h:3525
std::shared_ptr< Audio > audio
Optional. Message is an audio file, information about the file.
Definition Types.h:3538
std::shared_ptr< VideoNote > videoNote
Optional. Message is a video note, information about the video message.
Definition Types.h:3570
std::shared_ptr< Giveaway > giveaway
Optional. Message is a scheduled giveaway, information about the giveaway.
Definition Types.h:3602
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Message is a photo, available sizes of the photo.
Definition Types.h:3554
std::shared_ptr< ExternalReplyInfo > Ptr
Definition Types.h:3510
std::shared_ptr< Voice > voice
Optional. Message is a voice message, information about the file.
Definition Types.h:3574
std::shared_ptr< Video > video
Optional. Message is a video, information about the video.
Definition Types.h:3566
std::shared_ptr< Sticker > sticker
Optional. Message is a sticker, information about the sticker.
Definition Types.h:3558
std::shared_ptr< Venue > venue
Optional. Message is a venue, information about the venue.
Definition Types.h:3623
std::shared_ptr< Dice > dice
Optional. Message is a dice with random value.
Definition Types.h:3594
std::shared_ptr< Story > story
Optional. Message is a forwarded story.
Definition Types.h:3562
std::shared_ptr< LivePhoto > livePhoto
Optional. Message is a live photo, information about the live photo.
Definition Types.h:3546
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:3520
std::shared_ptr< Game > game
Optional. Message is a game, information about the game. More about games »
Definition Types.h:3598
std::shared_ptr< GiveawayWinners > giveawayWinners
Optional. A giveaway with public winners was completed.
Definition Types.h:3606
std::shared_ptr< Animation > animation
Optional. Message is an animation, information about the animation.
Definition Types.h:3534
std::shared_ptr< Invoice > invoice
Optional. Message is an invoice for a payment, information about the invoice. More about payments »
Definition Types.h:3611
std::shared_ptr< MessageOrigin > origin
Origin of the message replied to by the given message.
Definition Types.h:3515
std::shared_ptr< Contact > contact
Optional. Message is a shared contact, information about the contact.
Definition Types.h:3590
std::shared_ptr< Document > document
Optional. Message is a general file, information about the file.
Definition Types.h:3542
This object represents a file ready to be downloaded. The file can be downloaded via the link https:/...
Definition Types.h:3636
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:3659
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:3642
std::shared_ptr< File > Ptr
Definition Types.h:3637
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:3647
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
Definition Types.h:3654
Upon receiving a message with this object, Telegram clients will display a reply interface to the use...
Definition Types.h:3673
std::shared_ptr< ForceReply > Ptr
Definition Types.h:3674
bool forceReply
Shows reply interface to the user, as if they had manually selected the bot's message and tapped 'Rep...
Definition Types.h:3680
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:3692
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:3685
This object represents a service message about a forum topic closed in the chat. Currently holds no i...
Definition Types.h:3736
std::shared_ptr< ForumTopicClosed > Ptr
Definition Types.h:3737
This object represents a service message about a new forum topic created in the chat.
Definition Types.h:3747
std::string name
Name of the topic.
Definition Types.h:3753
std::uint32_t iconColor
Color of the topic icon in RGB format.
Definition Types.h:3757
std::optional< std::string > iconCustomEmojiId
Optional. Unique identifier of the custom emoji shown as the topic icon.
Definition Types.h:3761
std::shared_ptr< ForumTopicCreated > Ptr
Definition Types.h:3748
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:3766
This object represents a service message about an edited forum topic.
Definition Types.h:3776
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:3787
std::shared_ptr< ForumTopicEdited > Ptr
Definition Types.h:3777
std::optional< std::string > name
Optional. New name of the topic, if it was edited.
Definition Types.h:3782
This object represents a forum topic.
Definition Types.h:3702
std::string name
Name of the topic.
Definition Types.h:3712
std::uint32_t messageThreadId
Unique identifier of the forum topic.
Definition Types.h:3708
std::optional< std::string > iconCustomEmojiId
Optional. Unique identifier of the custom emoji shown as the topic icon.
Definition Types.h:3720
std::uint32_t iconColor
Color of the topic icon in RGB format.
Definition Types.h:3716
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:3725
std::shared_ptr< ForumTopic > Ptr
Definition Types.h:3703
This object represents a service message about a forum topic reopened in the chat....
Definition Types.h:3798
std::shared_ptr< ForumTopicReopened > Ptr
Definition Types.h:3799
Arguments for Api::forwardMessage.
Definition Types.h:17080
std::uint32_t videoStartTimestamp
New start timestamp for the forwarded video in the message.
Definition Types.h:17140
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be forwarded; required if the messa...
Definition Types.h:17123
bool protectContent
Protects the contents of the forwarded message from forwarding and saving.
Definition Types.h:17109
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:17085
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:17103
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:17116
std::string messageEffectId
Unique identifier of the message effect to be added to the message; only available when forwarding to...
Definition Types.h:17129
std::uint32_t messageId
Message identifier in the chat specified in from_chat_id.
Definition Types.h:17097
std::variant< std::int64_t, std::string > fromChatId
Unique identifier for the chat where the original message was sent (or username of the target bot,...
Definition Types.h:17092
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:17135
Arguments for Api::forwardMessages.
Definition Types.h:17147
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:17152
bool disableNotification
Sends the messages silently. Users will receive a notification with no sound.
Definition Types.h:17179
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the messages will be forwarded; required if the mess...
Definition Types.h:17192
std::vector< std::uint32_t > messageIds
A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to forward....
Definition Types.h:17166
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:17173
bool protectContent
Protects the contents of the forwarded messages from forwarding and saving.
Definition Types.h:17185
std::variant< std::int64_t, std::string > fromChatId
Unique identifier for the chat where the original messages were sent (or username of the target bot,...
Definition Types.h:17159
This object represents one row of the high scores table for a game.
Definition Types.h:3850
std::shared_ptr< GameHighScore > Ptr
Definition Types.h:3851
std::shared_ptr< User > user
User.
Definition Types.h:3860
std::uint32_t score
Score.
Definition Types.h:3864
std::uint32_t position
Position in high score table for the game.
Definition Types.h:3856
This object represents a game. Use BotFather to create and edit games, their short names will act as ...
Definition Types.h:3810
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:3835
std::shared_ptr< Animation > animation
Optional. Animation that will be displayed in the game message in chats. Upload via BotFather.
Definition Types.h:3840
std::shared_ptr< Game > Ptr
Definition Types.h:3811
std::string title
Title of the game.
Definition Types.h:3816
std::string description
Description of the game.
Definition Types.h:3820
std::optional< std::string > text
Optional. Brief description of the game or high scores included in the game message....
Definition Types.h:3830
std::vector< std::shared_ptr< PhotoSize > > photo
Photo that will be displayed in the game message in chats.
Definition Types.h:3824
This object represents a service message about General forum topic hidden in the chat....
Definition Types.h:3875
std::shared_ptr< GeneralForumTopicHidden > Ptr
Definition Types.h:3876
This object represents a service message about General forum topic unhidden in the chat....
Definition Types.h:3887
std::shared_ptr< GeneralForumTopicUnhidden > Ptr
Definition Types.h:3888
Arguments for Api::getBusinessAccountGifts.
Definition Types.h:17199
bool sortByPrice
Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.
Definition Types.h:17260
bool excludeUnlimited
Pass True to exclude gifts that can be purchased an unlimited number of times.
Definition Types.h:17237
bool excludeLimitedUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to uni...
Definition Types.h:17221
std::string offset
Offset of the first entry to return as received from the previous request; use empty string to get th...
Definition Types.h:17254
bool excludeUnique
Pass True to exclude unique gifts.
Definition Types.h:17231
bool excludeSaved
Pass True to exclude gifts that are saved to the account's profile page.
Definition Types.h:17226
bool excludeFromBlockchain
Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transfer...
Definition Types.h:17209
bool excludeUnsaved
Pass True to exclude gifts that aren't saved to the account's profile page.
Definition Types.h:17243
std::uint32_t limit
The maximum number of gifts to be returned; 1-100. Defaults to 100.
Definition Types.h:17248
bool excludeLimitedNonUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to u...
Definition Types.h:17215
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:17203
Arguments for Api::getBusinessAccountStarBalance.
Definition Types.h:17267
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:17271
Arguments for Api::getBusinessConnection.
Definition Types.h:17278
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:17282
Arguments for Api::getChatAdministrators.
Definition Types.h:17301
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup or channel in the format @...
Definition Types.h:17306
bool returnBots
Pass True to additionally receive all bots that are administrators of the chat. By default,...
Definition Types.h:17312
Arguments for Api::getChat.
Definition Types.h:17289
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup or channel in the format @...
Definition Types.h:17294
Arguments for Api::getChatGifts.
Definition Types.h:17319
bool excludeUnique
Pass True to exclude unique gifts.
Definition Types.h:17354
bool excludeFromBlockchain
Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transfer...
Definition Types.h:17330
std::uint32_t limit
The maximum number of gifts to be returned; 1-100. Defaults to 100.
Definition Types.h:17372
bool excludeUnlimited
Pass True to exclude gifts that can be purchased an unlimited number of times.
Definition Types.h:17360
bool excludeSaved
Pass True to exclude gifts that are saved to the chat's profile page. Always False,...
Definition Types.h:17349
bool sortByPrice
Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.
Definition Types.h:17384
bool excludeLimitedNonUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to u...
Definition Types.h:17336
std::string offset
Offset of the first entry to return as received from the previous request; use an empty string to get...
Definition Types.h:17378
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:17324
bool excludeUnsaved
Pass True to exclude gifts that aren't saved to the chat's profile page. Always True,...
Definition Types.h:17367
bool excludeLimitedUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to uni...
Definition Types.h:17342
Arguments for Api::getChatMember.
Definition Types.h:17391
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup or channel in the format @...
Definition Types.h:17396
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:17401
Arguments for Api::getChatMemberCount.
Definition Types.h:17408
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup or channel in the format @...
Definition Types.h:17413
Arguments for Api::getChatMenuButton.
Definition Types.h:17420
std::variant< std::uint64_t, std::string > chatId
Unique identifier for the target private chat. If not specified, the bot's default menu button will b...
Definition Types.h:17425
Arguments for Api::getCustomEmojiStickers.
Definition Types.h:17432
std::vector< std::string > customEmojiIds
A JSON-serialized list of custom emoji identifiers. At most 200 custom emoji identifiers can be speci...
Definition Types.h:17437
Arguments for Api::getFile.
Definition Types.h:17444
std::string fileId
File identifier to get information about.
Definition Types.h:17448
Arguments for Api::getGameHighScores.
Definition Types.h:17455
std::uint64_t userId
Target user id.
Definition Types.h:17459
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat.
Definition Types.h:17465
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the sent message.
Definition Types.h:17471
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:17477
Arguments for Api::getManagedBotAccessSettings.
Definition Types.h:17484
std::uint64_t userId
User identifier of the managed bot whose access settings will be returned.
Definition Types.h:17489
Arguments for Api::getManagedBotToken.
Definition Types.h:17496
std::uint64_t userId
User identifier of the managed bot whose token will be returned.
Definition Types.h:17500
Arguments for Api::getMyCommands.
Definition Types.h:17507
std::string languageCode
A two-letter ISO 639-1 language code or an empty string.
Definition Types.h:17517
std::shared_ptr< BotCommandScope > scope
A JSON-serialized object, describing scope of users. Defaults to BotCommandScopeDefault.
Definition Types.h:17512
Arguments for Api::getMyDefaultAdministratorRights.
Definition Types.h:17524
bool forChannels
Pass True to get default administrator rights of the bot in channels. Otherwise, default administrato...
Definition Types.h:17530
Arguments for Api::getMyDescription.
Definition Types.h:17537
std::string languageCode
A two-letter ISO 639-1 language code or an empty string.
Definition Types.h:17541
Arguments for Api::getMyName.
Definition Types.h:17548
std::string languageCode
A two-letter ISO 639-1 language code or an empty string.
Definition Types.h:17552
Arguments for Api::getMyShortDescription.
Definition Types.h:17559
std::string languageCode
A two-letter ISO 639-1 language code or an empty string.
Definition Types.h:17563
Arguments for Api::getStarTransactions.
Definition Types.h:17570
std::uint32_t limit
The maximum number of transactions to be retrieved. Values between 1-100 are accepted....
Definition Types.h:17575
std::uint32_t offset
Number of transactions to skip in the response.
Definition Types.h:17580
Arguments for Api::getStickerSet.
Definition Types.h:17587
std::string name
Name of the sticker set.
Definition Types.h:17591
Arguments for Api::getUniqueGift.
Definition Types.h:17598
std::string name
Unique name of the gift.
Definition Types.h:17602
Arguments for Api::getUpdates.
Definition Types.h:17609
std::int32_t offset
Identifier of the first update to be returned. Must be greater by one than the highest among the iden...
Definition Types.h:17619
std::vector< std::string > allowedUpdates
A JSON-serialized list of the update types you want your bot to receive. For example,...
Definition Types.h:17645
std::uint32_t limit
Limits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100.
Definition Types.h:17625
std::uint32_t timeout
Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling. Should be positive,...
Definition Types.h:17632
Arguments for Api::getUserChatBoosts.
Definition Types.h:17652
std::variant< std::int64_t, std::string > chatId
Unique identifier for the chat or username of the channel in the format @username.
Definition Types.h:17657
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:17662
Arguments for Api::getUserGifts.
Definition Types.h:17669
bool sortByPrice
Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.
Definition Types.h:17719
bool excludeLimitedUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to uni...
Definition Types.h:17691
std::uint64_t userId
Unique identifier of the user.
Definition Types.h:17673
bool excludeLimitedNonUpgradable
Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to u...
Definition Types.h:17685
bool excludeUnlimited
Pass True to exclude gifts that can be purchased an unlimited number of times.
Definition Types.h:17702
bool excludeUnique
Pass True to exclude unique gifts.
Definition Types.h:17696
std::uint32_t limit
The maximum number of gifts to be returned; 1-100. Defaults to 100.
Definition Types.h:17707
std::string offset
Offset of the first entry to return as received from the previous request; use an empty string to get...
Definition Types.h:17713
bool excludeFromBlockchain
Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transfer...
Definition Types.h:17679
Arguments for Api::getUserPersonalChatMessages.
Definition Types.h:17726
std::uint64_t userId
Unique identifier for the target user.
Definition Types.h:17735
std::uint32_t limit
The maximum number of messages to return; 1-20.
Definition Types.h:17730
Arguments for Api::getUserProfileAudios.
Definition Types.h:17742
std::uint32_t limit
Limits the number of audios to be retrieved. Values between 1-100 are accepted. Defaults to 100.
Definition Types.h:17752
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:17746
std::uint32_t offset
Sequential number of the first audio to be returned. By default, all audios are returned.
Definition Types.h:17758
Arguments for Api::getUserProfilePhotos.
Definition Types.h:17765
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:17769
std::uint32_t offset
Sequential number of the first photo to be returned. By default, all photos are returned.
Definition Types.h:17775
std::uint32_t limit
Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.
Definition Types.h:17781
This object describes the background of a gift.
Definition Types.h:3969
std::shared_ptr< GiftBackground > Ptr
Definition Types.h:3970
std::uint32_t edgeColor
Edge color of the background in RGB format.
Definition Types.h:3979
std::uint32_t centerColor
Center color of the background in RGB format.
Definition Types.h:3975
std::uint32_t textColor
Text color of the background in RGB format.
Definition Types.h:3983
This object represents a gift that can be sent by the bot.
Definition Types.h:3898
std::shared_ptr< Chat > publisherChat
Optional. Information about the chat that published the gift.
Definition Types.h:3959
std::shared_ptr< GiftBackground > background
Optional. Background of the gift.
Definition Types.h:3950
std::optional< bool > isPremium
Optional. True, if the gift can only be purchased by Telegram Premium subscribers.
Definition Types.h:3921
std::shared_ptr< Sticker > sticker
The sticker that represents the gift.
Definition Types.h:3908
std::shared_ptr< Gift > Ptr
Definition Types.h:3899
std::uint32_t starCount
The number of Telegram Stars that must be paid to send the sticker.
Definition Types.h:3912
std::optional< std::uint32_t > uniqueGiftVariantCount
Optional. The total number of different unique gifts that can be obtained by upgrading the gift.
Definition Types.h:3955
std::optional< std::uint32_t > personalRemainingCount
Optional. The number of remaining gifts of this type that can be sent by the bot; for limited gifts o...
Definition Types.h:3946
std::optional< std::uint32_t > totalCount
Optional. The total number of gifts of this type that can be sent by all users; for limited gifts onl...
Definition Types.h:3931
std::optional< bool > hasColors
Optional. True, if the gift can be used (after being upgraded) to customize a user's appearance.
Definition Types.h:3926
std::optional< std::uint32_t > remainingCount
Optional. The number of remaining gifts of this type that can be sent by all users; for limited gifts...
Definition Types.h:3936
std::optional< std::uint32_t > personalTotalCount
Optional. The total number of gifts of this type that can be sent by the bot; for limited gifts only.
Definition Types.h:3941
std::optional< std::uint32_t > upgradeStarCount
Optional. The number of Telegram Stars that must be paid to upgrade the gift to a unique one.
Definition Types.h:3917
Describes a service message about a regular gift that was sent or received.
Definition Types.h:3993
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:4004
std::optional< bool > canBeUpgraded
Optional. True, if the gift can be upgraded to a unique gift.
Definition Types.h:4021
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the text.
Definition Types.h:4029
std::optional< std::uint32_t > prepaidUpgradeStarCount
Optional. Number of Telegram Stars that were prepaid for the ability to upgrade the gift.
Definition Types.h:4013
std::optional< bool > isUpgradeSeparate
Optional. True, if the gift's upgrade was purchased after the gift was sent.
Definition Types.h:4017
std::optional< std::uint32_t > uniqueGiftNumber
Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift.
Definition Types.h:4039
std::optional< std::string > text
Optional. Text of the message that was added to the gift.
Definition Types.h:4025
std::optional< bool > isPrivate
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise,...
Definition Types.h:4034
std::shared_ptr< GiftInfo > Ptr
Definition Types.h:3994
std::shared_ptr< Gift > gift
Information about the gift.
Definition Types.h:3999
std::optional< std::uint32_t > convertStarCount
Optional. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitte...
Definition Types.h:4009
Arguments for Api::giftPremiumSubscription.
Definition Types.h:17788
std::uint32_t starCount
Number of Telegram Stars to pay for the Telegram Premium subscription; must be 1000 for 3 months,...
Definition Types.h:17799
std::uint32_t monthCount
Number of months the Telegram Premium subscription will be active for the user; must be one of 3,...
Definition Types.h:17793
std::vector< std::shared_ptr< MessageEntity > > textEntities
A JSON-serialized list of special entities that appear in the gift text. It can be specified instead ...
Definition Types.h:17819
std::string text
Text that will be shown along with the service message about the subscription; 0-128 characters.
Definition Types.h:17811
std::uint64_t userId
Unique identifier of the target user who will receive a Telegram Premium subscription.
Definition Types.h:17805
std::string textParseMode
Mode for parsing entities in the text. See formatting options for more details. Entities other than “...
Definition Types.h:17826
This object represent a list of gifts.
Definition Types.h:4049
std::vector< std::shared_ptr< Gift > > gifts
The list of gifts.
Definition Types.h:4055
std::shared_ptr< Gifts > Ptr
Definition Types.h:4050
This object represents a service message about the completion of a giveaway without public winners.
Definition Types.h:4120
std::shared_ptr< GiveawayCompleted > Ptr
Definition Types.h:4121
std::optional< std::uint32_t > unclaimedPrizeCount
Optional. Number of undistributed prizes.
Definition Types.h:4130
std::shared_ptr< Message > giveawayMessage
Optional. Message with the giveaway that was completed, if it wasn't deleted.
Definition Types.h:4134
std::uint32_t winnerCount
Number of winners in the giveaway.
Definition Types.h:4126
std::optional< bool > isStarGiveaway
Optional. True, if the giveaway is a Telegram Star giveaway. Otherwise, currently,...
Definition Types.h:4139
This object represents a service message about the creation of a scheduled giveaway.
Definition Types.h:4149
std::optional< std::uint32_t > prizeStarCount
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaw...
Definition Types.h:4156
std::shared_ptr< GiveawayCreated > Ptr
Definition Types.h:4150
This object represents a message about a scheduled giveaway.
Definition Types.h:4065
std::optional< std::uint32_t > premiumSubscriptionMonthCount
Optional. The number of months the Telegram Premium subscription won from the giveaway will be active...
Definition Types.h:4109
std::vector< std::shared_ptr< Chat > > chats
The list of chats which the user must join to participate in the giveaway.
Definition Types.h:4071
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:4084
std::int32_t winnersSelectionDate
Point in time (Unix timestamp) when winners of the giveaway will be selected.
Definition Types.h:4075
std::uint32_t winnerCount
The number of users which are supposed to be selected as winners of the giveaway.
Definition Types.h:4079
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:4099
std::shared_ptr< Giveaway > Ptr
Definition Types.h:4066
std::optional< bool > hasPublicWinners
Optional. True, if the list of giveaway winners will be visible to everyone.
Definition Types.h:4088
std::optional< std::string > prizeDescription
Optional. Description of additional giveaway prize.
Definition Types.h:4092
std::optional< std::uint32_t > prizeStarCount
Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaw...
Definition Types.h:4104
This object represents a message about the completion of a giveaway with public winners.
Definition Types.h:4166
std::optional< std::uint32_t > additionalChatCount
Optional. The number of other chats the user had to join in order to be eligible for the giveaway.
Definition Types.h:4193
std::optional< std::string > prizeDescription
Optional. Description of additional giveaway prize.
Definition Types.h:4220
std::optional< std::uint32_t > premiumSubscriptionMonthCount
Optional. The number of months the Telegram Premium subscription won from the giveaway will be active...
Definition Types.h:4203
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:4212
std::optional< std::uint32_t > prizeStarCount
Optional. The number of Telegram Stars that were split between giveaway winners; for Telegram Star gi...
Definition Types.h:4198
std::shared_ptr< Chat > chat
The chat that created the giveaway.
Definition Types.h:4172
std::optional< bool > wasRefunded
Optional. True, if the giveaway was canceled because the payment for it was refunded.
Definition Types.h:4216
std::int32_t winnersSelectionDate
Point in time (Unix timestamp) when winners of the giveaway were selected.
Definition Types.h:4180
std::uint32_t winnerCount
Total number of winners in the giveaway.
Definition Types.h:4184
std::optional< std::uint32_t > unclaimedPrizeCount
Optional. Number of undistributed prizes.
Definition Types.h:4207
std::vector< std::shared_ptr< User > > winners
List of up to 100 winners of the giveaway.
Definition Types.h:4188
std::uint32_t giveawayMessageId
Identifier of the message with the giveaway in the chat.
Definition Types.h:4176
std::shared_ptr< GiveawayWinners > Ptr
Definition Types.h:4167
Arguments for Api::hideGeneralForumTopic.
Definition Types.h:17833
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:17838
This object describes a message that was deleted or is otherwise inaccessible to the bot.
Definition Types.h:4230
std::uint32_t messageId
Unique message identifier inside the chat.
Definition Types.h:4240
std::uint32_t date
Always 0. The field can be used to differentiate regular and inaccessible messages.
Definition Types.h:4244
std::shared_ptr< InaccessibleMessage > Ptr
Definition Types.h:4231
std::shared_ptr< Chat > chat
Chat the message belonged to.
Definition Types.h:4236
This object represents one button of an inline keyboard. Exactly one of the fields other than text,...
Definition Types.h:4255
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:4321
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:4297
std::optional< std::string > iconCustomEmojiId
Optional. Unique identifier of the custom emoji shown before the text of the button....
Definition Types.h:4268
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:4336
std::shared_ptr< CopyTextButton > copyText
Optional. Description of the button that copies the specified text to the clipboard.
Definition Types.h:4325
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:4314
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:4284
std::optional< std::string > style
Optional. Style of the button. Must be one of “danger” (red), “success” (green) or “primary” (blue)....
Definition Types.h:4273
std::shared_ptr< CallbackGame > callbackGame
Optional. Description of the game that will be launched when the user presses the button....
Definition Types.h:4330
std::optional< std::string > switchInlineQuery
Optional. If set, pressing the button will prompt the user to select one of their chats,...
Definition Types.h:4305
std::string text
Label text on the button.
Definition Types.h:4261
std::shared_ptr< DisabledButton > disabled
Optional. If set, then the button is disabled and does nothing.
Definition Types.h:4340
std::shared_ptr< WebAppInfo > webApp
Optional. Description of the Web App that will be launched when the user presses the button....
Definition Types.h:4292
std::shared_ptr< InlineKeyboardButton > Ptr
Definition Types.h:4256
std::optional< std::string > url
Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?...
Definition Types.h:4279
This object represents an inline keyboard that appears right next to the message it belongs to.
Definition Types.h:4351
std::optional< bool > forceReply
Optional. Pass True if the reply interface must be shown to the user, as if they had manually selecte...
Definition Types.h:4363
std::vector< std::vector< std::shared_ptr< InlineKeyboardButton > > > inlineKeyboard
Array of button rows, each represented by an Array of InlineKeyboardButton objects.
Definition Types.h:4357
std::shared_ptr< InlineKeyboardMarkup > Ptr
Definition Types.h:4352
This object represents an incoming inline query. When the user sends an empty query,...
Definition Types.h:4374
std::string offset
Offset of the results to be returned, can be controlled by the bot.
Definition Types.h:4392
std::shared_ptr< InlineQuery > Ptr
Definition Types.h:4375
std::shared_ptr< Location > location
Optional. Sender location, only for bots that request user location.
Definition Types.h:4403
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:4399
std::string query
Text of the query (up to 256 characters).
Definition Types.h:4388
std::shared_ptr< User > from
Sender.
Definition Types.h:4384
Represents a link to an article or web page.
Definition Types.h:4445
std::optional< std::uint32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:4485
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:4477
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4469
std::shared_ptr< InputMessageContent > inputMessageContent
Content of the message to be sent.
Definition Types.h:4465
std::shared_ptr< InlineQueryResultArticle > Ptr
Definition Types.h:4446
std::string type
Type of the result, must be article.
Definition Types.h:4453
static TGBOT_API const std::string TYPE
Definition Types.h:4448
std::optional< std::string > url
Optional. URL of the result.
Definition Types.h:4473
std::string title
Title of the result.
Definition Types.h:4461
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
Definition Types.h:4481
std::optional< std::uint32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:4489
Represents a link to an MP3 audio file. By default, this audio file will be sent by the user....
Definition Types.h:4501
std::string audioUrl
A valid URL for the audio file.
Definition Types.h:4517
std::shared_ptr< InlineQueryResultAudio > Ptr
Definition Types.h:4502
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
Definition Types.h:4525
std::string title
Title.
Definition Types.h:4521
std::optional< std::uint32_t > audioDuration
Optional. Audio duration in seconds.
Definition Types.h:4543
std::optional< std::string > performer
Optional. Performer.
Definition Types.h:4539
std::string type
Type of the result, must be audio.
Definition Types.h:4509
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the audio.
Definition Types.h:4551
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:4535
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
Definition Types.h:4530
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4547
static TGBOT_API const std::string TYPE
Definition Types.h:4504
Represents a link to an MP3 audio file stored on the Telegram servers. By default,...
Definition Types.h:4563
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:4593
std::string type
Type of the result, must be audio.
Definition Types.h:4571
std::string audioFileId
A valid file identifier for the audio file.
Definition Types.h:4579
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4597
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the audio.
Definition Types.h:4601
static TGBOT_API const std::string TYPE
Definition Types.h:4566
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
Definition Types.h:4588
std::shared_ptr< InlineQueryResultCachedAudio > Ptr
Definition Types.h:4564
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
Definition Types.h:4583
Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the...
Definition Types.h:4613
static TGBOT_API const std::string TYPE
Definition Types.h:4616
std::shared_ptr< InlineQueryResultCachedDocument > Ptr
Definition Types.h:4614
std::string title
Title for the result.
Definition Types.h:4629
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:4637
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:4651
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the document caption. See formatting options for more details.
Definition Types.h:4646
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the file.
Definition Types.h:4659
std::string type
Type of the result, must be document.
Definition Types.h:4621
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4655
std::string documentFileId
A valid file identifier for the file.
Definition Types.h:4633
std::optional< std::string > caption
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4641
Represents a link to an animated GIF file stored on the Telegram servers. By default,...
Definition Types.h:4671
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4713
std::shared_ptr< InlineQueryResultCachedGif > Ptr
Definition Types.h:4672
std::string type
Type of the result, must be gif.
Definition Types.h:4679
static TGBOT_API const std::string TYPE
Definition Types.h:4674
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:4709
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the GIF animation.
Definition Types.h:4717
std::optional< std::string > caption
Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4695
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Definition Types.h:4700
std::string gifFileId
A valid file identifier for the GIF file.
Definition Types.h:4687
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:4705
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:4691
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram ...
Definition Types.h:4730
std::optional< std::string > caption
Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4755
std::string mpeg4FileId
A valid file identifier for the MPEG4 file.
Definition Types.h:4746
static TGBOT_API const std::string TYPE
Definition Types.h:4733
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the video animation.
Definition Types.h:4777
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4773
std::shared_ptr< InlineQueryResultCachedMpeg4Gif > Ptr
Definition Types.h:4731
std::string type
Type of the result, must be mpeg4_gif.
Definition Types.h:4738
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:4750
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:4765
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Definition Types.h:4760
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:4769
Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by t...
Definition Types.h:4789
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:4831
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:4809
std::optional< std::string > caption
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4817
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4835
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
Definition Types.h:4822
static TGBOT_API const std::string TYPE
Definition Types.h:4792
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:4813
std::string photoFileId
A valid file identifier of the photo.
Definition Types.h:4805
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:4827
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the photo.
Definition Types.h:4839
std::string type
Type of the result, must be photo.
Definition Types.h:4797
std::shared_ptr< InlineQueryResultCachedPhoto > Ptr
Definition Types.h:4790
Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent ...
Definition Types.h:4851
std::string type
Type of the result, must be sticker.
Definition Types.h:4859
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4871
std::shared_ptr< InlineQueryResultCachedSticker > Ptr
Definition Types.h:4852
std::string stickerFileId
A valid file identifier of the sticker.
Definition Types.h:4867
static TGBOT_API const std::string TYPE
Definition Types.h:4854
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the sticker.
Definition Types.h:4875
Represents a link to a video file stored on the Telegram servers. By default, this video file will be...
Definition Types.h:4887
std::shared_ptr< InlineQueryResultCachedVideo > Ptr
Definition Types.h:4888
std::string title
Title for the result.
Definition Types.h:4907
std::optional< std::string > caption
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
Definition Types.h:4915
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4933
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:4911
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:4925
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:4929
std::string type
Type of the result, must be video.
Definition Types.h:4895
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
Definition Types.h:4920
std::string videoFileId
A valid file identifier for the video file.
Definition Types.h:4903
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the video.
Definition Types.h:4937
static TGBOT_API const std::string TYPE
Definition Types.h:4890
Represents a link to a voice message stored on the Telegram servers. By default, this voice message w...
Definition Types.h:4949
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:4987
static TGBOT_API const std::string TYPE
Definition Types.h:4952
std::shared_ptr< InlineQueryResultCachedVoice > Ptr
Definition Types.h:4950
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the voice message caption. See formatting options for more det...
Definition Types.h:4978
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the voice message.
Definition Types.h:4991
std::string voiceFileId
A valid file identifier for the voice message.
Definition Types.h:4965
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
Definition Types.h:4973
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:4983
std::string title
Voice message title.
Definition Types.h:4969
std::string type
Type of the result, must be voice.
Definition Types.h:4957
Represents a contact with a phone number. By default, this contact will be sent by the user....
Definition Types.h:5003
std::string type
Type of the result, must be contact.
Definition Types.h:5011
std::optional< std::uint32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:5047
std::optional< std::string > vcard
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.
Definition Types.h:5031
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the contact.
Definition Types.h:5039
std::optional< std::string > lastName
Optional. Contact's last name.
Definition Types.h:5027
std::string firstName
Contact's first name.
Definition Types.h:5023
std::string phoneNumber
Contact's phone number.
Definition Types.h:5019
std::shared_ptr< InlineQueryResultContact > Ptr
Definition Types.h:5004
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5035
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
Definition Types.h:5043
std::optional< std::uint32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:5051
static TGBOT_API const std::string TYPE
Definition Types.h:5006
Represents a link to a file. By default, this file will be sent by the user with an optional caption....
Definition Types.h:5064
std::optional< std::uint32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:5122
std::string title
Title for the result.
Definition Types.h:5080
std::optional< std::uint32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:5126
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the document caption. See formatting options for more details.
Definition Types.h:5089
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5110
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the file.
Definition Types.h:5114
std::string mimeType
MIME type of the content of the file, either “application/pdf” or “application/zip”
Definition Types.h:5102
std::string type
Type of the result, must be document.
Definition Types.h:5072
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:5106
static TGBOT_API const std::string TYPE
Definition Types.h:5067
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:5094
std::optional< std::string > caption
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5084
std::shared_ptr< InlineQueryResultDocument > Ptr
Definition Types.h:5065
std::optional< std::string > thumbnailUrl
Optional. URL of the thumbnail (JPEG only) for the file.
Definition Types.h:5118
std::string documentUrl
A valid URL for the file.
Definition Types.h:5098
Represents a Game.
Definition Types.h:5136
std::string gameShortName
Short name of the game.
Definition Types.h:5152
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5156
std::shared_ptr< InlineQueryResultGame > Ptr
Definition Types.h:5137
std::string type
Type of the result, must be game.
Definition Types.h:5144
static TGBOT_API const std::string TYPE
Definition Types.h:5139
Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the use...
Definition Types.h:5168
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:5209
static TGBOT_API const std::string TYPE
Definition Types.h:5171
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5231
std::optional< std::uint32_t > gifWidth
Optional. Width of the GIF.
Definition Types.h:5188
std::shared_ptr< InlineQueryResultGif > Ptr
Definition Types.h:5169
std::string gifUrl
A valid URL for the GIF file.
Definition Types.h:5184
std::string type
Type of the result, must be gif.
Definition Types.h:5176
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Definition Types.h:5218
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:5223
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:5205
std::optional< std::uint32_t > gifDuration
Optional. Duration of the GIF in seconds.
Definition Types.h:5196
std::optional< std::string > caption
Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5213
std::string thumbnailUrl
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
Definition Types.h:5200
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the GIF animation.
Definition Types.h:5235
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:5227
std::optional< std::uint32_t > gifHeight
Optional. Height of the GIF.
Definition Types.h:5192
This object represents one result of an inline query. Telegram clients currently support results of t...
Definition Types.h:4422
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:4435
std::shared_ptr< InlineQueryResult > Ptr
Definition Types.h:4423
Represents a location on a map. By default, the location will be sent by the user....
Definition Types.h:5247
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5294
std::optional< std::uint32_t > livePeriod
Optional. Period in seconds during which the location can be updated, must be between 60 and 86400,...
Definition Types.h:5280
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
Definition Types.h:5302
double latitude
Location latitude in degrees.
Definition Types.h:5263
std::optional< std::uint32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:5306
std::optional< std::uint32_t > proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat ...
Definition Types.h:5290
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the location.
Definition Types.h:5298
static TGBOT_API const std::string TYPE
Definition Types.h:5250
std::optional< std::uint32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:5310
double longitude
Location longitude in degrees.
Definition Types.h:5267
std::optional< std::uint32_t > heading
Optional. For live locations, a direction in which the user is moving, in degrees....
Definition Types.h:5285
std::string title
Location title.
Definition Types.h:5271
std::shared_ptr< InlineQueryResultLocation > Ptr
Definition Types.h:5248
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:5275
std::string type
Type of the result, must be location.
Definition Types.h:5255
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default,...
Definition Types.h:5323
std::optional< std::string > caption
Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5369
static TGBOT_API const std::string TYPE
Definition Types.h:5326
std::string mpeg4Url
A valid URL for the MPEG4 file.
Definition Types.h:5339
std::optional< std::uint32_t > mpeg4Height
Optional. Video height.
Definition Types.h:5347
std::string type
Type of the result, must be mpeg4_gif.
Definition Types.h:5331
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Definition Types.h:5374
std::shared_ptr< InlineQueryResultMpeg4Gif > Ptr
Definition Types.h:5324
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:5364
std::optional< std::uint32_t > mpeg4Width
Optional. Video width.
Definition Types.h:5343
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5387
std::optional< std::uint32_t > mpeg4Duration
Optional. Video duration in seconds.
Definition Types.h:5351
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:5379
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:5360
std::string thumbnailUrl
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
Definition Types.h:5355
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:5383
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the video animation.
Definition Types.h:5391
Represents a link to a photo. By default, this photo will be sent by the user with optional caption....
Definition Types.h:5403
static TGBOT_API const std::string TYPE
Definition Types.h:5406
std::string photoUrl
A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB.
Definition Types.h:5419
std::shared_ptr< InlineQueryResultPhoto > Ptr
Definition Types.h:5404
std::string thumbnailUrl
URL of the thumbnail for the photo.
Definition Types.h:5423
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:5453
std::optional< std::uint32_t > photoHeight
Optional. Height of the photo.
Definition Types.h:5431
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
Definition Types.h:5448
std::optional< std::string > caption
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5443
std::optional< std::uint32_t > photoWidth
Optional. Width of the photo.
Definition Types.h:5427
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the photo.
Definition Types.h:5465
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:5439
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:5457
std::optional< std::string > title
Optional. Title for the result.
Definition Types.h:5435
std::string type
Type of the result, must be photo.
Definition Types.h:5411
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5461
Represents a venue. By default, the venue will be sent by the user. Alternatively,...
Definition Types.h:5476
std::string address
Address of the venue.
Definition Types.h:5504
std::string type
Type of the result, must be venue.
Definition Types.h:5484
std::optional< std::uint32_t > thumbnailWidth
Optional. Thumbnail width.
Definition Types.h:5537
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
Definition Types.h:5517
std::optional< std::string > thumbnailUrl
Optional. Url of the thumbnail for the result.
Definition Types.h:5533
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the venue.
Definition Types.h:5529
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5525
std::optional< std::uint32_t > thumbnailHeight
Optional. Thumbnail height.
Definition Types.h:5541
double latitude
Latitude of the venue location in degrees.
Definition Types.h:5492
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue if known.
Definition Types.h:5508
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,...
Definition Types.h:5513
double longitude
Longitude of the venue location in degrees.
Definition Types.h:5496
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
Definition Types.h:5521
std::string title
Title of the venue.
Definition Types.h:5500
static TGBOT_API const std::string TYPE
Definition Types.h:5479
std::shared_ptr< InlineQueryResultVenue > Ptr
Definition Types.h:5477
Represents a link to a page containing an embedded video player or a video file. By default,...
Definition Types.h:5553
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:5595
static TGBOT_API const std::string TYPE
Definition Types.h:5556
std::shared_ptr< InlineQueryResultVideo > Ptr
Definition Types.h:5554
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
Definition Types.h:5590
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:5599
std::optional< std::string > description
Optional. Short description of the result.
Definition Types.h:5615
std::optional< std::uint32_t > videoDuration
Optional. Video duration in seconds.
Definition Types.h:5611
std::string thumbnailUrl
URL of the thumbnail (JPEG only) for the video.
Definition Types.h:5577
std::string title
Title for the result.
Definition Types.h:5581
std::string mimeType
MIME type of the content of the video URL, “text/html” or “video/mp4”
Definition Types.h:5573
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:5625
std::optional< std::uint32_t > videoHeight
Optional. Video height.
Definition Types.h:5607
std::optional< std::string > caption
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
Definition Types.h:5585
std::optional< std::uint32_t > videoWidth
Optional. Video width.
Definition Types.h:5603
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5619
std::string videoUrl
A valid URL for the embedded video player or video file.
Definition Types.h:5569
std::string type
Type of the result, must be video.
Definition Types.h:5561
Represents a link to a voice recording in an .OGG container encoded with OPUS. By default,...
Definition Types.h:5638
std::optional< std::uint32_t > voiceDuration
Optional. Recording duration in seconds.
Definition Types.h:5676
std::string title
Recording title.
Definition Types.h:5658
std::string type
Type of the result, must be voice.
Definition Types.h:5646
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:5672
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message.
Definition Types.h:5680
std::shared_ptr< InputMessageContent > inputMessageContent
Optional. Content of the message to be sent instead of the voice recording.
Definition Types.h:5684
std::optional< std::string > caption
Optional. Caption, 0-1024 characters after entities parsing.
Definition Types.h:5662
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the voice message caption. See formatting options for more det...
Definition Types.h:5667
static TGBOT_API const std::string TYPE
Definition Types.h:5641
std::shared_ptr< InlineQueryResultVoice > Ptr
Definition Types.h:5639
std::string voiceUrl
A valid URL for the voice recording.
Definition Types.h:5654
This object represents a button to be shown above inline query results. You must use exactly one of t...
Definition Types.h:5695
std::shared_ptr< InlineQueryResultsButton > Ptr
Definition Types.h:5696
std::string text
Label text on the button.
Definition Types.h:5701
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:5719
std::shared_ptr< WebAppInfo > webApp
Optional. Description of the Web App that will be launched when the user presses the button....
Definition Types.h:5707
Describes a checklist to create.
Definition Types.h:5729
std::string title
Title of the checklist; 1-255 characters after entities parsing.
Definition Types.h:5735
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the title. See formatting options for more details.
Definition Types.h:5740
std::vector< std::shared_ptr< InputChecklistTask > > tasks
List of 1-30 tasks in the checklist.
Definition Types.h:5750
std::shared_ptr< InputChecklist > Ptr
Definition Types.h:5730
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:5746
std::optional< bool > othersCanMarkTasksAsDone
Optional. Pass True if other users can mark tasks as done or not done in the checklist.
Definition Types.h:5758
std::optional< bool > othersCanAddTasks
Optional. Pass True if other users can add tasks to the checklist.
Definition Types.h:5754
Describes a task to add to a checklist.
Definition Types.h:5768
std::string text
Text of the task; 1-100 characters after entities parsing.
Definition Types.h:5779
std::shared_ptr< InputChecklistTask > Ptr
Definition Types.h:5769
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the text. See formatting options for more details.
Definition Types.h:5784
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:5790
Represents the content of a contact message to be sent as the result of an inline query.
Definition Types.h:5800
std::optional< std::string > lastName
Optional. Contact's last name.
Definition Types.h:5814
std::string firstName
Contact's first name.
Definition Types.h:5810
std::string phoneNumber
Contact's phone number.
Definition Types.h:5806
std::shared_ptr< InputContactMessageContent > Ptr
Definition Types.h:5801
std::optional< std::string > vcard
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.
Definition Types.h:5818
Represents the content of an invoice message to be sent as the result of an inline query.
Definition Types.h:5828
std::optional< std::uint32_t > photoSize
Optional. Photo size in bytes.
Definition Types.h:5889
std::optional< bool > needEmail
Optional. Pass True if you require the user's email address to complete the order....
Definition Types.h:5912
std::vector< std::shared_ptr< LabeledPrice > > prices
Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount,...
Definition Types.h:5859
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:5885
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:5880
std::optional< bool > isFlexible
Optional. Pass True if the final price depends on the shipping method. Ignored for payments in Telegr...
Definition Types.h:5932
std::shared_ptr< InputInvoiceMessageContent > Ptr
Definition Types.h:5829
std::string title
Product name, 1-32 characters.
Definition Types.h:5834
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:5922
std::optional< std::vector< std::uint64_t > > suggestedTipAmounts
Optional. A JSON-serialized Array of suggested amounts of tip in the smallest units of the currency (...
Definition Types.h:5874
std::optional< bool > needShippingAddress
Optional. Pass True if you require the user's shipping address to complete the order....
Definition Types.h:5917
std::optional< std::uint32_t > photoHeight
Optional. Photo height.
Definition Types.h:5897
std::string currency
Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Star...
Definition Types.h:5853
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:5907
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:5843
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:5927
std::optional< std::uint32_t > photoWidth
Optional. Photo width.
Definition Types.h:5893
std::optional< std::string > providerToken
Optional. Payment provider token, obtained via @BotFather. Pass an empty string for payments in Teleg...
Definition Types.h:5848
std::optional< std::uint64_t > maxTipAmount
Optional. The maximum accepted amount for tips in the smallest units of the currency (integer,...
Definition Types.h:5867
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:5902
std::string description
Product description, 1-255 characters.
Definition Types.h:5838
Represents the content of a location message to be sent as the result of an inline query.
Definition Types.h:5942
double longitude
Longitude of the location in degrees.
Definition Types.h:5952
double latitude
Latitude of the location in degrees.
Definition Types.h:5948
std::optional< std::uint32_t > heading
Optional. For live locations, a direction in which the user is moving, in degrees....
Definition Types.h:5966
std::shared_ptr< InputLocationMessageContent > Ptr
Definition Types.h:5943
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:5956
std::optional< std::uint32_t > livePeriod
Optional. Period in seconds during which the location can be updated, must be between 60 and 86400,...
Definition Types.h:5961
std::optional< std::uint32_t > proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat ...
Definition Types.h:5971
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
Definition Types.h:5999
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6014
std::optional< std::uint32_t > duration
Optional. Animation duration in seconds.
Definition Types.h:6054
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:6024
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the animation caption. See formatting options for more details...
Definition Types.h:6033
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:6038
std::shared_ptr< InputMediaAnimation > Ptr
Definition Types.h:6000
std::optional< std::uint32_t > width
Optional. Animation width.
Definition Types.h:6046
std::optional< std::uint32_t > height
Optional. Animation height.
Definition Types.h:6050
std::optional< bool > hasSpoiler
Optional. Pass True if the animation needs to be covered with a spoiler animation.
Definition Types.h:6058
std::optional< std::string > caption
Optional. Caption of the animation to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6028
std::string type
Type of the media, must be animation.
Definition Types.h:6007
static TGBOT_API const std::string TYPE
Definition Types.h:6002
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:6042
Represents an audio file to be treated as music to be sent.
Definition Types.h:6068
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:6093
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:6107
static TGBOT_API const std::string TYPE
Definition Types.h:6071
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
Definition Types.h:6102
std::optional< std::string > performer
Optional. Performer of the audio.
Definition Types.h:6115
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6083
std::shared_ptr< InputMediaAudio > Ptr
Definition Types.h:6069
std::optional< std::string > caption
Optional. Caption of the audio to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6097
std::optional< std::string > title
Optional. Title of the audio.
Definition Types.h:6119
std::string type
Type of the media, must be audio.
Definition Types.h:6076
std::optional< std::uint32_t > duration
Optional. Duration of the audio in seconds.
Definition Types.h:6111
Represents a general file to be sent.
Definition Types.h:6129
static TGBOT_API const std::string TYPE
Definition Types.h:6132
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:6168
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the document caption. See formatting options for more details.
Definition Types.h:6163
std::string type
Type of the media, must be document.
Definition Types.h:6137
std::optional< bool > disableContentTypeDetection
Optional. Disables automatic server-side content type detection for files uploaded using multipart/fo...
Definition Types.h:6173
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:6154
std::optional< std::string > caption
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6158
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6144
std::shared_ptr< InputMediaDocument > Ptr
Definition Types.h:6130
This object represents the content of a media message to be sent. It should be one of InputMediaAnima...
Definition Types.h:5983
std::shared_ptr< InputMedia > Ptr
Definition Types.h:5984
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:5989
Represents a live photo to be sent.
Definition Types.h:6205
std::optional< std::string > caption
Optional. Caption of the live photo to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6231
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the live photo caption. See formatting options for more detail...
Definition Types.h:6236
std::string type
Type of the media, must be live_photo.
Definition Types.h:6213
std::shared_ptr< InputMediaLivePhoto > Ptr
Definition Types.h:6206
static TGBOT_API const std::string TYPE
Definition Types.h:6208
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:6220
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:6227
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:6245
std::optional< bool > hasSpoiler
Optional. Pass True if the live photo needs to be covered with a spoiler animation.
Definition Types.h:6249
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:6241
Represents a location to be sent.
Definition Types.h:6259
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:6279
std::shared_ptr< InputMediaLocation > Ptr
Definition Types.h:6260
double latitude
Latitude of the location.
Definition Types.h:6271
std::string type
Type of the media, must be location.
Definition Types.h:6267
static TGBOT_API const std::string TYPE
Definition Types.h:6262
double longitude
Longitude of the location.
Definition Types.h:6275
Represents a photo to be sent.
Definition Types.h:6289
std::string type
Type of the media, must be photo.
Definition Types.h:6297
static TGBOT_API const std::string TYPE
Definition Types.h:6292
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:6318
std::shared_ptr< InputMediaPhoto > Ptr
Definition Types.h:6290
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
Definition Types.h:6313
std::optional< std::string > caption
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6308
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:6322
std::optional< bool > hasSpoiler
Optional. Pass True if the photo needs to be covered with a spoiler animation.
Definition Types.h:6326
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6304
Represents a sticker file to be sent.
Definition Types.h:6336
std::string type
Type of the media, must be sticker.
Definition Types.h:6344
static TGBOT_API const std::string TYPE
Definition Types.h:6339
std::optional< std::string > emoji
Optional. Emoji associated with the sticker; only for just uploaded stickers.
Definition Types.h:6356
std::shared_ptr< InputMediaSticker > Ptr
Definition Types.h:6337
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6352
Represents a venue to be sent.
Definition Types.h:6366
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,...
Definition Types.h:6399
double longitude
Longitude of the location.
Definition Types.h:6382
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
Definition Types.h:6403
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
Definition Types.h:6407
std::string title
Name of the venue.
Definition Types.h:6386
double latitude
Latitude of the location.
Definition Types.h:6378
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue.
Definition Types.h:6394
static TGBOT_API const std::string TYPE
Definition Types.h:6369
std::shared_ptr< InputMediaVenue > Ptr
Definition Types.h:6367
std::string address
Address of the venue.
Definition Types.h:6390
std::string type
Type of the media, must be venue.
Definition Types.h:6374
Represents a video to be sent.
Definition Types.h:6417
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the message media.
Definition Types.h:6471
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6432
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:6442
std::optional< std::string > caption
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6457
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
Definition Types.h:6462
std::optional< std::uint32_t > width
Optional. Video width.
Definition Types.h:6475
std::optional< std::uint32_t > height
Optional. Video height.
Definition Types.h:6479
static TGBOT_API const std::string TYPE
Definition Types.h:6420
std::optional< bool > hasSpoiler
Optional. Pass True if the video needs to be covered with a spoiler animation.
Definition Types.h:6491
std::string type
Type of the media, must be video.
Definition Types.h:6425
std::optional< std::uint32_t > startTimestamp
Optional. Start timestamp for the video in the message.
Definition Types.h:6453
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:6467
std::optional< std::uint32_t > duration
Optional. Video duration in seconds.
Definition Types.h:6483
std::optional< bool > supportsStreaming
Optional. Pass True if the uploaded video is suitable for streaming.
Definition Types.h:6487
std::shared_ptr< InputMediaVideo > Ptr
Definition Types.h:6418
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:6449
Represents a voice message file to be sent.
Definition Types.h:6501
std::string type
Type of the media, must be voice_note.
Definition Types.h:6509
std::optional< std::string > caption
Optional. Caption of the voice message to be sent, 0-1024 characters after entities parsing.
Definition Types.h:6521
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the voice message caption. See formatting options for more det...
Definition Types.h:6526
std::shared_ptr< InputMediaVoiceNote > Ptr
Definition Types.h:6502
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6516
std::optional< std::uint32_t > duration
Optional. Duration of the voice message in seconds.
Definition Types.h:6535
static TGBOT_API const std::string TYPE
Definition Types.h:6504
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:6531
This object represents the content of a message to be sent as a result of an inline query....
Definition Types.h:6549
std::shared_ptr< InputMessageContent > Ptr
Definition Types.h:6550
std::variant< std::shared_ptr< InputTextMessageContent >, std::shared_ptr< InputRichMessageContent >, std::shared_ptr< InputLocationMessageContent >, std::shared_ptr< InputVenueMessageContent >, std::shared_ptr< InputContactMessageContent >, std::shared_ptr< InputInvoiceMessageContent >, std::shared_ptr< InputWidgetMessageContent >, std::shared_ptr< InputSharedWidgetMessageContent > > value
Definition Types.h:6556
This object describes the paid media to be sent. Currently, it can be one of InputPaidMediaLivePhoto ...
Definition Types.h:6567
std::variant< std::shared_ptr< InputPaidMediaLivePhoto >, std::shared_ptr< InputPaidMediaPhoto >, std::shared_ptr< InputPaidMediaVideo > > value
Definition Types.h:6572
std::shared_ptr< InputPaidMedia > Ptr
Definition Types.h:6568
The paid media to send is a live photo.
Definition Types.h:6582
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:6604
std::string type
Type of the media, must be live_photo.
Definition Types.h:6590
std::shared_ptr< InputPaidMediaLivePhoto > Ptr
Definition Types.h:6583
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:6597
static TGBOT_API const std::string TYPE
Definition Types.h:6585
The paid media to send is a photo.
Definition Types.h:6614
static TGBOT_API const std::string TYPE
Definition Types.h:6617
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6629
std::string type
Type of the media, must be photo.
Definition Types.h:6622
std::shared_ptr< InputPaidMediaPhoto > Ptr
Definition Types.h:6615
The paid media to send is a video.
Definition Types.h:6639
std::string type
Type of the media, must be video.
Definition Types.h:6647
std::optional< bool > supportsStreaming
Optional. Pass True if the uploaded video is suitable for streaming.
Definition Types.h:6691
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:6671
std::optional< std::uint32_t > duration
Optional. Video duration in seconds.
Definition Types.h:6687
static TGBOT_API const std::string TYPE
Definition Types.h:6642
std::shared_ptr< InputPaidMediaVideo > Ptr
Definition Types.h:6640
std::optional< std::uint32_t > startTimestamp
Optional. Start timestamp for the video in the message.
Definition Types.h:6675
std::optional< std::uint32_t > height
Optional. Video height.
Definition Types.h:6683
std::string media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),...
Definition Types.h:6654
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:6664
std::optional< std::uint32_t > width
Optional. Video width.
Definition Types.h:6679
This object represents the content of a poll description or a quiz explanation to be sent....
Definition Types.h:6703
std::shared_ptr< InputPollMedia > Ptr
Definition Types.h:6704
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:6710
This object contains information about one answer option in a poll to be sent.
Definition Types.h:6720
std::string text
Option text, 1-100 characters.
Definition Types.h:6726
std::shared_ptr< InputPollOptionMedia > media
Optional. Media added to the poll option.
Definition Types.h:6740
std::shared_ptr< InputPollOption > Ptr
Definition Types.h:6721
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:6736
std::optional< std::string > textParseMode
Optional. Mode for parsing entities in the text. See formatting options for more details....
Definition Types.h:6731
This object represents the content of a poll option to be sent. It should be one of InputMediaAnimati...
Definition Types.h:6752
std::shared_ptr< InputPollOptionMedia > Ptr
Definition Types.h:6753
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:6759
An animated profile photo in the MPEG4 format.
Definition Types.h:6783
std::shared_ptr< InputProfilePhotoAnimated > Ptr
Definition Types.h:6784
std::string type
Type of the profile photo, must be animated.
Definition Types.h:6791
static TGBOT_API const std::string TYPE
Definition Types.h:6786
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:6797
std::optional< double > mainFrameTimestamp
Optional. Timestamp in seconds of the frame that will be used as the static profile photo....
Definition Types.h:6802
This object describes a profile photo to set. Currently, it can be one of InputProfilePhotoStatic Inp...
Definition Types.h:6770
std::variant< std::shared_ptr< InputProfilePhotoStatic >, std::shared_ptr< InputProfilePhotoAnimated > > value
Definition Types.h:6773
std::shared_ptr< InputProfilePhoto > Ptr
Definition Types.h:6771
A static profile photo in the .JPG format.
Definition Types.h:6812
static TGBOT_API const std::string TYPE
Definition Types.h:6815
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:6826
std::string type
Type of the profile photo, must be static.
Definition Types.h:6820
std::shared_ptr< InputProfilePhotoStatic > Ptr
Definition Types.h:6813
A block with an anchor, corresponding to the HTML tag with the attribute name.
Definition Types.h:6869
static TGBOT_API const std::string TYPE
Definition Types.h:6872
std::shared_ptr< InputRichBlockAnchor > Ptr
Definition Types.h:6870
std::string name
The name of the anchor.
Definition Types.h:6881
std::string type
Type of the block, always “anchor”
Definition Types.h:6877
A block with an animation, corresponding to the HTML tag <video>.
Definition Types.h:6891
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:6907
std::string type
Type of the block, always “animation”
Definition Types.h:6899
std::shared_ptr< InputRichBlockAnimation > Ptr
Definition Types.h:6892
static TGBOT_API const std::string TYPE
Definition Types.h:6894
std::shared_ptr< InputMediaAnimation > animation
The animation. Caption is ignored.
Definition Types.h:6903
A block with a music file, corresponding to the HTML tag <audio>.
Definition Types.h:6917
static TGBOT_API const std::string TYPE
Definition Types.h:6920
std::shared_ptr< InputMediaAudio > audio
The audio. Caption is ignored.
Definition Types.h:6929
std::shared_ptr< InputRichBlockAudio > Ptr
Definition Types.h:6918
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:6933
std::string type
Type of the block, always “audio”
Definition Types.h:6925
A block quotation, corresponding to the HTML tag.
Definition Types.h:6943
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:6959
std::vector< std::shared_ptr< InputRichBlock > > blocks
Content of the block.
Definition Types.h:6955
static TGBOT_API const std::string TYPE
Definition Types.h:6946
std::shared_ptr< InputRichBlockBlockQuotation > Ptr
Definition Types.h:6944
std::string type
Type of the block, always “blockquote”
Definition Types.h:6951
A block containing a list of buttons that are shown in one row, corresponding to the custom HTML tag ...
Definition Types.h:6970
std::vector< std::shared_ptr< RichMessageButton > > buttons
List of 1-8 buttons to send.
Definition Types.h:6982
std::string type
Type of the block, always “buttons”
Definition Types.h:6978
std::optional< std::string > align
Optional. Horizontal alignment of the buttons. Currently, must be one of “left”, “center”,...
Definition Types.h:6987
std::shared_ptr< InputRichBlockButtons > Ptr
Definition Types.h:6971
static TGBOT_API const std::string TYPE
Definition Types.h:6973
A collage, corresponding to the custom HTML tag <tg-collage>.
Definition Types.h:6997
static TGBOT_API const std::string TYPE
Definition Types.h:7000
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7013
std::vector< std::shared_ptr< InputRichBlock > > blocks
Elements of the collage.
Definition Types.h:7009
std::string type
Type of the block, always “collage”
Definition Types.h:7005
std::shared_ptr< InputRichBlockCollage > Ptr
Definition Types.h:6998
An expandable block for details disclosure, corresponding to the HTML tag.
Definition Types.h:7023
std::vector< std::shared_ptr< InputRichBlock > > blocks
Content of the block.
Definition Types.h:7039
std::string type
Type of the block, always “details”
Definition Types.h:7031
std::shared_ptr< InputRichBlockDetails > Ptr
Definition Types.h:7024
static TGBOT_API const std::string TYPE
Definition Types.h:7026
std::optional< bool > isOpen
Optional. Pass True if the content of the block is visible by default.
Definition Types.h:7043
std::shared_ptr< RichText > summary
Always shown summary of the block.
Definition Types.h:7035
A divider, corresponding to the HTML tag .
Definition Types.h:7053
std::shared_ptr< InputRichBlockDivider > Ptr
Definition Types.h:7054
std::string type
Type of the block, always “divider”
Definition Types.h:7061
static TGBOT_API const std::string TYPE
Definition Types.h:7056
A block with a general file, corresponding to the custom HTML tag <tg-document>.
Definition Types.h:7071
std::shared_ptr< InputRichBlockDocument > Ptr
Definition Types.h:7072
std::shared_ptr< InputMediaDocument > document
The document. Caption is ignored.
Definition Types.h:7083
std::string type
Type of the block, always “document”
Definition Types.h:7079
static TGBOT_API const std::string TYPE
Definition Types.h:7074
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7087
A block quotation, corresponding to the HTML tag.
Definition Types.h:7098
std::shared_ptr< InputRichBlockExpandableBlockQuotation > Ptr
Definition Types.h:7099
std::string type
Type of the block, always “expandable_blockquote”
Definition Types.h:7106
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:7114
static TGBOT_API const std::string TYPE
Definition Types.h:7101
std::shared_ptr< RichText > text
Content of the block.
Definition Types.h:7110
This object represents a block in a rich formatted message to be sent. Currently, it can be any of th...
Definition Types.h:6844
std::shared_ptr< InputRichBlock > Ptr
Definition Types.h:6845
std::variant< std::shared_ptr< InputRichBlockParagraph >, std::shared_ptr< InputRichBlockSectionHeading >, std::shared_ptr< InputRichBlockPreformatted >, std::shared_ptr< InputRichBlockFooter >, std::shared_ptr< InputRichBlockDivider >, std::shared_ptr< InputRichBlockMathematicalExpression >, std::shared_ptr< InputRichBlockAnchor >, std::shared_ptr< InputRichBlockList >, std::shared_ptr< InputRichBlockBlockQuotation >, std::shared_ptr< InputRichBlockExpandableBlockQuotation >, std::shared_ptr< InputRichBlockPullQuotation >, std::shared_ptr< InputRichBlockCollage >, std::shared_ptr< InputRichBlockSlideshow >, std::shared_ptr< InputRichBlockTable >, std::shared_ptr< InputRichBlockDetails >, std::shared_ptr< InputRichBlockMap >, std::shared_ptr< InputRichBlockButtons >, std::shared_ptr< InputRichBlockAnimation >, std::shared_ptr< InputRichBlockAudio >, std::shared_ptr< InputRichBlockDocument >, std::shared_ptr< InputRichBlockPhoto >, std::shared_ptr< InputRichBlockVideo >, std::shared_ptr< InputRichBlockVoiceNote >, std::shared_ptr< InputRichBlockThinking > > value
Definition Types.h:6859
A list of blocks, corresponding to the HTML tag.
Definition Types.h:7146
static TGBOT_API const std::string TYPE
Definition Types.h:7149
std::string type
Type of the block, always “list”
Definition Types.h:7154
std::vector< std::shared_ptr< InputRichBlockListItem > > items
Items of the list.
Definition Types.h:7158
std::shared_ptr< InputRichBlockList > Ptr
Definition Types.h:7147
An item of a list to be sent.
Definition Types.h:7168
std::optional< bool > isChecked
Optional. Pass True if the item has a checked checkbox.
Definition Types.h:7182
std::shared_ptr< InputRichBlockListItem > Ptr
Definition Types.h:7169
std::optional< bool > hasCheckbox
Optional. Pass True if the item has a checkbox.
Definition Types.h:7178
std::vector< std::shared_ptr< InputRichBlock > > blocks
The content of the item.
Definition Types.h:7174
std::optional< std::int32_t > value
Optional. For ordered lists, the numeric value of the item label.
Definition Types.h:7186
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:7192
A block with a map, corresponding to the custom HTML tag <tg-map>. The map's width and height must no...
Definition Types.h:7203
std::shared_ptr< Location > location
Location of the center of the map.
Definition Types.h:7215
static TGBOT_API const std::string TYPE
Definition Types.h:7206
std::optional< std::uint32_t > width
Optional. Map width; 0-10000.
Definition Types.h:7223
std::shared_ptr< InputRichBlockMap > Ptr
Definition Types.h:7204
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7231
std::optional< std::uint32_t > zoom
Optional. Map zoom level; 0-24.
Definition Types.h:7219
std::optional< std::uint32_t > height
Optional. Map height; 0-10000.
Definition Types.h:7227
std::string type
Type of the block, always “map”
Definition Types.h:7211
A block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag <tg-math...
Definition Types.h:7242
std::string type
Type of the block, always “mathematical_expression”
Definition Types.h:7250
std::shared_ptr< InputRichBlockMathematicalExpression > Ptr
Definition Types.h:7243
std::string expression
The mathematical expression in LaTeX format.
Definition Types.h:7254
static TGBOT_API const std::string TYPE
Definition Types.h:7245
A text paragraph, corresponding to the HTML tag.
Definition Types.h:7264
std::shared_ptr< InputRichBlockParagraph > Ptr
Definition Types.h:7265
std::string type
Type of the block, always “paragraph”
Definition Types.h:7272
static TGBOT_API const std::string TYPE
Definition Types.h:7267
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:7276
A block with a photo, corresponding to the HTML tag.
Definition Types.h:7286
std::string type
Type of the block, always “photo”
Definition Types.h:7294
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7302
std::shared_ptr< InputMediaPhoto > photo
The photo. Caption is ignored.
Definition Types.h:7298
std::shared_ptr< InputRichBlockPhoto > Ptr
Definition Types.h:7287
static TGBOT_API const std::string TYPE
Definition Types.h:7289
A preformatted text block, corresponding to the nested HTML tags.
Definition Types.h:7312
std::string type
Type of the block, always “pre”
Definition Types.h:7320
static TGBOT_API const std::string TYPE
Definition Types.h:7315
std::optional< std::string > language
Optional. The programming language of the text.
Definition Types.h:7328
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:7324
std::shared_ptr< InputRichBlockPreformatted > Ptr
Definition Types.h:7313
A quotation with centered text, loosely corresponding to the HTML tag <aside>.
Definition Types.h:7338
std::string type
Type of the block, always “pullquote”
Definition Types.h:7346
std::shared_ptr< InputRichBlockPullQuotation > Ptr
Definition Types.h:7339
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:7350
static TGBOT_API const std::string TYPE
Definition Types.h:7341
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:7354
A section heading, corresponding to the HTML tags.
Definition Types.h:7364
std::shared_ptr< InputRichBlockSectionHeading > Ptr
Definition Types.h:7365
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:7376
std::string type
Type of the block, always “heading”
Definition Types.h:7372
std::uint32_t size
Relative size of the text font; 1-6, 1 is the largest, 6 is the smallest.
Definition Types.h:7380
static TGBOT_API const std::string TYPE
Definition Types.h:7367
A slideshow, corresponding to the custom HTML tag <tg-slideshow>.
Definition Types.h:7390
std::string type
Type of the block, always “slideshow”
Definition Types.h:7398
static TGBOT_API const std::string TYPE
Definition Types.h:7393
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7406
std::vector< std::shared_ptr< InputRichBlock > > blocks
Elements of the slideshow.
Definition Types.h:7402
std::shared_ptr< InputRichBlockSlideshow > Ptr
Definition Types.h:7391
A table, corresponding to the HTML tag.
Definition Types.h:7416
std::string type
Type of the block, always “table”
Definition Types.h:7424
std::shared_ptr< RichText > caption
Optional. Caption of the table.
Definition Types.h:7444
std::vector< std::vector< std::shared_ptr< RichBlockTableCell > > > cells
Cells of the table.
Definition Types.h:7428
static TGBOT_API const std::string TYPE
Definition Types.h:7419
std::optional< bool > isBordered
Optional. Pass True if the table has borders.
Definition Types.h:7432
std::shared_ptr< InputRichBlockTable > Ptr
Definition Types.h:7417
std::optional< bool > isCompact
Optional. Pass True if table cells must have smaller indents.
Definition Types.h:7440
std::optional< bool > isStriped
Optional. Pass True if the table is striped.
Definition Types.h:7436
A block with a “Thinking…” placeholder, corresponding to the custom HTML tag <tg-thinking>....
Definition Types.h:7457
std::shared_ptr< InputRichBlockThinking > Ptr
Definition Types.h:7458
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:7470
static TGBOT_API const std::string TYPE
Definition Types.h:7460
std::string type
Type of the block, always “thinking”
Definition Types.h:7465
A block with a video, corresponding to the HTML tag <video>.
Definition Types.h:7480
std::shared_ptr< InputRichBlockVideo > Ptr
Definition Types.h:7481
static TGBOT_API const std::string TYPE
Definition Types.h:7483
std::shared_ptr< InputMediaVideo > video
The video. Caption is ignored.
Definition Types.h:7492
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7496
std::string type
Type of the block, always “video”
Definition Types.h:7488
A block with a voice note, corresponding to the HTML tag <audio>.
Definition Types.h:7506
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:7522
std::shared_ptr< InputRichBlockVoiceNote > Ptr
Definition Types.h:7507
std::string type
Type of the block, always “voice_note”
Definition Types.h:7514
std::shared_ptr< InputMediaVoiceNote > voiceNote
The voice note. Caption is ignored.
Definition Types.h:7518
static TGBOT_API const std::string TYPE
Definition Types.h:7509
Represents the content of a rich message to be sent as the result of an inline query.
Definition Types.h:7576
std::shared_ptr< InputRichMessage > richMessage
The message to be sent. Only previously uploaded files may be used in the message.
Definition Types.h:7582
std::shared_ptr< InputRichMessageContent > Ptr
Definition Types.h:7577
Describes a rich message to be sent. Exactly one of the fields html, markdown, or blocks must be used...
Definition Types.h:7533
std::optional< std::string > html
Optional. Content of the rich message to send described using HTML formatting. See rich message forma...
Definition Types.h:7545
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:7539
std::shared_ptr< InputRichMessage > Ptr
Definition Types.h:7534
std::optional< std::string > markdown
Optional. Content of the rich message to send described using Markdown formatting....
Definition Types.h:7551
std::optional< bool > skipEntityDetection
Optional. Pass True to skip automatic detection of entities (e.g., URLs, email addresses,...
Definition Types.h:7566
std::optional< bool > isRtl
Optional. Pass True if the rich message must be shown right-to-left.
Definition Types.h:7560
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:7556
Describes a media element embedded in an outgoing rich message.
Definition Types.h:7592
std::variant< std::shared_ptr< InputMediaAnimation >, std::shared_ptr< InputMediaAudio >, std::shared_ptr< InputMediaDocument >, std::shared_ptr< InputMediaPhoto >, std::shared_ptr< InputMediaVideo >, std::shared_ptr< InputMediaVoiceNote > > media
The media to be sent. Everything except the media itself and its properties is ignored.
Definition Types.h:7607
std::shared_ptr< InputRichMessageMedia > Ptr
Definition Types.h:7593
Represents the content of a message with a shared widget to be sent as the result of an inline query....
Definition Types.h:7619
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:7643
std::optional< std::string > caption
Optional. Widget caption, 0-1024 characters after entities parsing.
Definition Types.h:7633
std::optional< std::string > chatData
Optional. Data of the widget, which is specific to the message, 0-1024 bytes.
Definition Types.h:7629
std::string widgetId
Unique identifier of the shared widget created by the bot.
Definition Types.h:7625
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the widget caption. See formatting options for more details.
Definition Types.h:7638
std::shared_ptr< InputSharedWidgetMessageContent > Ptr
Definition Types.h:7620
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the widget.
Definition Types.h:7647
This object describes a sticker to be added to a sticker set.
Definition Types.h:7657
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:7672
std::vector< std::string > emojiList
List of 1-20 emoji associated with the sticker.
Definition Types.h:7676
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:7685
std::shared_ptr< MaskPosition > maskPosition
Optional. Position where the mask should be placed on faces. For “mask” stickers only.
Definition Types.h:7680
std::shared_ptr< InputSticker > Ptr
Definition Types.h:7658
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:7667
This object describes the content of a story to post. Currently, it can be one of InputStoryContentPh...
Definition Types.h:7696
std::shared_ptr< InputStoryContent > Ptr
Definition Types.h:7697
std::variant< std::shared_ptr< InputStoryContentPhoto >, std::shared_ptr< InputStoryContentVideo > > value
Definition Types.h:7699
Describes a photo to post as a story.
Definition Types.h:7709
std::shared_ptr< InputStoryContentPhoto > Ptr
Definition Types.h:7710
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:7724
static TGBOT_API const std::string TYPE
Definition Types.h:7712
std::string type
Type of the content, must be photo.
Definition Types.h:7717
Describes a video to post as a story.
Definition Types.h:7734
std::optional< bool > isAnimation
Optional. Pass True if the video has no sound.
Definition Types.h:7763
std::optional< double > duration
Optional. Precise duration of the video in seconds; 0-60.
Definition Types.h:7754
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:7759
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:7750
std::shared_ptr< InputStoryContentVideo > Ptr
Definition Types.h:7735
static TGBOT_API const std::string TYPE
Definition Types.h:7737
std::string type
Type of the content, must be video.
Definition Types.h:7742
Represents the content of a text message to be sent as the result of an inline query.
Definition Types.h:7773
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Optional. Link preview generation options for the message.
Definition Types.h:7793
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:7789
std::string messageText
Text of the message to be sent, 1-4096 characters.
Definition Types.h:7779
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the message text. See formatting options for more details.
Definition Types.h:7784
std::shared_ptr< InputTextMessageContent > Ptr
Definition Types.h:7774
Represents the content of a venue message to be sent as the result of an inline query.
Definition Types.h:7803
double latitude
Latitude of the venue in degrees.
Definition Types.h:7809
std::string address
Address of the venue.
Definition Types.h:7821
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
Definition Types.h:7838
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,...
Definition Types.h:7830
std::shared_ptr< InputVenueMessageContent > Ptr
Definition Types.h:7804
double longitude
Longitude of the venue in degrees.
Definition Types.h:7813
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue, if known.
Definition Types.h:7825
std::string title
Name of the venue.
Definition Types.h:7817
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
Definition Types.h:7834
Represents the content of a message with an HTML widget to be sent as the result of an inline query....
Definition Types.h:7850
std::string html
HTML code of the widget, 1-32768 bytes. The code must not exceed 4096 bytes when compressed by zlib w...
Definition Types.h:7857
std::optional< std::string > caption
Optional. Widget caption, 0-1024 characters after entities parsing.
Definition Types.h:7882
std::shared_ptr< InputWidgetMessageContent > Ptr
Definition Types.h:7851
std::optional< std::string > parseMode
Optional. Mode for parsing entities in the widget caption. See formatting options for more details.
Definition Types.h:7887
std::optional< std::string > publicData
Optional. Public data of the widget, 0-1024 bytes, which will be available wherever the widget is sho...
Definition Types.h:7874
std::optional< bool > showCaptionAboveMedia
Optional. Pass True if the caption must be shown above the widget.
Definition Types.h:7896
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:7892
std::optional< std::uint32_t > width
Optional. Width of the widget in logical pixels; omit if the widget must occupy the whole width of th...
Definition Types.h:7863
std::optional< bool > allowQueries
Optional. Pass True to allow the widget to send queries to the bot.
Definition Types.h:7900
std::optional< std::uint32_t > height
Optional. Height of the widget in logical pixels; omit if the height of the widget isn't fixed....
Definition Types.h:7868
std::optional< std::string > chatData
Optional. Data of the widget, which is specific to the message, 0-1024 bytes.
Definition Types.h:7878
std::optional< bool > isShared
Optional. Pass True to create a shared widget. Each message sent from the result creates a separate s...
Definition Types.h:7907
This object contains basic information about an invoice.
Definition Types.h:7917
std::shared_ptr< Invoice > Ptr
Definition Types.h:7918
std::uint64_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
Definition Types.h:7942
std::string title
Product name.
Definition Types.h:7923
std::string startParameter
Unique bot deep-linking parameter that can be used to generate this invoice.
Definition Types.h:7931
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
Definition Types.h:7935
std::string description
Product description.
Definition Types.h:7927
This object represents one button of the reply keyboard. At most one of the fields other than text,...
Definition Types.h:7955
std::optional< std::string > style
Optional. Style of the button. Must be one of “danger” (red), “success” (green) or “primary” (blue)....
Definition Types.h:7974
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:7986
std::optional< bool > requestLocation
Optional. If True, the user's current location will be sent when the button is pressed....
Definition Types.h:8002
std::optional< std::string > iconCustomEmojiId
Optional. Unique identifier of the custom emoji shown before the text of the button....
Definition Types.h:7969
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:8007
std::shared_ptr< KeyboardButton > Ptr
Definition Types.h:7956
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:7992
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:7997
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:7962
std::shared_ptr< KeyboardButtonRequestUsers > requestUsers
Optional. If specified, pressing the button will open a list of suitable users. Identifiers of select...
Definition Types.h:7980
std::shared_ptr< WebAppInfo > webApp
Optional. If specified, the described Web App will be launched when the button is pressed....
Definition Types.h:8013
This object represents type of a poll, which is allowed to be created and sent when the corresponding...
Definition Types.h:8024
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:8032
std::shared_ptr< KeyboardButtonPollType > Ptr
Definition Types.h:8025
This object defines the criteria used to request a suitable chat. Information about the selected chat...
Definition Types.h:8044
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:8066
std::optional< bool > chatIsForum
Optional. Pass True to request a forum supergroup, pass False to request a non-forum chat....
Definition Types.h:8060
std::optional< bool > requestPhoto
Optional. Pass True to request the chat's photo.
Definition Types.h:8100
std::int32_t requestId
Signed 32-bit identifier of the request, which will be received back in the ChatShared object....
Definition Types.h:8051
std::optional< bool > chatIsCreated
Optional. Pass True to request a chat owned by the user. Otherwise, no additional restrictions are ap...
Definition Types.h:8071
std::shared_ptr< ChatAdministratorRights > userAdministratorRights
Optional. A JSON-serialized object listing the required administrator rights of the user in the chat....
Definition Types.h:8077
std::optional< bool > requestUsername
Optional. Pass True to request the chat's username.
Definition Types.h:8096
std::shared_ptr< KeyboardButtonRequestChat > Ptr
Definition Types.h:8045
std::shared_ptr< ChatAdministratorRights > botAdministratorRights
Optional. A JSON-serialized object listing the required administrator rights of the bot in the chat....
Definition Types.h:8083
std::optional< bool > botIsMember
Optional. Pass True to request a chat with the bot as a member. Otherwise, no additional restrictions...
Definition Types.h:8088
bool chatIsChannel
Pass True to request a channel chat, pass False to request a group or a supergroup chat.
Definition Types.h:8055
std::optional< bool > requestTitle
Optional. Pass True to request the chat's title.
Definition Types.h:8092
This object defines the parameters for the creation of a managed bot. Information about the created b...
Definition Types.h:8112
std::optional< std::string > suggestedUsername
Optional. Suggested username for the bot. The username must end with “bot”. If the user creating the ...
Definition Types.h:8130
std::shared_ptr< KeyboardButtonRequestManagedBot > Ptr
Definition Types.h:8113
std::optional< std::string > suggestedName
Optional. Suggested name for the bot.
Definition Types.h:8122
std::int32_t requestId
Signed 32-bit identifier of the request. Must be unique within the message.
Definition Types.h:8118
This object defines the criteria used to request suitable users. Information about the selected users...
Definition Types.h:8142
std::optional< bool > userIsBot
Optional. Pass True to request bots, pass False to request regular users. If not specified,...
Definition Types.h:8154
std::shared_ptr< KeyboardButtonRequestUsers > Ptr
Definition Types.h:8143
std::int32_t requestId
Signed 32-bit identifier of the request that will be received back in the UsersShared object....
Definition Types.h:8149
std::optional< std::uint32_t > maxQuantity
Optional. The maximum number of users to be selected; 1-10. Defaults to 1.
Definition Types.h:8163
std::optional< bool > userIsPremium
Optional. Pass True to request premium users, pass False to request non-premium users....
Definition Types.h:8159
std::optional< bool > requestPhoto
Optional. Pass True to request the users' photos.
Definition Types.h:8175
std::optional< bool > requestName
Optional. Pass True to request the users' first and last names.
Definition Types.h:8167
std::optional< bool > requestUsername
Optional. Pass True to request the users' usernames.
Definition Types.h:8171
This object represents a portion of the price for goods or services.
Definition Types.h:8185
std::shared_ptr< LabeledPrice > Ptr
Definition Types.h:8186
std::string label
Portion label.
Definition Types.h:8191
std::int64_t amount
Price of the product in the smallest units of the currency (integer, not float/double)....
Definition Types.h:8198
Arguments for Api::leaveChat.
Definition Types.h:17845
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup or channel in the format @...
Definition Types.h:17851
This object represents a live photo.
Definition Types.h:8260
std::uint32_t height
Video height as defined by the sender.
Definition Types.h:8283
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Available sizes of the corresponding static photo.
Definition Types.h:8266
std::string fileId
Identifier for the video file which can be used to download or reuse the file.
Definition Types.h:8270
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
Definition Types.h:8298
std::uint32_t width
Video width as defined by the sender.
Definition Types.h:8279
std::uint32_t duration
Duration of the video in seconds as defined by the sender.
Definition Types.h:8287
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:8291
std::shared_ptr< LivePhoto > Ptr
Definition Types.h:8261
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:8275
Describes the physical address of a location.
Definition Types.h:8347
std::optional< std::string > state
Optional. State of the location.
Definition Types.h:8358
std::shared_ptr< LocationAddress > Ptr
Definition Types.h:8348
std::optional< std::string > street
Optional. Street address of the location.
Definition Types.h:8366
std::optional< std::string > city
Optional. City of the location.
Definition Types.h:8362
std::string countryCode
The two-letter ISO 3166-1 alpha-2 country code of the country where the location is located.
Definition Types.h:8354
This object represents a point on the map.
Definition Types.h:8308
double latitude
Latitude as defined by the sender.
Definition Types.h:8314
double longitude
Longitude as defined by the sender.
Definition Types.h:8318
std::optional< std::uint32_t > proximityAlertRadius
Optional. The maximum distance for proximity alerts about approaching another chat member,...
Definition Types.h:8337
std::optional< std::uint32_t > heading
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
Definition Types.h:8332
std::shared_ptr< Location > Ptr
Definition Types.h:8309
std::optional< double > horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:8322
std::optional< std::uint32_t > livePeriod
Optional. Time relative to the message sending date, during which the location can be updated; in sec...
Definition Types.h:8327
This object represents a parameter of the inline keyboard button used to automatically authorize a us...
Definition Types.h:8379
std::shared_ptr< LoginUrl > Ptr
Definition Types.h:8380
std::optional< std::string > forwardText
Optional. New text of the button in forwarded messages.
Definition Types.h:8394
std::optional< std::string > botUsername
Optional. Username of a bot, which will be used for user authorization; not supported in RichMessageB...
Definition Types.h:8401
std::optional< bool > requestWriteAccess
Optional. Pass True to request the permission for your bot to send messages to the user.
Definition Types.h:8405
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:8390
This object contains information about the bot that was created to be managed by the current bot.
Definition Types.h:8416
std::shared_ptr< User > bot
Information about the bot. The bot's token can be fetched using the method getManagedBotToken.
Definition Types.h:8423
std::shared_ptr< ManagedBotCreated > Ptr
Definition Types.h:8417
This object contains information about the creation, token update, or owner update of a bot that is m...
Definition Types.h:8434
std::shared_ptr< User > bot
Information about the bot. Token of the bot can be fetched using the method getManagedBotToken.
Definition Types.h:8445
std::shared_ptr< User > user
User that created the bot.
Definition Types.h:8440
std::shared_ptr< ManagedBotUpdated > Ptr
Definition Types.h:8435
This object describes the position on faces where a mask should be placed by default.
Definition Types.h:8455
double scale
Mask scaling coefficient. For example, 2.0 means double size.
Definition Types.h:8477
double yShift
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom....
Definition Types.h:8473
std::string point
The part of the face relative to which the mask should be placed. One of “forehead”,...
Definition Types.h:8462
std::shared_ptr< MaskPosition > Ptr
Definition Types.h:8456
double xShift
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right....
Definition Types.h:8468
This object describes a message that can be inaccessible to the bot. It can be one of Message Inacces...
Definition Types.h:8488
std::shared_ptr< MaybeInaccessibleMessage > Ptr
Definition Types.h:8489
std::variant< std::shared_ptr< Message >, std::shared_ptr< InaccessibleMessage > > value
Definition Types.h:8491
Represents a menu button, which opens the bot's list of commands.
Definition Types.h:8519
static TGBOT_API const std::string TYPE
Definition Types.h:8522
std::shared_ptr< MenuButtonCommands > Ptr
Definition Types.h:8520
std::string type
Type of the button, must be commands.
Definition Types.h:8527
Describes that no specific value for the menu button was set.
Definition Types.h:8537
std::shared_ptr< MenuButtonDefault > Ptr
Definition Types.h:8538
static TGBOT_API const std::string TYPE
Definition Types.h:8540
std::string type
Type of the button, must be default.
Definition Types.h:8545
This object describes the bot's menu button in a private chat. It should be one of MenuButtonCommands...
Definition Types.h:8504
std::shared_ptr< MenuButton > Ptr
Definition Types.h:8505
std::variant< std::shared_ptr< MenuButtonCommands >, std::shared_ptr< MenuButtonWebApp >, std::shared_ptr< MenuButtonDefault > > value
Definition Types.h:8509
Represents a menu button, which launches a Web App.
Definition Types.h:8555
static TGBOT_API const std::string TYPE
Definition Types.h:8558
std::string type
Type of the button, must be web_app.
Definition Types.h:8563
std::string text
Text on the button.
Definition Types.h:8567
std::shared_ptr< MenuButtonWebApp > Ptr
Definition Types.h:8556
std::shared_ptr< WebAppInfo > webApp
Description of the Web App that will be launched when the user presses the button....
Definition Types.h:8575
This object represents a service message about a change in auto-delete timer settings.
Definition Types.h:9160
std::shared_ptr< MessageAutoDeleteTimerChanged > Ptr
Definition Types.h:9161
std::uint32_t messageAutoDeleteTime
New auto-delete time for messages in the chat; in seconds.
Definition Types.h:9166
This object represents one special entity in a text message. For example, hashtags,...
Definition Types.h:9177
std::optional< std::int32_t > unixTime
Optional. For “date_time” only, the Unix time associated with the entity.
Definition Types.h:9246
std::shared_ptr< MessageEntity > Ptr
Definition Types.h:9178
std::optional< std::string > customEmojiId
Optional. For “custom_emoji” only, unique identifier of the custom emoji. Use getCustomEmojiStickers ...
Definition Types.h:9242
std::optional< std::string > dateTimeFormat
Optional. For “date_time” only, the string that defines the formatting of the date and time....
Definition Types.h:9251
std::uint32_t offset
Offset in UTF-16 code units to the start of the entity.
Definition Types.h:9221
std::shared_ptr< User > user
Optional. For “text_mention” only, the mentioned user.
Definition Types.h:9233
std::optional< std::string > language
Optional. For “pre” only, the programming language of the entity text.
Definition Types.h:9237
Type type
Type of the entity. Currently, can be “mention” (@username), “hashtag” (hashtag or hashtag@chatuserna...
Definition Types.h:9217
std::optional< std::string > url
Optional. For “text_link” only, URL that will be opened after user taps on the text.
Definition Types.h:9229
std::uint32_t length
Length of the entity in UTF-16 code units.
Definition Types.h:9225
This object describes an update about a user stopping message generation.
Definition Types.h:9264
std::optional< std::uint32_t > messageThreadId
Optional. Unique identifier of the message thread in which the message is generated.
Definition Types.h:9274
std::shared_ptr< MessageGenerationStopped > Ptr
Definition Types.h:9265
std::int64_t draftId
Unique identifier of the message draft which was stopped.
Definition Types.h:9278
std::shared_ptr< Chat > chat
Chat in which the message is generated.
Definition Types.h:9270
This object represents a message.
Definition Types.h:8585
std::shared_ptr< Sticker > sticker
Optional. Message is a sticker, information about the sticker.
Definition Types.h:8812
std::shared_ptr< RichMessage > richMessage
Optional. Message is a rich formatted message.
Definition Types.h:8782
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:8927
std::shared_ptr< GiftInfo > gift
Optional. Service message: a regular gift was sent or received.
Definition Types.h:8979
std::shared_ptr< CommunityChatRemoved > communityChatRemoved
Optional. Service message: chat or bot removed from a Community.
Definition Types.h:9035
std::shared_ptr< Giveaway > giveaway
Optional. The message is a scheduled giveaway message.
Definition Types.h:9072
std::shared_ptr< Animation > animation
Optional. Message is an animation, information about the animation. For backward compatibility,...
Definition Types.h:8787
std::shared_ptr< PassportData > passportData
Optional. Telegram Passport data.
Definition Types.h:9002
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:8768
std::shared_ptr< ForumTopicEdited > forumTopicEdited
Optional. Service message: forum topic edited.
Definition Types.h:9048
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:8721
std::shared_ptr< GiftInfo > giftUpgradeSent
Optional. Service message: upgrade of a gift was purchased after the gift was sent.
Definition Types.h:8987
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:8749
std::shared_ptr< WebAppData > webAppData
Optional. Service message: data sent by a Web App.
Definition Types.h:9145
std::shared_ptr< UsersShared > usersShared
Optional. Service message: users were shared with the bot.
Definition Types.h:8971
std::shared_ptr< ChatBackground > chatBackgroundSet
Optional. Service message: chat background set.
Definition Types.h:9015
std::shared_ptr< GiveawayWinners > giveawayWinners
Optional. A giveaway with public winners was completed.
Definition Types.h:9076
std::shared_ptr< Venue > venue
Optional. Message is a venue, information about the venue. For backward compatibility,...
Definition Types.h:8875
std::shared_ptr< Video > video
Optional. Message is a video, information about the video.
Definition Types.h:8820
std::shared_ptr< TextQuote > quote
Optional. For replies that quote part of the original message, the quoted part of the message.
Definition Types.h:8695
std::shared_ptr< RefundedPayment > refundedPayment
Optional. Message is a service message about a refunded payment, information about the payment....
Definition Types.h:8967
std::shared_ptr< GeneralForumTopicHidden > generalForumTopicHidden
Optional. Service message: the 'General' forum topic hidden.
Definition Types.h:9060
std::shared_ptr< Message > Ptr
Definition Types.h:8586
std::shared_ptr< VideoChatParticipantsInvited > videoChatParticipantsInvited
Optional. Service message: new participants invited to a video chat.
Definition Types.h:9141
std::shared_ptr< Location > location
Optional. Message is a shared location, information about the location.
Definition Types.h:8879
std::shared_ptr< ForumTopicClosed > forumTopicClosed
Optional. Service message: forum topic closed.
Definition Types.h:9052
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:8690
std::shared_ptr< MessageOrigin > forwardOrigin
Optional. Information about the original message for forwarded messages.
Definition Types.h:8668
std::shared_ptr< ChatBoostAdded > boostAdded
Optional. Service message: user boosted the chat.
Definition Types.h:9011
std::optional< bool > isAutomaticForward
Optional. True, if the message is a channel post that was automatically forwarded to the connected di...
Definition Types.h:8678
std::optional< bool > supergroupChatCreated
Optional. Service message: the supergroup has been created. This field can't be received in a message...
Definition Types.h:8920
std::shared_ptr< PaidMediaInfo > paidMedia
Optional. Message contains paid media; information about the paid media.
Definition Types.h:8804
std::optional< std::vector< std::shared_ptr< PhotoSize > > > newChatPhoto
Optional. A chat photo was change to this value.
Definition Types.h:8905
std::shared_ptr< Invoice > invoice
Optional. Message is an invoice for a payment, information about the invoice. More about payments »
Definition Types.h:8957
std::shared_ptr< CommunityChatAdded > communityChatAdded
Optional. Service message: chat or bot added to a Community.
Definition Types.h:9027
std::optional< std::string > mediaGroupId
Optional. The unique identifier inside this chat of a media message group this message belongs to.
Definition Types.h:8744
std::shared_ptr< Story > replyToStory
Optional. For replies to a story, the original story.
Definition Types.h:8699
std::shared_ptr< ChatOwnerLeft > chatOwnerLeft
Optional. Service message: chat owner has left.
Definition Types.h:8893
std::shared_ptr< Audio > audio
Optional. Message is an audio file, information about the file.
Definition Types.h:8791
std::shared_ptr< Contact > contact
Optional. Message is a shared contact, information about the contact.
Definition Types.h:8858
std::shared_ptr< GiveawayCreated > giveawayCreated
Optional. Service message: a scheduled giveaway was created.
Definition Types.h:9068
std::shared_ptr< Story > story
Optional. Message is a forwarded story.
Definition Types.h:8816
std::shared_ptr< VideoChatScheduled > videoChatScheduled
Optional. Service message: video chat scheduled.
Definition Types.h:9129
std::optional< std::uint32_t > paidStarCount
Optional. The number of Telegram Stars that were paid by the sender of the message to send it.
Definition Types.h:8754
std::shared_ptr< Checklist > checklist
Optional. Message is a checklist.
Definition Types.h:8854
std::optional< bool > showCaptionAboveMedia
Optional. True, if the caption must be shown above the message media or the widget.
Definition Types.h:8846
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:8842
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. For text messages, special entities like usernames, URLs, bot commands, etc....
Definition Types.h:8763
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:8716
std::optional< std::string > text
Optional. For text messages, the actual UTF-8 text of the message.
Definition Types.h:8758
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:8685
std::shared_ptr< CommunityChatJoined > communityChatJoined
Optional. Service message: chat was joined by a user from a Community.
Definition Types.h:9031
std::shared_ptr< UniqueGiftInfo > uniqueGift
Optional. Service message: a unique gift was sent or received.
Definition Types.h:8983
std::optional< bool > groupChatCreated
Optional. Service message: the group has been created.
Definition Types.h:8913
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:8884
std::optional< std::string > businessConnectionId
Optional. Unique identifier of the business connection from which the message was received....
Definition Types.h:8660
std::shared_ptr< ManagedBotCreated > managedBotCreated
Optional. Service message: user created a bot that will be managed by the current bot.
Definition Types.h:9084
std::shared_ptr< VideoChatStarted > videoChatStarted
Optional. Service message: video chat started.
Definition Types.h:9133
std::shared_ptr< LivePhoto > livePhoto
Optional. Message is a live photo, information about the live photo. For backward compatibility,...
Definition Types.h:8800
std::shared_ptr< ForumTopicReopened > forumTopicReopened
Optional. Service message: forum topic reopened.
Definition Types.h:9056
std::uint32_t messageId
Unique message identifier inside this chat; 0 for ephemeral messages. In specific instances (e....
Definition Types.h:8594
std::shared_ptr< User > from
Optional. Sender of the message; may be empty for messages sent to channels. For backward compatibili...
Definition Types.h:8609
std::optional< std::int64_t > migrateFromChatId
Optional. The supergroup has been migrated from a group with the specified identifier....
Definition Types.h:8947
std::optional< std::int32_t > editDate
Optional. Date the message was last edited in Unix time.
Definition Types.h:8725
std::shared_ptr< Document > document
Optional. Message is a general file, information about the file.
Definition Types.h:8795
std::shared_ptr< SuccessfulPayment > successfulPayment
Optional. Message is a service message about a successful payment, information about the payment....
Definition Types.h:8962
std::shared_ptr< PaidMessagesWaived > paidMessagesWaived
Optional. Service message: the sender of the message used a link of the other user,...
Definition Types.h:9093
std::optional< std::int64_t > migrateToChatId
Optional. The group has been migrated to a supergroup with the specified identifier....
Definition Types.h:8939
std::shared_ptr< PaidMessagePriceChanged > paidMessagePriceChanged
Optional. Service message: the price for paid messages has changed in the chat.
Definition Types.h:9088
std::optional< bool > hasMediaSpoiler
Optional. True, if the message media is covered by a spoiler animation.
Definition Types.h:8850
std::shared_ptr< VideoChatEnded > videoChatEnded
Optional. Service message: video chat ended.
Definition Types.h:9137
std::shared_ptr< PollOptionAdded > pollOptionAdded
Optional. Service message: answer option was added to a poll.
Definition Types.h:9097
std::shared_ptr< GiveawayCompleted > giveawayCompleted
Optional. Service message: a giveaway without public winners was completed.
Definition Types.h:9080
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:8998
std::shared_ptr< Poll > poll
Optional. Message is a native poll, information about the poll.
Definition Types.h:8870
std::shared_ptr< DirectMessagePriceChanged > directMessagePriceChanged
Optional. Service message: the price for paid messages in the corresponding direct messages chat of a...
Definition Types.h:9040
std::optional< bool > hasProtectedContent
Optional. True, if the message can't be forwarded.
Definition Types.h:8729
std::shared_ptr< PollOptionDeleted > pollOptionDeleted
Optional. Service message: answer option was deleted from a poll.
Definition Types.h:9101
std::shared_ptr< User > receiverUser
Optional. For ephemeral messages, the user who received the message.
Definition Types.h:8635
std::optional< bool > deleteChatPhoto
Optional. Service message: the chat photo was deleted.
Definition Types.h:8909
std::shared_ptr< SuggestedPostApproved > suggestedPostApproved
Optional. Service message: a suggested post was approved.
Definition Types.h:9105
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:8734
std::shared_ptr< SuggestedPostInfo > suggestedPostInfo
Optional. Information about suggested post parameters if the message is a suggested post in a channel...
Definition Types.h:8774
std::shared_ptr< GeneralForumTopicUnhidden > generalForumTopicUnhidden
Optional. Service message: the 'General' forum topic unhidden.
Definition Types.h:9064
std::shared_ptr< SuggestedPostRefunded > suggestedPostRefunded
Optional. Service message: payment for a suggested post was refunded.
Definition Types.h:9121
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:8889
std::shared_ptr< MessageAutoDeleteTimerChanged > messageAutoDeleteTimerChanged
Optional. Service message: auto-delete timer settings changed in the chat.
Definition Types.h:8931
std::shared_ptr< SuggestedPostPaid > suggestedPostPaid
Optional. Service message: payment for a suggested post was received.
Definition Types.h:9117
std::shared_ptr< ChatShared > chatShared
Optional. Service message: a chat was shared with the bot.
Definition Types.h:8975
std::shared_ptr< SuggestedPostApprovalFailed > suggestedPostApprovalFailed
Optional. Service message: approval of a suggested post has failed.
Definition Types.h:9109
std::uint32_t date
Date the message was sent in Unix time. It is always a positive number, representing a valid date.
Definition Types.h:8646
std::shared_ptr< Dice > dice
Optional. Message is a dice with random value.
Definition Types.h:8862
std::shared_ptr< DirectMessagesTopic > directMessagesTopic
Optional. Information about the direct messages chat topic that contains the message.
Definition Types.h:8603
std::shared_ptr< ChecklistTasksDone > checklistTasksDone
Optional. Service message: some tasks in a checklist were marked as done or not done.
Definition Types.h:9019
std::shared_ptr< Voice > voice
Optional. Message is a voice message, information about the file.
Definition Types.h:8828
std::optional< std::uint32_t > ephemeralMessageId
Optional. For ephemeral messages, identifier of the ephemeral message inside this chat....
Definition Types.h:8641
std::optional< std::string > replyToPollOptionId
Optional. Persistent identifier of the specific poll option that is being replied to.
Definition Types.h:8707
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url ...
Definition Types.h:9150
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:8617
std::optional< std::string > newChatTitle
Optional. A chat title was changed to this value.
Definition Types.h:8901
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:8739
std::shared_ptr< ChatOwnerChanged > chatOwnerChanged
Optional. Service message: chat owner has changed.
Definition Types.h:8897
std::shared_ptr< VideoNote > videoNote
Optional. Message is a video note, information about the video message.
Definition Types.h:8824
std::optional< std::string > senderTag
Optional. Tag or custom title of the sender of the message; for supergroups only.
Definition Types.h:8631
std::shared_ptr< ProximityAlertTriggered > proximityAlertTriggered
Optional. Service message: a user in the chat triggered another user's proximity alert while sharing ...
Definition Types.h:9007
std::optional< std::string > effectId
Optional. Unique identifier of the message effect added to the message.
Definition Types.h:8778
std::shared_ptr< Chat > chat
Chat the message belongs to.
Definition Types.h:8664
std::shared_ptr< Widget > widget
Optional. Message is an HTML widget, information about the widget.
Definition Types.h:8832
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:8673
std::shared_ptr< ChecklistTasksAdded > checklistTasksAdded
Optional. Service message: tasks were added to a checklist.
Definition Types.h:9023
std::shared_ptr< TonWalletTransfer > tonWalletTransfer
Optional. Service message: a transfer with a TON wallet.
Definition Types.h:9125
std::shared_ptr< User > senderBusinessBot
Optional. The bot that actually sent the message on behalf of the business account....
Definition Types.h:8627
std::optional< std::uint32_t > senderBoostCount
Optional. If the sender of the message boosted the chat, the number of boosts added by the user.
Definition Types.h:8622
std::shared_ptr< User > viaBot
Optional. Bot through which the message was sent.
Definition Types.h:8711
std::shared_ptr< ForumTopicCreated > forumTopicCreated
Optional. Service message: forum topic created.
Definition Types.h:9044
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:8952
std::optional< std::string > caption
Optional. Caption for the animation, audio, document, live photo, paid media, photo,...
Definition Types.h:8837
std::optional< std::uint32_t > replyToChecklistTaskId
Optional. Identifier of the specific checklist task that is being replied to.
Definition Types.h:8703
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:8992
std::shared_ptr< Game > game
Optional. Message is a game, information about the game. More about games »
Definition Types.h:8866
std::optional< std::string > guestQueryId
Optional. The unique identifier for the guest query. Use this identifier with the method answerGuestQ...
Definition Types.h:8653
std::optional< std::uint32_t > messageThreadId
Optional. Unique identifier of a message thread or forum topic to which the message belongs; for supe...
Definition Types.h:8599
std::shared_ptr< SuggestedPostDeclined > suggestedPostDeclined
Optional. Service message: a suggested post was declined.
Definition Types.h:9113
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Message is a photo, available sizes of the photo.
Definition Types.h:8808
This object represents a unique message identifier.
Definition Types.h:9288
std::uint32_t messageId
Unique message identifier. In specific instances (e.g., message containing a video sent to a big chat...
Definition Types.h:9297
std::shared_ptr< MessageId > Ptr
Definition Types.h:9289
The message was originally sent to a channel chat.
Definition Types.h:9323
std::optional< std::string > authorSignature
Optional. Signature of the original post author.
Definition Types.h:9347
std::shared_ptr< MessageOriginChannel > Ptr
Definition Types.h:9324
std::int32_t date
Date the message was sent originally in Unix time.
Definition Types.h:9335
static TGBOT_API const std::string TYPE
Definition Types.h:9326
std::uint32_t messageId
Unique message identifier inside the chat.
Definition Types.h:9343
std::shared_ptr< Chat > chat
Channel chat to which the message was originally sent.
Definition Types.h:9339
std::string type
Type of the message origin, always “channel”
Definition Types.h:9331
The message was originally sent on behalf of a chat to a group chat.
Definition Types.h:9357
std::optional< std::string > authorSignature
Optional. For messages originally sent by an anonymous chat administrator, original message author si...
Definition Types.h:9378
std::string type
Type of the message origin, always “chat”
Definition Types.h:9365
std::shared_ptr< MessageOriginChat > Ptr
Definition Types.h:9358
std::int32_t date
Date the message was sent originally in Unix time.
Definition Types.h:9369
static TGBOT_API const std::string TYPE
Definition Types.h:9360
std::shared_ptr< Chat > senderChat
Chat that sent the message originally.
Definition Types.h:9373
The message was originally sent by an unknown user.
Definition Types.h:9388
std::shared_ptr< MessageOriginHiddenUser > Ptr
Definition Types.h:9389
static TGBOT_API const std::string TYPE
Definition Types.h:9391
std::int32_t date
Date the message was sent originally in Unix time.
Definition Types.h:9400
std::string senderUserName
Name of the user that sent the message originally.
Definition Types.h:9404
std::string type
Type of the message origin, always “hidden_user”
Definition Types.h:9396
This object describes the origin of a message. It can be one of MessageOriginUser MessageOriginHidden...
Definition Types.h:9308
std::shared_ptr< MessageOrigin > Ptr
Definition Types.h:9309
std::variant< std::shared_ptr< MessageOriginUser >, std::shared_ptr< MessageOriginHiddenUser >, std::shared_ptr< MessageOriginChat >, std::shared_ptr< MessageOriginChannel > > value
Definition Types.h:9313
The message was originally sent by a known user.
Definition Types.h:9414
static TGBOT_API const std::string TYPE
Definition Types.h:9417
std::string type
Type of the message origin, always “user”
Definition Types.h:9422
std::shared_ptr< MessageOriginUser > Ptr
Definition Types.h:9415
std::int32_t date
Date the message was sent originally in Unix time.
Definition Types.h:9426
std::shared_ptr< User > senderUser
User that sent the message originally.
Definition Types.h:9430
This object represents reaction changes on a message with anonymous reactions.
Definition Types.h:9440
std::uint32_t messageId
Unique message identifier inside the chat.
Definition Types.h:9450
std::vector< std::shared_ptr< ReactionCount > > reactions
List of reactions that are present on the message.
Definition Types.h:9458
std::int32_t date
Date of the change in Unix time.
Definition Types.h:9454
std::shared_ptr< Chat > chat
The chat containing the message.
Definition Types.h:9446
std::shared_ptr< MessageReactionCountUpdated > Ptr
Definition Types.h:9441
This object represents a change of a reaction on a message performed by a user.
Definition Types.h:9468
std::vector< std::shared_ptr< ReactionType > > newReaction
New list of reaction types that have been set by the user.
Definition Types.h:9498
std::vector< std::shared_ptr< ReactionType > > oldReaction
Previous list of reaction types that were set by the user.
Definition Types.h:9494
std::shared_ptr< Chat > actorChat
Optional. The chat on behalf of which the reaction was changed, if the user is anonymous.
Definition Types.h:9486
std::uint32_t messageId
Unique identifier of the message inside the chat.
Definition Types.h:9478
std::shared_ptr< User > user
Optional. The user that changed the reaction, if the user isn't anonymous.
Definition Types.h:9482
std::int32_t date
Date of the change in Unix time.
Definition Types.h:9490
std::shared_ptr< MessageReactionUpdated > Ptr
Definition Types.h:9469
std::shared_ptr< Chat > chat
The chat containing the message the user reacted to.
Definition Types.h:9474
This object represents information about an order.
Definition Types.h:9508
std::optional< std::string > phoneNumber
Optional. User's phone number.
Definition Types.h:9518
std::optional< std::string > name
Optional. User name.
Definition Types.h:9514
std::optional< std::string > email
Optional. User email.
Definition Types.h:9522
std::shared_ptr< ShippingAddress > shippingAddress
Optional. User shipping address.
Definition Types.h:9526
std::shared_ptr< OrderInfo > Ptr
Definition Types.h:9509
This object describes a gift received and owned by a user or a chat. Currently, it can be one of Owne...
Definition Types.h:9537
std::shared_ptr< OwnedGift > Ptr
Definition Types.h:9538
std::variant< std::shared_ptr< OwnedGiftRegular >, std::shared_ptr< OwnedGiftUnique > > value
Definition Types.h:9540
Describes a regular gift owned by a user or a chat.
Definition Types.h:9550
static TGBOT_API const std::string TYPE
Definition Types.h:9553
std::optional< bool > wasRefunded
Optional. True, if the gift was refunded and isn't available anymore.
Definition Types.h:9602
std::optional< std::uint32_t > convertStarCount
Optional. Number of Telegram Stars that can be claimed by the receiver instead of the gift; omitted i...
Definition Types.h:9608
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:9593
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the text.
Definition Types.h:9583
std::optional< std::uint32_t > uniqueGiftNumber
Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift.
Definition Types.h:9622
std::optional< std::uint32_t > prepaidUpgradeStarCount
Optional. Number of Telegram Stars that were paid for the ability to upgrade the gift.
Definition Types.h:9612
std::optional< bool > isPrivate
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise,...
Definition Types.h:9588
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:9567
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:9598
std::string type
Type of the gift, always “regular”
Definition Types.h:9558
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:9617
std::optional< std::string > text
Optional. Text of the message that was added to the gift.
Definition Types.h:9579
std::shared_ptr< User > senderUser
Optional. Sender of the gift if it is a known user.
Definition Types.h:9571
std::shared_ptr< Gift > gift
Information about the regular gift.
Definition Types.h:9562
std::shared_ptr< OwnedGiftRegular > Ptr
Definition Types.h:9551
std::int32_t sendDate
Date the gift was sent in Unix time.
Definition Types.h:9575
Describes a unique gift received and owned by a user or a chat.
Definition Types.h:9632
std::shared_ptr< OwnedGiftUnique > Ptr
Definition Types.h:9633
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:9649
std::string type
Type of the gift, always “unique”
Definition Types.h:9640
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:9677
std::shared_ptr< UniqueGift > gift
Information about the unique gift.
Definition Types.h:9644
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:9662
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:9667
std::int32_t sendDate
Date the gift was sent in Unix time.
Definition Types.h:9657
std::shared_ptr< User > senderUser
Optional. Sender of the gift if it is a known user.
Definition Types.h:9653
std::optional< std::uint32_t > transferStarCount
Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot ...
Definition Types.h:9672
static TGBOT_API const std::string TYPE
Definition Types.h:9635
Contains the list of gifts received and owned by a user or a chat.
Definition Types.h:9687
std::uint32_t totalCount
The total number of gifts owned by the user or the chat.
Definition Types.h:9693
std::vector< std::shared_ptr< OwnedGift > > gifts
The list of gifts.
Definition Types.h:9697
std::shared_ptr< OwnedGifts > Ptr
Definition Types.h:9688
std::optional< std::string > nextOffset
Optional. Offset for the next request. If empty, then there are no more results.
Definition Types.h:9701
This object describes paid media. Currently, it can be one of PaidMediaLivePhoto PaidMediaPhoto PaidM...
Definition Types.h:9712
std::shared_ptr< PaidMedia > Ptr
Definition Types.h:9713
std::variant< std::shared_ptr< PaidMediaLivePhoto >, std::shared_ptr< PaidMediaPhoto >, std::shared_ptr< PaidMediaPreview >, std::shared_ptr< PaidMediaVideo > > value
Definition Types.h:9717
Describes the paid media added to a message.
Definition Types.h:9727
std::vector< std::shared_ptr< PaidMedia > > paidMedia
Information about the paid media.
Definition Types.h:9737
std::shared_ptr< PaidMediaInfo > Ptr
Definition Types.h:9728
std::uint32_t starCount
The number of Telegram Stars that must be paid to buy access to the media.
Definition Types.h:9733
The paid media is a live photo.
Definition Types.h:9747
std::shared_ptr< PaidMediaLivePhoto > Ptr
Definition Types.h:9748
std::shared_ptr< LivePhoto > livePhoto
The photo.
Definition Types.h:9759
static TGBOT_API const std::string TYPE
Definition Types.h:9750
std::string type
Type of the paid media, always “live_photo”
Definition Types.h:9755
The paid media is a photo.
Definition Types.h:9769
static TGBOT_API const std::string TYPE
Definition Types.h:9772
std::string type
Type of the paid media, always “photo”
Definition Types.h:9777
std::vector< std::shared_ptr< PhotoSize > > photo
The photo.
Definition Types.h:9781
std::shared_ptr< PaidMediaPhoto > Ptr
Definition Types.h:9770
The paid media isn't available before the payment.
Definition Types.h:9791
std::optional< std::uint32_t > width
Optional. Media width as defined by the sender.
Definition Types.h:9803
std::optional< std::uint32_t > height
Optional. Media height as defined by the sender.
Definition Types.h:9807
std::shared_ptr< PaidMediaPreview > Ptr
Definition Types.h:9792
static TGBOT_API const std::string TYPE
Definition Types.h:9794
std::string type
Type of the paid media, always “preview”
Definition Types.h:9799
std::optional< std::uint32_t > duration
Optional. Duration of the media in seconds as defined by the sender.
Definition Types.h:9811
This object contains information about a paid media purchase.
Definition Types.h:9821
std::shared_ptr< User > from
User who purchased the media.
Definition Types.h:9827
std::string paidMediaPayload
Bot-specified paid media payload.
Definition Types.h:9831
std::shared_ptr< PaidMediaPurchased > Ptr
Definition Types.h:9822
The paid media is a video.
Definition Types.h:9841
std::shared_ptr< PaidMediaVideo > Ptr
Definition Types.h:9842
static TGBOT_API const std::string TYPE
Definition Types.h:9844
std::shared_ptr< Video > video
The video.
Definition Types.h:9853
std::string type
Type of the paid media, always “video”
Definition Types.h:9849
Describes a service message about a change in the price of paid messages within a chat.
Definition Types.h:9863
std::uint32_t paidMessageStarCount
The new number of Telegram Stars that must be paid by non-administrator users of the supergroup chat ...
Definition Types.h:9870
std::shared_ptr< PaidMessagePriceChanged > Ptr
Definition Types.h:9864
Describes a service message about the sender of the message using a link of the other user,...
Definition Types.h:9882
std::shared_ptr< PaidMessagesWaived > Ptr
Definition Types.h:9883
Describes Telegram Passport data shared with the bot by the user.
Definition Types.h:9893
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:9900
std::shared_ptr< EncryptedCredentials > credentials
Encrypted credentials required to decrypt the data.
Definition Types.h:9904
std::shared_ptr< PassportData > Ptr
Definition Types.h:9894
Represents an issue in one of the data fields that was provided by the user. The error is considered ...
Definition Types.h:9938
std::string source
Error source, must be data.
Definition Types.h:9946
std::string message
Error message.
Definition Types.h:9964
static TGBOT_API const std::string SOURCE
Definition Types.h:9941
std::shared_ptr< PassportElementErrorDataField > Ptr
Definition Types.h:9939
std::string type
The section of the user's Telegram Passport which has the error, one of “personal_details”,...
Definition Types.h:9952
std::string dataHash
Base64-encoded data hash.
Definition Types.h:9960
std::string fieldName
Name of the data field which has the error.
Definition Types.h:9956
Represents an issue with a document scan. The error is considered resolved when the file with the doc...
Definition Types.h:9975
std::string type
The section of the user's Telegram Passport which has the issue, one of “utility_bill”,...
Definition Types.h:9988
std::string message
Error message.
Definition Types.h:9996
std::shared_ptr< PassportElementErrorFile > Ptr
Definition Types.h:9976
static TGBOT_API const std::string SOURCE
Definition Types.h:9978
std::string fileHash
Base64-encoded file hash.
Definition Types.h:9992
std::string source
Error source, must be file.
Definition Types.h:9983
Represents an issue with a list of scans. The error is considered resolved when the list of files con...
Definition Types.h:10007
std::string message
Error message.
Definition Types.h:10028
std::string source
Error source, must be files.
Definition Types.h:10015
std::shared_ptr< PassportElementErrorFiles > Ptr
Definition Types.h:10008
static TGBOT_API const std::string SOURCE
Definition Types.h:10010
std::string type
The section of the user's Telegram Passport which has the issue, one of “utility_bill”,...
Definition Types.h:10020
std::vector< std::string > fileHashes
List of base64-encoded file hashes.
Definition Types.h:10024
Represents an issue with the front side of a document. The error is considered resolved when the file...
Definition Types.h:10039
std::string fileHash
Base64-encoded hash of the file with the front side of the document.
Definition Types.h:10056
std::string message
Error message.
Definition Types.h:10060
std::shared_ptr< PassportElementErrorFrontSide > Ptr
Definition Types.h:10040
static TGBOT_API const std::string SOURCE
Definition Types.h:10042
std::string source
Error source, must be front_side.
Definition Types.h:10047
std::string type
The section of the user's Telegram Passport which has the issue, one of “passport”,...
Definition Types.h:10052
This object represents an error in the Telegram Passport element which was submitted that should be r...
Definition Types.h:9918
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:9927
std::shared_ptr< PassportElementError > Ptr
Definition Types.h:9919
Represents an issue with the reverse side of a document. The error is considered resolved when the fi...
Definition Types.h:10071
std::string source
Error source, must be reverse_side.
Definition Types.h:10079
std::shared_ptr< PassportElementErrorReverseSide > Ptr
Definition Types.h:10072
static TGBOT_API const std::string SOURCE
Definition Types.h:10074
std::string message
Error message.
Definition Types.h:10092
std::string type
The section of the user's Telegram Passport which has the issue, one of “driver_license”,...
Definition Types.h:10084
std::string fileHash
Base64-encoded hash of the file with the reverse side of the document.
Definition Types.h:10088
Represents an issue with the selfie with a document. The error is considered resolved when the file w...
Definition Types.h:10103
std::string fileHash
Base64-encoded hash of the file with the selfie.
Definition Types.h:10120
static TGBOT_API const std::string SOURCE
Definition Types.h:10106
std::shared_ptr< PassportElementErrorSelfie > Ptr
Definition Types.h:10104
std::string type
The section of the user's Telegram Passport which has the issue, one of “passport”,...
Definition Types.h:10116
std::string source
Error source, must be selfie.
Definition Types.h:10111
std::string message
Error message.
Definition Types.h:10124
Represents an issue with one of the files that constitute the translation of a document....
Definition Types.h:10135
std::string source
Error source, must be translation_file.
Definition Types.h:10143
std::string fileHash
Base64-encoded file hash.
Definition Types.h:10153
std::shared_ptr< PassportElementErrorTranslationFile > Ptr
Definition Types.h:10136
std::string message
Error message.
Definition Types.h:10157
static TGBOT_API const std::string SOURCE
Definition Types.h:10138
std::string type
Type of element of the user's Telegram Passport which has the issue, one of “passport”,...
Definition Types.h:10149
Represents an issue with the translated version of a document. The error is considered resolved when ...
Definition Types.h:10168
static TGBOT_API const std::string SOURCE
Definition Types.h:10171
std::vector< std::string > fileHashes
List of base64-encoded file hashes.
Definition Types.h:10186
std::shared_ptr< PassportElementErrorTranslationFiles > Ptr
Definition Types.h:10169
std::string message
Error message.
Definition Types.h:10190
std::string source
Error source, must be translation_files.
Definition Types.h:10176
std::string type
Type of element of the user's Telegram Passport which has the issue, one of “passport”,...
Definition Types.h:10182
Represents an issue in an unspecified place. The error is considered resolved when new data is added.
Definition Types.h:10201
std::string elementHash
Base64-encoded element hash.
Definition Types.h:10217
std::string message
Error message.
Definition Types.h:10221
static TGBOT_API const std::string SOURCE
Definition Types.h:10204
std::string source
Error source, must be unspecified.
Definition Types.h:10209
std::shared_ptr< PassportElementErrorUnspecified > Ptr
Definition Types.h:10202
std::string type
Type of element of the user's Telegram Passport which has the issue.
Definition Types.h:10213
This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files ar...
Definition Types.h:10232
std::int32_t fileDate
Unix time when the file was uploaded.
Definition Types.h:10251
std::uint32_t fileSize
File size in bytes.
Definition Types.h:10247
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:10238
std::shared_ptr< PassportFile > Ptr
Definition Types.h:10233
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:10243
This object represents one size of a photo or a file / sticker thumbnail.
Definition Types.h:10261
std::uint32_t width
Photo width.
Definition Types.h:10276
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:10272
std::uint32_t height
Photo height.
Definition Types.h:10280
std::optional< std::uint32_t > fileSize
Optional. File size in bytes.
Definition Types.h:10284
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:10267
std::shared_ptr< PhotoSize > Ptr
Definition Types.h:10262
Arguments for Api::pinChatMessage.
Definition Types.h:17858
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:17863
bool disableNotification
Pass True if it is not necessary to send a notification to all chat members about the new pinned mess...
Definition Types.h:17881
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be pinned.
Definition Types.h:17874
std::uint32_t messageId
Identifier of a message to pin.
Definition Types.h:17868
This object represents an answer of a user in a non-anonymous poll.
Definition Types.h:10399
std::shared_ptr< User > user
Optional. The user that changed the answer to the poll, if the voter isn't anonymous.
Definition Types.h:10413
std::string pollId
Unique poll identifier.
Definition Types.h:10405
std::vector< std::uint32_t > optionIds
0-based identifiers of chosen answer options. May be empty if the vote was retracted.
Definition Types.h:10417
std::shared_ptr< Chat > voterChat
Optional. The chat that changed the answer to the poll, if the voter is anonymous.
Definition Types.h:10409
std::vector< std::string > optionPersistentIds
Persistent identifiers of the chosen answer options. May be empty if the vote was retracted.
Definition Types.h:10422
std::shared_ptr< PollAnswer > Ptr
Definition Types.h:10400
This object contains information about a poll.
Definition Types.h:10294
bool isAnonymous
True, if the poll is anonymous.
Definition Types.h:10325
std::optional< std::int32_t > closeDate
Optional. Point in time (Unix timestamp) when the poll will be automatically closed.
Definition Types.h:10376
std::optional< std::uint32_t > openPeriod
Optional. Amount of time in seconds the poll will be active after creation.
Definition Types.h:10372
bool isClosed
True, if the poll is closed.
Definition Types.h:10321
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:10385
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:10359
std::uint32_t totalVoterCount
Total number of users that voted in the poll.
Definition Types.h:10317
std::vector< std::shared_ptr< PollOption > > options
List of poll options.
Definition Types.h:10313
std::optional< std::string > description
Optional. Description of the poll; for polls inside the Message object only.
Definition Types.h:10380
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:10342
bool allowsMultipleAnswers
True, if the poll allows multiple answers.
Definition Types.h:10333
std::shared_ptr< PollMedia > explanationMedia
Optional. Media added to the quiz explanation.
Definition Types.h:10368
std::shared_ptr< PollMedia > media
Optional. Media added to the poll description; for polls inside the Message object only.
Definition Types.h:10389
std::optional< std::vector< std::uint32_t > > correctOptionIds
Optional. Array of 0-based identifiers of the correct answer options. Available only for polls in qui...
Definition Types.h:10354
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:10364
bool allowsRevoting
True, if the poll allows to change the chosen answer options.
Definition Types.h:10337
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:10309
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:10348
std::string type
Poll type, currently can be “regular” or “quiz”
Definition Types.h:10329
std::shared_ptr< Poll > Ptr
Definition Types.h:10295
std::string question
Poll question, 1-300 characters.
Definition Types.h:10304
At most one of the optional fields can be present in any given object.
Definition Types.h:10432
std::optional< std::vector< std::shared_ptr< PhotoSize > > > photo
Optional. Media is a photo, available sizes of the photo.
Definition Types.h:10464
std::shared_ptr< Location > location
Optional. Media is a shared location, information about the location.
Definition Types.h:10460
std::shared_ptr< PollMedia > Ptr
Definition Types.h:10433
std::shared_ptr< Animation > animation
Optional. Media is an animation, information about the animation.
Definition Types.h:10438
std::shared_ptr< Venue > venue
Optional. Media is a venue, information about the venue.
Definition Types.h:10473
std::shared_ptr< Link > link
Optional. The HTTP link attached to the poll option.
Definition Types.h:10452
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:10448
std::shared_ptr< Sticker > sticker
Optional. Media is a sticker, information about the sticker; currently, for poll options only.
Definition Types.h:10469
std::shared_ptr< LivePhoto > livePhoto
Optional. Media is a live photo, information about the live photo.
Definition Types.h:10456
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:10443
std::shared_ptr< Video > video
Optional. Media is a video, information about the video.
Definition Types.h:10477
Describes a service message about an option added to a poll.
Definition Types.h:10535
std::optional< std::vector< std::shared_ptr< MessageEntity > > > optionTextEntities
Optional. Special entities that appear in the option_text.
Definition Types.h:10555
std::string optionPersistentId
Unique identifier of the added option.
Definition Types.h:10547
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:10543
std::string optionText
Option text.
Definition Types.h:10551
std::shared_ptr< PollOptionAdded > Ptr
Definition Types.h:10536
Describes a service message about an option deleted from a poll.
Definition Types.h:10565
std::optional< std::vector< std::shared_ptr< MessageEntity > > > optionTextEntities
Optional. Special entities that appear in the option_text.
Definition Types.h:10585
std::shared_ptr< MaybeInaccessibleMessage > pollMessage
Optional. Message containing the poll from which the option was deleted, if known....
Definition Types.h:10573
std::string optionText
Option text.
Definition Types.h:10581
std::shared_ptr< PollOptionDeleted > Ptr
Definition Types.h:10566
std::string optionPersistentId
Unique identifier of the deleted option.
Definition Types.h:10577
This object contains information about one answer option in a poll.
Definition Types.h:10487
std::string text
Option text, 1-100 characters.
Definition Types.h:10497
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:10525
std::string persistentId
Unique identifier of the option, persistent on option addition and deletion.
Definition Types.h:10493
std::shared_ptr< PollOption > Ptr
Definition Types.h:10488
std::uint32_t voterCount
Number of users who voted for this option; may be 0 if unknown.
Definition Types.h:10510
std::shared_ptr< PollMedia > media
Optional. Media added to the poll option.
Definition Types.h:10506
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:10502
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:10520
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:10515
Arguments for Api::postStory.
Definition Types.h:17888
std::vector< std::shared_ptr< StoryArea > > areas
A JSON-serialized list of clickable areas to be shown on the story.
Definition Types.h:17908
bool protectContent
Pass True if the content of the story must be protected from forwarding and screenshotting.
Definition Types.h:17936
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:17919
std::string caption
Caption of the story, 0-2048 characters after entities parsing.
Definition Types.h:17913
bool postToChatPage
Pass True to keep the story accessible after it expires.
Definition Types.h:17930
std::uint32_t activePeriod
Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600,...
Definition Types.h:17893
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:17943
std::shared_ptr< InputStoryContent > content
Content of the story.
Definition Types.h:17903
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:17898
std::string parseMode
Mode for parsing entities in the story caption. See formatting options for more details.
Definition Types.h:17925
This object contains information about an incoming pre-checkout query.
Definition Types.h:10595
std::shared_ptr< PreCheckoutQuery > Ptr
Definition Types.h:10596
std::optional< std::string > shippingOptionId
Optional. Identifier of the shipping option chosen by the user.
Definition Types.h:10624
std::shared_ptr< OrderInfo > orderInfo
Optional. Order information provided by the user.
Definition Types.h:10628
std::uint64_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
Definition Types.h:10616
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:10620
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
Definition Types.h:10609
std::shared_ptr< User > from
User who sent the query.
Definition Types.h:10605
Describes an inline message to be sent by a user of a Mini App.
Definition Types.h:10638
std::shared_ptr< PreparedInlineMessage > Ptr
Definition Types.h:10639
std::int32_t expirationDate
Expiration date of the prepared message, in Unix time. Expired prepared messages can no longer be use...
Definition Types.h:10649
Describes a keyboard button to be used by a user of a Mini App.
Definition Types.h:10659
std::shared_ptr< PreparedKeyboardButton > Ptr
Definition Types.h:10660
Arguments for Api::promoteChatMember.
Definition Types.h:17950
bool canManageDirectMessages
Pass True if the administrator can manage direct messages within the channel and decline suggested po...
Definition Types.h:18055
bool canInviteUsers
Pass True if the administrator can invite new users to the chat.
Definition Types.h:17988
bool canRestrictMembers
Pass True if the administrator can restrict, ban or unban chat members, or access supergroup statisti...
Definition Types.h:18026
bool canPromoteMembers
Pass True if the administrator can add new administrators with a subset of their own privileges or de...
Definition Types.h:18001
bool canDeleteMessages
Pass True if the administrator can delete messages of other users.
Definition Types.h:17983
bool canChangeInfo
Pass True if the administrator can change chat title, photo and other settings.
Definition Types.h:17966
bool canPostStories
Pass True if the administrator can post stories to the chat.
Definition Types.h:18037
bool canSendWelcomeMessages
Pass True if the administrator can manage chat welcome messages or directly send them in the case of ...
Definition Types.h:18067
bool canDeleteStories
Pass True if the administrator can delete stories posted by other users.
Definition Types.h:18049
bool isAnonymous
Pass True if the administrator's presence in the chat is hidden.
Definition Types.h:18006
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:17955
bool canManageTags
Pass True if the administrator can edit the tags of regular members; for groups and supergroups only.
Definition Types.h:18061
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:17960
bool canPostMessages
Pass True if the administrator can post messages in the channel, approve suggested posts,...
Definition Types.h:17972
bool canEditMessages
Pass True if the administrator can edit messages of other users and can pin messages; for channels on...
Definition Types.h:17978
bool canManageVideoChats
Pass True if the administrator can manage video chats.
Definition Types.h:18019
bool canManageTopics
Pass True if the user is allowed to create, rename, close, and reopen forum topics; for supergroups o...
Definition Types.h:18032
bool canManageChat
Pass True if the administrator can access the chat event log, get boost list, see hidden supergroup a...
Definition Types.h:18014
bool canEditStories
Pass True if the administrator can edit stories posted by other users, post stories to the chat page,...
Definition Types.h:18044
bool canPinMessages
Pass True if the administrator can pin messages; for supergroups only.
Definition Types.h:17993
This object represents the content of a service message, sent whenever a user in the chat triggers a ...
Definition Types.h:10676
std::shared_ptr< ProximityAlertTriggered > Ptr
Definition Types.h:10677
std::shared_ptr< User > watcher
User that set the alert.
Definition Types.h:10686
std::shared_ptr< User > traveler
User that triggered the alert.
Definition Types.h:10682
std::uint32_t distance
The distance between the users.
Definition Types.h:10690
Represents a reaction added to a message along with the number of times it was added.
Definition Types.h:10700
std::shared_ptr< ReactionType > type
Type of the reaction.
Definition Types.h:10706
std::uint32_t totalCount
Number of times the reaction was added.
Definition Types.h:10710
std::shared_ptr< ReactionCount > Ptr
Definition Types.h:10701
The reaction is based on a custom emoji.
Definition Types.h:10736
static TGBOT_API const std::string TYPE
Definition Types.h:10739
std::string customEmojiId
Custom emoji identifier.
Definition Types.h:10748
std::shared_ptr< ReactionTypeCustomEmoji > Ptr
Definition Types.h:10737
std::string type
Type of the reaction, always “custom_emoji”
Definition Types.h:10744
The reaction is based on an emoji.
Definition Types.h:10758
static TGBOT_API const std::string TYPE
Definition Types.h:10761
std::string type
Type of the reaction, always “emoji”
Definition Types.h:10766
std::shared_ptr< ReactionTypeEmoji > Ptr
Definition Types.h:10759
std::string emoji
Reaction emoji. Currently, it can be one of "", "", "", "", "", "", "", "", "", "",...
Definition Types.h:10773
This object describes the type of a reaction. Currently, it can be one of ReactionTypeEmoji ReactionT...
Definition Types.h:10721
std::variant< std::shared_ptr< ReactionTypeEmoji >, std::shared_ptr< ReactionTypeCustomEmoji >, std::shared_ptr< ReactionTypePaid > > value
Definition Types.h:10726
std::shared_ptr< ReactionType > Ptr
Definition Types.h:10722
The reaction is paid.
Definition Types.h:10783
std::string type
Type of the reaction, always “paid”
Definition Types.h:10791
std::shared_ptr< ReactionTypePaid > Ptr
Definition Types.h:10784
static TGBOT_API const std::string TYPE
Definition Types.h:10786
Arguments for Api::readBusinessMessage.
Definition Types.h:18074
std::string businessConnectionId
Unique identifier of the business connection on behalf of which to read the message.
Definition Types.h:18085
std::uint32_t messageId
Unique identifier of the message to mark as read.
Definition Types.h:18090
std::variant< std::int64_t, std::string > chatId
Unique identifier of the chat in which the message was received. The chat must have been active in th...
Definition Types.h:18079
Arguments for Api::refundStarPayment.
Definition Types.h:18097
std::string telegramPaymentChargeId
Telegram payment identifier.
Definition Types.h:18101
std::uint64_t userId
Identifier of the user whose payment will be refunded.
Definition Types.h:18106
This object contains basic information about a refunded payment.
Definition Types.h:10801
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:10819
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently,...
Definition Types.h:10808
std::uint64_t totalAmount
Total refunded price in the smallest units of the currency (integer, not float/double)....
Definition Types.h:10815
std::optional< std::string > providerPaymentChargeId
Optional. Provider payment identifier.
Definition Types.h:10827
std::string telegramPaymentChargeId
Telegram payment identifier.
Definition Types.h:10823
std::shared_ptr< RefundedPayment > Ptr
Definition Types.h:10802
Arguments for Api::removeBusinessAccountProfilePhoto.
Definition Types.h:18113
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:18117
bool isPublic
Pass True to remove the public photo, which is visible even if the main photo is hidden by the busine...
Definition Types.h:18125
Arguments for Api::removeChatVerification.
Definition Types.h:18132
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot or channel in the format @usernam...
Definition Types.h:18137
Arguments for Api::removeUserVerification.
Definition Types.h:18144
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:18148
Arguments for Api::reopenForumTopic.
Definition Types.h:18155
std::uint32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
Definition Types.h:18165
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:18160
Arguments for Api::reopenGeneralForumTopic.
Definition Types.h:18172
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:18177
Arguments for Api::replaceManagedBotToken.
Definition Types.h:18184
std::uint64_t userId
User identifier of the managed bot whose token will be replaced.
Definition Types.h:18188
Arguments for Api::replaceStickerInSet.
Definition Types.h:18195
std::string name
Sticker set name.
Definition Types.h:18204
std::string oldSticker
File identifier of the replaced sticker.
Definition Types.h:18209
std::shared_ptr< InputSticker > sticker
A JSON-serialized object with information about the added sticker. If exactly the same sticker had al...
Definition Types.h:18216
std::uint64_t userId
User identifier of the sticker set owner.
Definition Types.h:18199
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:18223
This object represents a custom keyboard with reply options (see Introduction to bots for details and...
Definition Types.h:10839
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:10869
std::optional< bool > forceReply
Optional. Pass True if the reply interface must be shown to the user, as if they had manually selecte...
Definition Types.h:10883
std::shared_ptr< ReplyKeyboardMarkup > Ptr
Definition Types.h:10840
std::vector< std::vector< std::shared_ptr< KeyboardButton > > > keyboard
Array of button rows, each represented by an Array of KeyboardButton objects.
Definition Types.h:10845
std::optional< bool > selective
Optional. Use this parameter if you want to show the keyboard to specific users only....
Definition Types.h:10878
std::optional< bool > isPersistent
Optional. Requests clients to always show the keyboard when the regular keyboard is hidden....
Definition Types.h:10851
std::optional< bool > resizeKeyboard
Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g....
Definition Types.h:10857
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:10864
Upon receiving a message with this object, Telegram clients will remove the current custom keyboard a...
Definition Types.h:10897
bool removeKeyboard
Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you...
Definition Types.h:10905
std::optional< bool > selective
Optional. Use this parameter if you want to remove the keyboard for specific users only....
Definition Types.h:10914
std::shared_ptr< ReplyKeyboardRemove > Ptr
Definition Types.h:10898
Describes reply parameters for the message that is being sent.
Definition Types.h:10924
std::optional< std::vector< std::shared_ptr< RichText > > > quoteRichTexts
Optional. A JSON-serialized list of quoted parts of the rich message to be replied to....
Definition Types.h:10990
std::optional< std::variant< std::int64_t, std::string > > chatId
Optional. If the message to be replied to is from a different chat, unique identifier for the chat or...
Definition Types.h:10938
std::optional< std::string > pollOptionId
Optional. Persistent identifier of the specific poll option to be replied to.
Definition Types.h:11004
std::optional< std::uint32_t > quotePosition
Optional. Position of the quote in the original message in UTF-16 code units. For quotes from rich me...
Definition Types.h:10996
std::optional< std::uint32_t > messageId
Optional. Identifier of the message that will be replied to in the current chat, or in the chat chat_...
Definition Types.h:10931
std::optional< std::string > quote
Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing....
Definition Types.h:10959
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:10951
std::optional< std::uint32_t > checklistTaskId
Optional. Identifier of the specific checklist task to be replied to.
Definition Types.h:11000
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:10969
std::optional< std::string > quoteParseMode
Optional. Mode for parsing entities in the quote. See formatting options for more details.
Definition Types.h:10964
std::optional< std::uint32_t > ephemeralMessageId
Optional. Identifier of the incoming ephemeral message that will be replied to in the current chat....
Definition Types.h:10945
std::shared_ptr< ReplyParameters > Ptr
Definition Types.h:10925
Arguments for Api::repostStory.
Definition Types.h:18230
std::uint32_t activePeriod
Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600,...
Definition Types.h:18235
std::uint32_t fromStoryId
Unique identifier of the story that should be reposted.
Definition Types.h:18251
bool postToChatPage
Pass True to keep the story accessible after it expires.
Definition Types.h:18256
bool protectContent
Pass True if the content of the story must be protected from forwarding and screenshotting.
Definition Types.h:18262
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:18240
std::variant< std::int64_t, std::string > fromChatId
Unique identifier of the chat which posted the story that should be reposted.
Definition Types.h:18246
Describes why a request was unsuccessful.
Definition Types.h:11014
std::optional< std::uint32_t > retryAfter
Optional. In case of exceeding flood control, the number of seconds left to wait before the request c...
Definition Types.h:11029
std::optional< std::int64_t > migrateToChatId
Optional. The group has been migrated to a supergroup with the specified identifier....
Definition Types.h:11024
std::shared_ptr< ResponseParameters > Ptr
Definition Types.h:11015
Arguments for Api::restrictChatMember.
Definition Types.h:18269
std::int32_t untilDate
Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 36...
Definition Types.h:18291
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:18279
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:18274
bool useIndependentChatPermissions
Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_a...
Definition Types.h:18301
std::shared_ptr< ChatPermissions > permissions
A JSON-serialized object for new user permissions.
Definition Types.h:18284
The withdrawal failed and the transaction was refunded.
Definition Types.h:11056
std::shared_ptr< RevenueWithdrawalStateFailed > Ptr
Definition Types.h:11057
static TGBOT_API const std::string TYPE
Definition Types.h:11059
std::string type
Type of the state, always “failed”
Definition Types.h:11064
This object describes the state of a revenue withdrawal operation. Currently, it can be one of Revenu...
Definition Types.h:11041
std::variant< std::shared_ptr< RevenueWithdrawalStatePending >, std::shared_ptr< RevenueWithdrawalStateSucceeded >, std::shared_ptr< RevenueWithdrawalStateFailed > > value
Definition Types.h:11046
std::shared_ptr< RevenueWithdrawalState > Ptr
Definition Types.h:11042
The withdrawal is in progress.
Definition Types.h:11074
std::shared_ptr< RevenueWithdrawalStatePending > Ptr
Definition Types.h:11075
static TGBOT_API const std::string TYPE
Definition Types.h:11077
std::string type
Type of the state, always “pending”
Definition Types.h:11082
The withdrawal succeeded.
Definition Types.h:11092
std::string type
Type of the state, always “succeeded”
Definition Types.h:11100
std::shared_ptr< RevenueWithdrawalStateSucceeded > Ptr
Definition Types.h:11093
static TGBOT_API const std::string TYPE
Definition Types.h:11095
std::int32_t date
Date the withdrawal was completed in Unix time.
Definition Types.h:11104
std::string url
An HTTPS URL that can be used to see transaction details.
Definition Types.h:11108
A block with an anchor, corresponding to the HTML tag with the attribute name.
Definition Types.h:11148
static TGBOT_API const std::string TYPE
Definition Types.h:11151
std::shared_ptr< RichBlockAnchor > Ptr
Definition Types.h:11149
std::string name
The name of the anchor.
Definition Types.h:11160
std::string type
Type of the block, always “anchor”
Definition Types.h:11156
A block with an animation, corresponding to the HTML tag <video>.
Definition Types.h:11170
std::string type
Type of the block, always “animation”
Definition Types.h:11178
std::optional< bool > hasSpoiler
Optional. True, if the media preview is covered by a spoiler animation.
Definition Types.h:11186
std::shared_ptr< RichBlockAnimation > Ptr
Definition Types.h:11171
static TGBOT_API const std::string TYPE
Definition Types.h:11173
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11190
std::shared_ptr< Animation > animation
The animation.
Definition Types.h:11182
A block with a music file, corresponding to the HTML tag <audio>.
Definition Types.h:11200
std::shared_ptr< RichBlockAudio > Ptr
Definition Types.h:11201
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11216
std::string type
Type of the block, always “audio”
Definition Types.h:11208
static TGBOT_API const std::string TYPE
Definition Types.h:11203
std::shared_ptr< Audio > audio
The audio.
Definition Types.h:11212
A block quotation, corresponding to the HTML tag.
Definition Types.h:11226
std::vector< std::shared_ptr< RichBlock > > blocks
Content of the block.
Definition Types.h:11238
static TGBOT_API const std::string TYPE
Definition Types.h:11229
std::string type
Type of the block, always “blockquote”
Definition Types.h:11234
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:11242
std::shared_ptr< RichBlockBlockQuotation > Ptr
Definition Types.h:11227
A block containing a list of buttons that are shown in one row, corresponding to the custom HTML tag ...
Definition Types.h:11253
static TGBOT_API const std::string TYPE
Definition Types.h:11256
std::shared_ptr< RichBlockButtons > Ptr
Definition Types.h:11254
std::vector< std::shared_ptr< RichMessageButton > > buttons
The buttons.
Definition Types.h:11265
std::string type
Type of the block, always “buttons”
Definition Types.h:11261
std::optional< std::string > align
Optional. Horizontal alignment of the buttons. Currently, must be one of “left”, “center”,...
Definition Types.h:11270
Caption of a rich formatted block.
Definition Types.h:11280
std::shared_ptr< RichText > text
Block caption.
Definition Types.h:11286
std::shared_ptr< RichBlockCaption > Ptr
Definition Types.h:11281
std::shared_ptr< RichText > credit
Optional. Block credit which corresponds to the HTML tag .
Definition Types.h:11290
A collage, corresponding to the custom HTML tag <tg-collage>.
Definition Types.h:11300
std::vector< std::shared_ptr< RichBlock > > blocks
Elements of the collage.
Definition Types.h:11312
std::string type
Type of the block, always “collage”
Definition Types.h:11308
static TGBOT_API const std::string TYPE
Definition Types.h:11303
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11316
std::shared_ptr< RichBlockCollage > Ptr
Definition Types.h:11301
An expandable block for details disclosure, corresponding to the HTML tag.
Definition Types.h:11326
std::shared_ptr< RichBlockDetails > Ptr
Definition Types.h:11327
std::string type
Type of the block, always “details”
Definition Types.h:11334
std::shared_ptr< RichText > summary
Always shown summary of the block.
Definition Types.h:11338
std::vector< std::shared_ptr< RichBlock > > blocks
Content of the block.
Definition Types.h:11342
static TGBOT_API const std::string TYPE
Definition Types.h:11329
std::optional< bool > isOpen
Optional. True, if the content of the block is visible by default.
Definition Types.h:11346
A divider, corresponding to the HTML tag .
Definition Types.h:11356
std::string type
Type of the block, always “divider”
Definition Types.h:11364
static TGBOT_API const std::string TYPE
Definition Types.h:11359
std::shared_ptr< RichBlockDivider > Ptr
Definition Types.h:11357
A block with a general file, corresponding to the custom HTML tag <tg-document>.
Definition Types.h:11374
std::shared_ptr< Document > document
The document.
Definition Types.h:11386
std::shared_ptr< RichBlockDocument > Ptr
Definition Types.h:11375
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11390
std::string type
Type of the block, always “document”
Definition Types.h:11382
static TGBOT_API const std::string TYPE
Definition Types.h:11377
A block quotation, corresponding to the HTML tag.
Definition Types.h:11401
std::shared_ptr< RichBlockExpandableBlockQuotation > Ptr
Definition Types.h:11402
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:11417
static TGBOT_API const std::string TYPE
Definition Types.h:11404
std::shared_ptr< RichText > text
Content of the block.
Definition Types.h:11413
std::string type
Type of the block, always “expandable_blockquote”
Definition Types.h:11409
This object represents a block in a rich formatted message. Currently, it can be any of the following...
Definition Types.h:11124
std::variant< std::shared_ptr< RichBlockParagraph >, std::shared_ptr< RichBlockSectionHeading >, std::shared_ptr< RichBlockPreformatted >, std::shared_ptr< RichBlockFooter >, std::shared_ptr< RichBlockDivider >, std::shared_ptr< RichBlockMathematicalExpression >, std::shared_ptr< RichBlockAnchor >, std::shared_ptr< RichBlockList >, std::shared_ptr< RichBlockBlockQuotation >, std::shared_ptr< RichBlockExpandableBlockQuotation >, std::shared_ptr< RichBlockPullQuotation >, std::shared_ptr< RichBlockCollage >, std::shared_ptr< RichBlockSlideshow >, std::shared_ptr< RichBlockTable >, std::shared_ptr< RichBlockDetails >, std::shared_ptr< RichBlockMap >, std::shared_ptr< RichBlockButtons >, std::shared_ptr< RichBlockAnimation >, std::shared_ptr< RichBlockAudio >, std::shared_ptr< RichBlockDocument >, std::shared_ptr< RichBlockPhoto >, std::shared_ptr< RichBlockVideo >, std::shared_ptr< RichBlockVoiceNote >, std::shared_ptr< RichBlockThinking > > value
Definition Types.h:11138
std::shared_ptr< RichBlock > Ptr
Definition Types.h:11125
A list of blocks, corresponding to the HTML tag.
Definition Types.h:11449
static TGBOT_API const std::string TYPE
Definition Types.h:11452
std::vector< std::shared_ptr< RichBlockListItem > > items
Items of the list.
Definition Types.h:11461
std::string type
Type of the block, always “list”
Definition Types.h:11457
std::shared_ptr< RichBlockList > Ptr
Definition Types.h:11450
An item of a list.
Definition Types.h:11471
std::string label
Label of the item.
Definition Types.h:11477
std::shared_ptr< RichBlockListItem > Ptr
Definition Types.h:11472
std::optional< bool > hasCheckbox
Optional. True, if the item has a checkbox.
Definition Types.h:11485
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:11499
std::vector< std::shared_ptr< RichBlock > > blocks
The content of the item.
Definition Types.h:11481
std::optional< bool > isChecked
Optional. True, if the item has a checked checkbox.
Definition Types.h:11489
std::optional< std::int32_t > value
Optional. For ordered lists, the numeric value of the item label.
Definition Types.h:11493
A block with a map, corresponding to the custom HTML tag <tg-map>.
Definition Types.h:11509
std::shared_ptr< Location > location
Location of the center of the map.
Definition Types.h:11521
std::uint32_t height
Expected height of the map.
Definition Types.h:11533
static TGBOT_API const std::string TYPE
Definition Types.h:11512
std::shared_ptr< RichBlockMap > Ptr
Definition Types.h:11510
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11537
std::uint32_t width
Expected width of the map.
Definition Types.h:11529
std::string type
Type of the block, always “map”
Definition Types.h:11517
std::uint32_t zoom
Map zoom level.
Definition Types.h:11525
A block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag <tg-math...
Definition Types.h:11548
std::string type
Type of the block, always “mathematical_expression”
Definition Types.h:11556
std::shared_ptr< RichBlockMathematicalExpression > Ptr
Definition Types.h:11549
static TGBOT_API const std::string TYPE
Definition Types.h:11551
std::string expression
The mathematical expression in LaTeX format.
Definition Types.h:11560
A text paragraph, corresponding to the HTML tag.
Definition Types.h:11570
std::shared_ptr< RichBlockParagraph > Ptr
Definition Types.h:11571
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:11582
static TGBOT_API const std::string TYPE
Definition Types.h:11573
std::string type
Type of the block, always “paragraph”
Definition Types.h:11578
A block with a photo, corresponding to the HTML tag.
Definition Types.h:11592
std::optional< bool > hasSpoiler
Optional. True, if the media preview is covered by a spoiler animation.
Definition Types.h:11608
static TGBOT_API const std::string TYPE
Definition Types.h:11595
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11612
std::shared_ptr< RichBlockPhoto > Ptr
Definition Types.h:11593
std::string type
Type of the block, always “photo”
Definition Types.h:11600
std::vector< std::shared_ptr< PhotoSize > > photo
Available sizes of the photo.
Definition Types.h:11604
A preformatted text block, corresponding to the nested HTML tags.
Definition Types.h:11622
static TGBOT_API const std::string TYPE
Definition Types.h:11625
std::shared_ptr< RichBlockPreformatted > Ptr
Definition Types.h:11623
std::string type
Type of the block, always “pre”
Definition Types.h:11630
std::optional< std::string > language
Optional. The programming language of the text.
Definition Types.h:11638
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:11634
A quotation with centered text, loosely corresponding to the HTML tag <aside>.
Definition Types.h:11648
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:11660
std::shared_ptr< RichText > credit
Optional. Credit of the block.
Definition Types.h:11664
std::shared_ptr< RichBlockPullQuotation > Ptr
Definition Types.h:11649
static TGBOT_API const std::string TYPE
Definition Types.h:11651
std::string type
Type of the block, always “pullquote”
Definition Types.h:11656
A section heading, corresponding to the HTML tags.
Definition Types.h:11674
std::shared_ptr< RichText > text
Text of the block.
Definition Types.h:11686
std::shared_ptr< RichBlockSectionHeading > Ptr
Definition Types.h:11675
static TGBOT_API const std::string TYPE
Definition Types.h:11677
std::string type
Type of the block, always “heading”
Definition Types.h:11682
std::uint32_t size
Relative size of the text font; 1-6, 1 is the largest, 6 is the smallest.
Definition Types.h:11690
A slideshow, corresponding to the custom HTML tag <tg-slideshow>.
Definition Types.h:11700
std::vector< std::shared_ptr< RichBlock > > blocks
Elements of the slideshow.
Definition Types.h:11712
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11716
std::string type
Type of the block, always “slideshow”
Definition Types.h:11708
static TGBOT_API const std::string TYPE
Definition Types.h:11703
std::shared_ptr< RichBlockSlideshow > Ptr
Definition Types.h:11701
Cell in a table.
Definition Types.h:11764
std::string align
Horizontal cell content alignment. Currently, must be one of “left”, “center”, or “right”.
Definition Types.h:11787
std::optional< std::uint32_t > colspan
Optional. The number of columns the cell spans if it is bigger than 1.
Definition Types.h:11778
std::optional< std::uint32_t > rowspan
Optional. The number of rows the cell spans if it is bigger than 1.
Definition Types.h:11782
std::shared_ptr< RichBlockTableCell > Ptr
Definition Types.h:11765
std::optional< bool > isHeader
Optional. True, if the cell is a header cell.
Definition Types.h:11774
std::string valign
Vertical cell content alignment. Currently, must be one of “top”, “middle”, or “bottom”.
Definition Types.h:11791
std::shared_ptr< RichText > text
Optional. Text in the cell. If omitted, then the cell is invisible.
Definition Types.h:11770
A table, corresponding to the HTML tag.
Definition Types.h:11726
std::vector< std::vector< std::shared_ptr< RichBlockTableCell > > > cells
Cells of the table.
Definition Types.h:11738
std::shared_ptr< RichText > caption
Optional. Caption of the table.
Definition Types.h:11754
std::string type
Type of the block, always “table”
Definition Types.h:11734
std::optional< bool > isStriped
Optional. True, if the table is striped.
Definition Types.h:11746
std::optional< bool > isCompact
Optional. True, if table cells have smaller indents.
Definition Types.h:11750
static TGBOT_API const std::string TYPE
Definition Types.h:11729
std::shared_ptr< RichBlockTable > Ptr
Definition Types.h:11727
std::optional< bool > isBordered
Optional. True, if the table has borders.
Definition Types.h:11742
A block with a “Thinking…” placeholder, corresponding to the custom HTML tag <tg-thinking>....
Definition Types.h:11804
std::shared_ptr< RichBlockThinking > Ptr
Definition Types.h:11805
std::string type
Type of the block, always “thinking”
Definition Types.h:11812
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:11817
static TGBOT_API const std::string TYPE
Definition Types.h:11807
A block with a video, corresponding to the HTML tag <video>.
Definition Types.h:11827
std::shared_ptr< RichBlockVideo > Ptr
Definition Types.h:11828
static TGBOT_API const std::string TYPE
Definition Types.h:11830
std::string type
Type of the block, always “video”
Definition Types.h:11835
std::optional< bool > hasSpoiler
Optional. True, if the media preview is covered by a spoiler animation.
Definition Types.h:11843
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11847
std::shared_ptr< Video > video
The video.
Definition Types.h:11839
A block with a voice note, corresponding to the HTML tag <audio>.
Definition Types.h:11857
static TGBOT_API const std::string TYPE
Definition Types.h:11860
std::shared_ptr< RichBlockVoiceNote > Ptr
Definition Types.h:11858
std::shared_ptr< RichBlockCaption > caption
Optional. Caption of the block.
Definition Types.h:11873
std::shared_ptr< Voice > voiceNote
The voice note.
Definition Types.h:11869
std::string type
Type of the block, always “voice_note”
Definition Types.h:11865
This object represents a button in a RichMessage. Exactly one of the fields other than text and style...
Definition Types.h:11904
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:11941
std::optional< std::string > url
Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?...
Definition Types.h:11924
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:11963
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:11929
std::shared_ptr< RichMessageButton > Ptr
Definition Types.h:11905
std::shared_ptr< CopyTextButton > copyText
Optional. A button that copies the specified text to the clipboard.
Definition Types.h:11967
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:11956
std::optional< std::string > switchInlineQuery
Optional. If set, pressing the button will prompt the user to select one of their chats,...
Definition Types.h:11949
std::shared_ptr< RichText > text
Text of the button. May contain only plain text, RichTextCustomEmoji and RichTextDateTime entities.
Definition Types.h:11911
std::shared_ptr< WebAppInfo > webApp
Optional. Description of the Web App that will be launched when the user presses the button....
Definition Types.h:11936
std::shared_ptr< DisabledButton > disabled
Optional. If set, then the button is disabled and does nothing.
Definition Types.h:11971
std::optional< std::string > style
Optional. Style of the button. Must be one of “danger”, “success”, “primary”, or “link” (the button i...
Definition Types.h:11918
Rich formatted message.
Definition Types.h:11883
std::shared_ptr< RichMessage > Ptr
Definition Types.h:11884
std::optional< bool > isRtl
Optional. True, if the rich message must be shown right-to-left.
Definition Types.h:11893
std::vector< std::shared_ptr< RichBlock > > blocks
Content of the message.
Definition Types.h:11889
std::string type
Type of the rich text, always “anchor”
Definition Types.h:12021
std::shared_ptr< RichTextAnchor > Ptr
Definition Types.h:12014
static TGBOT_API const std::string TYPE
Definition Types.h:12016
std::string name
The name of the anchor.
Definition Types.h:12025
A text with a bank card number.
Definition Types.h:12062
std::shared_ptr< RichTextBankCardNumber > Ptr
Definition Types.h:12063
static TGBOT_API const std::string TYPE
Definition Types.h:12065
std::shared_ptr< RichText > text
The text.
Definition Types.h:12074
std::string bankCardNumber
The bank card number.
Definition Types.h:12078
std::string type
Type of the rich text, always “bank_card_number”
Definition Types.h:12070
A bold text.
Definition Types.h:12088
std::shared_ptr< RichTextBold > Ptr
Definition Types.h:12089
static TGBOT_API const std::string TYPE
Definition Types.h:12091
std::shared_ptr< RichText > text
The text.
Definition Types.h:12100
std::string type
Type of the rich text, always “bold”
Definition Types.h:12096
static TGBOT_API const std::string TYPE
Definition Types.h:12113
std::string botCommand
The bot command.
Definition Types.h:12126
std::shared_ptr< RichTextBotCommand > Ptr
Definition Types.h:12111
std::string type
Type of the rich text, always “bot_command”
Definition Types.h:12118
std::shared_ptr< RichText > text
The text.
Definition Types.h:12122
static TGBOT_API const std::string TYPE
Definition Types.h:12139
std::shared_ptr< RichTextButton > Ptr
Definition Types.h:12137
std::string type
Type of the rich text, always “button”
Definition Types.h:12144
std::shared_ptr< RichMessageButton > button
The button.
Definition Types.h:12148
static TGBOT_API const std::string TYPE
Definition Types.h:12161
std::string cashtag
The cashtag.
Definition Types.h:12174
std::shared_ptr< RichText > text
The text.
Definition Types.h:12170
std::string type
Type of the rich text, always “cashtag”
Definition Types.h:12166
std::shared_ptr< RichTextCashtag > Ptr
Definition Types.h:12159
A monowidth text.
Definition Types.h:12184
static TGBOT_API const std::string TYPE
Definition Types.h:12187
std::shared_ptr< RichTextCode > Ptr
Definition Types.h:12185
std::string type
Type of the rich text, always “code”
Definition Types.h:12192
std::shared_ptr< RichText > text
The text.
Definition Types.h:12196
A custom emoji.
Definition Types.h:12206
std::string type
Type of the rich text, always “custom_emoji”
Definition Types.h:12214
std::string alternativeText
Alternative emoji for the custom emoji.
Definition Types.h:12223
std::string customEmojiId
Unique identifier of the custom emoji. Use getCustomEmojiStickers to get full information about the s...
Definition Types.h:12219
std::shared_ptr< RichTextCustomEmoji > Ptr
Definition Types.h:12207
static TGBOT_API const std::string TYPE
Definition Types.h:12209
Formatted date and time.
Definition Types.h:12233
static TGBOT_API const std::string TYPE
Definition Types.h:12236
std::string dateTimeFormat
The string that defines the formatting of the date and time. See date-time entity formatting for more...
Definition Types.h:12254
std::shared_ptr< RichTextDateTime > Ptr
Definition Types.h:12234
std::shared_ptr< RichText > text
The text.
Definition Types.h:12245
std::int32_t unixTime
The Unix time associated with the entity.
Definition Types.h:12249
std::string type
Type of the rich text, always “date_time”
Definition Types.h:12241
A text with an email address.
Definition Types.h:12264
std::shared_ptr< RichTextEmailAddress > Ptr
Definition Types.h:12265
std::string emailAddress
The email address.
Definition Types.h:12280
static TGBOT_API const std::string TYPE
Definition Types.h:12267
std::string type
Type of the rich text, always “email_address”
Definition Types.h:12272
std::shared_ptr< RichText > text
The text.
Definition Types.h:12276
static TGBOT_API const std::string TYPE
Definition Types.h:12293
std::shared_ptr< RichTextHashtag > Ptr
Definition Types.h:12291
std::string type
Type of the rich text, always “hashtag”
Definition Types.h:12298
std::string hashtag
The hashtag.
Definition Types.h:12306
std::shared_ptr< RichText > text
The text.
Definition Types.h:12302
This object represents a rich formatted text. Currently, it can be either a String for plain text,...
Definition Types.h:11988
std::variant< std::shared_ptr< RichTextBold >, std::shared_ptr< RichTextItalic >, std::shared_ptr< RichTextUnderline >, std::shared_ptr< RichTextStrikethrough >, std::shared_ptr< RichTextSpoiler >, std::shared_ptr< RichTextDateTime >, std::shared_ptr< RichTextTextMention >, std::shared_ptr< RichTextSubscript >, std::shared_ptr< RichTextSuperscript >, std::shared_ptr< RichTextMarked >, std::shared_ptr< RichTextCode >, std::shared_ptr< RichTextCustomEmoji >, std::shared_ptr< RichTextMathematicalExpression >, std::shared_ptr< RichTextUrl >, std::shared_ptr< RichTextEmailAddress >, std::shared_ptr< RichTextPhoneNumber >, std::shared_ptr< RichTextBankCardNumber >, std::shared_ptr< RichTextMention >, std::shared_ptr< RichTextHashtag >, std::shared_ptr< RichTextCashtag >, std::shared_ptr< RichTextBotCommand >, std::shared_ptr< RichTextButton >, std::shared_ptr< RichTextAnchor >, std::shared_ptr< RichTextAnchorLink >, std::shared_ptr< RichTextReference >, std::shared_ptr< RichTextReferenceLink >, std::string, std::vector< std::shared_ptr< RichText > >, std::shared_ptr< RichTextTonAddress > > value
Definition Types.h:12003
std::shared_ptr< RichText > Ptr
Definition Types.h:11989
An italicized text.
Definition Types.h:12316
std::string type
Type of the rich text, always “italic”
Definition Types.h:12324
static TGBOT_API const std::string TYPE
Definition Types.h:12319
std::shared_ptr< RichText > text
The text.
Definition Types.h:12328
std::shared_ptr< RichTextItalic > Ptr
Definition Types.h:12317
A marked text.
Definition Types.h:12338
static TGBOT_API const std::string TYPE
Definition Types.h:12341
std::shared_ptr< RichText > text
The text.
Definition Types.h:12350
std::string type
Type of the rich text, always “marked”
Definition Types.h:12346
std::shared_ptr< RichTextMarked > Ptr
Definition Types.h:12339
A mathematical expression.
Definition Types.h:12360
std::string type
Type of the rich text, always “mathematical_expression”
Definition Types.h:12368
std::string expression
The expression in LaTeX format.
Definition Types.h:12372
std::shared_ptr< RichTextMathematicalExpression > Ptr
Definition Types.h:12361
static TGBOT_API const std::string TYPE
Definition Types.h:12363
A mention by a username.
Definition Types.h:12382
static TGBOT_API const std::string TYPE
Definition Types.h:12385
std::shared_ptr< RichTextMention > Ptr
Definition Types.h:12383
std::string username
The username.
Definition Types.h:12398
std::shared_ptr< RichText > text
The text.
Definition Types.h:12394
std::string type
Type of the rich text, always “mention”
Definition Types.h:12390
A text with a phone number.
Definition Types.h:12408
std::shared_ptr< RichText > text
The text.
Definition Types.h:12420
std::shared_ptr< RichTextPhoneNumber > Ptr
Definition Types.h:12409
std::string phoneNumber
The phone number.
Definition Types.h:12424
std::string type
Type of the rich text, always “phone_number”
Definition Types.h:12416
static TGBOT_API const std::string TYPE
Definition Types.h:12411
std::string type
Type of the rich text, always “reference”
Definition Types.h:12442
std::string name
The name of the reference.
Definition Types.h:12450
static TGBOT_API const std::string TYPE
Definition Types.h:12437
std::shared_ptr< RichText > text
Text of the reference.
Definition Types.h:12446
std::shared_ptr< RichTextReference > Ptr
Definition Types.h:12435
A text covered by a spoiler.
Definition Types.h:12486
static TGBOT_API const std::string TYPE
Definition Types.h:12489
std::string type
Type of the rich text, always “spoiler”
Definition Types.h:12494
std::shared_ptr< RichTextSpoiler > Ptr
Definition Types.h:12487
std::shared_ptr< RichText > text
The text.
Definition Types.h:12498
A strikethrough text.
Definition Types.h:12508
static TGBOT_API const std::string TYPE
Definition Types.h:12511
std::string type
Type of the rich text, always “strikethrough”
Definition Types.h:12516
std::shared_ptr< RichText > text
The text.
Definition Types.h:12520
std::shared_ptr< RichTextStrikethrough > Ptr
Definition Types.h:12509
A subscript text.
Definition Types.h:12530
std::string type
Type of the rich text, always “subscript”
Definition Types.h:12538
std::shared_ptr< RichText > text
The text.
Definition Types.h:12542
static TGBOT_API const std::string TYPE
Definition Types.h:12533
std::shared_ptr< RichTextSubscript > Ptr
Definition Types.h:12531
A superscript text.
Definition Types.h:12552
std::shared_ptr< RichText > text
The text.
Definition Types.h:12564
static TGBOT_API const std::string TYPE
Definition Types.h:12555
std::string type
Type of the rich text, always “superscript”
Definition Types.h:12560
std::shared_ptr< RichTextSuperscript > Ptr
Definition Types.h:12553
A mention of a Telegram user by their identifier.
Definition Types.h:12574
static TGBOT_API const std::string TYPE
Definition Types.h:12577
std::string type
Type of the rich text, always “text_mention”
Definition Types.h:12582
std::shared_ptr< RichText > text
The text.
Definition Types.h:12586
std::shared_ptr< RichTextTextMention > Ptr
Definition Types.h:12575
std::shared_ptr< User > user
The mentioned user.
Definition Types.h:12590
An address in the TON blockchain.
Definition Types.h:12600
std::shared_ptr< RichTextTonAddress > Ptr
Definition Types.h:12601
std::shared_ptr< RichText > text
Text of the address.
Definition Types.h:12612
static TGBOT_API const std::string TYPE
Definition Types.h:12603
std::string address
The address.
Definition Types.h:12616
std::string type
Type of the rich text, always “ton_address”
Definition Types.h:12608
An underlined text.
Definition Types.h:12626
std::shared_ptr< RichText > text
The text.
Definition Types.h:12638
std::string type
Type of the rich text, always “underline”
Definition Types.h:12634
std::shared_ptr< RichTextUnderline > Ptr
Definition Types.h:12627
static TGBOT_API const std::string TYPE
Definition Types.h:12629
A text with a link.
Definition Types.h:12648
std::string type
Type of the rich text, always “url”
Definition Types.h:12656
static TGBOT_API const std::string TYPE
Definition Types.h:12651
std::string url
URL of the link.
Definition Types.h:12664
std::shared_ptr< RichText > text
The text.
Definition Types.h:12660
std::shared_ptr< RichTextUrl > Ptr
Definition Types.h:12649
Arguments for Api::savePreparedInlineMessage.
Definition Types.h:18325
bool allowGroupChats
Pass True if the message can be sent to group and supergroup chats.
Definition Types.h:18349
bool allowBotChats
Pass True if the message can be sent to private chats with bots.
Definition Types.h:18339
bool allowUserChats
Pass True if the message can be sent to private chats with users.
Definition Types.h:18354
std::shared_ptr< InlineQueryResult > result
A JSON-serialized object describing the message to be sent.
Definition Types.h:18329
std::uint64_t userId
Unique identifier of the target user that can use the prepared message.
Definition Types.h:18334
bool allowChannelChats
Pass True if the message can be sent to channel chats.
Definition Types.h:18344
Arguments for Api::savePreparedKeyboardButton.
Definition Types.h:18361
std::uint64_t userId
Unique identifier of the target user that can use the button.
Definition Types.h:18371
std::shared_ptr< KeyboardButton > button
A JSON-serialized object describing the button to be saved. The button must be of the type request_us...
Definition Types.h:18366
Arguments for Api::sendAnimation.
Definition Types.h:18378
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:18440
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:18529
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:18465
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:18499
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:18510
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:18431
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:18470
std::uint32_t duration
Duration of sent animation in seconds.
Definition Types.h:18398
std::uint32_t width
Animation width.
Definition Types.h:18403
std::variant< std::shared_ptr< InputFile >, std::string > animation
Animation to send. Pass a file_id as String to send an animation that exists on the Telegram servers ...
Definition Types.h:18393
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:18505
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:18523
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:18452
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:18384
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:18458
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:18488
std::string parseMode
Mode for parsing entities in the animation caption. See formatting options for more details.
Definition Types.h:18446
std::variant< std::shared_ptr< InputFile >, std::string > thumbnail
Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-s...
Definition Types.h:18420
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:18481
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
Definition Types.h:18515
std::uint32_t height
Animation height.
Definition Types.h:18408
std::string caption
Animation caption (may also be used when resending animation by file_id), 0-1024 characters after ent...
Definition Types.h:18426
bool hasSpoiler
Pass True if the animation needs to be covered with a spoiler animation.
Definition Types.h:18475
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:18493
Arguments for Api::sendAudio.
Definition Types.h:18536
std::variant< std::shared_ptr< InputFile >, std::string > thumbnail
Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-s...
Definition Types.h:18582
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:18614
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:18656
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:18661
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:18596
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:18639
std::variant< std::shared_ptr< InputFile >, std::string > audio
Audio file to send. Pass a file_id as String to send an audio file that exists on the Telegram server...
Definition Types.h:18550
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:18626
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:18621
std::uint32_t duration
Duration of the audio in seconds.
Definition Types.h:18560
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:18675
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:18669
std::string caption
Audio caption, 0-1024 characters after entities parsing.
Definition Types.h:18555
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:18650
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:18632
std::string title
Track name.
Definition Types.h:18570
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:18587
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:18608
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:18644
std::string parseMode
Mode for parsing entities in the audio caption. See formatting options for more details.
Definition Types.h:18602
std::string performer
Performer.
Definition Types.h:18565
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:18542
Arguments for Api::sendChatAction.
Definition Types.h:18682
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the action will be sent.
Definition Types.h:18710
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot or supergroup in the format @user...
Definition Types.h:18688
std::uint32_t messageThreadId
Unique identifier for the target message thread or topic of a forum; for supergroups and private chat...
Definition Types.h:18704
std::string action
Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for t...
Definition Types.h:18698
Arguments for Api::sendChatJoinRequestWebApp.
Definition Types.h:18717
std::string chatJoinRequestQueryId
Unique identifier of the join request query.
Definition Types.h:18721
std::string webAppUrl
An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps.
Definition Types.h:18727
Arguments for Api::sendChecklist.
Definition Types.h:18734
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:18756
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard.
Definition Types.h:18771
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot in the format @username.
Definition Types.h:18739
std::string messageEffectId
Unique identifier of the message effect to be added to the message.
Definition Types.h:18761
std::shared_ptr< ReplyParameters > replyParameters
A JSON-serialized object for description of the message to reply to.
Definition Types.h:18776
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:18766
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:18745
std::shared_ptr< InputChecklist > checklist
A JSON-serialized object for the checklist to send.
Definition Types.h:18750
Arguments for Api::sendContact.
Definition Types.h:18783
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:18890
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:18865
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:18854
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:18847
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:18859
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:18789
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:18836
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:18815
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:18841
std::string vcard
Additional data about the contact in the form of a vCard, 0-2048 bytes.
Definition Types.h:18809
std::string firstName
Contact's first name.
Definition Types.h:18799
std::string lastName
Contact's last name.
Definition Types.h:18804
std::string phoneNumber
Contact's phone number.
Definition Types.h:18794
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:18871
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:18884
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:18876
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:18820
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:18829
Arguments for Api::sendDice.
Definition Types.h:18897
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:18966
bool protectContent
Protects the contents of the sent message from forwarding.
Definition Types.h:18941
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:18922
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:18902
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:18960
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:18908
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:18954
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:18947
std::string emoji
Emoji on which the dice throw animation is based. Currently, must be one of “”, “”,...
Definition Types.h:18929
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:18936
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:18913
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:18974
Arguments for Api::sendDocument.
Definition Types.h:18981
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:18987
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:19045
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:19058
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:19093
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19076
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:19106
std::string parseMode
Mode for parsing entities in the document caption. See formatting options for more details.
Definition Types.h:19033
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:19039
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:19069
std::variant< std::shared_ptr< InputFile >, std::string > thumbnail
Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-s...
Definition Types.h:19007
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:19027
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:19098
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:19018
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:19087
std::string caption
Document caption (may also be used when resending documents by file_id), 0-1024 characters after enti...
Definition Types.h:19013
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:19081
bool disableContentTypeDetection
Disables automatic server-side content type detection for files uploaded using multipart/form-data.
Definition Types.h:19051
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:19112
std::variant< std::shared_ptr< InputFile >, std::string > document
File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommende...
Definition Types.h:18995
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:19063
Arguments for Api::sendGame.
Definition Types.h:19119
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot in the format @username....
Definition Types.h:19125
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19174
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:19136
std::string gameShortName
Short name of the game, serves as the unique identifier for the game. Set up your games via @BotFathe...
Definition Types.h:19131
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:19161
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard. If empty, one 'Play game_title' button will be shown...
Definition Types.h:19143
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:19167
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:19149
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:19180
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:19156
Arguments for Api::sendGift.
Definition Types.h:19187
std::string text
Text that will be shown along with the gift; 0-128 characters.
Definition Types.h:19209
std::variant< std::int64_t, std::string > chatId
Required if user_id is not specified. Unique identifier for the chat that will receive the gift or us...
Definition Types.h:19198
std::vector< std::shared_ptr< MessageEntity > > textEntities
A JSON-serialized list of special entities that appear in the gift text. It can be specified instead ...
Definition Types.h:19217
std::string textParseMode
Mode for parsing entities in the text. See formatting options for more details. Entities other than “...
Definition Types.h:19224
std::uint64_t userId
Required if chat_id is not specified. Unique identifier of the target user who will receive the gift.
Definition Types.h:19230
std::string giftId
Identifier of the gift; limited gifts can't be sent to channel chats.
Definition Types.h:19191
bool payForUpgrade
Pass True to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the...
Definition Types.h:19204
Arguments for Api::sendInvoice.
Definition Types.h:19237
std::uint32_t photoSize
Photo size in bytes.
Definition Types.h:19296
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:19426
std::uint32_t photoHeight
Photo height.
Definition Types.h:19306
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:19353
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:19407
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:19434
std::string currency
Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Star...
Definition Types.h:19270
std::string description
Product description, 1-255 characters.
Definition Types.h:19252
bool needShippingAddress
Pass True if you require the user's shipping address to complete the order. Ignored for payments in T...
Definition Types.h:19330
std::string photoUrl
URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a serv...
Definition Types.h:19291
bool isFlexible
Pass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars.
Definition Types.h:19348
std::string title
Product name, 1-32 characters.
Definition Types.h:19247
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:19258
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19414
bool sendPhoneNumberToProvider
Pass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram...
Definition Types.h:19336
std::vector< std::uint64_t > suggestedTipAmounts
A JSON-serialized Array of suggested amounts of tips in the smallest units of the currency (integer,...
Definition Types.h:19392
std::vector< std::shared_ptr< LabeledPrice > > prices
Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount,...
Definition Types.h:19277
std::string providerToken
Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars.
Definition Types.h:19264
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:19420
bool needEmail
Pass True if you require the user's email address to complete the order. Ignored for payments in Tele...
Definition Types.h:19324
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown...
Definition Types.h:19360
bool needPhoneNumber
Pass True if you require the user's phone number to complete the order. Ignored for payments in Teleg...
Definition Types.h:19318
std::uint32_t photoWidth
Photo width.
Definition Types.h:19301
std::string providerData
JSON-serialized data about the invoice, which will be shared with the payment provider....
Definition Types.h:19284
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:19366
std::uint64_t maxTipAmount
The maximum accepted amount for tips in the smallest units of the currency (integer,...
Definition Types.h:19383
std::string startParameter
Unique deep-linking parameter. If left empty, forwarded copies of the sent message will have a Pay bu...
Definition Types.h:19402
bool sendEmailToProvider
Pass True if the user's email address should be sent to the provider. Ignored for payments in Telegra...
Definition Types.h:19342
bool needName
Pass True if you require the user's full name to complete the order. Ignored for payments in Telegram...
Definition Types.h:19312
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:19242
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:19373
Arguments for Api::sendLivePhoto.
Definition Types.h:19441
std::variant< std::shared_ptr< InputFile >, std::string > livePhoto
Live photo video to send. The video must be no longer than 10 seconds and must not exceed 10 MB in si...
Definition Types.h:19456
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:19517
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:19549
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:19540
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:19554
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:19494
bool hasSpoiler
Pass True if the video needs to be covered with a spoiler animation.
Definition Types.h:19511
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19471
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
Definition Types.h:19559
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:19447
std::string caption
Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities p...
Definition Types.h:19488
std::string parseMode
Mode for parsing entities in the video caption. See formatting options for more details.
Definition Types.h:19530
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:19524
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:19482
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:19567
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:19506
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:19500
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:19535
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:19573
std::variant< std::shared_ptr< InputFile >, std::string > photo
The static photo to send. Pass a file_id as String to send a photo that exists on the Telegram server...
Definition Types.h:19464
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:19477
Arguments for Api::sendLocation.
Definition Types.h:19580
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:19678
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:19689
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:19609
double horizontalAccuracy
The radius of uncertainty for the location, measured in meters; 0-1500.
Definition Types.h:19629
double longitude
Longitude of the location.
Definition Types.h:19596
std::uint32_t livePeriod
Period in seconds during which the location will be updated (see Live Locations), must be between 60 ...
Definition Types.h:19604
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:19660
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:19684
double latitude
Latitude of the location.
Definition Types.h:19591
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19667
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:19586
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:19624
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:19672
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:19697
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:19618
std::uint32_t heading
For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if...
Definition Types.h:19635
std::uint32_t proximityAlertRadius
For live locations, a maximum distance for proximity alerts about approaching another chat member,...
Definition Types.h:19642
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:19703
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:19654
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:19649
Arguments for Api::sendMediaGroup.
Definition Types.h:19710
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:19753
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the messages will be sent; required if the messages ...
Definition Types.h:19766
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:19742
std::vector< std::variant< std::shared_ptr< InputMediaAudio >, std::shared_ptr< InputMediaDocument >, std::shared_ptr< InputMediaLivePhoto >, std::shared_ptr< InputMediaPhoto >, std::shared_ptr< InputMediaVideo > > > media
A JSON-serialized Array describing messages to be sent, must include 2-10 items.
Definition Types.h:19724
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19760
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:19735
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:19779
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:19772
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:19715
bool protectContent
Protects the contents of the sent messages from forwarding and saving.
Definition Types.h:19747
bool disableNotification
Sends messages silently. Users will receive a notification with no sound.
Definition Types.h:19730
Arguments for Api::sendMessage.
Definition Types.h:19786
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:19792
std::vector< std::shared_ptr< MessageEntity > > entities
A JSON-serialized list of special entities that appear in message text, which can be specified instea...
Definition Types.h:19834
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19859
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:19816
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:19881
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:19846
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:19852
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:19864
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:19828
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:19889
std::string text
Text of the message to be sent, 1-4096 characters after entities parsing.
Definition Types.h:19797
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:19870
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:19841
std::shared_ptr< LinkPreviewOptions > linkPreviewOptions
Link preview generation options for the message.
Definition Types.h:19802
std::string parseMode
Mode for parsing entities in the message text. See formatting options for more details.
Definition Types.h:19822
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:19876
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:19807
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:19895
Arguments for Api::sendMessageDraft.
Definition Types.h:19902
std::vector< std::shared_ptr< MessageEntity > > entities
A JSON-serialized list of special entities that appear in message text, which can be specified instea...
Definition Types.h:19919
std::string parseMode
Mode for parsing entities in the message text. See formatting options for more details.
Definition Types.h:19930
std::string text
Text of the message to be sent, 0-4096 characters after entities parsing. Pass an empty text to show ...
Definition Types.h:19936
std::int64_t draftId
Unique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier ...
Definition Types.h:19913
std::uint32_t messageThreadId
Unique identifier for the target message thread.
Definition Types.h:19924
std::variant< std::uint64_t, std::string > chatId
Unique identifier for the target private chat.
Definition Types.h:19906
bool keepOnStop
Pass True to keep the draft in the chat when the button is pressed. The draft will still disappear af...
Definition Types.h:19951
bool canStop
Pass True to show the user a button to stop further drafts. The bot will receive an Update “stopped_m...
Definition Types.h:19943
Arguments for Api::sendPaidMedia.
Definition Types.h:19958
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:19990
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:20001
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:20046
std::string payload
Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user,...
Definition Types.h:20032
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:20064
std::string parseMode
Mode for parsing entities in the media caption. See formatting options for more details.
Definition Types.h:20026
std::vector< std::shared_ptr< InputPaidMedia > > media
A JSON-serialized Array describing the media to be sent; up to 10 items.
Definition Types.h:19971
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:20007
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:20051
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
Definition Types.h:20056
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:20020
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:19984
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:19966
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:20071
std::uint32_t starCount
The number of Telegram Stars that must be paid to buy access to the media; 1-25000.
Definition Types.h:19977
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:20037
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:20013
std::string caption
Media caption, 0-1024 characters after entities parsing.
Definition Types.h:19995
Arguments for Api::sendPhoto.
Definition Types.h:20078
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:20179
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:20126
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:20203
std::string caption
Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities p...
Definition Types.h:20100
std::string parseMode
Mode for parsing entities in the photo caption. See formatting options for more details.
Definition Types.h:20120
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:20167
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
Definition Types.h:20189
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:20084
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:20155
bool hasSpoiler
Pass True if the photo needs to be covered with a spoiler animation.
Definition Types.h:20149
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:20162
std::variant< std::shared_ptr< InputFile >, std::string > photo
Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommen...
Definition Types.h:20094
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:20184
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:20144
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:20197
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:20105
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:20114
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:20139
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:20132
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:20173
Arguments for Api::sendPoll.
Definition Types.h:20210
std::string description
Description of the poll to be sent, 0-1024 characters after entities parsing.
Definition Types.h:20357
std::string explanationParseMode
Mode for parsing entities in the explanation. See formatting options for more details.
Definition Types.h:20274
bool allowAddingOptions
Pass True if answer options can be added to the poll after creation; not supported for anonymous poll...
Definition Types.h:20323
bool hideResultsUntilCloses
Pass True if poll results must be shown only after the poll closes.
Definition Types.h:20379
std::string descriptionParseMode
Mode for parsing entities in the poll description. See formatting options for more details.
Definition Types.h:20369
std::vector< std::shared_ptr< InputPollOption > > options
A JSON-serialized list of 1-12 answer options.
Definition Types.h:20226
std::vector< std::string > countryCodes
A JSON-serialized list of 0-12 two-letter ISO 3166-1 alpha-2 country codes indicating the countries f...
Definition Types.h:20351
std::vector< std::shared_ptr< MessageEntity > > descriptionEntities
A JSON-serialized list of special entities that appear in the poll description, which can be specifie...
Definition Types.h:20363
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:20246
std::string questionParseMode
Mode for parsing entities in the question. See formatting options for more details....
Definition Types.h:20409
std::shared_ptr< InputPollMedia > explanationMedia
Media added to the quiz explanation.
Definition Types.h:20374
std::vector< std::shared_ptr< MessageEntity > > questionEntities
A JSON-serialized list of special entities that appear in the poll question. It can be specified inst...
Definition Types.h:20403
bool allowsMultipleAnswers
Pass True if the poll allows multiple answers, defaults to False.
Definition Types.h:20261
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:20311
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:20330
bool membersOnly
Pass True if voting is limited to users who have been members of the chat where the poll is being sen...
Definition Types.h:20391
bool isAnonymous
True, if the poll needs to be anonymous, defaults to True.
Definition Types.h:20251
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:20237
std::shared_ptr< InputPollMedia > media
Media added to the poll description.
Definition Types.h:20384
std::string type
Poll type, “quiz” or “regular”, defaults to “regular”
Definition Types.h:20256
std::string question
Poll question, 1-300 characters.
Definition Types.h:20221
std::vector< std::shared_ptr< MessageEntity > > explanationEntities
A JSON-serialized list of special entities that appear in the poll explanation. It can be specified i...
Definition Types.h:20280
bool isClosed
Pass True if the poll needs to be immediately closed. This can be useful for poll preview.
Definition Types.h:20299
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:20317
std::uint32_t openPeriod
Amount of time in seconds the poll will be active after creation, 5-2628000. Can't be used together w...
Definition Types.h:20286
std::vector< std::uint32_t > correctOptionIds
A JSON-serialized list of monotonically increasing 0-based identifiers of the correct answer options,...
Definition Types.h:20342
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:20232
std::int32_t closeDate
Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no ...
Definition Types.h:20293
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:20397
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:20216
bool shuffleOptions
Pass True if the poll options must be shown in random order.
Definition Types.h:20414
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:20306
std::string explanation
Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style p...
Definition Types.h:20268
bool allowsRevoting
Pass True if the poll allows to change chosen answer options, defaults to False for quizzes and to Tr...
Definition Types.h:20336
Arguments for Api::sendRichMessage.
Definition Types.h:20421
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:20505
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:20498
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:20427
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:20485
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:20458
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent....
Definition Types.h:20446
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:20476
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:20439
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:20490
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:20471
std::shared_ptr< InputRichMessage > richMessage
The message to be sent.
Definition Types.h:20432
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:20452
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:20511
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:20464
Arguments for Api::sendRichMessageDraft.
Definition Types.h:20518
std::int64_t draftId
Unique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier ...
Definition Types.h:20529
bool canStop
Pass True to show the user a button to stop further drafts. The bot will receive an Update “stopped_m...
Definition Types.h:20547
bool keepOnStop
Pass True to keep the draft in the chat when the button is pressed. The draft will still disappear af...
Definition Types.h:20555
std::shared_ptr< InputRichMessage > richMessage
The partial message to be streamed. Direct upload of new files and explicit upload of files by a URL ...
Definition Types.h:20535
std::uint32_t messageThreadId
Unique identifier for the target message thread.
Definition Types.h:20540
std::variant< std::uint64_t, std::string > chatId
Unique identifier for the target private chat.
Definition Types.h:20522
Arguments for Api::sendSharedWidget.
Definition Types.h:20562
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:20625
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:20639
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:20634
std::string caption
Widget caption, 0-1024 characters after entities parsing.
Definition Types.h:20584
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:20590
std::string chatData
Data of the widget, which is specific to the message, 0-1024 bytes.
Definition Types.h:20595
std::string parseMode
Mode for parsing entities in the widget caption. See formatting options for more details.
Definition Types.h:20620
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:20567
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:20614
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:20579
std::string widgetId
Unique identifier of the shared widget.
Definition Types.h:20572
bool showCaptionAboveMedia
Pass True if the caption must be shown above the widget.
Definition Types.h:20644
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:20601
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:20607
Arguments for Api::sendSticker.
Definition Types.h:20651
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:20657
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:20687
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:20694
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:20747
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:20717
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:20739
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:20699
std::variant< std::shared_ptr< InputFile >, std::string > sticker
Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recomme...
Definition Types.h:20667
std::string emoji
Emoji associated with the sticker; only for just uploaded stickers.
Definition Types.h:20704
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:20728
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:20734
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:20672
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:20722
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:20753
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:20710
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:20681
Arguments for Api::sendVenue.
Definition Types.h:20760
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:20853
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:20804
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:20883
double latitude
Latitude of the venue.
Definition Types.h:20771
std::string googlePlaceType
Google Places type of the venue. (See supported types.).
Definition Types.h:20828
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:20864
std::string foursquareId
Foursquare identifier of the venue.
Definition Types.h:20791
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:20840
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:20766
std::string googlePlaceId
Google Places identifier of the venue.
Definition Types.h:20823
std::string address
Address of the venue.
Definition Types.h:20786
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:20835
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:20846
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:20809
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:20858
std::string title
Name of the venue.
Definition Types.h:20781
std::string foursquareType
Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,...
Definition Types.h:20798
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:20870
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:20875
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:20889
double longitude
Longitude of the venue.
Definition Types.h:20776
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:20818
Arguments for Api::sendVideo.
Definition Types.h:20896
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:20902
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:20962
std::uint32_t height
Video height.
Definition Types.h:20930
bool hasSpoiler
Pass True if the video needs to be covered with a spoiler animation.
Definition Types.h:20997
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:21059
std::uint32_t startTimestamp
Start timestamp for the video in the message.
Definition Types.h:21051
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:20974
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:21041
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:21010
std::string caption
Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities p...
Definition Types.h:20948
std::string parseMode
Mode for parsing entities in the video caption. See formatting options for more details.
Definition Types.h:20968
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:20953
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:21030
bool showCaptionAboveMedia
Pass True if the caption must be shown above the message media.
Definition Types.h:21046
std::uint32_t duration
Duration of sent video in seconds.
Definition Types.h:20920
bool supportsStreaming
Pass True if the uploaded video is suitable for streaming.
Definition Types.h:20915
std::uint32_t width
Video width.
Definition Types.h:20925
std::variant< std::shared_ptr< InputFile >, std::string > video
Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommen...
Definition Types.h:20910
std::variant< std::shared_ptr< InputFile >, std::string > cover
Cover for the video in the message. Pass a file_id to send a file that exists on the Telegram servers...
Definition Types.h:21024
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:20987
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:21036
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:21065
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:20992
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:21003
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:20980
std::variant< std::shared_ptr< InputFile >, std::string > thumbnail
Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-s...
Definition Types.h:20942
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:21015
Arguments for Api::sendVideoNote.
Definition Types.h:21072
std::variant< std::shared_ptr< InputFile >, std::string > thumbnail
Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-s...
Definition Types.h:21119
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:21189
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:21153
std::uint32_t duration
Duration of sent video in seconds.
Definition Types.h:21102
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:21164
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:21146
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:21097
std::variant< std::shared_ptr< InputFile >, std::string > videoNote
Video note to send. Pass a file_id as String to send a video note that exists on the Telegram servers...
Definition Types.h:21086
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:21175
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:21128
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:21135
std::uint32_t length
Video width and height, i.e. diameter of the video message.
Definition Types.h:21107
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:21183
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:21158
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:21140
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:21170
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:21091
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:21078
Arguments for Api::sendVoice.
Definition Types.h:21196
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:21202
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:21234
std::uint64_t receiverUserId
Identifier of the user who will receive the ephemeral message.
Definition Types.h:21299
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:21259
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:21246
std::shared_ptr< SuggestedPostParameters > suggestedPostParameters
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages...
Definition Types.h:21307
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:21252
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:21277
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be sent.
Definition Types.h:21270
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:21294
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:21225
std::string callbackQueryId
Identifier of the callback query which triggered the ephemeral message.
Definition Types.h:21282
std::shared_ptr< EphemeralMessageParameters > ephemeralMessageParameters
A JSON-serialized object containing the parameters of the ephemeral message to send.
Definition Types.h:21313
std::uint32_t duration
Duration of the voice message in seconds.
Definition Types.h:21220
std::string parseMode
Mode for parsing entities in the voice message caption. See formatting options for more details.
Definition Types.h:21240
std::uint64_t directMessagesTopicId
Identifier of the direct messages topic to which the message will be sent; required if the message is...
Definition Types.h:21288
std::string caption
Voice message caption, 0-1024 characters after entities parsing.
Definition Types.h:21215
std::variant< std::shared_ptr< InputFile >, std::string > voice
Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (reco...
Definition Types.h:21210
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:21264
Arguments for Api::sendWidget.
Definition Types.h:21320
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,...
Definition Types.h:21417
bool allowQueries
Pass True to allow the widget to send queries to the bot.
Definition Types.h:21343
bool isShared
Pass True to create a shared widget, which can be sent again using the method sendSharedWidget.
Definition Types.h:21377
std::string caption
Widget caption, 0-1024 characters after entities parsing.
Definition Types.h:21348
std::string messageEffectId
Unique identifier of the message effect to be added to the message; for private chats only.
Definition Types.h:21383
std::string html
HTML code of the widget, 1-32768 bytes. The code must not exceed 4096 bytes when compressed by zlib w...
Definition Types.h:21331
std::uint32_t width
Width of the widget in logical pixels; omit if the widget must occupy the whole width of the message ...
Definition Types.h:21434
std::vector< std::shared_ptr< MessageEntity > > captionEntities
A JSON-serialized list of special entities that appear in the caption, which can be specified instead...
Definition Types.h:21354
std::string publicData
Public data of the widget, 0-1024 bytes, which will be available wherever the widget is shown....
Definition Types.h:21408
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:21325
bool allowPaidBroadcast
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0....
Definition Types.h:21338
bool disableNotification
Sends the message silently. Users will receive a notification with no sound.
Definition Types.h:21365
bool showCaptionAboveMedia
Pass True if the caption must be shown above the widget.
Definition Types.h:21427
bool protectContent
Protects the contents of the sent message from forwarding and saving.
Definition Types.h:21401
std::uint32_t messageThreadId
Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private...
Definition Types.h:21390
std::string parseMode
Mode for parsing entities in the widget caption. See formatting options for more details.
Definition Types.h:21396
std::string chatData
Data of the widget, which is specific to the message, 0-1024 bytes.
Definition Types.h:21359
std::uint32_t height
Height of the widget in logical pixels; omit if the height of the widget isn't fixed....
Definition Types.h:21371
std::shared_ptr< ReplyParameters > replyParameters
Description of the message to reply to.
Definition Types.h:21422
Describes an inline message sent by a guest bot.
Definition Types.h:12674
std::shared_ptr< SentGuestMessage > Ptr
Definition Types.h:12675
std::string inlineMessageId
Identifier of the sent inline message.
Definition Types.h:12680
Describes an inline message sent by a Web App on behalf of a user.
Definition Types.h:12690
std::optional< std::string > inlineMessageId
Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attach...
Definition Types.h:12697
std::shared_ptr< SentWebAppMessage > Ptr
Definition Types.h:12691
Arguments for Api::setBusinessAccountBio.
Definition Types.h:21441
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:21445
std::string bio
The new value of the bio for the business account; 0-140 characters.
Definition Types.h:21450
Arguments for Api::setBusinessAccountGiftSettings.
Definition Types.h:21457
bool showGiftButton
Pass True if a button for sending a gift to the user or by the business account must always be shown ...
Definition Types.h:21472
std::shared_ptr< AcceptedGiftTypes > acceptedGiftTypes
Types of gifts accepted by the business account.
Definition Types.h:21461
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:21466
Arguments for Api::setBusinessAccountName.
Definition Types.h:21479
std::string firstName
The new value of the first name for the business account; 1-64 characters.
Definition Types.h:21489
std::string lastName
The new value of the last name for the business account; 0-64 characters.
Definition Types.h:21494
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:21483
Arguments for Api::setBusinessAccountProfilePhoto.
Definition Types.h:21501
std::shared_ptr< InputProfilePhoto > photo
The new profile photo to set.
Definition Types.h:21510
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:21505
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:21524
bool isPublic
Pass True to set the public photo, which will be visible even if the main photo is hidden by the busi...
Definition Types.h:21517
Arguments for Api::setBusinessAccountUsername.
Definition Types.h:21531
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:21535
std::string username
The new value of the username for the business account; 0-32 characters.
Definition Types.h:21540
Arguments for Api::setChatAdministratorCustomTitle.
Definition Types.h:21547
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:21552
std::string customTitle
New custom title for the administrator; 0-16 characters, emoji are not allowed.
Definition Types.h:21563
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:21557
Arguments for Api::setChatDescription.
Definition Types.h:21570
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:21575
std::string description
New chat description, 0-255 characters.
Definition Types.h:21580
Arguments for Api::setChatMemberTag.
Definition Types.h:21587
std::string tag
New tag for the member; 0-16 characters, emoji are not allowed.
Definition Types.h:21602
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:21592
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:21597
Arguments for Api::setChatMenuButton.
Definition Types.h:21609
std::variant< std::uint64_t, std::string > chatId
Unique identifier for the target private chat. If not specified, the bot's default menu button will b...
Definition Types.h:21614
std::shared_ptr< MenuButton > menuButton
A JSON-serialized object for the bot's new menu button. Defaults to MenuButtonDefault.
Definition Types.h:21620
Arguments for Api::setChatPermissions.
Definition Types.h:21627
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:21632
bool useIndependentChatPermissions
Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_a...
Definition Types.h:21647
std::shared_ptr< ChatPermissions > permissions
A JSON-serialized object for new default chat permissions.
Definition Types.h:21637
Arguments for Api::setChatPhoto.
Definition Types.h:21654
std::variant< std::shared_ptr< InputFile >, std::string > photo
New chat photo, uploaded using multipart/form-data.
Definition Types.h:21664
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:21659
Arguments for Api::setChatStickerSet.
Definition Types.h:21671
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:21676
std::string stickerSetName
Name of the sticker set to be set as the group sticker set.
Definition Types.h:21681
Arguments for Api::setChatTitle.
Definition Types.h:21688
std::string title
New chat title, 1-128 characters.
Definition Types.h:21698
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:21693
Arguments for Api::setCustomEmojiStickerSetThumbnail.
Definition Types.h:21705
std::string name
Sticker set name.
Definition Types.h:21709
std::string customEmojiId
Custom emoji identifier of a sticker from the sticker set; pass an empty string to drop the thumbnail...
Definition Types.h:21715
Arguments for Api::setGameScore.
Definition Types.h:21722
bool disableEditMessage
Pass True if the game message should not be automatically edited to include the current scoreboard.
Definition Types.h:21743
std::uint64_t userId
User identifier.
Definition Types.h:21726
std::uint32_t score
New score, must be non-negative.
Definition Types.h:21731
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:21761
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the sent message.
Definition Types.h:21755
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat.
Definition Types.h:21749
bool force
Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or bannin...
Definition Types.h:21737
Arguments for Api::setManagedBotAccessSettings.
Definition Types.h:21768
bool isAccessRestricted
Pass True if only selected users can access the bot. The bot's owner can always access it.
Definition Types.h:21773
std::vector< std::uint64_t > addedUserIds
A JSON-serialized list of up to 10 identifiers of users who will have access to the bot in addition t...
Definition Types.h:21785
std::uint64_t userId
User identifier of the managed bot whose access settings will be changed.
Definition Types.h:21778
Arguments for Api::setMessageReaction.
Definition Types.h:21792
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:21797
bool isBig
Pass True to set the reaction with a big animation.
Definition Types.h:21818
std::vector< std::shared_ptr< ReactionType > > reaction
A JSON-serialized list of reaction types to set on the message. Currently, as non-premium users,...
Definition Types.h:21813
std::uint32_t messageId
Identifier of the target message. If the message belongs to a media group, the reaction is set to the...
Definition Types.h:21804
Arguments for Api::setMyCommands.
Definition Types.h:21825
std::shared_ptr< BotCommandScope > scope
A JSON-serialized object, describing scope of users for which the commands are relevant....
Definition Types.h:21836
std::string languageCode
A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given ...
Definition Types.h:21843
std::vector< std::shared_ptr< BotCommand > > commands
A JSON-serialized list of bot commands to be set as the list of the bot's commands....
Definition Types.h:21830
Arguments for Api::setMyDefaultAdministratorRights.
Definition Types.h:21850
bool forChannels
Pass True to change the default administrator rights of the bot in channels. Otherwise,...
Definition Types.h:21862
std::shared_ptr< ChatAdministratorRights > rights
A JSON-serialized object describing new default administrator rights. If not specified,...
Definition Types.h:21855
Arguments for Api::setMyDescription.
Definition Types.h:21869
std::string description
New bot description; 0-512 characters. Pass an empty string to remove the dedicated description for t...
Definition Types.h:21874
std::string languageCode
A two-letter ISO 639-1 language code. If empty, the description will be applied to all users for whos...
Definition Types.h:21881
Arguments for Api::setMyName.
Definition Types.h:21888
std::string name
New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given langua...
Definition Types.h:21893
std::string languageCode
A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose languag...
Definition Types.h:21899
Arguments for Api::setMyProfilePhoto.
Definition Types.h:21906
std::vector< InputFileAttachment > attachments
Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument a...
Definition Types.h:21917
std::shared_ptr< InputProfilePhoto > photo
The new profile photo to set.
Definition Types.h:21910
Arguments for Api::setMyShortDescription.
Definition Types.h:21924
std::string languageCode
A two-letter ISO 639-1 language code. If empty, the short description will be applied to all users fo...
Definition Types.h:21936
std::string shortDescription
New short description for the bot; 0-120 characters. Pass an empty string to remove the dedicated sho...
Definition Types.h:21929
Arguments for Api::setPassportDataErrors.
Definition Types.h:21943
std::uint64_t userId
User identifier.
Definition Types.h:21947
std::vector< std::shared_ptr< PassportElementError > > errors
A JSON-serialized Array describing the errors.
Definition Types.h:21952
Arguments for Api::setStickerEmojiList.
Definition Types.h:21959
std::string sticker
File identifier of the sticker.
Definition Types.h:21963
std::vector< std::string > emojiList
A JSON-serialized list of 1-20 emoji associated with the sticker.
Definition Types.h:21968
Arguments for Api::setStickerKeywords.
Definition Types.h:21975
std::string sticker
File identifier of the sticker.
Definition Types.h:21979
std::vector< std::string > keywords
A JSON-serialized list of 0-20 search keywords for the sticker with total length of up to 64 characte...
Definition Types.h:21985
Arguments for Api::setStickerMaskPosition.
Definition Types.h:21992
std::string sticker
File identifier of the sticker.
Definition Types.h:21996
std::shared_ptr< MaskPosition > maskPosition
A JSON-serialized object with the position where the mask should be placed on faces....
Definition Types.h:22002
Arguments for Api::setStickerPositionInSet.
Definition Types.h:22009
std::uint32_t position
New sticker position in the set, zero-based.
Definition Types.h:22018
std::string sticker
File identifier of the sticker.
Definition Types.h:22013
Arguments for Api::setStickerSetThumbnail.
Definition Types.h:22025
std::string format
Format of the thumbnail, must be one of “static” for a .WEBP or .PNG image, “animated” for a ....
Definition Types.h:22040
std::string name
Sticker set name.
Definition Types.h:22029
std::variant< std::shared_ptr< InputFile >, std::string > thumbnail
A .WEBP or .PNG image with the thumbnail, must be up to 128 kilobytes in size and have a width and he...
Definition Types.h:22057
std::uint64_t userId
User identifier of the sticker set owner.
Definition Types.h:22034
Arguments for Api::setStickerSetTitle.
Definition Types.h:22064
std::string name
Sticker set name.
Definition Types.h:22068
std::string title
Sticker set title, 1-64 characters.
Definition Types.h:22073
Arguments for Api::setUserEmojiStatus.
Definition Types.h:22080
std::int32_t emojiStatusExpirationDate
Expiration date of the emoji status, if any.
Definition Types.h:22095
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:22084
std::string emojiStatusCustomEmojiId
Custom emoji identifier of the emoji status to set. Pass an empty string to remove the status.
Definition Types.h:22090
Arguments for Api::setWebhook.
Definition Types.h:22102
std::string ipAddress
The fixed IP address which will be used to send webhook requests instead of the IP address resolved t...
Definition Types.h:22140
bool dropPendingUpdates
Pass True to drop all pending updates.
Definition Types.h:22145
std::string secretToken
A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” in every webhook request,...
Definition Types.h:22153
std::uint32_t maxConnections
The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery,...
Definition Types.h:22121
std::vector< std::string > allowedUpdates
A JSON-serialized list of the update types you want your bot to receive. For example,...
Definition Types.h:22134
std::string url
HTTPS URL to send updates to. Use an empty string to remove webhook integration.
Definition Types.h:22107
std::shared_ptr< InputFile > certificate
Upload your public key certificate so that the root certificate in use can be checked....
Definition Types.h:22113
This object contains information about a user that was shared with the bot using a KeyboardButtonRequ...
Definition Types.h:12708
std::optional< std::string > firstName
Optional. First name of the user, if the name was requested by the bot.
Definition Types.h:12723
std::optional< std::string > lastName
Optional. Last name of the user, if the name was requested by the bot.
Definition Types.h:12727
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:12735
std::shared_ptr< SharedUser > Ptr
Definition Types.h:12709
std::uint64_t userId
Identifier of the shared user. This number may have more than 32 significant bits and some programmin...
Definition Types.h:12719
std::optional< std::string > username
Optional. Username of the user, if the username was requested by the bot.
Definition Types.h:12731
This object represents an incoming query from a forwarded message with a shared widget created by the...
Definition Types.h:12747
std::shared_ptr< User > from
Sender.
Definition Types.h:12757
std::string data
Data of the query, 1-64 bytes.
Definition Types.h:12765
std::shared_ptr< SharedWidgetQuery > Ptr
Definition Types.h:12748
std::shared_ptr< WidgetQueryType > type
Type of the query.
Definition Types.h:12761
std::string widgetId
Unique identifier of the shared widget, which sent the query.
Definition Types.h:12769
This object represents a shipping address.
Definition Types.h:12779
std::string streetLine2
Second line for the address.
Definition Types.h:12801
std::string countryCode
Two-letter ISO 3166-1 alpha-2 country code.
Definition Types.h:12785
std::string state
State, if applicable.
Definition Types.h:12789
std::string postCode
Address post code.
Definition Types.h:12805
std::string city
City.
Definition Types.h:12793
std::shared_ptr< ShippingAddress > Ptr
Definition Types.h:12780
std::string streetLine1
First line for the address.
Definition Types.h:12797
This object represents one shipping option.
Definition Types.h:12815
std::vector< std::shared_ptr< LabeledPrice > > prices
List of price portions.
Definition Types.h:12829
std::string title
Option title.
Definition Types.h:12825
std::shared_ptr< ShippingOption > Ptr
Definition Types.h:12816
This object contains information about an incoming shipping query.
Definition Types.h:12839
std::shared_ptr< ShippingAddress > shippingAddress
User specified shipping address.
Definition Types.h:12857
std::shared_ptr< ShippingQuery > Ptr
Definition Types.h:12840
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:12853
std::shared_ptr< User > from
User who sent the query.
Definition Types.h:12849
Describes an amount of Telegram Stars.
Definition Types.h:12867
std::shared_ptr< StarAmount > Ptr
Definition Types.h:12868
std::int64_t amount
Integer amount of Telegram Stars, rounded to 0; can be negative.
Definition Types.h:12873
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:12878
Describes a Telegram Star transaction. Note that if the buyer initiates a chargeback with the payment...
Definition Types.h:12891
std::shared_ptr< TransactionPartner > source
Optional. Source of an incoming transaction (e.g., a user purchasing goods or services,...
Definition Types.h:12918
std::shared_ptr< StarTransaction > Ptr
Definition Types.h:12892
std::uint64_t amount
Integer amount of Telegram Stars transferred by the transaction.
Definition Types.h:12904
std::int32_t date
Date the transaction was created in Unix time.
Definition Types.h:12913
std::shared_ptr< TransactionPartner > receiver
Optional. Receiver of an outgoing transaction (e.g., a user for a purchase refund,...
Definition Types.h:12923
std::optional< std::uint32_t > nanostarAmount
Optional. The number of 1/1000000000 shares of Telegram Stars transferred by the transaction; from 0 ...
Definition Types.h:12909
Contains a list of Telegram Star transactions.
Definition Types.h:12933
std::vector< std::shared_ptr< StarTransaction > > transactions
The list of transactions.
Definition Types.h:12939
std::shared_ptr< StarTransactions > Ptr
Definition Types.h:12934
This object represents a sticker.
Definition Types.h:12949
std::uint32_t height
Sticker height.
Definition Types.h:12976
Type type
Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is i...
Definition Types.h:12968
std::optional< std::string > emoji
Optional. Emoji associated with the sticker.
Definition Types.h:12992
std::uint32_t width
Sticker width.
Definition Types.h:12972
std::shared_ptr< File > premiumAnimation
Optional. For premium regular stickers, premium animation for the sticker.
Definition Types.h:13000
std::optional< std::string > setName
Optional. Name of the sticker set to which the sticker belongs.
Definition Types.h:12996
std::shared_ptr< MaskPosition > maskPosition
Optional. For mask stickers, the position where the mask should be placed.
Definition Types.h:13004
bool isVideo
True, if the sticker is a video sticker.
Definition Types.h:12984
std::optional< std::string > customEmojiId
Optional. For custom emoji stickers, unique identifier of the custom emoji.
Definition Types.h:13008
bool isAnimated
True, if the sticker is animated.
Definition Types.h:12980
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:12962
std::shared_ptr< Sticker > Ptr
Definition Types.h:12950
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:13014
std::optional< std::uint32_t > fileSize
Optional. File size in bytes.
Definition Types.h:13018
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:12957
std::shared_ptr< PhotoSize > thumbnail
Optional. Sticker thumbnail in the .WEBP or .JPG format.
Definition Types.h:12988
This object represents a sticker set.
Definition Types.h:13031
std::vector< std::shared_ptr< Sticker > > stickers
List of all set stickers.
Definition Types.h:13051
std::string name
Sticker set name.
Definition Types.h:13039
std::shared_ptr< PhotoSize > thumbnail
Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format.
Definition Types.h:13055
Type stickerType
Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”
Definition Types.h:13047
std::string title
Sticker set title.
Definition Types.h:13043
std::shared_ptr< StickerSet > Ptr
Definition Types.h:13032
Arguments for Api::stopMessageLiveLocation.
Definition Types.h:22160
std::uint32_t messageId
Required if inline_message_id is not specified. Identifier of the message with live location to stop.
Definition Types.h:22172
std::string inlineMessageId
Required if chat_id and message_id are not specified. Identifier of the inline message.
Definition Types.h:22178
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for a new inline keyboard.
Definition Types.h:22183
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
Definition Types.h:22189
std::variant< std::int64_t, std::string > chatId
Required if inline_message_id is not specified. Unique identifier for the target chat or username of ...
Definition Types.h:22166
Arguments for Api::stopPoll.
Definition Types.h:22196
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:22201
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message to be edited was sent.
Definition Types.h:22212
std::shared_ptr< InlineKeyboardMarkup > replyMarkup
A JSON-serialized object for a new message inline keyboard.
Definition Types.h:22217
std::uint32_t messageId
Identifier of the original message with the poll.
Definition Types.h:22206
Describes a clickable area on a story media.
Definition Types.h:13088
std::shared_ptr< AreaPosition > position
Position of the area.
Definition Types.h:13094
std::shared_ptr< StoryAreaType > type
Type of the area.
Definition Types.h:13098
std::shared_ptr< StoryArea > Ptr
Definition Types.h:13089
Describes the type of a clickable area on a story. Currently, it can be one of StoryAreaTypeLocation ...
Definition Types.h:13110
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:13116
std::shared_ptr< StoryAreaType > Ptr
Definition Types.h:13111
Describes a story area pointing to an HTTP or tg:// link. Currently, a story can have up to 3 link ar...
Definition Types.h:13127
std::string type
Type of the area, always “link”
Definition Types.h:13135
static TGBOT_API const std::string TYPE
Definition Types.h:13130
std::shared_ptr< StoryAreaTypeLink > Ptr
Definition Types.h:13128
std::string url
HTTP or tg:// URL to be opened when the area is clicked.
Definition Types.h:13139
Describes a story area pointing to a location. Currently, a story can have up to 10 location areas.
Definition Types.h:13150
double longitude
Location longitude in degrees.
Definition Types.h:13166
static TGBOT_API const std::string TYPE
Definition Types.h:13153
std::shared_ptr< LocationAddress > address
Optional. Address of the location.
Definition Types.h:13170
std::string type
Type of the area, always “location”
Definition Types.h:13158
double latitude
Location latitude in degrees.
Definition Types.h:13162
std::shared_ptr< StoryAreaTypeLocation > Ptr
Definition Types.h:13151
Describes a story area pointing to a suggested reaction. Currently, a story can have up to 5 suggeste...
Definition Types.h:13181
std::shared_ptr< StoryAreaTypeSuggestedReaction > Ptr
Definition Types.h:13182
std::string type
Type of the area, always “suggested_reaction”
Definition Types.h:13189
std::shared_ptr< ReactionType > reactionType
Type of the reaction.
Definition Types.h:13193
static TGBOT_API const std::string TYPE
Definition Types.h:13184
std::optional< bool > isFlipped
Optional. Pass True if reaction area corner is flipped.
Definition Types.h:13201
std::optional< bool > isDark
Optional. Pass True if the reaction area has a dark background.
Definition Types.h:13197
Describes a story area pointing to a unique gift. Currently, a story can have at most 1 unique gift a...
Definition Types.h:13212
static TGBOT_API const std::string TYPE
Definition Types.h:13215
std::shared_ptr< StoryAreaTypeUniqueGift > Ptr
Definition Types.h:13213
std::string name
Unique name of the gift.
Definition Types.h:13224
std::string type
Type of the area, always “unique_gift”
Definition Types.h:13220
Describes a story area containing weather information. Currently, a story can have up to 3 weather ar...
Definition Types.h:13235
std::uint32_t backgroundColor
A color of the area background in the ARGB format.
Definition Types.h:13255
std::string type
Type of the area, always “weather”
Definition Types.h:13243
static TGBOT_API const std::string TYPE
Definition Types.h:13238
double temperature
Temperature, in degree Celsius.
Definition Types.h:13247
std::string emoji
Emoji representing the weather.
Definition Types.h:13251
std::shared_ptr< StoryAreaTypeWeather > Ptr
Definition Types.h:13236
This object represents a story.
Definition Types.h:13068
std::shared_ptr< Chat > chat
Chat that posted the story.
Definition Types.h:13074
std::shared_ptr< Story > Ptr
Definition Types.h:13069
This object contains basic information about a successful payment. Note that if the buyer initiates a...
Definition Types.h:13267
std::string providerPaymentChargeId
Provider payment identifier.
Definition Types.h:13312
std::optional< bool > isFirstRecurring
Optional. True, if the payment is the first payment for a subscription.
Definition Types.h:13296
std::string invoicePayload
Bot-specified invoice payload.
Definition Types.h:13284
std::string telegramPaymentChargeId
Telegram payment identifier.
Definition Types.h:13308
std::optional< std::int32_t > subscriptionExpirationDate
Optional. Expiration date of the subscription, in Unix time; for recurring payments only.
Definition Types.h:13288
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
Definition Types.h:13273
std::shared_ptr< OrderInfo > orderInfo
Optional. Order information provided by the user.
Definition Types.h:13304
std::optional< std::string > shippingOptionId
Optional. Identifier of the shipping option chosen by the user.
Definition Types.h:13300
std::shared_ptr< SuccessfulPayment > Ptr
Definition Types.h:13268
std::optional< bool > isRecurring
Optional. True, if the payment is a recurring payment for a subscription.
Definition Types.h:13292
std::uint64_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
Definition Types.h:13280
Describes a service message about the failed approval of a suggested post. Currently,...
Definition Types.h:13323
std::shared_ptr< SuggestedPostPrice > price
Expected price of the post.
Definition Types.h:13335
std::shared_ptr< SuggestedPostApprovalFailed > Ptr
Definition Types.h:13324
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post whose approval has failed. Note that the Message obje...
Definition Types.h:13331
Describes a service message about the approval of a suggested post.
Definition Types.h:13345
std::shared_ptr< SuggestedPostApproved > Ptr
Definition Types.h:13346
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
Definition Types.h:13352
std::int32_t sendDate
Date when the post will be published.
Definition Types.h:13360
std::shared_ptr< SuggestedPostPrice > price
Optional. Amount paid for the post.
Definition Types.h:13356
Describes a service message about the rejection of a suggested post.
Definition Types.h:13370
std::shared_ptr< SuggestedPostDeclined > Ptr
Definition Types.h:13371
std::optional< std::string > comment
Optional. Comment with which the post was declined.
Definition Types.h:13381
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
Definition Types.h:13377
Contains information about a suggested post.
Definition Types.h:13391
std::string state
State of the suggested post. Currently, it can be one of “pending”, “approved”, “declined”.
Definition Types.h:13398
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:13408
std::shared_ptr< SuggestedPostPrice > price
Optional. Proposed price of the post. If the field is omitted, then the post is unpaid.
Definition Types.h:13402
std::shared_ptr< SuggestedPostInfo > Ptr
Definition Types.h:13392
Describes a service message about a successful payment for a suggested post.
Definition Types.h:13418
std::shared_ptr< SuggestedPostPaid > Ptr
Definition Types.h:13419
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:13440
std::optional< std::uint64_t > amount
Optional. The amount of the currency that was received by the channel in nanograms; for payments in T...
Definition Types.h:13435
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:13430
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
Definition Types.h:13425
Contains parameters of a post that is being suggested by the bot.
Definition Types.h:13450
std::shared_ptr< SuggestedPostParameters > Ptr
Definition Types.h:13451
std::shared_ptr< SuggestedPostPrice > price
Optional. Proposed price for the post. If the field is omitted, then the post is unpaid.
Definition Types.h:13456
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:13463
Describes the price of a suggested post.
Definition Types.h:13473
std::uint64_t amount
The amount of the currency that will be paid for the post in the smallest units of the currency,...
Definition Types.h:13487
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:13480
std::shared_ptr< SuggestedPostPrice > Ptr
Definition Types.h:13474
Describes a service message about a payment refund for a suggested post.
Definition Types.h:13497
std::shared_ptr< Message > suggestedPostMessage
Optional. Message containing the suggested post. Note that the Message object in this field will not ...
Definition Types.h:13504
std::shared_ptr< SuggestedPostRefunded > Ptr
Definition Types.h:13498
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:13510
This object represents an inline button that switches the current user to inline mode in a chosen cha...
Definition Types.h:13521
std::optional< bool > allowGroupChats
Optional. True, if group and supergroup chats can be chosen.
Definition Types.h:13540
std::shared_ptr< SwitchInlineQueryChosenChat > Ptr
Definition Types.h:13522
std::optional< bool > allowBotChats
Optional. True, if private chats with bots can be chosen.
Definition Types.h:13536
std::optional< bool > allowChannelChats
Optional. True, if channel chats can be chosen.
Definition Types.h:13544
std::optional< std::string > query
Optional. The default inline query to be inserted in the input field. If left empty,...
Definition Types.h:13528
std::optional< bool > allowUserChats
Optional. True, if private chats with users can be chosen.
Definition Types.h:13532
This object contains information about the quoted part of a message that is replied to by the given m...
Definition Types.h:13555
std::optional< std::vector< std::shared_ptr< RichText > > > richTexts
Optional. Rich text of the quote if it was chosen from a rich message. May contain only plain text,...
Definition Types.h:13575
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the quote. Currently, only bold, italic,...
Definition Types.h:13568
std::uint32_t position
Approximate quote position in the original message in UTF-16 code units as specified by the sender....
Definition Types.h:13581
std::shared_ptr< TextQuote > Ptr
Definition Types.h:13556
std::string text
Text of the quoted part of a message that is replied to by the given message; may be empty if the quo...
Definition Types.h:13562
std::optional< bool > isManual
Optional. True, if the quote was chosen manually by the message sender. Otherwise,...
Definition Types.h:13586
This object represents an attribute of an NFT in the TON blockchain.
Definition Types.h:13636
std::string value
Value of the attribute.
Definition Types.h:13646
std::shared_ptr< TonNftAttribute > Ptr
Definition Types.h:13637
std::string traitType
Trait type of the attribute.
Definition Types.h:13642
This object represents an NFT in the TON blockchain.
Definition Types.h:13596
std::optional< std::vector< std::shared_ptr< TonNftAttribute > > > attributes
Optional. Attributes of the NFT.
Definition Types.h:13622
std::shared_ptr< UniqueGift > gift
Optional. The unique gift corresponding to the NFT.
Definition Types.h:13626
std::string index
Index of the NFT among all NFTs from the collection as a decimal number.
Definition Types.h:13610
std::string description
Description of the NFT.
Definition Types.h:13618
std::optional< std::string > collectionAddress
Optional. Address of the collection to which the NFT belongs; omitted if unknown.
Definition Types.h:13606
std::shared_ptr< TonNft > Ptr
Definition Types.h:13597
std::string name
Name of the NFT.
Definition Types.h:13614
std::string address
Address of the NFT.
Definition Types.h:13602
This object describes a TON wallet card, which is shown on the profile page of a user to everyone.
Definition Types.h:13657
std::string amount
Balance of the wallet, in the smallest units of the cryptocurrency, as a decimal number.
Definition Types.h:13667
std::shared_ptr< TonWalletCard > Ptr
Definition Types.h:13658
std::string address
Address of the wallet.
Definition Types.h:13663
std::optional< std::string > backgroundNftAddress
Optional. Address of the NFT of one of the stickers, whose colors must be used for the card backgroun...
Definition Types.h:13676
std::vector< std::shared_ptr< TonWalletCardSticker > > stickers
Stickers placed on the card.
Definition Types.h:13671
This object describes a sticker on a TON wallet card.
Definition Types.h:13686
std::shared_ptr< TonNft > nft
The NFT shown as the sticker.
Definition Types.h:13696
std::shared_ptr< TonWalletCardSticker > Ptr
Definition Types.h:13687
std::shared_ptr< AreaPosition > position
Position of the sticker on the card.
Definition Types.h:13692
Describes a service message about a transfer with a TON wallet.
Definition Types.h:13706
std::string amount
The amount of transferred cryptocurrency, in the smallest units of the cryptocurrency,...
Definition Types.h:13721
std::optional< std::string > comment
Optional. Comment added to the transfer; omitted if the comment is encrypted.
Definition Types.h:13725
std::shared_ptr< TonWalletTransfer > Ptr
Definition Types.h:13707
std::string transactionId
Unique identifier of the transaction; may be empty if the transfer hasn't been sent yet.
Definition Types.h:13712
std::string peerAddress
Address of the transfer peer in the TON blockchain.
Definition Types.h:13716
Describes the affiliate program that issued the affiliate commission received via this transaction.
Definition Types.h:13756
std::shared_ptr< TransactionPartnerAffiliateProgram > Ptr
Definition Types.h:13757
std::uint32_t commissionPerMille
The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affilia...
Definition Types.h:13773
std::string type
Type of the transaction partner, always “affiliate_program”
Definition Types.h:13764
std::shared_ptr< User > sponsorUser
Optional. Information about the bot that sponsored the affiliate program.
Definition Types.h:13768
static TGBOT_API const std::string TYPE
Definition Types.h:13759
Describes a transaction with a chat.
Definition Types.h:13783
std::shared_ptr< Gift > gift
Optional. The gift sent to the chat by the bot.
Definition Types.h:13799
std::shared_ptr< Chat > chat
Information about the chat.
Definition Types.h:13795
static TGBOT_API const std::string TYPE
Definition Types.h:13786
std::shared_ptr< TransactionPartnerChat > Ptr
Definition Types.h:13784
std::string type
Type of the transaction partner, always “chat”
Definition Types.h:13791
Describes a withdrawal transaction with Fragment.
Definition Types.h:13809
std::shared_ptr< TransactionPartnerFragment > Ptr
Definition Types.h:13810
std::shared_ptr< RevenueWithdrawalState > withdrawalState
Optional. State of the transaction if the transaction is outgoing.
Definition Types.h:13821
static TGBOT_API const std::string TYPE
Definition Types.h:13812
std::string type
Type of the transaction partner, always “fragment”
Definition Types.h:13817
This object describes the source of a transaction, or its recipient for outgoing transactions....
Definition Types.h:13738
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:13745
std::shared_ptr< TransactionPartner > Ptr
Definition Types.h:13739
Describes a transaction with an unknown source or recipient.
Definition Types.h:13831
std::shared_ptr< TransactionPartnerOther > Ptr
Definition Types.h:13832
std::string type
Type of the transaction partner, always “other”
Definition Types.h:13839
static TGBOT_API const std::string TYPE
Definition Types.h:13834
Describes a withdrawal transaction to the Telegram Ads platform.
Definition Types.h:13849
std::string type
Type of the transaction partner, always “telegram_ads”
Definition Types.h:13857
std::shared_ptr< TransactionPartnerTelegramAds > Ptr
Definition Types.h:13850
static TGBOT_API const std::string TYPE
Definition Types.h:13852
Describes a transaction with payment for paid broadcasting.
Definition Types.h:13867
std::shared_ptr< TransactionPartnerTelegramApi > Ptr
Definition Types.h:13868
static TGBOT_API const std::string TYPE
Definition Types.h:13870
std::string type
Type of the transaction partner, always “telegram_api”
Definition Types.h:13875
std::uint32_t requestCount
The number of successful requests that exceeded regular limits and were therefore billed.
Definition Types.h:13879
Describes a transaction with a user.
Definition Types.h:13889
std::shared_ptr< User > user
Information about the user.
Definition Types.h:13908
std::optional< std::string > paidMediaPayload
Optional. Bot-specified paid media payload. Can be available only for “paid_media_payment” transactio...
Definition Types.h:13934
std::optional< std::string > invoicePayload
Optional. Bot-specified invoice payload. Can be available only for “invoice_payment” transactions.
Definition Types.h:13919
std::optional< std::uint32_t > premiumSubscriptionDuration
Optional. Number of months the gifted Telegram Premium subscription will be active for; for “premium_...
Definition Types.h:13943
std::shared_ptr< AffiliateInfo > affiliate
Optional. Information about the affiliate that received a commission via this transaction....
Definition Types.h:13914
std::string transactionType
Type of the transaction, currently one of “invoice_payment” for payments via invoices,...
Definition Types.h:13904
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:13929
std::string type
Type of the transaction partner, always “user”
Definition Types.h:13897
std::optional< std::uint32_t > subscriptionPeriod
Optional. The duration of the paid subscription. Can be available only for “invoice_payment” transact...
Definition Types.h:13924
std::shared_ptr< TransactionPartnerUser > Ptr
Definition Types.h:13890
static TGBOT_API const std::string TYPE
Definition Types.h:13892
std::shared_ptr< Gift > gift
Optional. The gift sent to the user by the bot; for “gift_purchase” transactions only.
Definition Types.h:13938
Arguments for Api::transferBusinessAccountStars.
Definition Types.h:22224
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:22228
std::uint32_t starCount
Number of Telegram Stars to transfer; 1-10000.
Definition Types.h:22233
Arguments for Api::transferGift.
Definition Types.h:22240
std::string ownedGiftId
Unique identifier of the regular gift that should be transferred.
Definition Types.h:22255
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:22244
std::uint32_t starCount
The amount of Telegram Stars that will be paid for the transfer from the business account balance....
Definition Types.h:22262
std::int64_t newOwnerChatId
Unique identifier of the chat which will own the gift. The chat must be active in the last 24 hours.
Definition Types.h:22250
Arguments for Api::unbanChatMember.
Definition Types.h:22269
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target group or username of the target supergroup or channel in the format ...
Definition Types.h:22274
bool onlyIfBanned
Do nothing if the user is not banned.
Definition Types.h:22284
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:22279
Arguments for Api::unbanChatSenderChat.
Definition Types.h:22291
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:22296
std::int64_t senderChatId
Unique identifier of the target sender chat.
Definition Types.h:22301
Arguments for Api::unhideGeneralForumTopic.
Definition Types.h:22308
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:22313
This object describes the colors of the backdrop of a unique gift.
Definition Types.h:14042
std::uint32_t edgeColor
The color on the edges of the backdrop in RGB format.
Definition Types.h:14052
std::uint32_t symbolColor
The color to be applied to the symbol in RGB format.
Definition Types.h:14056
std::uint32_t textColor
The color for the text on the backdrop in RGB format.
Definition Types.h:14060
std::shared_ptr< UniqueGiftBackdropColors > Ptr
Definition Types.h:14043
std::uint32_t centerColor
The color in the center of the backdrop in RGB format.
Definition Types.h:14048
This object describes the backdrop of a unique gift.
Definition Types.h:14018
std::string name
Name of the backdrop.
Definition Types.h:14024
std::shared_ptr< UniqueGiftBackdrop > Ptr
Definition Types.h:14019
std::shared_ptr< UniqueGiftBackdropColors > colors
Colors of the backdrop.
Definition Types.h:14028
std::uint32_t rarityPerMille
The number of unique gifts that receive this backdrop for every 1000 gifts upgraded.
Definition Types.h:14032
This object contains information about the color scheme for a user's name, message replies and link p...
Definition Types.h:14071
std::vector< std::uint32_t > lightThemeOtherColors
List of 1-3 additional colors used in light themes; RGB format.
Definition Types.h:14089
std::string modelCustomEmojiId
Custom emoji identifier of the unique gift's model.
Definition Types.h:14077
std::vector< std::uint32_t > darkThemeOtherColors
List of 1-3 additional colors used in dark themes; RGB format.
Definition Types.h:14097
std::shared_ptr< UniqueGiftColors > Ptr
Definition Types.h:14072
std::string symbolCustomEmojiId
Custom emoji identifier of the unique gift's symbol.
Definition Types.h:14081
std::uint32_t lightThemeMainColor
Main color used in light themes; RGB format.
Definition Types.h:14085
std::uint32_t darkThemeMainColor
Main color used in dark themes; RGB format.
Definition Types.h:14093
This object describes a unique gift that was upgraded from a regular gift.
Definition Types.h:13953
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:13998
std::shared_ptr< UniqueGift > Ptr
Definition Types.h:13954
std::uint32_t number
Unique number of the upgraded gift among gifts upgraded from the same regular gift.
Definition Types.h:13972
std::shared_ptr< UniqueGiftBackdrop > backdrop
Backdrop of the gift.
Definition Types.h:13984
std::string baseName
Human-readable name of the regular gift from which this unique gift was upgraded.
Definition Types.h:13963
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:14004
std::shared_ptr< Chat > publisherChat
Optional. Information about the chat that published the gift.
Definition Types.h:14008
std::shared_ptr< UniqueGiftSymbol > symbol
Symbol of the gift.
Definition Types.h:13980
std::string giftId
Identifier of the regular gift from which the gift was upgraded.
Definition Types.h:13959
std::optional< bool > isPremium
Optional. True, if the original regular gift was exclusively purchaseable by Telegram Premium subscri...
Definition Types.h:13989
std::optional< bool > isBurned
Optional. True, if the gift was used to craft another gift and isn't available anymore.
Definition Types.h:13993
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:13968
std::shared_ptr< UniqueGiftModel > model
Model of the gift.
Definition Types.h:13976
Describes a service message about a unique gift that was sent or received.
Definition Types.h:14107
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:14138
std::shared_ptr< UniqueGift > gift
Information about the gift.
Definition Types.h:14113
std::shared_ptr< UniqueGiftInfo > Ptr
Definition Types.h:14108
std::optional< std::uint32_t > transferStarCount
Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot ...
Definition Types.h:14153
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities
Optional. Special entities that appear in the text.
Definition Types.h:14128
std::optional< bool > isPrivate
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise,...
Definition Types.h:14133
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:14148
std::string origin
Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts,...
Definition Types.h:14120
std::optional< std::string > text
Optional. Text of the message that was added to the gift.
Definition Types.h:14124
std::optional< std::uint64_t > lastResaleAmount
Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or ...
Definition Types.h:14143
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:14158
This object describes the model of a unique gift.
Definition Types.h:14168
std::optional< std::string > rarity
Optional. Rarity of the model if it is a crafted model. Currently, can be “uncommon”,...
Definition Types.h:14188
std::uint32_t rarityPerMille
The number of unique gifts that receive this model for every 1000 gift upgrades. Always 0 for crafted...
Definition Types.h:14183
std::shared_ptr< UniqueGiftModel > Ptr
Definition Types.h:14169
std::string name
Name of the model.
Definition Types.h:14174
std::shared_ptr< Sticker > sticker
The sticker that represents the unique gift.
Definition Types.h:14178
This object describes the symbol shown on the pattern of a unique gift.
Definition Types.h:14198
std::shared_ptr< Sticker > sticker
The sticker that represents the unique gift.
Definition Types.h:14208
std::uint32_t rarityPerMille
The number of unique gifts that receive this model for every 1000 gifts upgraded.
Definition Types.h:14212
std::shared_ptr< UniqueGiftSymbol > Ptr
Definition Types.h:14199
std::string name
Name of the symbol.
Definition Types.h:14204
Arguments for Api::unpinAllChatMessages.
Definition Types.h:22320
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:22325
Arguments for Api::unpinAllForumTopicMessages.
Definition Types.h:22332
std::uint32_t messageThreadId
Unique identifier for the target message thread of the forum topic.
Definition Types.h:22342
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:22337
Arguments for Api::unpinAllGeneralForumTopicMessages.
Definition Types.h:22349
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target supergroup in the format @username.
Definition Types.h:22354
Arguments for Api::unpinChatMessage.
Definition Types.h:22361
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target channel in the format @username.
Definition Types.h:22366
std::string businessConnectionId
Unique identifier of the business connection on behalf of which the message will be unpinned.
Definition Types.h:22372
std::uint32_t messageId
Identifier of the message to unpin. Required if business_connection_id is specified....
Definition Types.h:22379
This object represents an incoming update.At most one of the optional fields can be present in any gi...
Definition Types.h:14223
std::shared_ptr< WidgetQuery > widgetQuery
Optional. New incoming query from a widget in a message sent by the bot or via the bot.
Definition Types.h:14308
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:14244
std::shared_ptr< Message > channelPost
Optional. New incoming channel post of any kind - text, photo, sticker, etc.
Definition Types.h:14248
std::shared_ptr< CallbackQuery > callbackQuery
Optional. New incoming callback query.
Definition Types.h:14304
std::uint32_t updateId
The update's unique identifier. Update identifiers start from a certain positive number and increase ...
Definition Types.h:14234
std::shared_ptr< BotSubscriptionUpdated > subscription
Optional. User payment subscription has changed.
Definition Types.h:14370
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:14356
std::shared_ptr< Message > message
Optional. New incoming message of any kind - text, photo, sticker, etc.
Definition Types.h:14238
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:14361
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:14300
std::shared_ptr< ShippingQuery > shippingQuery
Optional. New incoming shipping query. Only for invoices with flexible price.
Definition Types.h:14316
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:14283
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:14351
std::shared_ptr< Update > Ptr
Definition Types.h:14224
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:14346
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:14325
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:14366
std::shared_ptr< PreCheckoutQuery > preCheckoutQuery
Optional. New incoming pre-checkout query. Contains full information about checkout.
Definition Types.h:14320
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:14254
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:14276
std::shared_ptr< MessageReactionCountUpdated > messageReactionCount
Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administra...
Definition Types.h:14290
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:14335
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:14259
std::shared_ptr< BusinessMessagesDeleted > deletedBusinessMessages
Optional. Messages were deleted from a connected business account.
Definition Types.h:14271
std::shared_ptr< Message > editedBusinessMessage
Optional. New version of a message from a connected business account.
Definition Types.h:14267
std::shared_ptr< SharedWidgetQuery > sharedWidgetQuery
Optional. New incoming query from a forwarded message with a shared widget.
Definition Types.h:14312
std::shared_ptr< MessageGenerationStopped > stoppedMessageGeneration
Optional. A user asked the bot to stop the generation of a message.
Definition Types.h:14374
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:14340
std::shared_ptr< InlineQuery > inlineQuery
Optional. New incoming inline query.
Definition Types.h:14294
std::shared_ptr< Message > businessMessage
Optional. New message from a connected business account.
Definition Types.h:14263
std::shared_ptr< Poll > poll
Optional. New poll state. Bots receive only updates about manually stopped polls and polls,...
Definition Types.h:14330
Arguments for Api::upgradeGift.
Definition Types.h:22386
std::string businessConnectionId
Unique identifier of the business connection.
Definition Types.h:22390
bool keepOriginalDetails
Pass True to keep the original gift text, sender and receiver in the upgraded gift.
Definition Types.h:22402
std::string ownedGiftId
Unique identifier of the regular gift that should be upgraded to a unique one.
Definition Types.h:22396
std::uint32_t starCount
The amount of Telegram Stars that will be paid for the upgrade from the business account balance....
Definition Types.h:22410
Arguments for Api::uploadStickerFile.
Definition Types.h:22417
std::uint64_t userId
User identifier of sticker file owner.
Definition Types.h:22421
std::variant< std::shared_ptr< InputFile >, std::string > sticker
A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram....
Definition Types.h:22428
std::string stickerFormat
Format of the sticker, must be one of “static”, “animated”, “video”
Definition Types.h:22433
This object represents a list of boosts added to a chat by a user.
Definition Types.h:14477
std::vector< std::shared_ptr< ChatBoost > > boosts
The list of boosts added to the chat by the user.
Definition Types.h:14483
std::shared_ptr< UserChatBoosts > Ptr
Definition Types.h:14478
This object represents a Telegram user or bot.
Definition Types.h:14384
std::optional< std::string > lastName
Optional. User's or bot's last name.
Definition Types.h:14405
std::optional< bool > hasMainWebApp
Optional. True, if the bot has a main Web App. Returned only in getMe.
Definition Types.h:14447
std::optional< bool > allowsUsersToCreateTopics
Optional. True, if the bot allows users to create and delete topics in private chats....
Definition Types.h:14457
std::optional< bool > canJoinGroups
Optional. True, if the bot can be invited to groups. Returned only in getMe.
Definition Types.h:14425
std::optional< bool > supportsInlineQueries
Optional. True, if the bot supports inline queries. Returned only in getMe.
Definition Types.h:14438
std::optional< bool > isPremium
Optional. True, if this user is a Telegram Premium user.
Definition Types.h:14417
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:14462
std::optional< bool > supportsGuestQueries
Optional. True, if the bot supports guest queries from chats it is not a member of....
Definition Types.h:14434
std::string firstName
User's or bot's first name.
Definition Types.h:14401
std::optional< bool > canReadAllGroupMessages
Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.
Definition Types.h:14429
std::optional< std::string > username
Optional. User's or bot's username.
Definition Types.h:14409
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:14443
std::optional< bool > hasTopicsEnabled
Optional. True, if the bot has forum topic mode enabled in private chats. Returned only in getMe.
Definition Types.h:14452
bool isBot
True, if this user is a bot.
Definition Types.h:14397
std::optional< bool > addedToAttachmentMenu
Optional. True, if this user added the bot to the attachment menu.
Definition Types.h:14421
std::shared_ptr< User > Ptr
Definition Types.h:14385
std::optional< std::string > languageCode
Optional. IETF language tag of the user's language.
Definition Types.h:14413
std::optional< bool > supportsJoinRequestQueries
Optional. True, if the bot supports join request queries and can be assigned to process them....
Definition Types.h:14467
This object represents the audios displayed on a user's profile.
Definition Types.h:14493
std::uint32_t totalCount
Total number of profile audios for the target user.
Definition Types.h:14499
std::vector< std::shared_ptr< Audio > > audios
Requested profile audios.
Definition Types.h:14503
std::shared_ptr< UserProfileAudios > Ptr
Definition Types.h:14494
This object represent a user's profile pictures.
Definition Types.h:14513
std::uint32_t totalCount
Total number of profile pictures the target user has.
Definition Types.h:14519
std::vector< std::vector< std::shared_ptr< PhotoSize > > > photos
Requested profile pictures (in up to 4 sizes each).
Definition Types.h:14523
std::shared_ptr< UserProfilePhotos > Ptr
Definition Types.h:14514
This object describes the rating of a user based on their Telegram Star spendings.
Definition Types.h:14533
std::int32_t level
Current level of the user, indicating their reliability when purchasing digital goods and services....
Definition Types.h:14541
std::shared_ptr< UserRating > Ptr
Definition Types.h:14534
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:14554
std::int32_t currentLevelRating
The rating value required to get the current level.
Definition Types.h:14549
std::int32_t rating
Numerical value of the user's rating; the higher the rating, the better.
Definition Types.h:14545
This object contains information about the users whose identifiers were shared with the bot using a K...
Definition Types.h:14565
std::vector< std::shared_ptr< SharedUser > > users
Information about users shared with the bot.
Definition Types.h:14575
std::shared_ptr< UsersShared > Ptr
Definition Types.h:14566
std::int32_t requestId
Identifier of the request.
Definition Types.h:14571
This object represents a venue.
Definition Types.h:14585
std::optional< std::string > foursquareId
Optional. Foursquare identifier of the venue.
Definition Types.h:14603
std::string address
Address of the venue.
Definition Types.h:14599
std::optional< std::string > googlePlaceType
Optional. Google Places type of the venue. (See supported types.).
Definition Types.h:14616
std::shared_ptr< Location > location
Venue location. Can't be a live location.
Definition Types.h:14591
std::optional< std::string > foursquareType
Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”,...
Definition Types.h:14608
std::optional< std::string > googlePlaceId
Optional. Google Places identifier of the venue.
Definition Types.h:14612
std::shared_ptr< Venue > Ptr
Definition Types.h:14586
std::string title
Name of the venue.
Definition Types.h:14595
Arguments for Api::verifyChat.
Definition Types.h:22440
std::string customDescription
Custom description for the verification; 0-70 characters. Must be empty if the organization isn't all...
Definition Types.h:22453
std::string customDescriptionParseMode
Mode for parsing entities in the custom description. See formatting options for more details....
Definition Types.h:22466
std::variant< std::int64_t, std::string > chatId
Unique identifier for the target chat or username of the target bot, supergroup, or channel in the fo...
Definition Types.h:22446
std::vector< std::shared_ptr< MessageEntity > > customDescriptionEntities
A JSON-serialized list of special entities that appear in the custom description, which can be specif...
Definition Types.h:22460
Arguments for Api::verifyUser.
Definition Types.h:22473
std::string customDescriptionParseMode
Mode for parsing entities in the custom description. See formatting options for more details....
Definition Types.h:22497
std::string customDescription
Custom description for the verification; 0-70 characters. Must be empty if the organization isn't all...
Definition Types.h:22484
std::uint64_t userId
Unique identifier of the target user.
Definition Types.h:22477
std::vector< std::shared_ptr< MessageEntity > > customDescriptionEntities
A JSON-serialized list of special entities that appear in the custom description, which can be specif...
Definition Types.h:22491
This object represents a service message about a video chat ended in the chat.
Definition Types.h:14690
std::shared_ptr< VideoChatEnded > Ptr
Definition Types.h:14691
std::uint32_t duration
Video chat duration in seconds.
Definition Types.h:14696
This object represents a service message about new members invited to a video chat.
Definition Types.h:14706
std::shared_ptr< VideoChatParticipantsInvited > Ptr
Definition Types.h:14707
std::vector< std::shared_ptr< User > > users
New members that were invited to the video chat.
Definition Types.h:14712
This object represents a service message about a video chat scheduled in the chat.
Definition Types.h:14722
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:14729
std::shared_ptr< VideoChatScheduled > Ptr
Definition Types.h:14723
This object represents a service message about a video chat started in the chat. Currently holds no i...
Definition Types.h:14740
std::shared_ptr< VideoChatStarted > Ptr
Definition Types.h:14741
This object represents a video file.
Definition Types.h:14626
std::optional< std::string > fileName
Optional. Original filename as defined by the sender.
Definition Types.h:14669
std::optional< std::vector< std::shared_ptr< VideoQuality > > > qualities
Optional. List of available qualities of the video.
Definition Types.h:14665
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:14632
std::uint32_t duration
Duration of the video in seconds as defined by the sender.
Definition Types.h:14649
std::shared_ptr< PhotoSize > thumbnail
Optional. Video thumbnail.
Definition Types.h:14653
std::uint32_t width
Video width as defined by the sender.
Definition Types.h:14641
std::shared_ptr< Video > Ptr
Definition Types.h:14627
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:14637
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
Definition Types.h:14680
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:14673
std::optional< std::vector< std::shared_ptr< PhotoSize > > > cover
Optional. Available sizes of the cover of the video in the message.
Definition Types.h:14657
std::uint32_t height
Video height as defined by the sender.
Definition Types.h:14645
std::optional< std::uint32_t > startTimestamp
Optional. Timestamp in seconds from which the video will play in the message.
Definition Types.h:14661
This object represents a video message.
Definition Types.h:14751
std::optional< std::uint32_t > fileSize
Optional. File size in bytes.
Definition Types.h:14778
std::shared_ptr< PhotoSize > thumbnail
Optional. Video thumbnail.
Definition Types.h:14774
std::uint32_t length
Video width and height (diameter of the video message) as defined by the sender.
Definition Types.h:14766
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:14757
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:14762
std::shared_ptr< VideoNote > Ptr
Definition Types.h:14752
std::uint32_t duration
Duration of the video in seconds as defined by the sender.
Definition Types.h:14770
This object represents a video file of a specific quality.
Definition Types.h:14788
std::shared_ptr< VideoQuality > Ptr
Definition Types.h:14789
std::uint32_t width
Video width.
Definition Types.h:14803
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:14799
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
Definition Types.h:14818
std::string codec
Codec that was used to encode the video, for example, “h264”, “h265”, or “av01”
Definition Types.h:14811
std::uint32_t height
Video height.
Definition Types.h:14807
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:14794
This object represents a voice note.
Definition Types.h:14828
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Types.h:14834
std::uint32_t duration
Duration of the audio in seconds as defined by the sender.
Definition Types.h:14843
std::optional< std::string > mimeType
Optional. MIME type of the file as defined by the sender.
Definition Types.h:14847
std::optional< std::uint64_t > fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have diff...
Definition Types.h:14854
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Types.h:14839
std::shared_ptr< Voice > Ptr
Definition Types.h:14829
Describes data sent from a Web App to the bot.
Definition Types.h:14864
std::shared_ptr< WebAppData > Ptr
Definition Types.h:14865
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:14875
std::string data
The data. Be aware that a bad client can send arbitrary data in this field.
Definition Types.h:14870
Describes a Web App.
Definition Types.h:14885
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:14892
std::shared_ptr< WebAppInfo > Ptr
Definition Types.h:14886
Describes the current status of a webhook.
Definition Types.h:14902
std::optional< std::string > lastErrorMessage
Optional. Error message in human-readable format for the most recent error that happened when trying ...
Definition Types.h:14930
std::optional< std::string > ipAddress
Optional. Currently used webhook IP address.
Definition Types.h:14920
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:14945
std::string url
Webhook URL, may be empty if webhook is not set up.
Definition Types.h:14908
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:14935
std::shared_ptr< WebhookInfo > Ptr
Definition Types.h:14903
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:14925
std::optional< std::uint32_t > maxConnections
Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update deli...
Definition Types.h:14940
std::uint32_t pendingUpdateCount
Number of updates awaiting delivery.
Definition Types.h:14916
bool hasCustomCertificate
True, if a custom certificate was provided for webhook certificate checks.
Definition Types.h:14912
This object describes an HTML widget.
Definition Types.h:14955
std::optional< std::string > chatData
Optional. Data of the widget, which is specific to the message.
Definition Types.h:14985
std::string html
HTML code of the widget.
Definition Types.h:14976
std::shared_ptr< Widget > Ptr
Definition Types.h:14956
std::optional< std::uint32_t > width
Optional. Width of the widget in logical pixels; omitted if the widget must occupy the whole width of...
Definition Types.h:14967
std::optional< std::uint32_t > height
Optional. Height of the widget in logical pixels; omitted if the height of the widget isn't fixed.
Definition Types.h:14972
std::optional< std::string > publicData
Optional. Public data of the widget, which is available wherever the widget is shown....
Definition Types.h:14981
This object represents an incoming query from a widget in a message sent by the bot or via the bot....
Definition Types.h:14997
std::optional< std::string > chatType
Optional. For widgets in inline messages, type of the chat to which the message was sent....
Definition Types.h:15032
std::optional< std::uint32_t > messageId
Optional. Identifier of the message containing the widget; omitted if the widget is in an inline mess...
Definition Types.h:15017
std::shared_ptr< WidgetQueryType > type
Type of the query.
Definition Types.h:15036
std::optional< std::string > widgetId
Optional. Unique identifier of the shared widget, which sent the query; omitted if the widget isn't s...
Definition Types.h:15045
std::shared_ptr< User > from
Sender.
Definition Types.h:15007
std::string data
Data of the query, 1-64 bytes.
Definition Types.h:15040
std::optional< std::string > inlineMessageId
Optional. Identifier of the inline message containing the widget.
Definition Types.h:15021
std::shared_ptr< Chat > chat
Optional. Chat with the message containing the widget; omitted if the widget is in an inline message.
Definition Types.h:15012
std::shared_ptr< WidgetQuery > Ptr
Definition Types.h:14998
std::string chatInstance
Global identifier, uniquely corresponding to the chat to which the message with the widget was sent.
Definition Types.h:15026
The query contains data for the bot.
Definition Types.h:15071
std::shared_ptr< WidgetQueryTypeData > Ptr
Definition Types.h:15072
std::string type
Type of the query, always “data”
Definition Types.h:15079
static TGBOT_API const std::string TYPE
Definition Types.h:15074
std::shared_ptr< TonWalletCard > walletCard
Optional. TON wallet card of the user who sent the query, if it was sent to the bot along with the qu...
Definition Types.h:15084
This object describes the type of a query from a widget. Currently, it can be one of WidgetQueryTypeD...
Definition Types.h:15056
std::variant< std::shared_ptr< WidgetQueryTypeData >, std::shared_ptr< WidgetQueryTypeSignData >, std::shared_ptr< WidgetQueryTypeSentTransaction > > value
Definition Types.h:15061
std::shared_ptr< WidgetQueryType > Ptr
Definition Types.h:15057
The query notifies the bot about a transaction sent from a TON wallet of the user who sent the query.
Definition Types.h:15095
std::string msgHash
Value of msg_hash of the transaction.
Definition Types.h:15111
std::shared_ptr< WidgetQueryTypeSentTransaction > Ptr
Definition Types.h:15096
std::shared_ptr< WidgetQueryWallet > wallet
The wallet from which the transaction was sent.
Definition Types.h:15107
static TGBOT_API const std::string TYPE
Definition Types.h:15098
std::string type
Type of the query, always “sent_transaction”
Definition Types.h:15103
The query contains data signed by a TON wallet of the user who sent the query. The data is signed for...
Definition Types.h:15122
std::shared_ptr< WidgetQueryTypeSignData > Ptr
Definition Types.h:15123
std::string type
Type of the query, always “sign_data”
Definition Types.h:15130
std::string signData
JSON-serialized signed data.
Definition Types.h:15138
std::shared_ptr< WidgetQueryWallet > wallet
The wallet that signed the data.
Definition Types.h:15134
static TGBOT_API const std::string TYPE
Definition Types.h:15125
This object describes a TON wallet of the user, which is used in a query from a widget.
Definition Types.h:15148
std::string amount
Balance of the wallet, in the smallest units of the cryptocurrency, as a decimal number.
Definition Types.h:15158
std::string address
Address of the wallet.
Definition Types.h:15154
std::optional< std::string > publicKey
Optional. Hex-encoded public key of the wallet; omitted if unknown.
Definition Types.h:15162
std::shared_ptr< WidgetQueryWallet > Ptr
Definition Types.h:15149
std::optional< std::string > stateInit
Optional. Base64-encoded serialized StateInit of the wallet contract; omitted if and only if public_k...
Definition Types.h:15167
This object represents a service message about a user allowing a bot to write messages after adding i...
Definition Types.h:15179
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:15196
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:15191
std::shared_ptr< WriteAccessAllowed > Ptr
Definition Types.h:15180
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:15186