tgbot-cpp
Loading...
Searching...
No Matches
ApiMethods.inc.h
Go to the documentation of this file.
1// Generated by `make api-generate`. Do not edit.
2
19 bool addStickerToSet(std::int64_t userId,
20 std::string_view name,
21 std::shared_ptr<InputSticker> sticker,
22 const std::vector<InputFileAttachment>& attachments = { }) const;
23
33 bool addStickerToSet(const AddStickerToSetArgs& args) const;
34
55 bool answerCallbackQuery(std::string_view callbackQueryId,
56 std::string_view text = "",
57 bool showAlert = false,
58 std::string_view url = "",
59 std::int32_t cacheTime = 0) const;
60
70 bool answerCallbackQuery(const AnswerCallbackQueryArgs& args) const;
71
82 bool answerChatJoinRequestQuery(std::string_view chatJoinRequestQueryId, std::string_view result) const;
83
91 bool answerChatJoinRequestQuery(const AnswerChatJoinRequestQueryArgs& args) const;
92
102 std::shared_ptr<SentGuestMessage> answerGuestQuery(std::string_view guestQueryId,
103 std::shared_ptr<InlineQueryResult> result) const;
104
113 std::shared_ptr<SentGuestMessage> answerGuestQuery(const AnswerGuestQueryArgs& args) const;
114
135 bool answerInlineQuery(std::string_view inlineQueryId,
136 const std::vector<std::shared_ptr<InlineQueryResult>>& results,
137 std::int32_t cacheTime = 300,
138 bool isPersonal = false,
139 std::string_view nextOffset = "",
140 std::shared_ptr<InlineQueryResultsButton> button = nullptr) const;
141
150 bool answerInlineQuery(const AnswerInlineQueryArgs& args) const;
151
171 bool
172 answerPreCheckoutQuery(std::string_view preCheckoutQueryId, bool ok, std::string_view errorMessage = "") const;
173
184 bool answerPreCheckoutQuery(const AnswerPreCheckoutQueryArgs& args) const;
185
204 bool answerShippingQuery(std::string_view shippingQueryId,
205 bool ok,
206 const std::vector<std::shared_ptr<ShippingOption>>& shippingOptions = { },
207 std::string_view errorMessage = "") const;
208
218 bool answerShippingQuery(const AnswerShippingQueryArgs& args) const;
219
230 std::shared_ptr<SentWebAppMessage> answerWebAppQuery(std::string_view webAppQueryId,
231 std::shared_ptr<InlineQueryResult> result) const;
232
242 std::shared_ptr<SentWebAppMessage> answerWebAppQuery(const AnswerWebAppQueryArgs& args) const;
243
255 bool approveChatJoinRequest(std::variant<std::int64_t, std::string> chatId, std::int64_t userId) const;
256
266 bool approveChatJoinRequest(const ApproveChatJoinRequestArgs& args) const;
267
282 bool approveSuggestedPost(std::variant<std::int64_t, std::string> chatId,
283 std::int32_t messageId,
284 std::int32_t sendDate = 0) const;
285
295 bool approveSuggestedPost(const ApproveSuggestedPostArgs& args) const;
296
318 bool banChatMember(std::variant<std::int64_t, std::string> chatId,
319 std::int64_t userId,
320 std::int32_t untilDate = 0,
321 bool revokeMessages = true) const;
322
334 bool banChatMember(const BanChatMemberArgs& args) const;
335
349 bool banChatSenderChat(std::variant<std::int64_t, std::string> chatId, std::int64_t senderChatId) const;
350
362 bool banChatSenderChat(const BanChatSenderChatArgs& args) const;
363
374 bool close() const;
375
387 bool closeForumTopic(std::variant<std::int64_t, std::string> chatId, std::int32_t messageThreadId) const;
388
398 bool closeForumTopic(const CloseForumTopicArgs& args) const;
399
410 bool closeGeneralForumTopic(std::variant<std::int64_t, std::string> chatId) const;
411
421 bool closeGeneralForumTopic(const CloseGeneralForumTopicArgs& args) const;
422
433 bool convertGiftToStars(std::string_view businessConnectionId, std::string_view ownedGiftId) const;
434
443 bool convertGiftToStars(const ConvertGiftToStarsArgs& args) const;
444
492 std::shared_ptr<MessageId> copyMessage(std::variant<std::int64_t, std::string> chatId,
493 std::variant<std::int64_t, std::string> fromChatId,
494 std::int32_t messageId,
495 std::string_view caption = "",
496 std::string_view parseMode = "",
497 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
498 bool disableNotification = false,
499 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
500 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
501 std::shared_ptr<ReplyKeyboardMarkup>,
502 std::shared_ptr<ReplyKeyboardRemove>,
503 std::shared_ptr<ForceReply>> replyMarkup = { },
504 bool protectContent = false,
505 std::int32_t messageThreadId = 0,
506 bool allowPaidBroadcast = false,
507 std::int64_t directMessagesTopicId = 0,
508 std::string_view messageEffectId = "",
509 bool showCaptionAboveMedia = false,
510 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
511 = nullptr,
512 std::int32_t videoStartTimestamp = 0) const;
513
526 std::shared_ptr<MessageId> copyMessage(const CopyMessageArgs& args) const;
527
557 std::vector<std::shared_ptr<MessageId>> copyMessages(std::variant<std::int64_t, std::string> chatId,
558 std::variant<std::int64_t, std::string> fromChatId,
559 const std::vector<std::int32_t>& messageIds,
560 std::int32_t messageThreadId = 0,
561 bool disableNotification = false,
562 bool protectContent = false,
563 bool removeCaption = false,
564 std::int64_t directMessagesTopicId = 0) const;
565
579 std::vector<std::shared_ptr<MessageId>> copyMessages(const CopyMessagesArgs& args) const;
580
598 std::shared_ptr<ChatInviteLink> createChatInviteLink(std::variant<std::int64_t, std::string> chatId,
599 std::int32_t expireDate = 0,
600 std::int32_t memberLimit = 0,
601 std::string_view name = "",
602 bool createsJoinRequest = false) const;
603
614 std::shared_ptr<ChatInviteLink> createChatInviteLink(const CreateChatInviteLinkArgs& args) const;
615
632 std::shared_ptr<ChatInviteLink> createChatSubscriptionInviteLink(std::variant<std::int64_t, std::string> chatId,
633 std::int32_t subscriptionPeriod,
634 std::int32_t subscriptionPrice,
635 std::string_view name = "") const;
636
647 std::shared_ptr<ChatInviteLink>
648 createChatSubscriptionInviteLink(const CreateChatSubscriptionInviteLinkArgs& args) const;
649
667 std::shared_ptr<ForumTopic> createForumTopic(std::variant<std::int64_t, std::string> chatId,
668 std::string_view name,
669 std::int32_t iconColor = 0,
670 std::string_view iconCustomEmojiId = "") const;
671
682 std::shared_ptr<ForumTopic> createForumTopic(const CreateForumTopicArgs& args) const;
683
743 std::string createInvoiceLink(std::string_view title,
744 std::string_view description,
745 std::string_view payload,
746 std::string_view providerToken,
747 std::string_view currency,
748 const std::vector<std::shared_ptr<LabeledPrice>>& prices,
749 std::int32_t maxTipAmount = 0,
750 const std::vector<std::int32_t>& suggestedTipAmounts = { },
751 std::string_view providerData = "",
752 std::string_view photoUrl = "",
753 std::int32_t photoSize = 0,
754 std::int32_t photoWidth = 0,
755 std::int32_t photoHeight = 0,
756 bool needName = false,
757 bool needPhoneNumber = false,
758 bool needEmail = false,
759 bool needShippingAddress = false,
760 bool sendPhoneNumberToProvider = false,
761 bool sendEmailToProvider = false,
762 bool isFlexible = false,
763 std::string_view businessConnectionId = "",
764 std::int32_t subscriptionPeriod = 0) const;
765
774 std::string createInvoiceLink(const CreateInvoiceLinkArgs& args) const;
775
801 bool createNewStickerSet(std::int64_t userId,
802 std::string_view name,
803 std::string_view title,
804 const std::vector<std::shared_ptr<InputSticker>>& stickers,
805 Sticker::Type stickerType = Sticker::Type::Regular,
806 bool needsRepainting = false,
807 const std::vector<InputFileAttachment>& attachments = { }) const;
808
817 bool createNewStickerSet(const CreateNewStickerSetArgs& args) const;
818
830 bool declineChatJoinRequest(std::variant<std::int64_t, std::string> chatId, std::int64_t userId) const;
831
841 bool declineChatJoinRequest(const DeclineChatJoinRequestArgs& args) const;
842
854 bool declineSuggestedPost(std::variant<std::int64_t, std::string> chatId,
855 std::int32_t messageId,
856 std::string_view comment = "") const;
857
867 bool declineSuggestedPost(const DeclineSuggestedPostArgs& args) const;
868
884 bool deleteAllMessageReactions(std::variant<std::int64_t, std::string> chatId,
885 std::int64_t actorChatId = 0,
886 std::int64_t userId = 0) const;
887
898 bool deleteAllMessageReactions(const DeleteAllMessageReactionsArgs& args) const;
899
914 bool deleteBusinessMessages(std::string_view businessConnectionId,
915 const std::vector<std::int32_t>& messageIds) const;
916
927 bool deleteBusinessMessages(const DeleteBusinessMessagesArgs& args) const;
928
939 bool deleteChatPhoto(std::variant<std::int64_t, std::string> chatId) const;
940
950 bool deleteChatPhoto(const DeleteChatPhotoArgs& args) const;
951
963 bool deleteChatStickerSet(std::variant<std::int64_t, std::string> chatId) const;
964
975 bool deleteChatStickerSet(const DeleteChatStickerSetArgs& args) const;
976
989 bool deleteEphemeralMessage(std::variant<std::int64_t, std::string> chatId,
990 std::int32_t ephemeralMessageId,
991 std::int64_t receiverUserId) const;
992
1002 bool deleteEphemeralMessage(const DeleteEphemeralMessageArgs& args) const;
1003
1016 bool deleteForumTopic(std::variant<std::int64_t, std::string> chatId, std::int32_t messageThreadId) const;
1017
1028 bool deleteForumTopic(const DeleteForumTopicArgs& args) const;
1029
1049 bool deleteMessage(std::variant<std::int64_t, std::string> chatId, std::int32_t messageId) const;
1050
1068 bool deleteMessage(const DeleteMessageArgs& args) const;
1069
1085 bool deleteMessageReaction(std::variant<std::int64_t, std::string> chatId,
1086 std::int32_t messageId,
1087 std::int64_t actorChatId = 0,
1088 std::int64_t userId = 0) const;
1089
1099 bool deleteMessageReaction(const DeleteMessageReactionArgs& args) const;
1100
1112 bool deleteMessages(std::variant<std::int64_t, std::string> chatId,
1113 const std::vector<std::int32_t>& messageIds) const;
1114
1123 bool deleteMessages(const DeleteMessagesArgs& args) const;
1124
1138 bool deleteMyCommands(std::shared_ptr<BotCommandScope> scope = nullptr,
1139 std::string_view languageCode = "") const;
1140
1150 bool deleteMyCommands(const DeleteMyCommandsArgs& args) const;
1151
1160 bool deleteStickerFromSet(std::string_view sticker) const;
1161
1170 bool deleteStickerFromSet(const DeleteStickerFromSetArgs& args) const;
1171
1181 bool deleteStickerSet(std::string_view name) const;
1182
1192 bool deleteStickerSet(const DeleteStickerSetArgs& args) const;
1193
1203 bool deleteStory(std::string_view businessConnectionId, std::int32_t storyId) const;
1204
1213 bool deleteStory(const DeleteStoryArgs& args) const;
1214
1223 bool deleteWebhook(bool dropPendingUpdates = false) const;
1224
1233 bool deleteWebhook(const DeleteWebhookArgs& args) const;
1234
1252 std::shared_ptr<ChatInviteLink> editChatInviteLink(std::variant<std::int64_t, std::string> chatId,
1253 std::string_view inviteLink,
1254 std::int32_t expireDate = 0,
1255 std::int32_t memberLimit = 0,
1256 std::string_view name = "",
1257 bool createsJoinRequest = false) const;
1258
1268 std::shared_ptr<ChatInviteLink> editChatInviteLink(const EditChatInviteLinkArgs& args) const;
1269
1282 std::shared_ptr<ChatInviteLink> editChatSubscriptionInviteLink(std::variant<std::int64_t, std::string> chatId,
1283 std::string_view inviteLink,
1284 std::string_view name = "") const;
1285
1295 std::shared_ptr<ChatInviteLink>
1296 editChatSubscriptionInviteLink(const EditChatSubscriptionInviteLinkArgs& args) const;
1297
1318 bool editEphemeralMessageCaption(std::variant<std::int64_t, std::string> chatId,
1319 std::int32_t ephemeralMessageId,
1320 std::int64_t receiverUserId,
1321 std::string_view caption = "",
1322 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
1323 std::string_view parseMode = "",
1324 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1325 bool showCaptionAboveMedia = false) const;
1326
1336 bool editEphemeralMessageCaption(const EditEphemeralMessageCaptionArgs& args) const;
1337
1355 bool editEphemeralMessageMedia(std::variant<std::int64_t, std::string> chatId,
1356 std::int32_t ephemeralMessageId,
1357 std::shared_ptr<InputMedia> media,
1358 std::int64_t receiverUserId,
1359 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1360 const std::vector<InputFileAttachment>& attachments = { }) const;
1361
1371 bool editEphemeralMessageMedia(const EditEphemeralMessageMediaArgs& args) const;
1372
1386 bool editEphemeralMessageReplyMarkup(std::variant<std::int64_t, std::string> chatId,
1387 std::int32_t ephemeralMessageId,
1388 std::int64_t receiverUserId,
1389 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr) const;
1390
1400 bool editEphemeralMessageReplyMarkup(const EditEphemeralMessageReplyMarkupArgs& args) const;
1401
1423 bool editEphemeralMessageText(std::variant<std::int64_t, std::string> chatId,
1424 std::int32_t ephemeralMessageId,
1425 std::int64_t receiverUserId,
1426 std::string_view text = "",
1427 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
1428 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions = nullptr,
1429 std::string_view parseMode = "",
1430 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1431 std::shared_ptr<InputRichMessage> richMessage = nullptr) const;
1432
1442 bool editEphemeralMessageText(const EditEphemeralMessageTextArgs& args) const;
1443
1462 bool editForumTopic(std::variant<std::int64_t, std::string> chatId,
1463 std::int32_t messageThreadId,
1464 std::string_view name = "",
1465 std::string_view iconCustomEmojiId = "") const;
1466
1477 bool editForumTopic(const EditForumTopicArgs& args) const;
1478
1490 bool editGeneralForumTopic(std::variant<std::int64_t, std::string> chatId, std::string_view name) const;
1491
1501 bool editGeneralForumTopic(const EditGeneralForumTopicArgs& args) const;
1502
1529 std::shared_ptr<Message> editMessageCaption(std::variant<std::int64_t, std::string> chatId = { },
1530 std::int32_t messageId = 0,
1531 std::string_view caption = "",
1532 std::string_view inlineMessageId = "",
1533 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1534 std::string_view parseMode = "",
1535 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities
1536 = { },
1537 std::string_view businessConnectionId = "",
1538 bool showCaptionAboveMedia = false) const;
1539
1550 std::shared_ptr<Message> editMessageCaption(const EditMessageCaptionArgs& args) const;
1551
1566 std::shared_ptr<Message> editMessageChecklist(std::variant<std::int64_t, std::string> chatId,
1567 std::string_view businessConnectionId,
1568 std::shared_ptr<InputChecklist> checklist,
1569 std::int32_t messageId,
1570 std::shared_ptr<InlineKeyboardMarkup> replyMarkup
1571 = nullptr) const;
1572
1581 std::shared_ptr<Message> editMessageChecklist(const EditMessageChecklistArgs& args) const;
1582
1615 std::shared_ptr<Message> editMessageLiveLocation(double latitude,
1616 double longitude,
1617 std::variant<std::int64_t, std::string> chatId = { },
1618 std::int32_t messageId = 0,
1619 std::string_view inlineMessageId = "",
1620 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1621 double horizontalAccuracy = 0,
1622 std::int32_t heading = 0,
1623 std::int32_t proximityAlertRadius = 0,
1624 std::string_view businessConnectionId = "",
1625 std::int32_t livePeriod = 0) const;
1626
1637 std::shared_ptr<Message> editMessageLiveLocation(const EditMessageLiveLocationArgs& args) const;
1638
1667 std::shared_ptr<Message> editMessageMedia(std::shared_ptr<InputMedia> media,
1668 std::variant<std::int64_t, std::string> chatId = { },
1669 std::int32_t messageId = 0,
1670 std::string_view inlineMessageId = "",
1671 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1672 std::string_view businessConnectionId = "",
1673 const std::vector<InputFileAttachment>& attachments = { }) const;
1674
1690 std::shared_ptr<Message> editMessageMedia(const EditMessageMediaArgs& args) const;
1691
1711 std::shared_ptr<Message> editMessageReplyMarkup(std::variant<std::int64_t, std::string> chatId = { },
1712 std::int32_t messageId = 0,
1713 std::string_view inlineMessageId = "",
1714 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1715 std::string_view businessConnectionId = "") const;
1716
1727 std::shared_ptr<Message> editMessageReplyMarkup(const EditMessageReplyMarkupArgs& args) const;
1728
1761 std::shared_ptr<Message> editMessageText(std::string_view text = "",
1762 std::variant<std::int64_t, std::string> chatId = { },
1763 std::int32_t messageId = 0,
1764 std::string_view inlineMessageId = "",
1765 std::string_view parseMode = "",
1766 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions = nullptr,
1767 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1768 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
1769 std::string_view businessConnectionId = "",
1770 std::shared_ptr<InputRichMessage> richMessage = nullptr,
1771 const std::vector<InputFileAttachment>& attachments = { }) const;
1772
1783 std::shared_ptr<Message> editMessageText(const EditMessageTextArgs& args) const;
1784
1804 std::shared_ptr<Story> editStory(std::string_view businessConnectionId,
1805 std::shared_ptr<InputStoryContent> content,
1806 std::int32_t storyId,
1807 const std::vector<std::shared_ptr<StoryArea>>& areas = { },
1808 std::string_view caption = "",
1809 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
1810 std::string_view parseMode = "",
1811 const std::vector<InputFileAttachment>& attachments = { }) const;
1812
1821 std::shared_ptr<Story> editStory(const EditStoryArgs& args) const;
1822
1836 bool
1837 editUserStarSubscription(bool isCanceled, std::string_view telegramPaymentChargeId, std::int64_t userId) const;
1838
1847 bool editUserStarSubscription(const EditUserStarSubscriptionArgs& args) const;
1848
1860 std::string exportChatInviteLink(std::variant<std::int64_t, std::string> chatId) const;
1861
1872 std::string exportChatInviteLink(const ExportChatInviteLinkArgs& args) const;
1873
1902 std::shared_ptr<Message> forwardMessage(std::variant<std::int64_t, std::string> chatId,
1903 std::variant<std::int64_t, std::string> fromChatId,
1904 std::int32_t messageId,
1905 bool disableNotification = false,
1906 bool protectContent = false,
1907 std::int32_t messageThreadId = 0,
1908 std::int64_t directMessagesTopicId = 0,
1909 std::string_view messageEffectId = "",
1910 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
1911 = nullptr,
1912 std::int32_t videoStartTimestamp = 0) const;
1913
1922 std::shared_ptr<Message> forwardMessage(const ForwardMessageArgs& args) const;
1923
1951 std::vector<std::shared_ptr<MessageId>> forwardMessages(std::variant<std::int64_t, std::string> chatId,
1952 std::variant<std::int64_t, std::string> fromChatId,
1953 const std::vector<std::int32_t>& messageIds,
1954 std::int32_t messageThreadId = 0,
1955 bool disableNotification = false,
1956 bool protectContent = false,
1957 std::int64_t directMessagesTopicId = 0) const;
1958
1969 std::vector<std::shared_ptr<MessageId>> forwardMessages(const ForwardMessagesArgs& args) const;
1970
1978 std::shared_ptr<Gifts> getAvailableGifts() const;
1979
2005 std::shared_ptr<OwnedGifts> getBusinessAccountGifts(std::string_view businessConnectionId,
2006 bool excludeFromBlockchain = false,
2007 bool excludeLimitedNonUpgradable = false,
2008 bool excludeLimitedUpgradable = false,
2009 bool excludeSaved = false,
2010 bool excludeUnique = false,
2011 bool excludeUnlimited = false,
2012 bool excludeUnsaved = false,
2013 std::int32_t limit = 0,
2014 std::string_view offset = "",
2015 bool sortByPrice = false) const;
2016
2025 std::shared_ptr<OwnedGifts> getBusinessAccountGifts(const GetBusinessAccountGiftsArgs& args) const;
2026
2035 std::shared_ptr<StarAmount> getBusinessAccountStarBalance(std::string_view businessConnectionId) const;
2036
2045 std::shared_ptr<StarAmount> getBusinessAccountStarBalance(const GetBusinessAccountStarBalanceArgs& args) const;
2046
2055 std::shared_ptr<BusinessConnection> getBusinessConnection(std::string_view businessConnectionId) const;
2056
2065 std::shared_ptr<BusinessConnection> getBusinessConnection(const GetBusinessConnectionArgs& args) const;
2066
2076 std::shared_ptr<ChatFullInfo> getChat(std::variant<std::int64_t, std::string> chatId) const;
2077
2086 std::shared_ptr<ChatFullInfo> getChat(const GetChatArgs& args) const;
2087
2099 std::vector<std::shared_ptr<ChatMember>> getChatAdministrators(std::variant<std::int64_t, std::string> chatId,
2100 bool returnBots = false) const;
2101
2110 std::vector<std::shared_ptr<ChatMember>> getChatAdministrators(const GetChatAdministratorsArgs& args) const;
2111
2140 std::shared_ptr<OwnedGifts> getChatGifts(std::variant<std::int64_t, std::string> chatId,
2141 bool excludeFromBlockchain = false,
2142 bool excludeLimitedNonUpgradable = false,
2143 bool excludeLimitedUpgradable = false,
2144 bool excludeSaved = false,
2145 bool excludeUnique = false,
2146 bool excludeUnlimited = false,
2147 bool excludeUnsaved = false,
2148 std::int32_t limit = 0,
2149 std::string_view offset = "",
2150 bool sortByPrice = false) const;
2151
2159 std::shared_ptr<OwnedGifts> getChatGifts(const GetChatGiftsArgs& args) const;
2160
2172 std::shared_ptr<ChatMember> getChatMember(std::variant<std::int64_t, std::string> chatId,
2173 std::int64_t userId) const;
2174
2184 std::shared_ptr<ChatMember> getChatMember(const GetChatMemberArgs& args) const;
2185
2194 std::int32_t getChatMemberCount(std::variant<std::int64_t, std::string> chatId) const;
2195
2203 std::int32_t getChatMemberCount(const GetChatMemberCountArgs& args) const;
2204
2214 std::shared_ptr<MenuButton> getChatMenuButton(std::variant<std::int64_t, std::string> chatId = { }) const;
2215
2224 std::shared_ptr<MenuButton> getChatMenuButton(const GetChatMenuButtonArgs& args) const;
2225
2235 std::vector<std::shared_ptr<Sticker>>
2236 getCustomEmojiStickers(const std::vector<std::string>& customEmojiIds) const;
2237
2246 std::vector<std::shared_ptr<Sticker>> getCustomEmojiStickers(const GetCustomEmojiStickersArgs& args) const;
2247
2262 std::shared_ptr<File> getFile(std::string_view fileId) const;
2263
2278 std::shared_ptr<File> getFile(const GetFileArgs& args) const;
2279
2287 std::vector<std::shared_ptr<Sticker>> getForumTopicIconStickers() const;
2288
2304 std::vector<std::shared_ptr<GameHighScore>> getGameHighScores(std::int64_t userId,
2305 std::variant<std::int64_t, std::string> chatId
2306 = { },
2307 std::int32_t messageId = 0,
2308 std::string_view inlineMessageId = "") const;
2309
2319 std::vector<std::shared_ptr<GameHighScore>> getGameHighScores(const GetGameHighScoresArgs& args) const;
2320
2330 std::shared_ptr<BotAccessSettings> getManagedBotAccessSettings(std::int64_t userId) const;
2331
2340 std::shared_ptr<BotAccessSettings>
2341 getManagedBotAccessSettings(const GetManagedBotAccessSettingsArgs& args) const;
2342
2351 std::string getManagedBotToken(std::int64_t userId) const;
2352
2361 std::string getManagedBotToken(const GetManagedBotTokenArgs& args) const;
2362
2370 std::shared_ptr<User> getMe() const;
2371
2383 std::vector<std::shared_ptr<BotCommand>> getMyCommands(std::shared_ptr<BotCommandScope> scope = nullptr,
2384 std::string_view languageCode = "") const;
2385
2395 std::vector<std::shared_ptr<BotCommand>> getMyCommands(const GetMyCommandsArgs& args) const;
2396
2407 std::shared_ptr<ChatAdministratorRights> getMyDefaultAdministratorRights(bool forChannels = false) const;
2408
2417 std::shared_ptr<ChatAdministratorRights>
2418 getMyDefaultAdministratorRights(const GetMyDefaultAdministratorRightsArgs& args) const;
2419
2428 std::shared_ptr<BotDescription> getMyDescription(std::string_view languageCode = "") const;
2429
2438 std::shared_ptr<BotDescription> getMyDescription(const GetMyDescriptionArgs& args) const;
2439
2448 std::shared_ptr<BotName> getMyName(std::string_view languageCode = "") const;
2449
2458 std::shared_ptr<BotName> getMyName(const GetMyNameArgs& args) const;
2459
2468 std::shared_ptr<BotShortDescription> getMyShortDescription(std::string_view languageCode = "") const;
2469
2478 std::shared_ptr<BotShortDescription> getMyShortDescription(const GetMyShortDescriptionArgs& args) const;
2479
2487 std::shared_ptr<StarAmount> getMyStarBalance() const;
2488
2499 std::shared_ptr<StarTransactions> getStarTransactions(std::int32_t limit = 0, std::int32_t offset = 0) const;
2500
2509 std::shared_ptr<StarTransactions> getStarTransactions(const GetStarTransactionsArgs& args) const;
2510
2518 std::shared_ptr<StickerSet> getStickerSet(std::string_view name) const;
2519
2527 std::shared_ptr<StickerSet> getStickerSet(const GetStickerSetArgs& args) const;
2528
2557 std::vector<std::shared_ptr<Update>> getUpdates(std::int32_t offset = 0,
2558 std::int32_t limit = 100,
2559 std::int32_t timeout = 0,
2560 const std::vector<std::string>& allowedUpdates = { }) const;
2561
2570 std::vector<std::shared_ptr<Update>> getUpdates(const GetUpdatesArgs& args) const;
2571
2582 std::shared_ptr<UserChatBoosts> getUserChatBoosts(std::variant<std::int64_t, std::string> chatId,
2583 std::int64_t userId) const;
2584
2593 std::shared_ptr<UserChatBoosts> getUserChatBoosts(const GetUserChatBoostsArgs& args) const;
2594
2616 std::shared_ptr<OwnedGifts> getUserGifts(std::int64_t userId,
2617 bool excludeFromBlockchain = false,
2618 bool excludeLimitedNonUpgradable = false,
2619 bool excludeLimitedUpgradable = false,
2620 bool excludeUnique = false,
2621 bool excludeUnlimited = false,
2622 std::int32_t limit = 0,
2623 std::string_view offset = "",
2624 bool sortByPrice = false) const;
2625
2633 std::shared_ptr<OwnedGifts> getUserGifts(const GetUserGiftsArgs& args) const;
2634
2645 std::vector<std::shared_ptr<Message>> getUserPersonalChatMessages(std::int32_t limit,
2646 std::int64_t userId) const;
2647
2657 std::vector<std::shared_ptr<Message>>
2658 getUserPersonalChatMessages(const GetUserPersonalChatMessagesArgs& args) const;
2659
2672 std::shared_ptr<UserProfileAudios>
2673 getUserProfileAudios(std::int64_t userId, std::int32_t limit = 0, std::int32_t offset = 0) const;
2674
2683 std::shared_ptr<UserProfileAudios> getUserProfileAudios(const GetUserProfileAudiosArgs& args) const;
2684
2697 std::shared_ptr<UserProfilePhotos>
2698 getUserProfilePhotos(std::int64_t userId, std::int32_t offset = 0, std::int32_t limit = 100) const;
2699
2708 std::shared_ptr<UserProfilePhotos> getUserProfilePhotos(const GetUserProfilePhotosArgs& args) const;
2709
2718 std::shared_ptr<WebhookInfo> getWebhookInfo() const;
2719
2741 bool giftPremiumSubscription(std::int32_t monthCount,
2742 std::int32_t starCount,
2743 std::int64_t userId,
2744 std::string_view text = "",
2745 const std::vector<std::shared_ptr<MessageEntity>>& textEntities = { },
2746 std::string_view textParseMode = "") const;
2747
2755 bool giftPremiumSubscription(const GiftPremiumSubscriptionArgs& args) const;
2756
2768 bool hideGeneralForumTopic(std::variant<std::int64_t, std::string> chatId) const;
2769
2780 bool hideGeneralForumTopic(const HideGeneralForumTopicArgs& args) const;
2781
2792 bool leaveChat(std::variant<std::int64_t, std::string> chatId) const;
2793
2802 bool leaveChat(const LeaveChatArgs& args) const;
2803
2814 bool logOut() const;
2815
2834 bool pinChatMessage(std::variant<std::int64_t, std::string> chatId,
2835 std::int32_t messageId,
2836 std::string_view businessConnectionId = "",
2837 bool disableNotification = false) const;
2838
2850 bool pinChatMessage(const PinChatMessageArgs& args) const;
2851
2875 std::shared_ptr<Story> postStory(std::int32_t activePeriod,
2876 std::string_view businessConnectionId,
2877 std::shared_ptr<InputStoryContent> content,
2878 const std::vector<std::shared_ptr<StoryArea>>& areas = { },
2879 std::string_view caption = "",
2880 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
2881 std::string_view parseMode = "",
2882 bool postToChatPage = false,
2883 bool protectContent = false,
2884 const std::vector<InputFileAttachment>& attachments = { }) const;
2885
2894 std::shared_ptr<Story> postStory(const PostStoryArgs& args) const;
2895
2943 bool promoteChatMember(std::variant<std::int64_t, std::string> chatId,
2944 std::int64_t userId,
2945 bool canChangeInfo = false,
2946 bool canPostMessages = false,
2947 bool canEditMessages = false,
2948 bool canDeleteMessages = false,
2949 bool canInviteUsers = false,
2950 bool canPinMessages = false,
2951 bool canPromoteMembers = false,
2952 bool isAnonymous = false,
2953 bool canManageChat = false,
2954 bool canManageVideoChats = false,
2955 bool canRestrictMembers = false,
2956 bool canManageTopics = false,
2957 bool canPostStories = false,
2958 bool canEditStories = false,
2959 bool canDeleteStories = false,
2960 bool canManageDirectMessages = false,
2961 bool canManageTags = false,
2962 bool canSendWelcomeMessages = false) const;
2963
2974 bool promoteChatMember(const PromoteChatMemberArgs& args) const;
2975
2988 bool readBusinessMessage(std::variant<std::int64_t, std::string> chatId,
2989 std::string_view businessConnectionId,
2990 std::int32_t messageId) const;
2991
3000 bool readBusinessMessage(const ReadBusinessMessageArgs& args) const;
3001
3010 bool refundStarPayment(std::string_view telegramPaymentChargeId, std::int64_t userId) const;
3011
3019 bool refundStarPayment(const RefundStarPaymentArgs& args) const;
3020
3033 bool removeBusinessAccountProfilePhoto(std::string_view businessConnectionId, bool isPublic = false) const;
3034
3043 bool removeBusinessAccountProfilePhoto(const RemoveBusinessAccountProfilePhotoArgs& args) const;
3044
3054 bool removeChatVerification(std::variant<std::int64_t, std::string> chatId) const;
3055
3064 bool removeChatVerification(const RemoveChatVerificationArgs& args) const;
3065
3073
3082 bool removeUserVerification(std::int64_t userId) const;
3083
3092 bool removeUserVerification(const RemoveUserVerificationArgs& args) const;
3093
3105 bool reopenForumTopic(std::variant<std::int64_t, std::string> chatId, std::int32_t messageThreadId) const;
3106
3116 bool reopenForumTopic(const ReopenForumTopicArgs& args) const;
3117
3129 bool reopenGeneralForumTopic(std::variant<std::int64_t, std::string> chatId) const;
3130
3141 bool reopenGeneralForumTopic(const ReopenGeneralForumTopicArgs& args) const;
3142
3151 std::string replaceManagedBotToken(std::int64_t userId) const;
3152
3161 std::string replaceManagedBotToken(const ReplaceManagedBotTokenArgs& args) const;
3162
3180 bool replaceStickerInSet(std::int64_t userId,
3181 std::string_view name,
3182 std::string_view oldSticker,
3183 std::shared_ptr<InputSticker> sticker,
3184 const std::vector<InputFileAttachment>& attachments = { }) const;
3185
3195 bool replaceStickerInSet(const ReplaceStickerInSetArgs& args) const;
3196
3215 std::shared_ptr<Story> repostStory(std::int32_t activePeriod,
3216 std::string_view businessConnectionId,
3217 std::variant<std::int64_t, std::string> fromChatId,
3218 std::int32_t fromStoryId,
3219 bool postToChatPage = false,
3220 bool protectContent = false) const;
3221
3232 std::shared_ptr<Story> repostStory(const RepostStoryArgs& args) const;
3233
3255 bool restrictChatMember(std::variant<std::int64_t, std::string> chatId,
3256 std::int64_t userId,
3257 std::shared_ptr<ChatPermissions> permissions,
3258 std::int32_t untilDate = 0,
3259 bool useIndependentChatPermissions = false) const;
3260
3270 bool restrictChatMember(const RestrictChatMemberArgs& args) const;
3271
3284 std::shared_ptr<ChatInviteLink> revokeChatInviteLink(std::variant<std::int64_t, std::string> chatId,
3285 std::string_view inviteLink) const;
3286
3297 std::shared_ptr<ChatInviteLink> revokeChatInviteLink(const RevokeChatInviteLinkArgs& args) const;
3298
3312 std::shared_ptr<PreparedInlineMessage> savePreparedInlineMessage(std::shared_ptr<InlineQueryResult> result,
3313 std::int64_t userId,
3314 bool allowBotChats = false,
3315 bool allowChannelChats = false,
3316 bool allowGroupChats = false,
3317 bool allowUserChats = false) const;
3318
3327 std::shared_ptr<PreparedInlineMessage>
3328 savePreparedInlineMessage(const SavePreparedInlineMessageArgs& args) const;
3329
3340 std::shared_ptr<PreparedKeyboardButton> savePreparedKeyboardButton(std::shared_ptr<KeyboardButton> button,
3341 std::int64_t userId) const;
3342
3351 std::shared_ptr<PreparedKeyboardButton>
3352 savePreparedKeyboardButton(const SavePreparedKeyboardButtonArgs& args) const;
3353
3413 std::shared_ptr<Message> sendAnimation(std::variant<std::int64_t, std::string> chatId,
3414 std::variant<std::shared_ptr<InputFile>, std::string> animation,
3415 std::int32_t duration = 0,
3416 std::int32_t width = 0,
3417 std::int32_t height = 0,
3418 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
3419 std::string_view caption = "",
3420 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
3421 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3422 std::shared_ptr<ReplyKeyboardMarkup>,
3423 std::shared_ptr<ReplyKeyboardRemove>,
3424 std::shared_ptr<ForceReply>> replyMarkup = { },
3425 std::string_view parseMode = "",
3426 bool disableNotification = false,
3427 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
3428 std::int32_t messageThreadId = 0,
3429 bool protectContent = false,
3430 bool hasSpoiler = false,
3431 std::string_view businessConnectionId = "",
3432 bool allowPaidBroadcast = false,
3433 std::string_view callbackQueryId = "",
3434 std::int64_t directMessagesTopicId = 0,
3435 std::string_view messageEffectId = "",
3436 std::int64_t receiverUserId = 0,
3437 bool showCaptionAboveMedia = false,
3438 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3439 = nullptr) const;
3440
3450 std::shared_ptr<Message> sendAnimation(const SendAnimationArgs& args) const;
3451
3509 std::shared_ptr<Message> sendAudio(std::variant<std::int64_t, std::string> chatId,
3510 std::variant<std::shared_ptr<InputFile>, std::string> audio,
3511 std::string_view caption = "",
3512 std::int32_t duration = 0,
3513 std::string_view performer = "",
3514 std::string_view title = "",
3515 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
3516 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
3517 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3518 std::shared_ptr<ReplyKeyboardMarkup>,
3519 std::shared_ptr<ReplyKeyboardRemove>,
3520 std::shared_ptr<ForceReply>> replyMarkup = { },
3521 std::string_view parseMode = "",
3522 bool disableNotification = false,
3523 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
3524 std::int32_t messageThreadId = 0,
3525 bool protectContent = false,
3526 std::string_view businessConnectionId = "",
3527 bool allowPaidBroadcast = false,
3528 std::string_view callbackQueryId = "",
3529 std::int64_t directMessagesTopicId = 0,
3530 std::string_view messageEffectId = "",
3531 std::int64_t receiverUserId = 0,
3532 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3533 = nullptr) const;
3534
3546 std::shared_ptr<Message> sendAudio(const SendAudioArgs& args) const;
3547
3571 bool sendChatAction(std::variant<std::int64_t, std::string> chatId,
3572 std::string_view action,
3573 std::int32_t messageThreadId = 0,
3574 std::string_view businessConnectionId = "") const;
3575
3587 bool sendChatAction(const SendChatActionArgs& args) const;
3588
3601 bool sendChatJoinRequestWebApp(std::string_view chatJoinRequestQueryId, std::string_view webAppUrl) const;
3602
3613 bool sendChatJoinRequestWebApp(const SendChatJoinRequestWebAppArgs& args) const;
3614
3633 std::shared_ptr<Message> sendChecklist(std::variant<std::int64_t, std::string> chatId,
3634 std::string_view businessConnectionId,
3635 std::shared_ptr<InputChecklist> checklist,
3636 bool disableNotification = false,
3637 std::string_view messageEffectId = "",
3638 bool protectContent = false,
3639 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
3640 std::shared_ptr<ReplyParameters> replyParameters = nullptr) const;
3641
3650 std::shared_ptr<Message> sendChecklist(const SendChecklistArgs& args) const;
3651
3689 std::shared_ptr<Message> sendContact(std::variant<std::int64_t, std::string> chatId,
3690 std::string_view phoneNumber,
3691 std::string_view firstName,
3692 std::string_view lastName = "",
3693 std::string_view vcard = "",
3694 bool disableNotification = false,
3695 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
3696 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3697 std::shared_ptr<ReplyKeyboardMarkup>,
3698 std::shared_ptr<ReplyKeyboardRemove>,
3699 std::shared_ptr<ForceReply>> replyMarkup = { },
3700 std::int32_t messageThreadId = 0,
3701 bool protectContent = false,
3702 std::string_view businessConnectionId = "",
3703 bool allowPaidBroadcast = false,
3704 std::string_view callbackQueryId = "",
3705 std::int64_t directMessagesTopicId = 0,
3706 std::string_view messageEffectId = "",
3707 std::int64_t receiverUserId = 0,
3708 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3709 = nullptr) const;
3710
3718 std::shared_ptr<Message> sendContact(const SendContactArgs& args) const;
3719
3755 std::shared_ptr<Message> sendDice(std::variant<std::int64_t, std::string> chatId,
3756 bool disableNotification = false,
3757 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
3758 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3759 std::shared_ptr<ReplyKeyboardMarkup>,
3760 std::shared_ptr<ReplyKeyboardRemove>,
3761 std::shared_ptr<ForceReply>> replyMarkup = { },
3762 std::string_view emoji = "",
3763 std::int32_t messageThreadId = 0,
3764 bool protectContent = false,
3765 std::string_view businessConnectionId = "",
3766 bool allowPaidBroadcast = false,
3767 std::int64_t directMessagesTopicId = 0,
3768 std::string_view messageEffectId = "",
3769 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3770 = nullptr) const;
3771
3780 std::shared_ptr<Message> sendDice(const SendDiceArgs& args) const;
3781
3837 std::shared_ptr<Message> sendDocument(std::variant<std::int64_t, std::string> chatId,
3838 std::variant<std::shared_ptr<InputFile>, std::string> document,
3839 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
3840 std::string_view caption = "",
3841 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
3842 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3843 std::shared_ptr<ReplyKeyboardMarkup>,
3844 std::shared_ptr<ReplyKeyboardRemove>,
3845 std::shared_ptr<ForceReply>> replyMarkup = { },
3846 std::string_view parseMode = "",
3847 bool disableNotification = false,
3848 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
3849 bool disableContentTypeDetection = false,
3850 std::int32_t messageThreadId = 0,
3851 bool protectContent = false,
3852 std::string_view businessConnectionId = "",
3853 bool allowPaidBroadcast = false,
3854 std::string_view callbackQueryId = "",
3855 std::int64_t directMessagesTopicId = 0,
3856 std::string_view messageEffectId = "",
3857 std::int64_t receiverUserId = 0,
3858 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3859 = nullptr) const;
3860
3870 std::shared_ptr<Message> sendDocument(const SendDocumentArgs& args) const;
3871
3900 std::shared_ptr<Message> sendGame(std::variant<std::int64_t, std::string> chatId,
3901 std::string_view gameShortName,
3902 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
3903 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
3904 bool disableNotification = false,
3905 std::int32_t messageThreadId = 0,
3906 bool protectContent = false,
3907 std::string_view businessConnectionId = "",
3908 bool allowPaidBroadcast = false,
3909 std::string_view messageEffectId = "") const;
3910
3918 std::shared_ptr<Message> sendGame(const SendGameArgs& args) const;
3919
3943 bool sendGift(std::string_view giftId,
3944 std::variant<std::int64_t, std::string> chatId = { },
3945 bool payForUpgrade = false,
3946 std::string_view text = "",
3947 const std::vector<std::shared_ptr<MessageEntity>>& textEntities = { },
3948 std::string_view textParseMode = "",
3949 std::int64_t userId = 0) const;
3950
3959 bool sendGift(const SendGiftArgs& args) const;
3960
4041 std::shared_ptr<Message> sendInvoice(std::variant<std::int64_t, std::string> chatId,
4042 std::string_view title,
4043 std::string_view description,
4044 std::string_view payload,
4045 std::string_view providerToken,
4046 std::string_view currency,
4047 const std::vector<std::shared_ptr<LabeledPrice>>& prices,
4048 std::string_view providerData = "",
4049 std::string_view photoUrl = "",
4050 std::int32_t photoSize = 0,
4051 std::int32_t photoWidth = 0,
4052 std::int32_t photoHeight = 0,
4053 bool needName = false,
4054 bool needPhoneNumber = false,
4055 bool needEmail = false,
4056 bool needShippingAddress = false,
4057 bool sendPhoneNumberToProvider = false,
4058 bool sendEmailToProvider = false,
4059 bool isFlexible = false,
4060 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4061 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
4062 bool disableNotification = false,
4063 std::int32_t messageThreadId = 0,
4064 std::int32_t maxTipAmount = 0,
4065 const std::vector<std::int32_t>& suggestedTipAmounts = { },
4066 std::string_view startParameter = "",
4067 bool protectContent = false,
4068 bool allowPaidBroadcast = false,
4069 std::int64_t directMessagesTopicId = 0,
4070 std::string_view messageEffectId = "",
4071 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4072 = nullptr) const;
4073
4081 std::shared_ptr<Message> sendInvoice(const SendInvoiceArgs& args) const;
4082
4133 std::shared_ptr<Message> sendLivePhoto(std::variant<std::int64_t, std::string> chatId,
4134 std::variant<std::shared_ptr<InputFile>, std::string> livePhoto,
4135 std::variant<std::shared_ptr<InputFile>, std::string> photo,
4136 bool allowPaidBroadcast = false,
4137 std::string_view businessConnectionId = "",
4138 std::string_view callbackQueryId = "",
4139 std::string_view caption = "",
4140 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
4141 std::int64_t directMessagesTopicId = 0,
4142 bool disableNotification = false,
4143 bool hasSpoiler = false,
4144 std::string_view messageEffectId = "",
4145 std::int32_t messageThreadId = 0,
4146 std::string_view parseMode = "",
4147 bool protectContent = false,
4148 std::int64_t receiverUserId = 0,
4149 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4150 std::shared_ptr<ReplyKeyboardMarkup>,
4151 std::shared_ptr<ReplyKeyboardRemove>,
4152 std::shared_ptr<ForceReply>> replyMarkup = { },
4153 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4154 bool showCaptionAboveMedia = false,
4155 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4156 = nullptr) const;
4157
4165 std::shared_ptr<Message> sendLivePhoto(const SendLivePhotoArgs& args) const;
4166
4212 std::shared_ptr<Message> sendLocation(std::variant<std::int64_t, std::string> chatId,
4213 double latitude,
4214 double longitude,
4215 std::int32_t livePeriod = 0,
4216 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4217 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4218 std::shared_ptr<ReplyKeyboardMarkup>,
4219 std::shared_ptr<ReplyKeyboardRemove>,
4220 std::shared_ptr<ForceReply>> replyMarkup = { },
4221 bool disableNotification = false,
4222 double horizontalAccuracy = 0,
4223 std::int32_t heading = 0,
4224 std::int32_t proximityAlertRadius = 0,
4225 std::int32_t messageThreadId = 0,
4226 bool protectContent = false,
4227 std::string_view businessConnectionId = "",
4228 bool allowPaidBroadcast = false,
4229 std::string_view callbackQueryId = "",
4230 std::int64_t directMessagesTopicId = 0,
4231 std::string_view messageEffectId = "",
4232 std::int64_t receiverUserId = 0,
4233 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4234 = nullptr) const;
4235
4243 std::shared_ptr<Message> sendLocation(const SendLocationArgs& args) const;
4244
4276 std::vector<std::shared_ptr<Message>>
4277 sendMediaGroup(std::variant<std::int64_t, std::string> chatId,
4278 const std::vector<std::variant<std::shared_ptr<InputMediaAudio>,
4279 std::shared_ptr<InputMediaDocument>,
4280 std::shared_ptr<InputMediaLivePhoto>,
4281 std::shared_ptr<InputMediaPhoto>,
4282 std::shared_ptr<InputMediaVideo>>>& media,
4283 bool disableNotification = false,
4284 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4285 std::int32_t messageThreadId = 0,
4286 bool protectContent = false,
4287 std::string_view businessConnectionId = "",
4288 bool allowPaidBroadcast = false,
4289 std::int64_t directMessagesTopicId = 0,
4290 std::string_view messageEffectId = "",
4291 const std::vector<InputFileAttachment>& attachments = { }) const;
4292
4302 std::vector<std::shared_ptr<Message>> sendMediaGroup(const SendMediaGroupArgs& args) const;
4303
4343 std::shared_ptr<Message> sendMessage(std::variant<std::int64_t, std::string> chatId,
4344 std::string_view text,
4345 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions = nullptr,
4346 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4347 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4348 std::shared_ptr<ReplyKeyboardMarkup>,
4349 std::shared_ptr<ReplyKeyboardRemove>,
4350 std::shared_ptr<ForceReply>> replyMarkup = { },
4351 std::string_view parseMode = "",
4352 bool disableNotification = false,
4353 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
4354 std::int32_t messageThreadId = 0,
4355 bool protectContent = false,
4356 std::string_view businessConnectionId = "",
4357 bool allowPaidBroadcast = false,
4358 std::string_view callbackQueryId = "",
4359 std::int64_t directMessagesTopicId = 0,
4360 std::string_view messageEffectId = "",
4361 std::int64_t receiverUserId = 0,
4362 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4363 = nullptr) const;
4364
4372 std::shared_ptr<Message> sendMessage(const SendMessageArgs& args) const;
4373
4401 bool sendMessageDraft(std::variant<std::int64_t, std::string> chatId,
4402 std::int32_t draftId,
4403 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
4404 std::int32_t messageThreadId = 0,
4405 std::string_view parseMode = "",
4406 std::string_view text = "",
4407 bool canStop = false,
4408 bool keepOnStop = false) const;
4409
4420 bool sendMessageDraft(const SendMessageDraftArgs& args) const;
4421
4467 std::shared_ptr<Message> sendPaidMedia(std::variant<std::int64_t, std::string> chatId,
4468 const std::vector<std::shared_ptr<InputPaidMedia>>& media,
4469 std::int32_t starCount,
4470 bool allowPaidBroadcast = false,
4471 std::string_view businessConnectionId = "",
4472 std::string_view caption = "",
4473 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
4474 std::int64_t directMessagesTopicId = 0,
4475 bool disableNotification = false,
4476 std::int32_t messageThreadId = 0,
4477 std::string_view parseMode = "",
4478 std::string_view payload = "",
4479 bool protectContent = false,
4480 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4481 std::shared_ptr<ReplyKeyboardMarkup>,
4482 std::shared_ptr<ReplyKeyboardRemove>,
4483 std::shared_ptr<ForceReply>> replyMarkup = { },
4484 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4485 bool showCaptionAboveMedia = false,
4486 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4487 = nullptr,
4488 const std::vector<InputFileAttachment>& attachments = { }) const;
4489
4497 std::shared_ptr<Message> sendPaidMedia(const SendPaidMediaArgs& args) const;
4498
4546 std::shared_ptr<Message> sendPhoto(std::variant<std::int64_t, std::string> chatId,
4547 std::variant<std::shared_ptr<InputFile>, std::string> photo,
4548 std::string_view caption = "",
4549 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4550 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4551 std::shared_ptr<ReplyKeyboardMarkup>,
4552 std::shared_ptr<ReplyKeyboardRemove>,
4553 std::shared_ptr<ForceReply>> replyMarkup = { },
4554 std::string_view parseMode = "",
4555 bool disableNotification = false,
4556 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
4557 std::int32_t messageThreadId = 0,
4558 bool protectContent = false,
4559 bool hasSpoiler = false,
4560 std::string_view businessConnectionId = "",
4561 bool allowPaidBroadcast = false,
4562 std::string_view callbackQueryId = "",
4563 std::int64_t directMessagesTopicId = 0,
4564 std::string_view messageEffectId = "",
4565 std::int64_t receiverUserId = 0,
4566 bool showCaptionAboveMedia = false,
4567 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4568 = nullptr) const;
4569
4577 std::shared_ptr<Message> sendPhoto(const SendPhotoArgs& args) const;
4578
4652 std::shared_ptr<Message> sendPoll(std::variant<std::int64_t, std::string> chatId,
4653 std::string_view question,
4654 const std::vector<std::shared_ptr<InputPollOption>>& options,
4655 bool disableNotification = false,
4656 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4657 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4658 std::shared_ptr<ReplyKeyboardMarkup>,
4659 std::shared_ptr<ReplyKeyboardRemove>,
4660 std::shared_ptr<ForceReply>> replyMarkup = { },
4661 bool isAnonymous = true,
4662 std::string_view type = "",
4663 bool allowsMultipleAnswers = false,
4664 std::string_view explanation = "",
4665 std::string_view explanationParseMode = "",
4666 const std::vector<std::shared_ptr<MessageEntity>>& explanationEntities = { },
4667 std::int32_t openPeriod = 0,
4668 std::int32_t closeDate = 0,
4669 bool isClosed = false,
4670 std::int32_t messageThreadId = 0,
4671 bool protectContent = false,
4672 std::string_view businessConnectionId = "",
4673 bool allowAddingOptions = false,
4674 bool allowPaidBroadcast = false,
4675 bool allowsRevoting = false,
4676 const std::vector<std::int32_t>& correctOptionIds = { },
4677 const std::vector<std::string>& countryCodes = { },
4678 std::string_view description = "",
4679 const std::vector<std::shared_ptr<MessageEntity>>& descriptionEntities = { },
4680 std::string_view descriptionParseMode = "",
4681 std::shared_ptr<InputPollMedia> explanationMedia = nullptr,
4682 bool hideResultsUntilCloses = false,
4683 std::shared_ptr<InputPollMedia> media = nullptr,
4684 bool membersOnly = false,
4685 std::string_view messageEffectId = "",
4686 const std::vector<std::shared_ptr<MessageEntity>>& questionEntities = { },
4687 std::string_view questionParseMode = "",
4688 bool shuffleOptions = false) const;
4689
4697 std::shared_ptr<Message> sendPoll(const SendPollArgs& args) const;
4698
4737 std::shared_ptr<Message> sendRichMessage(std::variant<std::int64_t, std::string> chatId,
4738 std::shared_ptr<InputRichMessage> richMessage,
4739 bool allowPaidBroadcast = false,
4740 std::string_view businessConnectionId = "",
4741 std::int64_t directMessagesTopicId = 0,
4742 bool disableNotification = false,
4743 std::string_view messageEffectId = "",
4744 std::int32_t messageThreadId = 0,
4745 bool protectContent = false,
4746 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4747 std::shared_ptr<ReplyKeyboardMarkup>,
4748 std::shared_ptr<ReplyKeyboardRemove>,
4749 std::shared_ptr<ForceReply>> replyMarkup = { },
4750 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4751 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4752 = nullptr,
4753 const std::vector<InputFileAttachment>& attachments = { }) const;
4754
4764 std::shared_ptr<Message> sendRichMessage(const SendRichMessageArgs& args) const;
4765
4789 bool sendRichMessageDraft(std::variant<std::int64_t, std::string> chatId,
4790 std::int32_t draftId,
4791 std::shared_ptr<InputRichMessage> richMessage,
4792 std::int32_t messageThreadId = 0,
4793 bool canStop = false,
4794 bool keepOnStop = false) const;
4795
4806 bool sendRichMessageDraft(const SendRichMessageDraftArgs& args) const;
4807
4849 std::shared_ptr<Message> sendSticker(std::variant<std::int64_t, std::string> chatId,
4850 std::variant<std::shared_ptr<InputFile>, std::string> sticker,
4851 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4852 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4853 std::shared_ptr<ReplyKeyboardMarkup>,
4854 std::shared_ptr<ReplyKeyboardRemove>,
4855 std::shared_ptr<ForceReply>> replyMarkup = { },
4856 bool disableNotification = false,
4857 std::int32_t messageThreadId = 0,
4858 bool protectContent = false,
4859 std::string_view emoji = "",
4860 std::string_view businessConnectionId = "",
4861 bool allowPaidBroadcast = false,
4862 std::string_view callbackQueryId = "",
4863 std::int64_t directMessagesTopicId = 0,
4864 std::string_view messageEffectId = "",
4865 std::int64_t receiverUserId = 0,
4866 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4867 = nullptr) const;
4868
4877 std::shared_ptr<Message> sendSticker(const SendStickerArgs& args) const;
4878
4923 std::shared_ptr<Message> sendVenue(std::variant<std::int64_t, std::string> chatId,
4924 double latitude,
4925 double longitude,
4926 std::string_view title,
4927 std::string_view address,
4928 std::string_view foursquareId = "",
4929 std::string_view foursquareType = "",
4930 bool disableNotification = false,
4931 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4932 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4933 std::shared_ptr<ReplyKeyboardMarkup>,
4934 std::shared_ptr<ReplyKeyboardRemove>,
4935 std::shared_ptr<ForceReply>> replyMarkup = { },
4936 std::string_view googlePlaceId = "",
4937 std::string_view googlePlaceType = "",
4938 std::int32_t messageThreadId = 0,
4939 bool protectContent = false,
4940 std::string_view businessConnectionId = "",
4941 bool allowPaidBroadcast = false,
4942 std::string_view callbackQueryId = "",
4943 std::int64_t directMessagesTopicId = 0,
4944 std::string_view messageEffectId = "",
4945 std::int64_t receiverUserId = 0,
4946 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4947 = nullptr) const;
4948
4957 std::shared_ptr<Message> sendVenue(const SendVenueArgs& args) const;
4958
5025 std::shared_ptr<Message> sendVideo(std::variant<std::int64_t, std::string> chatId,
5026 std::variant<std::shared_ptr<InputFile>, std::string> video,
5027 bool supportsStreaming = false,
5028 std::int32_t duration = 0,
5029 std::int32_t width = 0,
5030 std::int32_t height = 0,
5031 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
5032 std::string_view caption = "",
5033 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
5034 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5035 std::shared_ptr<ReplyKeyboardMarkup>,
5036 std::shared_ptr<ReplyKeyboardRemove>,
5037 std::shared_ptr<ForceReply>> replyMarkup = { },
5038 std::string_view parseMode = "",
5039 bool disableNotification = false,
5040 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
5041 std::int32_t messageThreadId = 0,
5042 bool protectContent = false,
5043 bool hasSpoiler = false,
5044 std::string_view businessConnectionId = "",
5045 bool allowPaidBroadcast = false,
5046 std::string_view callbackQueryId = "",
5047 std::variant<std::shared_ptr<InputFile>, std::string> cover = { },
5048 std::int64_t directMessagesTopicId = 0,
5049 std::string_view messageEffectId = "",
5050 std::int64_t receiverUserId = 0,
5051 bool showCaptionAboveMedia = false,
5052 std::int32_t startTimestamp = 0,
5053 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5054 = nullptr) const;
5055
5066 std::shared_ptr<Message> sendVideo(const SendVideoArgs& args) const;
5067
5116 std::shared_ptr<Message> sendVideoNote(std::variant<std::int64_t, std::string> chatId,
5117 std::variant<std::shared_ptr<InputFile>, std::string> videoNote,
5118 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
5119 bool disableNotification = false,
5120 std::int32_t duration = 0,
5121 std::int32_t length = 0,
5122 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
5123 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5124 std::shared_ptr<ReplyKeyboardMarkup>,
5125 std::shared_ptr<ReplyKeyboardRemove>,
5126 std::shared_ptr<ForceReply>> replyMarkup = { },
5127 std::int32_t messageThreadId = 0,
5128 bool protectContent = false,
5129 std::string_view businessConnectionId = "",
5130 bool allowPaidBroadcast = false,
5131 std::string_view callbackQueryId = "",
5132 std::int64_t directMessagesTopicId = 0,
5133 std::string_view messageEffectId = "",
5134 std::int64_t receiverUserId = 0,
5135 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5136 = nullptr) const;
5137
5146 std::shared_ptr<Message> sendVideoNote(const SendVideoNoteArgs& args) const;
5147
5195 std::shared_ptr<Message> sendVoice(std::variant<std::int64_t, std::string> chatId,
5196 std::variant<std::shared_ptr<InputFile>, std::string> voice,
5197 std::string_view caption = "",
5198 std::int32_t duration = 0,
5199 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
5200 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5201 std::shared_ptr<ReplyKeyboardMarkup>,
5202 std::shared_ptr<ReplyKeyboardRemove>,
5203 std::shared_ptr<ForceReply>> replyMarkup = { },
5204 std::string_view parseMode = "",
5205 bool disableNotification = false,
5206 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
5207 std::int32_t messageThreadId = 0,
5208 bool protectContent = false,
5209 std::string_view businessConnectionId = "",
5210 bool allowPaidBroadcast = false,
5211 std::string_view callbackQueryId = "",
5212 std::int64_t directMessagesTopicId = 0,
5213 std::string_view messageEffectId = "",
5214 std::int64_t receiverUserId = 0,
5215 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5216 = nullptr) const;
5217
5229 std::shared_ptr<Message> sendVoice(const SendVoiceArgs& args) const;
5230
5240 bool setBusinessAccountBio(std::string_view businessConnectionId, std::string_view bio = "") const;
5241
5250 bool setBusinessAccountBio(const SetBusinessAccountBioArgs& args) const;
5251
5263 bool setBusinessAccountGiftSettings(std::shared_ptr<AcceptedGiftTypes> acceptedGiftTypes,
5264 std::string_view businessConnectionId,
5265 bool showGiftButton) const;
5266
5275 bool setBusinessAccountGiftSettings(const SetBusinessAccountGiftSettingsArgs& args) const;
5276
5288 bool setBusinessAccountName(std::string_view businessConnectionId,
5289 std::string_view firstName,
5290 std::string_view lastName = "") const;
5291
5300 bool setBusinessAccountName(const SetBusinessAccountNameArgs& args) const;
5301
5317 bool setBusinessAccountProfilePhoto(std::string_view businessConnectionId,
5318 std::shared_ptr<InputProfilePhoto> photo,
5319 bool isPublic = false,
5320 const std::vector<InputFileAttachment>& attachments = { }) const;
5321
5330 bool setBusinessAccountProfilePhoto(const SetBusinessAccountProfilePhotoArgs& args) const;
5331
5341 bool setBusinessAccountUsername(std::string_view businessConnectionId, std::string_view username = "") const;
5342
5351 bool setBusinessAccountUsername(const SetBusinessAccountUsernameArgs& args) const;
5352
5365 bool setChatAdministratorCustomTitle(std::variant<std::int64_t, std::string> chatId,
5366 std::int64_t userId,
5367 std::string_view customTitle) const;
5368
5377 bool setChatAdministratorCustomTitle(const SetChatAdministratorCustomTitleArgs& args) const;
5378
5390 bool setChatDescription(std::variant<std::int64_t, std::string> chatId,
5391 std::string_view description = "") const;
5392
5402 bool setChatDescription(const SetChatDescriptionArgs& args) const;
5403
5416 bool setChatMemberTag(std::variant<std::int64_t, std::string> chatId,
5417 std::int64_t userId,
5418 std::string_view tag = "") const;
5419
5429 bool setChatMemberTag(const SetChatMemberTagArgs& args) const;
5430
5442 bool setChatMenuButton(std::variant<std::int64_t, std::string> chatId = { },
5443 std::shared_ptr<MenuButton> menuButton = nullptr) const;
5444
5453 bool setChatMenuButton(const SetChatMenuButtonArgs& args) const;
5454
5472 bool setChatPermissions(std::variant<std::int64_t, std::string> chatId,
5473 std::shared_ptr<ChatPermissions> permissions,
5474 bool useIndependentChatPermissions = false) const;
5475
5485 bool setChatPermissions(const SetChatPermissionsArgs& args) const;
5486
5498 bool setChatPhoto(std::variant<std::int64_t, std::string> chatId,
5499 std::variant<std::shared_ptr<InputFile>, std::string> photo) const;
5500
5510 bool setChatPhoto(const SetChatPhotoArgs& args) const;
5511
5524 bool setChatStickerSet(std::variant<std::int64_t, std::string> chatId, std::string_view stickerSetName) const;
5525
5536 bool setChatStickerSet(const SetChatStickerSetArgs& args) const;
5537
5549 bool setChatTitle(std::variant<std::int64_t, std::string> chatId, std::string_view title) const;
5550
5560 bool setChatTitle(const SetChatTitleArgs& args) const;
5561
5572 bool setCustomEmojiStickerSetThumbnail(std::string_view name, std::string_view customEmojiId = "") const;
5573
5582 bool setCustomEmojiStickerSetThumbnail(const SetCustomEmojiStickerSetThumbnailArgs& args) const;
5583
5605 std::shared_ptr<Message> setGameScore(std::int64_t userId,
5606 std::int32_t score,
5607 bool force = false,
5608 bool disableEditMessage = false,
5609 std::variant<std::int64_t, std::string> chatId = { },
5610 std::int32_t messageId = 0,
5611 std::string_view inlineMessageId = "") const;
5612
5623 std::shared_ptr<Message> setGameScore(const SetGameScoreArgs& args) const;
5624
5637 bool setManagedBotAccessSettings(bool isAccessRestricted,
5638 std::int64_t userId,
5639 const std::vector<std::int32_t>& addedUserIds = { }) const;
5640
5648 bool setManagedBotAccessSettings(const SetManagedBotAccessSettingsArgs& args) const;
5649
5670 bool setMessageReaction(std::variant<std::int64_t, std::string> chatId,
5671 std::int32_t messageId,
5672 const std::vector<std::shared_ptr<ReactionType>>& reaction = { },
5673 bool isBig = false) const;
5674
5685 bool setMessageReaction(const SetMessageReactionArgs& args) const;
5686
5701 bool setMyCommands(const std::vector<std::shared_ptr<BotCommand>>& commands,
5702 std::shared_ptr<BotCommandScope> scope = nullptr,
5703 std::string_view languageCode = "") const;
5704
5713 bool setMyCommands(const SetMyCommandsArgs& args) const;
5714
5729 bool setMyDefaultAdministratorRights(std::shared_ptr<ChatAdministratorRights> rights = nullptr,
5730 bool forChannels = false) const;
5731
5742 bool setMyDefaultAdministratorRights(const SetMyDefaultAdministratorRightsArgs& args) const;
5743
5756 bool setMyDescription(std::string_view description = "", std::string_view languageCode = "") const;
5757
5766 bool setMyDescription(const SetMyDescriptionArgs& args) const;
5767
5778 bool setMyName(std::string_view name = "", std::string_view languageCode = "") const;
5779
5787 bool setMyName(const SetMyNameArgs& args) const;
5788
5799 bool setMyProfilePhoto(std::shared_ptr<InputProfilePhoto> photo,
5800 const std::vector<InputFileAttachment>& attachments = { }) const;
5801
5809 bool setMyProfilePhoto(const SetMyProfilePhotoArgs& args) const;
5810
5824 bool setMyShortDescription(std::string_view shortDescription = "", std::string_view languageCode = "") const;
5825
5835 bool setMyShortDescription(const SetMyShortDescriptionArgs& args) const;
5836
5851 bool setPassportDataErrors(std::int64_t userId,
5852 const std::vector<std::shared_ptr<PassportElementError>>& errors) const;
5853
5867 bool setPassportDataErrors(const SetPassportDataErrorsArgs& args) const;
5868
5879 bool setStickerEmojiList(std::string_view sticker, const std::vector<std::string>& emojiList) const;
5880
5890 bool setStickerEmojiList(const SetStickerEmojiListArgs& args) const;
5891
5902 bool setStickerKeywords(std::string_view sticker, const std::vector<std::string>& keywords = { }) const;
5903
5912 bool setStickerKeywords(const SetStickerKeywordsArgs& args) const;
5913
5924 bool setStickerMaskPosition(std::string_view sticker,
5925 std::shared_ptr<MaskPosition> maskPosition = nullptr) const;
5926
5935 bool setStickerMaskPosition(const SetStickerMaskPositionArgs& args) const;
5936
5946 bool setStickerPositionInSet(std::string_view sticker, std::int32_t position) const;
5947
5956 bool setStickerPositionInSet(const SetStickerPositionInSetArgs& args) const;
5957
5983 bool setStickerSetThumbnail(std::string_view name,
5984 std::int64_t userId,
5985 std::string_view format,
5986 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { }) const;
5987
5997 bool setStickerSetThumbnail(const SetStickerSetThumbnailArgs& args) const;
5998
6007 bool setStickerSetTitle(std::string_view name, std::string_view title) const;
6008
6016 bool setStickerSetTitle(const SetStickerSetTitleArgs& args) const;
6017
6030 bool setUserEmojiStatus(std::int64_t userId,
6031 std::string_view emojiStatusCustomEmojiId = "",
6032 std::int32_t emojiStatusExpirationDate = 0) const;
6033
6043 bool setUserEmojiStatus(const SetUserEmojiStatusArgs& args) const;
6044
6082 bool setWebhook(std::string_view url,
6083 std::shared_ptr<InputFile> certificate = nullptr,
6084 std::int32_t maxConnections = 40,
6085 const std::vector<std::string>& allowedUpdates = { },
6086 std::string_view ipAddress = "",
6087 bool dropPendingUpdates = false,
6088 std::string_view secretToken = "") const;
6089
6104 bool setWebhook(const SetWebhookArgs& args) const;
6105
6124 std::shared_ptr<Message> stopMessageLiveLocation(std::variant<std::int64_t, std::string> chatId = { },
6125 std::int32_t messageId = 0,
6126 std::string_view inlineMessageId = "",
6127 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
6128 std::string_view businessConnectionId = "") const;
6129
6139 std::shared_ptr<Message> stopMessageLiveLocation(const StopMessageLiveLocationArgs& args) const;
6140
6154 std::shared_ptr<Poll> stopPoll(std::variant<std::int64_t, std::string> chatId,
6155 std::int32_t messageId,
6156 std::string_view businessConnectionId = "",
6157 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr) const;
6158
6167 std::shared_ptr<Poll> stopPoll(const StopPollArgs& args) const;
6168
6178 bool transferBusinessAccountStars(std::string_view businessConnectionId, std::int32_t starCount) const;
6179
6188 bool transferBusinessAccountStars(const TransferBusinessAccountStarsArgs& args) const;
6189
6205 bool transferGift(std::string_view businessConnectionId,
6206 std::int64_t newOwnerChatId,
6207 std::string_view ownedGiftId,
6208 std::int32_t starCount = 0) const;
6209
6219 bool transferGift(const TransferGiftArgs& args) const;
6220
6236 bool unbanChatMember(std::variant<std::int64_t, std::string> chatId,
6237 std::int64_t userId,
6238 bool onlyIfBanned = false) const;
6239
6252 bool unbanChatMember(const UnbanChatMemberArgs& args) const;
6253
6265 bool unbanChatSenderChat(std::variant<std::int64_t, std::string> chatId, std::int64_t senderChatId) const;
6266
6276 bool unbanChatSenderChat(const UnbanChatSenderChatArgs& args) const;
6277
6288 bool unhideGeneralForumTopic(std::variant<std::int64_t, std::string> chatId) const;
6289
6299 bool unhideGeneralForumTopic(const UnhideGeneralForumTopicArgs& args) const;
6300
6313 bool unpinAllChatMessages(std::variant<std::int64_t, std::string> chatId) const;
6314
6326 bool unpinAllChatMessages(const UnpinAllChatMessagesArgs& args) const;
6327
6340 bool unpinAllForumTopicMessages(std::variant<std::int64_t, std::string> chatId,
6341 std::int32_t messageThreadId) const;
6342
6353 bool unpinAllForumTopicMessages(const UnpinAllForumTopicMessagesArgs& args) const;
6354
6365 bool unpinAllGeneralForumTopicMessages(std::variant<std::int64_t, std::string> chatId) const;
6366
6376 bool unpinAllGeneralForumTopicMessages(const UnpinAllGeneralForumTopicMessagesArgs& args) const;
6377
6395 bool unpinChatMessage(std::variant<std::int64_t, std::string> chatId,
6396 std::string_view businessConnectionId = "",
6397 std::int32_t messageId = 0) const;
6398
6410 bool unpinChatMessage(const UnpinChatMessageArgs& args) const;
6411
6429 bool upgradeGift(std::string_view businessConnectionId,
6430 std::string_view ownedGiftId,
6431 bool keepOriginalDetails = false,
6432 std::int32_t starCount = 0) const;
6433
6443 bool upgradeGift(const UpgradeGiftArgs& args) const;
6444
6458 std::shared_ptr<File> uploadStickerFile(std::int64_t userId,
6459 std::variant<std::shared_ptr<InputFile>, std::string> sticker,
6460 std::string_view stickerFormat) const;
6461
6471 std::shared_ptr<File> uploadStickerFile(const UploadStickerFileArgs& args) const;
6472
6486 bool verifyChat(std::variant<std::int64_t, std::string> chatId, std::string_view customDescription = "") const;
6487
6496 bool verifyChat(const VerifyChatArgs& args) const;
6497
6509 bool verifyUser(std::int64_t userId, std::string_view customDescription = "") const;
6510
6519 bool verifyUser(const VerifyUserArgs& args) const;
bool answerShippingQuery(std::string_view shippingQueryId, bool ok, const std::vector< std::shared_ptr< ShippingOption > > &shippingOptions={ }, std::string_view errorMessage="") const
If you sent an invoice requesting a shipping address and the parameter is_flexible was specified,...
bool setMyCommands(const std::vector< std::shared_ptr< BotCommand > > &commands, std::shared_ptr< BotCommandScope > scope=nullptr, std::string_view languageCode="") const
Use this method to change the list of the bot's commands. See this manual for more details about bot ...
bool pinChatMessage(std::variant< std::int64_t, std::string > chatId, std::int32_t messageId, std::string_view businessConnectionId="", bool disableNotification=false) const
Use this method to add a message to the list of pinned messages in a chat. In private chats and chann...
bool transferGift(std::string_view businessConnectionId, std::int64_t newOwnerChatId, std::string_view ownedGiftId, std::int32_t starCount=0) const
Transfers an owned unique gift to another user. Requires the can_transfer_and_upgrade_gifts business ...
std::shared_ptr< Message > sendGame(std::variant< std::int64_t, std::string > chatId, std::string_view gameShortName, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, bool disableNotification=false, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view messageEffectId="") const
Use this method to send a game. On success, the sent Message is returned.
bool approveSuggestedPost(std::variant< std::int64_t, std::string > chatId, std::int32_t messageId, std::int32_t sendDate=0) const
Use this method to approve a suggested post in a direct messages chat. The bot must have the 'can_pos...
std::shared_ptr< OwnedGifts > getChatGifts(std::variant< std::int64_t, std::string > chatId, bool excludeFromBlockchain=false, bool excludeLimitedNonUpgradable=false, bool excludeLimitedUpgradable=false, bool excludeSaved=false, bool excludeUnique=false, bool excludeUnlimited=false, bool excludeUnsaved=false, std::int32_t limit=0, std::string_view offset="", bool sortByPrice=false) const
Returns the gifts owned by a chat. Returns OwnedGifts on success.
bool unbanChatMember(std::variant< std::int64_t, std::string > chatId, std::int64_t userId, bool onlyIfBanned=false) const
Use this method to unban a previously banned user in a supergroup or channel. The user will not retur...
std::shared_ptr< Message > sendAnimation(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > animation, std::int32_t duration=0, std::int32_t width=0, std::int32_t height=0, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::string_view caption="", std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::int32_t messageThreadId=0, bool protectContent=false, bool hasSpoiler=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound)....
bool verifyChat(std::variant< std::int64_t, std::string > chatId, std::string_view customDescription="") const
Verifies a chat on behalf of the organization which is represented by the bot. Returns True on succes...
bool setStickerPositionInSet(std::string_view sticker, std::int32_t position) const
Use this method to move a sticker in a set created by the bot to a specific position....
std::string exportChatInviteLink(std::variant< std::int64_t, std::string > chatId) const
Use this method to generate a new primary invite link for a chat; any previously generated primary li...
bool editEphemeralMessageReplyMarkup(std::variant< std::int64_t, std::string > chatId, std::int32_t ephemeralMessageId, std::int64_t receiverUserId, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr) const
Use this method to edit only the reply markup of an ephemeral message. Note that it is not guaranteed...
bool setStickerMaskPosition(std::string_view sticker, std::shared_ptr< MaskPosition > maskPosition=nullptr) const
Use this method to change the mask position of a mask sticker. The sticker must belong to a sticker s...
std::shared_ptr< ChatInviteLink > createChatSubscriptionInviteLink(std::variant< std::int64_t, std::string > chatId, std::int32_t subscriptionPeriod, std::int32_t subscriptionPrice, std::string_view name="") const
Use this method to create a subscription invite link for a channel chat. The bot must have the can_in...
bool approveChatJoinRequest(std::variant< std::int64_t, std::string > chatId, std::int64_t userId) const
Use this method to approve a chat join request. The bot must be an administrator in the chat for this...
std::shared_ptr< ForumTopic > createForumTopic(std::variant< std::int64_t, std::string > chatId, std::string_view name, std::int32_t iconColor=0, std::string_view iconCustomEmojiId="") const
Use this method to create a topic in a forum supergroup chat or a private chat with a user....
bool sendChatJoinRequestWebApp(std::string_view chatJoinRequestQueryId, std::string_view webAppUrl) const
Use this method to process a received chat join request query by showing a Mini App to the user befor...
bool deleteEphemeralMessage(std::variant< std::int64_t, std::string > chatId, std::int32_t ephemeralMessageId, std::int64_t receiverUserId) const
Use this method to delete an ephemeral message. Note that it is not guaranteed that the user will rec...
bool deleteStory(std::string_view businessConnectionId, std::int32_t storyId) const
Deletes a story previously posted by the bot on behalf of a managed business account....
std::shared_ptr< UserChatBoosts > getUserChatBoosts(std::variant< std::int64_t, std::string > chatId, std::int64_t userId) const
Use this method to get the list of boosts added to a chat by a user. Requires administrator rights in...
bool close() const
Use this method to close the bot instance before moving it from one local server to another....
std::shared_ptr< ChatInviteLink > revokeChatInviteLink(std::variant< std::int64_t, std::string > chatId, std::string_view inviteLink) const
Use this method to revoke an invite link created by the bot. If the primary link is revoked,...
bool editUserStarSubscription(bool isCanceled, std::string_view telegramPaymentChargeId, std::int64_t userId) const
Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars....
std::shared_ptr< BotName > getMyName(std::string_view languageCode="") const
Use this method to get the current bot name for the given user language. Returns BotName on success.
std::shared_ptr< Message > sendLocation(std::variant< std::int64_t, std::string > chatId, double latitude, double longitude, std::int32_t livePeriod=0, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, bool disableNotification=false, double horizontalAccuracy=0, std::int32_t heading=0, std::int32_t proximityAlertRadius=0, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send point on the map. On success, the sent Message is returned.
bool removeBusinessAccountProfilePhoto(std::string_view businessConnectionId, bool isPublic=false) const
Removes the current profile photo of a managed business account. Requires the can_edit_profile_photo ...
std::shared_ptr< ChatInviteLink > editChatInviteLink(std::variant< std::int64_t, std::string > chatId, std::string_view inviteLink, std::int32_t expireDate=0, std::int32_t memberLimit=0, std::string_view name="", bool createsJoinRequest=false) const
Use this method to edit a non-primary invite link created by the bot. The bot must be an administrato...
std::shared_ptr< Message > sendChecklist(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId, std::shared_ptr< InputChecklist > checklist, bool disableNotification=false, std::string_view messageEffectId="", bool protectContent=false, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::shared_ptr< ReplyParameters > replyParameters=nullptr) const
Use this method to send a checklist on behalf of a connected business account. On success,...
std::string replaceManagedBotToken(std::int64_t userId) const
Use this method to revoke the current token of a managed bot and generate a new one....
std::shared_ptr< Message > stopMessageLiveLocation(std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::string_view businessConnectionId="") const
Use this method to stop updating a live location message before live_period expires....
bool unpinAllChatMessages(std::variant< std::int64_t, std::string > chatId) const
Use this method to clear the list of pinned messages in a chat. In private chats and channel direct m...
std::shared_ptr< Message > sendPaidMedia(std::variant< std::int64_t, std::string > chatId, const std::vector< std::shared_ptr< InputPaidMedia > > &media, std::int32_t starCount, bool allowPaidBroadcast=false, std::string_view businessConnectionId="", std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::int64_t directMessagesTopicId=0, bool disableNotification=false, std::int32_t messageThreadId=0, std::string_view parseMode="", std::string_view payload="", bool protectContent=false, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::shared_ptr< ReplyParameters > replyParameters=nullptr, bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to send paid media. On success, the sent Message is returned.
bool editGeneralForumTopic(std::variant< std::int64_t, std::string > chatId, std::string_view name) const
Use this method to edit the name of the 'General' topic in a forum supergroup chat....
std::shared_ptr< StarAmount > getBusinessAccountStarBalance(std::string_view businessConnectionId) const
Returns the amount of Telegram Stars owned by a managed business account. Requires the can_view_gifts...
bool closeForumTopic(std::variant< std::int64_t, std::string > chatId, std::int32_t messageThreadId) const
Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator i...
std::shared_ptr< Message > editMessageLiveLocation(double latitude, double longitude, std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, double horizontalAccuracy=0, std::int32_t heading=0, std::int32_t proximityAlertRadius=0, std::string_view businessConnectionId="", std::int32_t livePeriod=0) const
Use this method to edit live location messages. A location can be edited until its live_period expire...
std::shared_ptr< Message > editMessageChecklist(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId, std::shared_ptr< InputChecklist > checklist, std::int32_t messageId, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr) const
Use this method to edit a checklist on behalf of a connected business account. On success,...
bool banChatSenderChat(std::variant< std::int64_t, std::string > chatId, std::int64_t senderChatId) const
Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned,...
bool setChatMemberTag(std::variant< std::int64_t, std::string > chatId, std::int64_t userId, std::string_view tag="") const
Use this method to set a tag for a regular member in a group or a supergroup. The bot must be an admi...
bool deleteStickerFromSet(std::string_view sticker) const
Use this method to delete a sticker from a set created by the bot. Returns True on success.
std::shared_ptr< ChatInviteLink > createChatInviteLink(std::variant< std::int64_t, std::string > chatId, std::int32_t expireDate=0, std::int32_t memberLimit=0, std::string_view name="", bool createsJoinRequest=false) const
Use this method to create an additional invite link for a chat. The bot must be an administrator in t...
bool setMyName(std::string_view name="", std::string_view languageCode="") const
Use this method to change the bot's name. Returns True on success.
bool upgradeGift(std::string_view businessConnectionId, std::string_view ownedGiftId, bool keepOriginalDetails=false, std::int32_t starCount=0) const
Upgrades a given regular gift to a unique gift. Requires the can_transfer_and_upgrade_gifts business ...
bool giftPremiumSubscription(std::int32_t monthCount, std::int32_t starCount, std::int64_t userId, std::string_view text="", const std::vector< std::shared_ptr< MessageEntity > > &textEntities={ }, std::string_view textParseMode="") const
Gifts a Telegram Premium subscription to the given user. Returns True on success.
bool setMyDescription(std::string_view description="", std::string_view languageCode="") const
Use this method to change the bot's description, which is shown in the chat with the bot if the chat ...
bool deleteMessages(std::variant< std::int64_t, std::string > chatId, const std::vector< std::int32_t > &messageIds) const
Use this method to delete multiple messages simultaneously. If some of the specified messages can't b...
std::string getManagedBotToken(std::int64_t userId) const
Use this method to get the token of a managed bot. Returns the token as String on success.
bool hideGeneralForumTopic(std::variant< std::int64_t, std::string > chatId) const
Use this method to hide the 'General' topic in a forum supergroup chat. The bot must be an administra...
std::shared_ptr< Message > editMessageText(std::string_view text="", std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view inlineMessageId="", std::string_view parseMode="", std::shared_ptr< LinkPreviewOptions > linkPreviewOptions=nullptr, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, const std::vector< std::shared_ptr< MessageEntity > > &entities={ }, std::string_view businessConnectionId="", std::shared_ptr< InputRichMessage > richMessage=nullptr, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to edit text, rich and game messages. On success, if the edited message is not an inl...
bool editEphemeralMessageText(std::variant< std::int64_t, std::string > chatId, std::int32_t ephemeralMessageId, std::int64_t receiverUserId, std::string_view text="", const std::vector< std::shared_ptr< MessageEntity > > &entities={ }, std::shared_ptr< LinkPreviewOptions > linkPreviewOptions=nullptr, std::string_view parseMode="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::shared_ptr< InputRichMessage > richMessage=nullptr) const
Use this method to edit an ephemeral text or rich message. Note that it is not guaranteed that the us...
bool restrictChatMember(std::variant< std::int64_t, std::string > chatId, std::int64_t userId, std::shared_ptr< ChatPermissions > permissions, std::int32_t untilDate=0, bool useIndependentChatPermissions=false) const
Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergrou...
bool createNewStickerSet(std::int64_t userId, std::string_view name, std::string_view title, const std::vector< std::shared_ptr< InputSticker > > &stickers, Sticker::Type stickerType=Sticker::Type::Regular, bool needsRepainting=false, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker...
std::shared_ptr< ChatMember > getChatMember(std::variant< std::int64_t, std::string > chatId, std::int64_t userId) const
Use this method to get information about a member of a chat. The method is only guaranteed to work fo...
std::shared_ptr< BotDescription > getMyDescription(std::string_view languageCode="") const
Use this method to get the current bot description for the given user language. Returns BotDescriptio...
std::shared_ptr< PreparedInlineMessage > savePreparedInlineMessage(std::shared_ptr< InlineQueryResult > result, std::int64_t userId, bool allowBotChats=false, bool allowChannelChats=false, bool allowGroupChats=false, bool allowUserChats=false) const
Stores a message that can be sent by a user of a Mini App. Returns a PreparedInlineMessage object.
std::vector< std::shared_ptr< Update > > getUpdates(std::int32_t offset=0, std::int32_t limit=100, std::int32_t timeout=0, const std::vector< std::string > &allowedUpdates={ }) const
Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update obj...
std::shared_ptr< File > getFile(std::string_view fileId) const
Use this method to get basic information about a file and prepare it for downloading....
std::shared_ptr< UserProfilePhotos > getUserProfilePhotos(std::int64_t userId, std::int32_t offset=0, std::int32_t limit=100) const
Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.
std::shared_ptr< Message > editMessageCaption(std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view caption="", std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::string_view parseMode="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view businessConnectionId="", bool showCaptionAboveMedia=false) const
Use this method to edit captions of messages. On success, if the edited message is not an inline mess...
bool setStickerSetTitle(std::string_view name, std::string_view title) const
Use this method to set the title of a created sticker set. Returns True on success.
bool setUserEmojiStatus(std::int64_t userId, std::string_view emojiStatusCustomEmojiId="", std::int32_t emojiStatusExpirationDate=0) const
Changes the emoji status for a given user that previously allowed the bot to manage their emoji statu...
std::shared_ptr< Story > postStory(std::int32_t activePeriod, std::string_view businessConnectionId, std::shared_ptr< InputStoryContent > content, const std::vector< std::shared_ptr< StoryArea > > &areas={ }, std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view parseMode="", bool postToChatPage=false, bool protectContent=false, const std::vector< InputFileAttachment > &attachments={ }) const
Posts a story on behalf of a managed business account. Requires the can_manage_stories business bot r...
std::vector< std::shared_ptr< MessageId > > copyMessages(std::variant< std::int64_t, std::string > chatId, std::variant< std::int64_t, std::string > fromChatId, const std::vector< std::int32_t > &messageIds, std::int32_t messageThreadId=0, bool disableNotification=false, bool protectContent=false, bool removeCaption=false, std::int64_t directMessagesTopicId=0) const
Use this method to copy messages of any kind. If some of the specified messages can't be found or cop...
bool setChatStickerSet(std::variant< std::int64_t, std::string > chatId, std::string_view stickerSetName) const
Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in ...
bool declineChatJoinRequest(std::variant< std::int64_t, std::string > chatId, std::int64_t userId) const
Use this method to decline a chat join request. The bot must be an administrator in the chat for this...
bool sendGift(std::string_view giftId, std::variant< std::int64_t, std::string > chatId={ }, bool payForUpgrade=false, std::string_view text="", const std::vector< std::shared_ptr< MessageEntity > > &textEntities={ }, std::string_view textParseMode="", std::int64_t userId=0) const
Sends a gift to the given user or channel chat. The gift can't be converted to Telegram Stars by the ...
bool logOut() const
Use this method to log out from the cloud Bot API server before launching the bot locally....
std::shared_ptr< Message > sendVenue(std::variant< std::int64_t, std::string > chatId, double latitude, double longitude, std::string_view title, std::string_view address, std::string_view foursquareId="", std::string_view foursquareType="", bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view googlePlaceId="", std::string_view googlePlaceType="", std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send information about a venue. On success, the sent Message is returned.
std::vector< std::shared_ptr< Message > > sendMediaGroup(std::variant< std::int64_t, std::string > chatId, const 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, bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to send a group of photos, live photos, videos, documents or audios as an album....
bool setStickerEmojiList(std::string_view sticker, const std::vector< std::string > &emojiList) const
Use this method to change the list of emoji assigned to a regular or custom emoji sticker....
std::shared_ptr< Message > sendVideo(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > video, bool supportsStreaming=false, std::int32_t duration=0, std::int32_t width=0, std::int32_t height=0, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::string_view caption="", std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::int32_t messageThreadId=0, bool protectContent=false, bool hasSpoiler=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::variant< std::shared_ptr< InputFile >, std::string > cover={ }, std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, bool showCaptionAboveMedia=false, std::int32_t startTimestamp=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send video files, Telegram clients support MPEG4 videos (other formats may be sent...
std::shared_ptr< WebhookInfo > getWebhookInfo() const
Use this method to get current webhook status. Requires no parameters. On success,...
bool deleteMessage(std::variant< std::int64_t, std::string > chatId, std::int32_t messageId) const
Use this method to delete a message, including service messages, with the following limitations:- A m...
bool setChatDescription(std::variant< std::int64_t, std::string > chatId, std::string_view description="") const
Use this method to change the description of a group, a supergroup or a channel. The bot must be an a...
bool setMyShortDescription(std::string_view shortDescription="", std::string_view languageCode="") const
Use this method to change the bot's short description, which is shown on the bot's profile page and i...
std::vector< std::shared_ptr< MessageId > > forwardMessages(std::variant< std::int64_t, std::string > chatId, std::variant< std::int64_t, std::string > fromChatId, const std::vector< std::int32_t > &messageIds, std::int32_t messageThreadId=0, bool disableNotification=false, bool protectContent=false, std::int64_t directMessagesTopicId=0) const
Use this method to forward multiple messages of any kind. If some of the specified messages can't be ...
bool setWebhook(std::string_view url, std::shared_ptr< InputFile > certificate=nullptr, std::int32_t maxConnections=40, const std::vector< std::string > &allowedUpdates={ }, std::string_view ipAddress="", bool dropPendingUpdates=false, std::string_view secretToken="") const
Use this method to specify a URL and receive incoming updates via an outgoing webhook....
bool leaveChat(std::variant< std::int64_t, std::string > chatId) const
Use this method for your bot to leave a group, supergroup or channel. Returns True on success.
bool unbanChatSenderChat(std::variant< std::int64_t, std::string > chatId, std::int64_t senderChatId) const
Use this method to unban a previously banned channel chat in a supergroup or channel....
std::shared_ptr< Message > sendDice(std::variant< std::int64_t, std::string > chatId, bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view emoji="", std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send an animated emoji that will display a random value. On success,...
bool setBusinessAccountProfilePhoto(std::string_view businessConnectionId, std::shared_ptr< InputProfilePhoto > photo, bool isPublic=false, const std::vector< InputFileAttachment > &attachments={ }) const
Changes the profile photo of a managed business account. Requires the can_edit_profile_photo business...
std::shared_ptr< Story > repostStory(std::int32_t activePeriod, std::string_view businessConnectionId, std::variant< std::int64_t, std::string > fromChatId, std::int32_t fromStoryId, bool postToChatPage=false, bool protectContent=false) const
Reposts a story on behalf of a business account from another business account. Both business accounts...
bool setChatMenuButton(std::variant< std::int64_t, std::string > chatId={ }, std::shared_ptr< MenuButton > menuButton=nullptr) const
Use this method to change the bot's menu button in a private chat, or the default menu button....
std::shared_ptr< OwnedGifts > getUserGifts(std::int64_t userId, bool excludeFromBlockchain=false, bool excludeLimitedNonUpgradable=false, bool excludeLimitedUpgradable=false, bool excludeUnique=false, bool excludeUnlimited=false, std::int32_t limit=0, std::string_view offset="", bool sortByPrice=false) const
Returns the gifts owned and hosted by a user. Returns OwnedGifts on success.
bool deleteBusinessMessages(std::string_view businessConnectionId, const std::vector< std::int32_t > &messageIds) const
Delete messages on behalf of a business account. Requires the can_delete_sent_messages business bot r...
bool deleteMessageReaction(std::variant< std::int64_t, std::string > chatId, std::int32_t messageId, std::int64_t actorChatId=0, std::int64_t userId=0) const
Use this method to remove a reaction from a message in a group or a supergroup chat....
std::shared_ptr< Message > sendMessage(std::variant< std::int64_t, std::string > chatId, std::string_view text, std::shared_ptr< LinkPreviewOptions > linkPreviewOptions=nullptr, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &entities={ }, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send text messages. On success, the sent Message is returned.
std::vector< std::shared_ptr< GameHighScore > > getGameHighScores(std::int64_t userId, std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view inlineMessageId="") const
Use this method to get data for high score tables. Will return the score of the specified user and se...
bool unpinAllForumTopicMessages(std::variant< std::int64_t, std::string > chatId, std::int32_t messageThreadId) const
Use this method to clear the list of pinned messages in a forum topic in a forum supergroup chat or a...
std::shared_ptr< StarTransactions > getStarTransactions(std::int32_t limit=0, std::int32_t offset=0) const
Returns the bot's Telegram Star transactions in chronological order. On success, returns a StarTransa...
bool answerCallbackQuery(std::string_view callbackQueryId, std::string_view text="", bool showAlert=false, std::string_view url="", std::int32_t cacheTime=0) const
Use this method to send answers to callback queries sent from inline keyboards. The answer will be di...
bool convertGiftToStars(std::string_view businessConnectionId, std::string_view ownedGiftId) const
Converts a given regular gift to Telegram Stars. Requires the can_convert_gifts_to_stars business bot...
bool deleteWebhook(bool dropPendingUpdates=false) const
Use this method to remove webhook integration if you decide to switch back to getUpdates....
std::shared_ptr< MessageId > copyMessage(std::variant< std::int64_t, std::string > chatId, std::variant< std::int64_t, std::string > fromChatId, std::int32_t messageId, std::string_view caption="", std::string_view parseMode="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, bool protectContent=false, std::int32_t messageThreadId=0, bool allowPaidBroadcast=false, std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr, std::int32_t videoStartTimestamp=0) const
Use this method to copy messages of any kind. Service messages, paid media messages,...
bool removeMyProfilePhoto() const
Removes the profile photo of the bot. Requires no parameters. Returns True on success.
bool sendRichMessageDraft(std::variant< std::int64_t, std::string > chatId, std::int32_t draftId, std::shared_ptr< InputRichMessage > richMessage, std::int32_t messageThreadId=0, bool canStop=false, bool keepOnStop=false) const
Use this method to stream a partial rich message to a user while the message is being generated....
bool deleteMyCommands(std::shared_ptr< BotCommandScope > scope=nullptr, std::string_view languageCode="") const
Use this method to delete the list of the bot's commands for the given scope and user language....
bool setChatTitle(std::variant< std::int64_t, std::string > chatId, std::string_view title) const
Use this method to change the title of a chat. Titles can't be changed for private chats....
std::shared_ptr< Message > editMessageReplyMarkup(std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::string_view businessConnectionId="") const
Use this method to edit only the reply markup of messages. On success, if the edited message is not a...
bool sendMessageDraft(std::variant< std::int64_t, std::string > chatId, std::int32_t draftId, const std::vector< std::shared_ptr< MessageEntity > > &entities={ }, std::int32_t messageThreadId=0, std::string_view parseMode="", std::string_view text="", bool canStop=false, bool keepOnStop=false) const
Use this method to stream a partial message to a user while the message is being generated....
std::shared_ptr< Message > sendVoice(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > voice, std::string_view caption="", std::int32_t duration=0, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send audio files, if you want Telegram clients to display the file as a playable v...
bool setPassportDataErrors(std::int64_t userId, const std::vector< std::shared_ptr< PassportElementError > > &errors) const
Informs a user that some of the Telegram Passport elements they provided contains errors....
std::shared_ptr< StarAmount > getMyStarBalance() const
A method to get the current Telegram Stars balance of the bot. Requires no parameters....
std::shared_ptr< Message > sendPhoto(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > photo, std::string_view caption="", std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::int32_t messageThreadId=0, bool protectContent=false, bool hasSpoiler=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send photos. On success, the sent Message is returned.
std::int32_t getChatMemberCount(std::variant< std::int64_t, std::string > chatId) const
Use this method to get the number of members in a chat. Returns Integer on success.
bool refundStarPayment(std::string_view telegramPaymentChargeId, std::int64_t userId) const
Refunds a successful payment in Telegram Stars. Returns True on success.
std::vector< std::shared_ptr< ChatMember > > getChatAdministrators(std::variant< std::int64_t, std::string > chatId, bool returnBots=false) const
Use this method to get a list of administrators in a chat. Returns an Array of ChatMember objects.
std::vector< std::shared_ptr< BotCommand > > getMyCommands(std::shared_ptr< BotCommandScope > scope=nullptr, std::string_view languageCode="") const
Use this method to get the current list of the bot's commands for the given scope and user language....
std::shared_ptr< Message > sendVideoNote(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > videoNote, std::shared_ptr< ReplyParameters > replyParameters=nullptr, bool disableNotification=false, std::int32_t duration=0, std::int32_t length=0, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send a rounded square MPEG4 video of up to 1 minute long. On success,...
std::shared_ptr< Gifts > getAvailableGifts() const
Returns the list of gifts that can be sent by the bot to users and channel chats. Requires no paramet...
std::shared_ptr< MenuButton > getChatMenuButton(std::variant< std::int64_t, std::string > chatId={ }) const
Use this method to get the current value of the bot's menu button in a private chat,...
std::shared_ptr< PreparedKeyboardButton > savePreparedKeyboardButton(std::shared_ptr< KeyboardButton > button, std::int64_t userId) const
Stores a keyboard button that can be used by a user within a Mini App. Returns a PreparedKeyboardButt...
bool declineSuggestedPost(std::variant< std::int64_t, std::string > chatId, std::int32_t messageId, std::string_view comment="") const
Use this method to decline a suggested post in a direct messages chat. The bot must have the 'can_man...
std::shared_ptr< Message > setGameScore(std::int64_t userId, std::int32_t score, bool force=false, bool disableEditMessage=false, std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view inlineMessageId="") const
Use this method to set the score of the specified user in a game message. On success,...
bool setMyProfilePhoto(std::shared_ptr< InputProfilePhoto > photo, const std::vector< InputFileAttachment > &attachments={ }) const
Changes the profile photo of the bot. Returns True on success.
std::shared_ptr< Message > sendPoll(std::variant< std::int64_t, std::string > chatId, std::string_view question, const std::vector< std::shared_ptr< InputPollOption > > &options, bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, bool isAnonymous=true, std::string_view type="", bool allowsMultipleAnswers=false, std::string_view explanation="", std::string_view explanationParseMode="", const std::vector< std::shared_ptr< MessageEntity > > &explanationEntities={ }, std::int32_t openPeriod=0, std::int32_t closeDate=0, bool isClosed=false, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowAddingOptions=false, bool allowPaidBroadcast=false, bool allowsRevoting=false, const std::vector< std::int32_t > &correctOptionIds={ }, const std::vector< std::string > &countryCodes={ }, std::string_view description="", const std::vector< std::shared_ptr< MessageEntity > > &descriptionEntities={ }, std::string_view descriptionParseMode="", std::shared_ptr< InputPollMedia > explanationMedia=nullptr, bool hideResultsUntilCloses=false, std::shared_ptr< InputPollMedia > media=nullptr, bool membersOnly=false, std::string_view messageEffectId="", const std::vector< std::shared_ptr< MessageEntity > > &questionEntities={ }, std::string_view questionParseMode="", bool shuffleOptions=false) const
Use this method to send a native poll. On success, the sent Message is returned.
std::shared_ptr< Message > sendContact(std::variant< std::int64_t, std::string > chatId, std::string_view phoneNumber, std::string_view firstName, std::string_view lastName="", std::string_view vcard="", bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send phone contacts. On success, the sent Message is returned.
std::shared_ptr< Message > sendInvoice(std::variant< std::int64_t, std::string > chatId, std::string_view title, std::string_view description, std::string_view payload, std::string_view providerToken, std::string_view currency, const std::vector< std::shared_ptr< LabeledPrice > > &prices, std::string_view providerData="", std::string_view photoUrl="", std::int32_t photoSize=0, std::int32_t photoWidth=0, std::int32_t photoHeight=0, bool needName=false, bool needPhoneNumber=false, bool needEmail=false, bool needShippingAddress=false, bool sendPhoneNumberToProvider=false, bool sendEmailToProvider=false, bool isFlexible=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, bool disableNotification=false, std::int32_t messageThreadId=0, std::int32_t maxTipAmount=0, const std::vector< std::int32_t > &suggestedTipAmounts={ }, std::string_view startParameter="", bool protectContent=false, bool allowPaidBroadcast=false, std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send invoices. On success, the sent Message is returned.
bool setChatPhoto(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > photo) const
Use this method to set a new profile photo for the chat. Photos can't be changed for private chats....
bool deleteForumTopic(std::variant< std::int64_t, std::string > chatId, std::int32_t messageThreadId) const
Use this method to delete a forum topic along with all its messages in a forum supergroup chat or a p...
bool setBusinessAccountBio(std::string_view businessConnectionId, std::string_view bio="") const
Changes the bio of a managed business account. Requires the can_change_bio business bot right....
bool unhideGeneralForumTopic(std::variant< std::int64_t, std::string > chatId) const
Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administ...
bool setStickerSetThumbnail(std::string_view name, std::int64_t userId, std::string_view format, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }) const
Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail fi...
bool setManagedBotAccessSettings(bool isAccessRestricted, std::int64_t userId, const std::vector< std::int32_t > &addedUserIds={ }) const
Use this method to change the access settings of a managed bot. Returns True on success.
bool setMessageReaction(std::variant< std::int64_t, std::string > chatId, std::int32_t messageId, const std::vector< std::shared_ptr< ReactionType > > &reaction={ }, bool isBig=false) const
Use this method to change the chosen reactions on a message. Service messages of some types can't be ...
bool banChatMember(std::variant< std::int64_t, std::string > chatId, std::int64_t userId, std::int32_t untilDate=0, bool revokeMessages=true) const
Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and c...
std::shared_ptr< Message > sendRichMessage(std::variant< std::int64_t, std::string > chatId, std::shared_ptr< InputRichMessage > richMessage, bool allowPaidBroadcast=false, std::string_view businessConnectionId="", std::int64_t directMessagesTopicId=0, bool disableNotification=false, std::string_view messageEffectId="", std::int32_t messageThreadId=0, bool protectContent=false, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to send rich messages. If the message contains a block with a media element,...
bool editEphemeralMessageCaption(std::variant< std::int64_t, std::string > chatId, std::int32_t ephemeralMessageId, std::int64_t receiverUserId, std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view parseMode="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, bool showCaptionAboveMedia=false) const
Use this method to edit the caption of an ephemeral message. Note that it is not guaranteed that the ...
bool setChatPermissions(std::variant< std::int64_t, std::string > chatId, std::shared_ptr< ChatPermissions > permissions, bool useIndependentChatPermissions=false) const
Use this method to set default chat permissions for all members. The bot must be an administrator in ...
std::vector< std::shared_ptr< Message > > getUserPersonalChatMessages(std::int32_t limit, std::int64_t userId) const
Use this method to get the last messages from the personal chat (i.e., the chat currently added to th...
std::shared_ptr< Poll > stopPoll(std::variant< std::int64_t, std::string > chatId, std::int32_t messageId, std::string_view businessConnectionId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr) const
Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.
bool deleteChatStickerSet(std::variant< std::int64_t, std::string > chatId) const
Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in ...
std::shared_ptr< OwnedGifts > getBusinessAccountGifts(std::string_view businessConnectionId, bool excludeFromBlockchain=false, bool excludeLimitedNonUpgradable=false, bool excludeLimitedUpgradable=false, bool excludeSaved=false, bool excludeUnique=false, bool excludeUnlimited=false, bool excludeUnsaved=false, std::int32_t limit=0, std::string_view offset="", bool sortByPrice=false) const
Returns the gifts received and owned by a managed business account. Requires the can_view_gifts_and_s...
bool setChatAdministratorCustomTitle(std::variant< std::int64_t, std::string > chatId, std::int64_t userId, std::string_view customTitle) const
Use this method to set a custom title for an administrator in a supergroup promoted by the bot....
std::shared_ptr< ChatFullInfo > getChat(std::variant< std::int64_t, std::string > chatId) const
Use this method to get up-to-date information about the chat. Returns a ChatFullInfo object on succes...
bool setBusinessAccountGiftSettings(std::shared_ptr< AcceptedGiftTypes > acceptedGiftTypes, std::string_view businessConnectionId, bool showGiftButton) const
Changes the privacy settings pertaining to incoming gifts in a managed business account....
bool promoteChatMember(std::variant< std::int64_t, std::string > chatId, std::int64_t userId, bool canChangeInfo=false, bool canPostMessages=false, bool canEditMessages=false, bool canDeleteMessages=false, bool canInviteUsers=false, bool canPinMessages=false, bool canPromoteMembers=false, bool isAnonymous=false, bool canManageChat=false, bool canManageVideoChats=false, bool canRestrictMembers=false, bool canManageTopics=false, bool canPostStories=false, bool canEditStories=false, bool canDeleteStories=false, bool canManageDirectMessages=false, bool canManageTags=false, bool canSendWelcomeMessages=false) const
Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administ...
bool transferBusinessAccountStars(std::string_view businessConnectionId, std::int32_t starCount) const
Transfers Telegram Stars from the business account balance to the bot's balance. Requires the can_tra...
bool unpinChatMessage(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId="", std::int32_t messageId=0) const
Use this method to remove a message from the list of pinned messages in a chat. In private chats and ...
std::shared_ptr< BusinessConnection > getBusinessConnection(std::string_view businessConnectionId) const
Use this method to get information about the connection of the bot with a business account....
bool closeGeneralForumTopic(std::variant< std::int64_t, std::string > chatId) const
Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an admin...
std::shared_ptr< StickerSet > getStickerSet(std::string_view name) const
Use this method to get a sticker set. On success, a StickerSet object is returned.
std::shared_ptr< Message > editMessageMedia(std::shared_ptr< InputMedia > media, std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::string_view businessConnectionId="", const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to edit animation, audio, document, live photo, photo, or video messages,...
bool setCustomEmojiStickerSetThumbnail(std::string_view name, std::string_view customEmojiId="") const
Use this method to set the thumbnail of a custom emoji sticker set. Returns True on success.
std::shared_ptr< SentWebAppMessage > answerWebAppQuery(std::string_view webAppQueryId, std::shared_ptr< InlineQueryResult > result) const
Use this method to set the result of an interaction with a Web App and send a corresponding message o...
bool addStickerToSet(std::int64_t userId, std::string_view name, std::shared_ptr< InputSticker > sticker, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 2...
bool setBusinessAccountUsername(std::string_view businessConnectionId, std::string_view username="") const
Changes the username of a managed business account. Requires the can_change_username business bot rig...
bool removeUserVerification(std::int64_t userId) const
Removes verification from a user who is currently verified on behalf of the organization represented ...
std::shared_ptr< Message > sendAudio(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > audio, std::string_view caption="", std::int32_t duration=0, std::string_view performer="", std::string_view title="", std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send audio files, if you want Telegram clients to display them in the music player...
std::shared_ptr< ChatInviteLink > editChatSubscriptionInviteLink(std::variant< std::int64_t, std::string > chatId, std::string_view inviteLink, std::string_view name="") const
Use this method to edit a subscription invite link created by the bot. The bot must have the can_invi...
bool setBusinessAccountName(std::string_view businessConnectionId, std::string_view firstName, std::string_view lastName="") const
Changes the first and last name of a managed business account. Requires the can_change_name business ...
bool editForumTopic(std::variant< std::int64_t, std::string > chatId, std::int32_t messageThreadId, std::string_view name="", std::string_view iconCustomEmojiId="") const
Use this method to edit name and icon of a topic in a forum supergroup chat or a private chat with a ...
bool deleteAllMessageReactions(std::variant< std::int64_t, std::string > chatId, std::int64_t actorChatId=0, std::int64_t userId=0) const
Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a giv...
bool editEphemeralMessageMedia(std::variant< std::int64_t, std::string > chatId, std::int32_t ephemeralMessageId, std::shared_ptr< InputMedia > media, std::int64_t receiverUserId, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to edit the media of an ephemeral message. Note that it is not guaranteed that the us...
bool verifyUser(std::int64_t userId, std::string_view customDescription="") const
Verifies a user on behalf of the organization which is represented by the bot. Returns True on succes...
bool answerPreCheckoutQuery(std::string_view preCheckoutQueryId, bool ok, std::string_view errorMessage="") const
Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmat...
std::string createInvoiceLink(std::string_view title, std::string_view description, std::string_view payload, std::string_view providerToken, std::string_view currency, const std::vector< std::shared_ptr< LabeledPrice > > &prices, std::int32_t maxTipAmount=0, const std::vector< std::int32_t > &suggestedTipAmounts={ }, std::string_view providerData="", std::string_view photoUrl="", std::int32_t photoSize=0, std::int32_t photoWidth=0, std::int32_t photoHeight=0, bool needName=false, bool needPhoneNumber=false, bool needEmail=false, bool needShippingAddress=false, bool sendPhoneNumberToProvider=false, bool sendEmailToProvider=false, bool isFlexible=false, std::string_view businessConnectionId="", std::int32_t subscriptionPeriod=0) const
Use this method to create a link for an invoice. Returns the created invoice link as String on succes...
std::shared_ptr< UserProfileAudios > getUserProfileAudios(std::int64_t userId, std::int32_t limit=0, std::int32_t offset=0) const
Use this method to get a list of profile audios for a user. Returns a UserProfileAudios object.
bool replaceStickerInSet(std::int64_t userId, std::string_view name, std::string_view oldSticker, std::shared_ptr< InputSticker > sticker, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to replace an existing sticker in a sticker set with a new one. The method is equival...
std::shared_ptr< ChatAdministratorRights > getMyDefaultAdministratorRights(bool forChannels=false) const
Use this method to get the current default administrator rights of the bot. Returns ChatAdministrator...
bool unpinAllGeneralForumTopicMessages(std::variant< std::int64_t, std::string > chatId) const
Use this method to clear the list of pinned messages in a General forum topic. The bot must be an adm...
std::shared_ptr< Message > sendDocument(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > document, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::string_view caption="", std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, bool disableContentTypeDetection=false, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send general files. On success, the sent Message is returned. Bots can currently s...
std::shared_ptr< BotAccessSettings > getManagedBotAccessSettings(std::int64_t userId) const
Use this method to get the access settings of a managed bot. Returns a BotAccessSettings object on su...
std::vector< std::shared_ptr< Sticker > > getForumTopicIconStickers() const
Use this method to get custom emoji stickers, which can be used as a forum topic icon by any user....
std::shared_ptr< SentGuestMessage > answerGuestQuery(std::string_view guestQueryId, std::shared_ptr< InlineQueryResult > result) const
Use this method to reply to a received guest message. On success, a SentGuestMessage object is return...
std::vector< std::shared_ptr< Sticker > > getCustomEmojiStickers(const std::vector< std::string > &customEmojiIds) const
Use this method to get information about custom emoji stickers by their identifiers....
std::shared_ptr< Message > sendSticker(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > sticker, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, bool disableNotification=false, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view emoji="", std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success,...
bool setStickerKeywords(std::string_view sticker, const std::vector< std::string > &keywords={ }) const
Use this method to change search keywords assigned to a regular or custom emoji sticker....
bool answerInlineQuery(std::string_view inlineQueryId, const std::vector< std::shared_ptr< InlineQueryResult > > &results, std::int32_t cacheTime=300, bool isPersonal=false, std::string_view nextOffset="", std::shared_ptr< InlineQueryResultsButton > button=nullptr) const
Use this method to send answers to an inline query. On success, True is returned.No more than 50 resu...
bool reopenGeneralForumTopic(std::variant< std::int64_t, std::string > chatId) const
Use this method to reopen a closed 'General' topic in a forum supergroup chat. The bot must be an adm...
std::shared_ptr< Message > forwardMessage(std::variant< std::int64_t, std::string > chatId, std::variant< std::int64_t, std::string > fromChatId, std::int32_t messageId, bool disableNotification=false, bool protectContent=false, std::int32_t messageThreadId=0, std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr, std::int32_t videoStartTimestamp=0) const
Use this method to forward messages of any kind. Service messages and messages with protected content...
std::shared_ptr< File > uploadStickerFile(std::int64_t userId, std::variant< std::shared_ptr< InputFile >, std::string > sticker, std::string_view stickerFormat) const
Use this method to upload a file with a sticker for later use in the createNewStickerSet,...
bool readBusinessMessage(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId, std::int32_t messageId) const
Marks incoming message as read on behalf of a business account. Requires the can_read_messages busine...
bool deleteStickerSet(std::string_view name) const
Use this method to delete a sticker set that was created by the bot. Returns True on success....
std::shared_ptr< Story > editStory(std::string_view businessConnectionId, std::shared_ptr< InputStoryContent > content, std::int32_t storyId, const std::vector< std::shared_ptr< StoryArea > > &areas={ }, std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view parseMode="", const std::vector< InputFileAttachment > &attachments={ }) const
Edits a story previously posted by the bot on behalf of a managed business account....
std::shared_ptr< Message > sendLivePhoto(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > livePhoto, std::variant< std::shared_ptr< InputFile >, std::string > photo, bool allowPaidBroadcast=false, std::string_view businessConnectionId="", std::string_view callbackQueryId="", std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::int64_t directMessagesTopicId=0, bool disableNotification=false, bool hasSpoiler=false, std::string_view messageEffectId="", std::int32_t messageThreadId=0, std::string_view parseMode="", bool protectContent=false, std::int64_t receiverUserId=0, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::shared_ptr< ReplyParameters > replyParameters=nullptr, bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send live photos. On success, the sent Message is returned.
std::shared_ptr< User > getMe() const
A simple method for testing your bot's authentication token. Requires no parameters....
bool removeChatVerification(std::variant< std::int64_t, std::string > chatId) const
Removes verification from a chat that is currently verified on behalf of the organization represented...
bool deleteChatPhoto(std::variant< std::int64_t, std::string > chatId) const
Use this method to delete a chat photo. Photos can't be changed for private chats....
bool reopenForumTopic(std::variant< std::int64_t, std::string > chatId, std::int32_t messageThreadId) const
Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator...
bool setMyDefaultAdministratorRights(std::shared_ptr< ChatAdministratorRights > rights=nullptr, bool forChannels=false) const
Use this method to change the default administrator rights requested by the bot when it's added as an...
std::shared_ptr< BotShortDescription > getMyShortDescription(std::string_view languageCode="") const
Use this method to get the current bot short description for the given user language....
bool sendChatAction(std::variant< std::int64_t, std::string > chatId, std::string_view action, std::int32_t messageThreadId=0, std::string_view businessConnectionId="") const
Use this method when you need to tell the user that something is happening on the bot's side....
bool answerChatJoinRequestQuery(std::string_view chatJoinRequestQueryId, std::string_view result) const
Use this method to process a received chat join request query. Returns True on success.