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::uint64_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::uint32_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::uint32_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 answerWidgetQuery(std::string_view widgetQueryId, std::string_view data = "") const;
256
267 bool answerWidgetQuery(const AnswerWidgetQueryArgs& args) const;
268
280 bool approveChatJoinRequest(std::variant<std::int64_t, std::string> chatId, std::uint64_t userId) const;
281
291 bool approveChatJoinRequest(const ApproveChatJoinRequestArgs& args) const;
292
307 bool approveSuggestedPost(std::variant<std::int64_t, std::string> chatId,
308 std::uint32_t messageId,
309 std::int32_t sendDate = 0) const;
310
320 bool approveSuggestedPost(const ApproveSuggestedPostArgs& args) const;
321
343 bool banChatMember(std::variant<std::int64_t, std::string> chatId,
344 std::uint64_t userId,
345 std::int32_t untilDate = 0,
346 bool revokeMessages = true) const;
347
359 bool banChatMember(const BanChatMemberArgs& args) const;
360
374 bool banChatSenderChat(std::variant<std::int64_t, std::string> chatId, std::int64_t senderChatId) const;
375
387 bool banChatSenderChat(const BanChatSenderChatArgs& args) const;
388
399 bool close() const;
400
412 bool closeForumTopic(std::variant<std::int64_t, std::string> chatId, std::uint32_t messageThreadId) const;
413
423 bool closeForumTopic(const CloseForumTopicArgs& args) const;
424
435 bool closeGeneralForumTopic(std::variant<std::int64_t, std::string> chatId) const;
436
446 bool closeGeneralForumTopic(const CloseGeneralForumTopicArgs& args) const;
447
458 bool convertGiftToStars(std::string_view businessConnectionId, std::string_view ownedGiftId) const;
459
468 bool convertGiftToStars(const ConvertGiftToStarsArgs& args) const;
469
517 std::shared_ptr<MessageId> copyMessage(std::variant<std::int64_t, std::string> chatId,
518 std::variant<std::int64_t, std::string> fromChatId,
519 std::uint32_t messageId,
520 std::string_view caption = "",
521 std::string_view parseMode = "",
522 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
523 bool disableNotification = false,
524 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
525 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
526 std::shared_ptr<ReplyKeyboardMarkup>,
527 std::shared_ptr<ReplyKeyboardRemove>,
528 std::shared_ptr<ForceReply>> replyMarkup = { },
529 bool protectContent = false,
530 std::uint32_t messageThreadId = 0,
531 bool allowPaidBroadcast = false,
532 std::uint64_t directMessagesTopicId = 0,
533 std::string_view messageEffectId = "",
534 bool showCaptionAboveMedia = false,
535 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
536 = nullptr,
537 std::uint32_t videoStartTimestamp = 0) const;
538
551 std::shared_ptr<MessageId> copyMessage(const CopyMessageArgs& args) const;
552
582 std::vector<std::shared_ptr<MessageId>> copyMessages(std::variant<std::int64_t, std::string> chatId,
583 std::variant<std::int64_t, std::string> fromChatId,
584 const std::vector<std::uint32_t>& messageIds,
585 std::uint32_t messageThreadId = 0,
586 bool disableNotification = false,
587 bool protectContent = false,
588 bool removeCaption = false,
589 std::uint64_t directMessagesTopicId = 0) const;
590
604 std::vector<std::shared_ptr<MessageId>> copyMessages(const CopyMessagesArgs& args) const;
605
623 std::shared_ptr<ChatInviteLink> createChatInviteLink(std::variant<std::int64_t, std::string> chatId,
624 std::int32_t expireDate = 0,
625 std::uint32_t memberLimit = 0,
626 std::string_view name = "",
627 bool createsJoinRequest = false) const;
628
639 std::shared_ptr<ChatInviteLink> createChatInviteLink(const CreateChatInviteLinkArgs& args) const;
640
657 std::shared_ptr<ChatInviteLink> createChatSubscriptionInviteLink(std::variant<std::int64_t, std::string> chatId,
658 std::uint32_t subscriptionPeriod,
659 std::uint32_t subscriptionPrice,
660 std::string_view name = "") const;
661
672 std::shared_ptr<ChatInviteLink>
673 createChatSubscriptionInviteLink(const CreateChatSubscriptionInviteLinkArgs& args) const;
674
694 std::shared_ptr<ForumTopic> createForumTopic(std::variant<std::int64_t, std::string> chatId,
695 std::string_view name,
696 std::uint32_t iconColor = 0,
697 std::string_view iconCustomEmojiId = "") const;
698
711 std::shared_ptr<ForumTopic> createForumTopic(const CreateForumTopicArgs& args) const;
712
772 std::string createInvoiceLink(std::string_view title,
773 std::string_view description,
774 std::string_view payload,
775 std::string_view providerToken,
776 std::string_view currency,
777 const std::vector<std::shared_ptr<LabeledPrice>>& prices,
778 std::uint64_t maxTipAmount = 0,
779 const std::vector<std::uint64_t>& suggestedTipAmounts = { },
780 std::string_view providerData = "",
781 std::string_view photoUrl = "",
782 std::uint32_t photoSize = 0,
783 std::uint32_t photoWidth = 0,
784 std::uint32_t photoHeight = 0,
785 bool needName = false,
786 bool needPhoneNumber = false,
787 bool needEmail = false,
788 bool needShippingAddress = false,
789 bool sendPhoneNumberToProvider = false,
790 bool sendEmailToProvider = false,
791 bool isFlexible = false,
792 std::string_view businessConnectionId = "",
793 std::uint32_t subscriptionPeriod = 0) const;
794
803 std::string createInvoiceLink(const CreateInvoiceLinkArgs& args) const;
804
830 bool createNewStickerSet(std::uint64_t userId,
831 std::string_view name,
832 std::string_view title,
833 const std::vector<std::shared_ptr<InputSticker>>& stickers,
834 Sticker::Type stickerType = Sticker::Type::Regular,
835 bool needsRepainting = false,
836 const std::vector<InputFileAttachment>& attachments = { }) const;
837
846 bool createNewStickerSet(const CreateNewStickerSetArgs& args) const;
847
859 bool declineChatJoinRequest(std::variant<std::int64_t, std::string> chatId, std::uint64_t userId) const;
860
870 bool declineChatJoinRequest(const DeclineChatJoinRequestArgs& args) const;
871
883 bool declineSuggestedPost(std::variant<std::int64_t, std::string> chatId,
884 std::uint32_t messageId,
885 std::string_view comment = "") const;
886
896 bool declineSuggestedPost(const DeclineSuggestedPostArgs& args) const;
897
913 bool deleteAllMessageReactions(std::variant<std::int64_t, std::string> chatId,
914 std::int64_t actorChatId = 0,
915 std::uint64_t userId = 0) const;
916
927 bool deleteAllMessageReactions(const DeleteAllMessageReactionsArgs& args) const;
928
940 bool deleteBusinessAccountGift(std::string_view businessConnectionId, std::string_view ownedGiftId) const;
941
952 bool deleteBusinessAccountGift(const DeleteBusinessAccountGiftArgs& args) const;
953
968 bool deleteBusinessMessages(std::string_view businessConnectionId,
969 const std::vector<std::uint32_t>& messageIds) const;
970
981 bool deleteBusinessMessages(const DeleteBusinessMessagesArgs& args) const;
982
993 bool deleteChatPhoto(std::variant<std::int64_t, std::string> chatId) const;
994
1004 bool deleteChatPhoto(const DeleteChatPhotoArgs& args) const;
1005
1017 bool deleteChatStickerSet(std::variant<std::int64_t, std::string> chatId) const;
1018
1029 bool deleteChatStickerSet(const DeleteChatStickerSetArgs& args) const;
1030
1043 bool deleteEphemeralMessage(std::variant<std::int64_t, std::string> chatId,
1044 std::uint32_t ephemeralMessageId,
1045 std::uint64_t receiverUserId) const;
1046
1056 bool deleteEphemeralMessage(const DeleteEphemeralMessageArgs& args) const;
1057
1070 bool deleteForumTopic(std::variant<std::int64_t, std::string> chatId, std::uint32_t messageThreadId) const;
1071
1082 bool deleteForumTopic(const DeleteForumTopicArgs& args) const;
1083
1103 bool deleteMessage(std::variant<std::int64_t, std::string> chatId, std::uint32_t messageId) const;
1104
1122 bool deleteMessage(const DeleteMessageArgs& args) const;
1123
1139 bool deleteMessageReaction(std::variant<std::int64_t, std::string> chatId,
1140 std::uint32_t messageId,
1141 std::int64_t actorChatId = 0,
1142 std::uint64_t userId = 0) const;
1143
1153 bool deleteMessageReaction(const DeleteMessageReactionArgs& args) const;
1154
1166 bool deleteMessages(std::variant<std::int64_t, std::string> chatId,
1167 const std::vector<std::uint32_t>& messageIds) const;
1168
1177 bool deleteMessages(const DeleteMessagesArgs& args) const;
1178
1192 bool deleteMyCommands(std::shared_ptr<BotCommandScope> scope = nullptr,
1193 std::string_view languageCode = "") const;
1194
1204 bool deleteMyCommands(const DeleteMyCommandsArgs& args) const;
1205
1214 bool deleteStickerFromSet(std::string_view sticker) const;
1215
1224 bool deleteStickerFromSet(const DeleteStickerFromSetArgs& args) const;
1225
1235 bool deleteStickerSet(std::string_view name) const;
1236
1246 bool deleteStickerSet(const DeleteStickerSetArgs& args) const;
1247
1257 bool deleteStory(std::string_view businessConnectionId, std::uint32_t storyId) const;
1258
1267 bool deleteStory(const DeleteStoryArgs& args) const;
1268
1277 bool deleteWebhook(bool dropPendingUpdates = false) const;
1278
1287 bool deleteWebhook(const DeleteWebhookArgs& args) const;
1288
1306 std::shared_ptr<ChatInviteLink> editChatInviteLink(std::variant<std::int64_t, std::string> chatId,
1307 std::string_view inviteLink,
1308 std::int32_t expireDate = 0,
1309 std::uint32_t memberLimit = 0,
1310 std::string_view name = "",
1311 bool createsJoinRequest = false) const;
1312
1322 std::shared_ptr<ChatInviteLink> editChatInviteLink(const EditChatInviteLinkArgs& args) const;
1323
1336 std::shared_ptr<ChatInviteLink> editChatSubscriptionInviteLink(std::variant<std::int64_t, std::string> chatId,
1337 std::string_view inviteLink,
1338 std::string_view name = "") const;
1339
1349 std::shared_ptr<ChatInviteLink>
1350 editChatSubscriptionInviteLink(const EditChatSubscriptionInviteLinkArgs& args) const;
1351
1372 bool editEphemeralMessageCaption(std::variant<std::int64_t, std::string> chatId,
1373 std::uint32_t ephemeralMessageId,
1374 std::uint64_t receiverUserId,
1375 std::string_view caption = "",
1376 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
1377 std::string_view parseMode = "",
1378 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1379 bool showCaptionAboveMedia = false) const;
1380
1390 bool editEphemeralMessageCaption(const EditEphemeralMessageCaptionArgs& args) const;
1391
1409 bool editEphemeralMessageMedia(std::variant<std::int64_t, std::string> chatId,
1410 std::uint32_t ephemeralMessageId,
1411 std::shared_ptr<InputMedia> media,
1412 std::uint64_t receiverUserId,
1413 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1414 const std::vector<InputFileAttachment>& attachments = { }) const;
1415
1425 bool editEphemeralMessageMedia(const EditEphemeralMessageMediaArgs& args) const;
1426
1440 bool editEphemeralMessageReplyMarkup(std::variant<std::int64_t, std::string> chatId,
1441 std::uint32_t ephemeralMessageId,
1442 std::uint64_t receiverUserId,
1443 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr) const;
1444
1454 bool editEphemeralMessageReplyMarkup(const EditEphemeralMessageReplyMarkupArgs& args) const;
1455
1477 bool editEphemeralMessageText(std::variant<std::int64_t, std::string> chatId,
1478 std::uint32_t ephemeralMessageId,
1479 std::uint64_t receiverUserId,
1480 std::string_view text = "",
1481 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
1482 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions = nullptr,
1483 std::string_view parseMode = "",
1484 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1485 std::shared_ptr<InputRichMessage> richMessage = nullptr) const;
1486
1496 bool editEphemeralMessageText(const EditEphemeralMessageTextArgs& args) const;
1497
1516 bool editForumTopic(std::variant<std::int64_t, std::string> chatId,
1517 std::uint32_t messageThreadId,
1518 std::string_view name = "",
1519 std::string_view iconCustomEmojiId = "") const;
1520
1531 bool editForumTopic(const EditForumTopicArgs& args) const;
1532
1544 bool editGeneralForumTopic(std::variant<std::int64_t, std::string> chatId, std::string_view name) const;
1545
1555 bool editGeneralForumTopic(const EditGeneralForumTopicArgs& args) const;
1556
1583 std::shared_ptr<Message> editMessageCaption(std::variant<std::int64_t, std::string> chatId = { },
1584 std::uint32_t messageId = 0,
1585 std::string_view caption = "",
1586 std::string_view inlineMessageId = "",
1587 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1588 std::string_view parseMode = "",
1589 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities
1590 = { },
1591 std::string_view businessConnectionId = "",
1592 bool showCaptionAboveMedia = false) const;
1593
1604 std::shared_ptr<Message> editMessageCaption(const EditMessageCaptionArgs& args) const;
1605
1620 std::shared_ptr<Message> editMessageChecklist(std::variant<std::int64_t, std::string> chatId,
1621 std::string_view businessConnectionId,
1622 std::shared_ptr<InputChecklist> checklist,
1623 std::uint32_t messageId,
1624 std::shared_ptr<InlineKeyboardMarkup> replyMarkup
1625 = nullptr) const;
1626
1635 std::shared_ptr<Message> editMessageChecklist(const EditMessageChecklistArgs& args) const;
1636
1669 std::shared_ptr<Message> editMessageLiveLocation(double latitude,
1670 double longitude,
1671 std::variant<std::int64_t, std::string> chatId = { },
1672 std::uint32_t messageId = 0,
1673 std::string_view inlineMessageId = "",
1674 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1675 double horizontalAccuracy = 0,
1676 std::uint32_t heading = 0,
1677 std::uint32_t proximityAlertRadius = 0,
1678 std::string_view businessConnectionId = "",
1679 std::uint32_t livePeriod = 0) const;
1680
1691 std::shared_ptr<Message> editMessageLiveLocation(const EditMessageLiveLocationArgs& args) const;
1692
1721 std::shared_ptr<Message> editMessageMedia(std::shared_ptr<InputMedia> media,
1722 std::variant<std::int64_t, std::string> chatId = { },
1723 std::uint32_t messageId = 0,
1724 std::string_view inlineMessageId = "",
1725 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1726 std::string_view businessConnectionId = "",
1727 const std::vector<InputFileAttachment>& attachments = { }) const;
1728
1744 std::shared_ptr<Message> editMessageMedia(const EditMessageMediaArgs& args) const;
1745
1765 std::shared_ptr<Message> editMessageReplyMarkup(std::variant<std::int64_t, std::string> chatId = { },
1766 std::uint32_t messageId = 0,
1767 std::string_view inlineMessageId = "",
1768 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1769 std::string_view businessConnectionId = "") const;
1770
1781 std::shared_ptr<Message> editMessageReplyMarkup(const EditMessageReplyMarkupArgs& args) const;
1782
1815 std::shared_ptr<Message> editMessageText(std::string_view text = "",
1816 std::variant<std::int64_t, std::string> chatId = { },
1817 std::uint32_t messageId = 0,
1818 std::string_view inlineMessageId = "",
1819 std::string_view parseMode = "",
1820 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions = nullptr,
1821 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
1822 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
1823 std::string_view businessConnectionId = "",
1824 std::shared_ptr<InputRichMessage> richMessage = nullptr,
1825 const std::vector<InputFileAttachment>& attachments = { }) const;
1826
1837 std::shared_ptr<Message> editMessageText(const EditMessageTextArgs& args) const;
1838
1859 bool editMessageWidgetData(std::string_view chatData = "",
1860 std::variant<std::int64_t, std::string> chatId = { },
1861 std::string_view inlineMessageId = "",
1862 std::uint32_t messageId = 0,
1863 std::string_view publicData = "") const;
1864
1874 bool editMessageWidgetData(const EditMessageWidgetDataArgs& args) const;
1875
1889 bool
1890 editSharedWidgetData(std::string_view publicData, std::string_view widgetId, std::uint32_t cacheTime = 0) const;
1891
1900 bool editSharedWidgetData(const EditSharedWidgetDataArgs& args) const;
1901
1921 std::shared_ptr<Story> editStory(std::string_view businessConnectionId,
1922 std::shared_ptr<InputStoryContent> content,
1923 std::uint32_t storyId,
1924 const std::vector<std::shared_ptr<StoryArea>>& areas = { },
1925 std::string_view caption = "",
1926 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
1927 std::string_view parseMode = "",
1928 const std::vector<InputFileAttachment>& attachments = { }) const;
1929
1938 std::shared_ptr<Story> editStory(const EditStoryArgs& args) const;
1939
1953 bool
1954 editUserStarSubscription(bool isCanceled, std::string_view telegramPaymentChargeId, std::uint64_t userId) const;
1955
1964 bool editUserStarSubscription(const EditUserStarSubscriptionArgs& args) const;
1965
1977 std::string exportChatInviteLink(std::variant<std::int64_t, std::string> chatId) const;
1978
1989 std::string exportChatInviteLink(const ExportChatInviteLinkArgs& args) const;
1990
2019 std::shared_ptr<Message> forwardMessage(std::variant<std::int64_t, std::string> chatId,
2020 std::variant<std::int64_t, std::string> fromChatId,
2021 std::uint32_t messageId,
2022 bool disableNotification = false,
2023 bool protectContent = false,
2024 std::uint32_t messageThreadId = 0,
2025 std::uint64_t directMessagesTopicId = 0,
2026 std::string_view messageEffectId = "",
2027 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
2028 = nullptr,
2029 std::uint32_t videoStartTimestamp = 0) const;
2030
2039 std::shared_ptr<Message> forwardMessage(const ForwardMessageArgs& args) const;
2040
2068 std::vector<std::shared_ptr<MessageId>> forwardMessages(std::variant<std::int64_t, std::string> chatId,
2069 std::variant<std::int64_t, std::string> fromChatId,
2070 const std::vector<std::uint32_t>& messageIds,
2071 std::uint32_t messageThreadId = 0,
2072 bool disableNotification = false,
2073 bool protectContent = false,
2074 std::uint64_t directMessagesTopicId = 0) const;
2075
2086 std::vector<std::shared_ptr<MessageId>> forwardMessages(const ForwardMessagesArgs& args) const;
2087
2095 std::shared_ptr<Gifts> getAvailableGifts() const;
2096
2122 std::shared_ptr<OwnedGifts> getBusinessAccountGifts(std::string_view businessConnectionId,
2123 bool excludeFromBlockchain = false,
2124 bool excludeLimitedNonUpgradable = false,
2125 bool excludeLimitedUpgradable = false,
2126 bool excludeSaved = false,
2127 bool excludeUnique = false,
2128 bool excludeUnlimited = false,
2129 bool excludeUnsaved = false,
2130 std::uint32_t limit = 0,
2131 std::string_view offset = "",
2132 bool sortByPrice = false) const;
2133
2142 std::shared_ptr<OwnedGifts> getBusinessAccountGifts(const GetBusinessAccountGiftsArgs& args) const;
2143
2152 std::shared_ptr<StarAmount> getBusinessAccountStarBalance(std::string_view businessConnectionId) const;
2153
2162 std::shared_ptr<StarAmount> getBusinessAccountStarBalance(const GetBusinessAccountStarBalanceArgs& args) const;
2163
2172 std::shared_ptr<BusinessConnection> getBusinessConnection(std::string_view businessConnectionId) const;
2173
2182 std::shared_ptr<BusinessConnection> getBusinessConnection(const GetBusinessConnectionArgs& args) const;
2183
2193 std::shared_ptr<ChatFullInfo> getChat(std::variant<std::int64_t, std::string> chatId) const;
2194
2203 std::shared_ptr<ChatFullInfo> getChat(const GetChatArgs& args) const;
2204
2216 std::vector<std::shared_ptr<ChatMember>> getChatAdministrators(std::variant<std::int64_t, std::string> chatId,
2217 bool returnBots = false) const;
2218
2227 std::vector<std::shared_ptr<ChatMember>> getChatAdministrators(const GetChatAdministratorsArgs& args) const;
2228
2257 std::shared_ptr<OwnedGifts> getChatGifts(std::variant<std::int64_t, std::string> chatId,
2258 bool excludeFromBlockchain = false,
2259 bool excludeLimitedNonUpgradable = false,
2260 bool excludeLimitedUpgradable = false,
2261 bool excludeSaved = false,
2262 bool excludeUnique = false,
2263 bool excludeUnlimited = false,
2264 bool excludeUnsaved = false,
2265 std::uint32_t limit = 0,
2266 std::string_view offset = "",
2267 bool sortByPrice = false) const;
2268
2276 std::shared_ptr<OwnedGifts> getChatGifts(const GetChatGiftsArgs& args) const;
2277
2289 std::shared_ptr<ChatMember> getChatMember(std::variant<std::int64_t, std::string> chatId,
2290 std::uint64_t userId) const;
2291
2301 std::shared_ptr<ChatMember> getChatMember(const GetChatMemberArgs& args) const;
2302
2311 std::uint32_t getChatMemberCount(std::variant<std::int64_t, std::string> chatId) const;
2312
2320 std::uint32_t getChatMemberCount(const GetChatMemberCountArgs& args) const;
2321
2331 std::shared_ptr<MenuButton> getChatMenuButton(std::variant<std::uint64_t, std::string> chatId = { }) const;
2332
2341 std::shared_ptr<MenuButton> getChatMenuButton(const GetChatMenuButtonArgs& args) const;
2342
2351 std::shared_ptr<ChatShareThemeBackdrops> getChatShareThemeBackdrops() const;
2352
2362 std::vector<std::shared_ptr<Sticker>>
2363 getCustomEmojiStickers(const std::vector<std::string>& customEmojiIds) const;
2364
2373 std::vector<std::shared_ptr<Sticker>> getCustomEmojiStickers(const GetCustomEmojiStickersArgs& args) const;
2374
2389 std::shared_ptr<File> getFile(std::string_view fileId) const;
2390
2405 std::shared_ptr<File> getFile(const GetFileArgs& args) const;
2406
2414 std::vector<std::shared_ptr<Sticker>> getForumTopicIconStickers() const;
2415
2431 std::vector<std::shared_ptr<GameHighScore>> getGameHighScores(std::uint64_t userId,
2432 std::variant<std::int64_t, std::string> chatId
2433 = { },
2434 std::uint32_t messageId = 0,
2435 std::string_view inlineMessageId = "") const;
2436
2446 std::vector<std::shared_ptr<GameHighScore>> getGameHighScores(const GetGameHighScoresArgs& args) const;
2447
2457 std::shared_ptr<BotAccessSettings> getManagedBotAccessSettings(std::uint64_t userId) const;
2458
2467 std::shared_ptr<BotAccessSettings>
2468 getManagedBotAccessSettings(const GetManagedBotAccessSettingsArgs& args) const;
2469
2478 std::string getManagedBotToken(std::uint64_t userId) const;
2479
2488 std::string getManagedBotToken(const GetManagedBotTokenArgs& args) const;
2489
2497 std::shared_ptr<User> getMe() const;
2498
2510 std::vector<std::shared_ptr<BotCommand>> getMyCommands(std::shared_ptr<BotCommandScope> scope = nullptr,
2511 std::string_view languageCode = "") const;
2512
2522 std::vector<std::shared_ptr<BotCommand>> getMyCommands(const GetMyCommandsArgs& args) const;
2523
2534 std::shared_ptr<ChatAdministratorRights> getMyDefaultAdministratorRights(bool forChannels = false) const;
2535
2544 std::shared_ptr<ChatAdministratorRights>
2545 getMyDefaultAdministratorRights(const GetMyDefaultAdministratorRightsArgs& args) const;
2546
2555 std::shared_ptr<BotDescription> getMyDescription(std::string_view languageCode = "") const;
2556
2565 std::shared_ptr<BotDescription> getMyDescription(const GetMyDescriptionArgs& args) const;
2566
2575 std::shared_ptr<BotName> getMyName(std::string_view languageCode = "") const;
2576
2585 std::shared_ptr<BotName> getMyName(const GetMyNameArgs& args) const;
2586
2595 std::shared_ptr<BotShortDescription> getMyShortDescription(std::string_view languageCode = "") const;
2596
2605 std::shared_ptr<BotShortDescription> getMyShortDescription(const GetMyShortDescriptionArgs& args) const;
2606
2614 std::shared_ptr<StarAmount> getMyStarBalance() const;
2615
2626 std::shared_ptr<StarTransactions> getStarTransactions(std::uint32_t limit = 0, std::uint32_t offset = 0) const;
2627
2636 std::shared_ptr<StarTransactions> getStarTransactions(const GetStarTransactionsArgs& args) const;
2637
2645 std::shared_ptr<StickerSet> getStickerSet(std::string_view name) const;
2646
2654 std::shared_ptr<StickerSet> getStickerSet(const GetStickerSetArgs& args) const;
2655
2664 std::shared_ptr<UniqueGift> getUniqueGift(std::string_view name) const;
2665
2674 std::shared_ptr<UniqueGift> getUniqueGift(const GetUniqueGiftArgs& args) const;
2675
2704 std::vector<std::shared_ptr<Update>> getUpdates(std::int32_t offset = 0,
2705 std::uint32_t limit = 100,
2706 std::uint32_t timeout = 0,
2707 const std::vector<std::string>& allowedUpdates = { }) const;
2708
2717 std::vector<std::shared_ptr<Update>> getUpdates(const GetUpdatesArgs& args) const;
2718
2729 std::shared_ptr<UserChatBoosts> getUserChatBoosts(std::variant<std::int64_t, std::string> chatId,
2730 std::uint64_t userId) const;
2731
2740 std::shared_ptr<UserChatBoosts> getUserChatBoosts(const GetUserChatBoostsArgs& args) const;
2741
2763 std::shared_ptr<OwnedGifts> getUserGifts(std::uint64_t userId,
2764 bool excludeFromBlockchain = false,
2765 bool excludeLimitedNonUpgradable = false,
2766 bool excludeLimitedUpgradable = false,
2767 bool excludeUnique = false,
2768 bool excludeUnlimited = false,
2769 std::uint32_t limit = 0,
2770 std::string_view offset = "",
2771 bool sortByPrice = false) const;
2772
2780 std::shared_ptr<OwnedGifts> getUserGifts(const GetUserGiftsArgs& args) const;
2781
2792 std::vector<std::shared_ptr<Message>> getUserPersonalChatMessages(std::uint32_t limit,
2793 std::uint64_t userId) const;
2794
2804 std::vector<std::shared_ptr<Message>>
2805 getUserPersonalChatMessages(const GetUserPersonalChatMessagesArgs& args) const;
2806
2819 std::shared_ptr<UserProfileAudios>
2820 getUserProfileAudios(std::uint64_t userId, std::uint32_t limit = 0, std::uint32_t offset = 0) const;
2821
2830 std::shared_ptr<UserProfileAudios> getUserProfileAudios(const GetUserProfileAudiosArgs& args) const;
2831
2844 std::shared_ptr<UserProfilePhotos>
2845 getUserProfilePhotos(std::uint64_t userId, std::uint32_t offset = 0, std::uint32_t limit = 100) const;
2846
2855 std::shared_ptr<UserProfilePhotos> getUserProfilePhotos(const GetUserProfilePhotosArgs& args) const;
2856
2865 std::shared_ptr<WebhookInfo> getWebhookInfo() const;
2866
2888 bool giftPremiumSubscription(std::uint32_t monthCount,
2889 std::uint32_t starCount,
2890 std::uint64_t userId,
2891 std::string_view text = "",
2892 const std::vector<std::shared_ptr<MessageEntity>>& textEntities = { },
2893 std::string_view textParseMode = "") const;
2894
2902 bool giftPremiumSubscription(const GiftPremiumSubscriptionArgs& args) const;
2903
2915 bool hideGeneralForumTopic(std::variant<std::int64_t, std::string> chatId) const;
2916
2927 bool hideGeneralForumTopic(const HideGeneralForumTopicArgs& args) const;
2928
2939 bool leaveChat(std::variant<std::int64_t, std::string> chatId) const;
2940
2949 bool leaveChat(const LeaveChatArgs& args) const;
2950
2961 bool logOut() const;
2962
2981 bool pinChatMessage(std::variant<std::int64_t, std::string> chatId,
2982 std::uint32_t messageId,
2983 std::string_view businessConnectionId = "",
2984 bool disableNotification = false) const;
2985
2997 bool pinChatMessage(const PinChatMessageArgs& args) const;
2998
3022 std::shared_ptr<Story> postStory(std::uint32_t activePeriod,
3023 std::string_view businessConnectionId,
3024 std::shared_ptr<InputStoryContent> content,
3025 const std::vector<std::shared_ptr<StoryArea>>& areas = { },
3026 std::string_view caption = "",
3027 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
3028 std::string_view parseMode = "",
3029 bool postToChatPage = false,
3030 bool protectContent = false,
3031 const std::vector<InputFileAttachment>& attachments = { }) const;
3032
3041 std::shared_ptr<Story> postStory(const PostStoryArgs& args) const;
3042
3090 bool promoteChatMember(std::variant<std::int64_t, std::string> chatId,
3091 std::uint64_t userId,
3092 bool canChangeInfo = false,
3093 bool canPostMessages = false,
3094 bool canEditMessages = false,
3095 bool canDeleteMessages = false,
3096 bool canInviteUsers = false,
3097 bool canPinMessages = false,
3098 bool canPromoteMembers = false,
3099 bool isAnonymous = false,
3100 bool canManageChat = false,
3101 bool canManageVideoChats = false,
3102 bool canRestrictMembers = false,
3103 bool canManageTopics = false,
3104 bool canPostStories = false,
3105 bool canEditStories = false,
3106 bool canDeleteStories = false,
3107 bool canManageDirectMessages = false,
3108 bool canManageTags = false,
3109 bool canSendWelcomeMessages = false) const;
3110
3121 bool promoteChatMember(const PromoteChatMemberArgs& args) const;
3122
3135 bool readBusinessMessage(std::variant<std::int64_t, std::string> chatId,
3136 std::string_view businessConnectionId,
3137 std::uint32_t messageId) const;
3138
3147 bool readBusinessMessage(const ReadBusinessMessageArgs& args) const;
3148
3157 bool refundStarPayment(std::string_view telegramPaymentChargeId, std::uint64_t userId) const;
3158
3166 bool refundStarPayment(const RefundStarPaymentArgs& args) const;
3167
3180 bool removeBusinessAccountProfilePhoto(std::string_view businessConnectionId, bool isPublic = false) const;
3181
3190 bool removeBusinessAccountProfilePhoto(const RemoveBusinessAccountProfilePhotoArgs& args) const;
3191
3201 bool removeChatVerification(std::variant<std::int64_t, std::string> chatId) const;
3202
3211 bool removeChatVerification(const RemoveChatVerificationArgs& args) const;
3212
3220
3229 bool removeUserVerification(std::uint64_t userId) const;
3230
3239 bool removeUserVerification(const RemoveUserVerificationArgs& args) const;
3240
3252 bool reopenForumTopic(std::variant<std::int64_t, std::string> chatId, std::uint32_t messageThreadId) const;
3253
3263 bool reopenForumTopic(const ReopenForumTopicArgs& args) const;
3264
3276 bool reopenGeneralForumTopic(std::variant<std::int64_t, std::string> chatId) const;
3277
3288 bool reopenGeneralForumTopic(const ReopenGeneralForumTopicArgs& args) const;
3289
3298 std::string replaceManagedBotToken(std::uint64_t userId) const;
3299
3308 std::string replaceManagedBotToken(const ReplaceManagedBotTokenArgs& args) const;
3309
3327 bool replaceStickerInSet(std::uint64_t userId,
3328 std::string_view name,
3329 std::string_view oldSticker,
3330 std::shared_ptr<InputSticker> sticker,
3331 const std::vector<InputFileAttachment>& attachments = { }) const;
3332
3342 bool replaceStickerInSet(const ReplaceStickerInSetArgs& args) const;
3343
3362 std::shared_ptr<Story> repostStory(std::uint32_t activePeriod,
3363 std::string_view businessConnectionId,
3364 std::variant<std::int64_t, std::string> fromChatId,
3365 std::uint32_t fromStoryId,
3366 bool postToChatPage = false,
3367 bool protectContent = false) const;
3368
3379 std::shared_ptr<Story> repostStory(const RepostStoryArgs& args) const;
3380
3402 bool restrictChatMember(std::variant<std::int64_t, std::string> chatId,
3403 std::uint64_t userId,
3404 std::shared_ptr<ChatPermissions> permissions,
3405 std::int32_t untilDate = 0,
3406 bool useIndependentChatPermissions = false) const;
3407
3417 bool restrictChatMember(const RestrictChatMemberArgs& args) const;
3418
3431 std::shared_ptr<ChatInviteLink> revokeChatInviteLink(std::variant<std::int64_t, std::string> chatId,
3432 std::string_view inviteLink) const;
3433
3444 std::shared_ptr<ChatInviteLink> revokeChatInviteLink(const RevokeChatInviteLinkArgs& args) const;
3445
3459 std::shared_ptr<PreparedInlineMessage> savePreparedInlineMessage(std::shared_ptr<InlineQueryResult> result,
3460 std::uint64_t userId,
3461 bool allowBotChats = false,
3462 bool allowChannelChats = false,
3463 bool allowGroupChats = false,
3464 bool allowUserChats = false) const;
3465
3474 std::shared_ptr<PreparedInlineMessage>
3475 savePreparedInlineMessage(const SavePreparedInlineMessageArgs& args) const;
3476
3487 std::shared_ptr<PreparedKeyboardButton> savePreparedKeyboardButton(std::shared_ptr<KeyboardButton> button,
3488 std::uint64_t userId) const;
3489
3498 std::shared_ptr<PreparedKeyboardButton>
3499 savePreparedKeyboardButton(const SavePreparedKeyboardButtonArgs& args) const;
3500
3561 std::shared_ptr<Message> sendAnimation(std::variant<std::int64_t, std::string> chatId,
3562 std::variant<std::shared_ptr<InputFile>, std::string> animation,
3563 std::uint32_t duration = 0,
3564 std::uint32_t width = 0,
3565 std::uint32_t height = 0,
3566 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
3567 std::string_view caption = "",
3568 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
3569 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3570 std::shared_ptr<ReplyKeyboardMarkup>,
3571 std::shared_ptr<ReplyKeyboardRemove>,
3572 std::shared_ptr<ForceReply>> replyMarkup = { },
3573 std::string_view parseMode = "",
3574 bool disableNotification = false,
3575 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
3576 std::uint32_t messageThreadId = 0,
3577 bool protectContent = false,
3578 bool hasSpoiler = false,
3579 std::string_view businessConnectionId = "",
3580 bool allowPaidBroadcast = false,
3581 std::string_view callbackQueryId = "",
3582 std::uint64_t directMessagesTopicId = 0,
3583 std::string_view messageEffectId = "",
3584 std::uint64_t receiverUserId = 0,
3585 bool showCaptionAboveMedia = false,
3586 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3587 = nullptr) const;
3588
3598 std::shared_ptr<Message> sendAnimation(const SendAnimationArgs& args) const;
3599
3658 std::shared_ptr<Message> sendAudio(std::variant<std::int64_t, std::string> chatId,
3659 std::variant<std::shared_ptr<InputFile>, std::string> audio,
3660 std::string_view caption = "",
3661 std::uint32_t duration = 0,
3662 std::string_view performer = "",
3663 std::string_view title = "",
3664 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
3665 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
3666 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3667 std::shared_ptr<ReplyKeyboardMarkup>,
3668 std::shared_ptr<ReplyKeyboardRemove>,
3669 std::shared_ptr<ForceReply>> replyMarkup = { },
3670 std::string_view parseMode = "",
3671 bool disableNotification = false,
3672 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
3673 std::uint32_t messageThreadId = 0,
3674 bool protectContent = false,
3675 std::string_view businessConnectionId = "",
3676 bool allowPaidBroadcast = false,
3677 std::string_view callbackQueryId = "",
3678 std::uint64_t directMessagesTopicId = 0,
3679 std::string_view messageEffectId = "",
3680 std::uint64_t receiverUserId = 0,
3681 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3682 = nullptr) const;
3683
3695 std::shared_ptr<Message> sendAudio(const SendAudioArgs& args) const;
3696
3720 bool sendChatAction(std::variant<std::int64_t, std::string> chatId,
3721 std::string_view action,
3722 std::uint32_t messageThreadId = 0,
3723 std::string_view businessConnectionId = "") const;
3724
3736 bool sendChatAction(const SendChatActionArgs& args) const;
3737
3750 bool sendChatJoinRequestWebApp(std::string_view chatJoinRequestQueryId, std::string_view webAppUrl) const;
3751
3762 bool sendChatJoinRequestWebApp(const SendChatJoinRequestWebAppArgs& args) const;
3763
3782 std::shared_ptr<Message> sendChecklist(std::variant<std::int64_t, std::string> chatId,
3783 std::string_view businessConnectionId,
3784 std::shared_ptr<InputChecklist> checklist,
3785 bool disableNotification = false,
3786 std::string_view messageEffectId = "",
3787 bool protectContent = false,
3788 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
3789 std::shared_ptr<ReplyParameters> replyParameters = nullptr) const;
3790
3799 std::shared_ptr<Message> sendChecklist(const SendChecklistArgs& args) const;
3800
3839 std::shared_ptr<Message> sendContact(std::variant<std::int64_t, std::string> chatId,
3840 std::string_view phoneNumber,
3841 std::string_view firstName,
3842 std::string_view lastName = "",
3843 std::string_view vcard = "",
3844 bool disableNotification = false,
3845 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
3846 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3847 std::shared_ptr<ReplyKeyboardMarkup>,
3848 std::shared_ptr<ReplyKeyboardRemove>,
3849 std::shared_ptr<ForceReply>> replyMarkup = { },
3850 std::uint32_t messageThreadId = 0,
3851 bool protectContent = false,
3852 std::string_view businessConnectionId = "",
3853 bool allowPaidBroadcast = false,
3854 std::string_view callbackQueryId = "",
3855 std::uint64_t directMessagesTopicId = 0,
3856 std::string_view messageEffectId = "",
3857 std::uint64_t receiverUserId = 0,
3858 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3859 = nullptr) const;
3860
3868 std::shared_ptr<Message> sendContact(const SendContactArgs& args) const;
3869
3905 std::shared_ptr<Message> sendDice(std::variant<std::int64_t, std::string> chatId,
3906 bool disableNotification = false,
3907 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
3908 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3909 std::shared_ptr<ReplyKeyboardMarkup>,
3910 std::shared_ptr<ReplyKeyboardRemove>,
3911 std::shared_ptr<ForceReply>> replyMarkup = { },
3912 std::string_view emoji = "",
3913 std::uint32_t messageThreadId = 0,
3914 bool protectContent = false,
3915 std::string_view businessConnectionId = "",
3916 bool allowPaidBroadcast = false,
3917 std::uint64_t directMessagesTopicId = 0,
3918 std::string_view messageEffectId = "",
3919 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3920 = nullptr) const;
3921
3930 std::shared_ptr<Message> sendDice(const SendDiceArgs& args) const;
3931
3988 std::shared_ptr<Message> sendDocument(std::variant<std::int64_t, std::string> chatId,
3989 std::variant<std::shared_ptr<InputFile>, std::string> document,
3990 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
3991 std::string_view caption = "",
3992 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
3993 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3994 std::shared_ptr<ReplyKeyboardMarkup>,
3995 std::shared_ptr<ReplyKeyboardRemove>,
3996 std::shared_ptr<ForceReply>> replyMarkup = { },
3997 std::string_view parseMode = "",
3998 bool disableNotification = false,
3999 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
4000 bool disableContentTypeDetection = false,
4001 std::uint32_t messageThreadId = 0,
4002 bool protectContent = false,
4003 std::string_view businessConnectionId = "",
4004 bool allowPaidBroadcast = false,
4005 std::string_view callbackQueryId = "",
4006 std::uint64_t directMessagesTopicId = 0,
4007 std::string_view messageEffectId = "",
4008 std::uint64_t receiverUserId = 0,
4009 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4010 = nullptr) const;
4011
4021 std::shared_ptr<Message> sendDocument(const SendDocumentArgs& args) const;
4022
4051 std::shared_ptr<Message> sendGame(std::variant<std::int64_t, std::string> chatId,
4052 std::string_view gameShortName,
4053 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4054 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
4055 bool disableNotification = false,
4056 std::uint32_t messageThreadId = 0,
4057 bool protectContent = false,
4058 std::string_view businessConnectionId = "",
4059 bool allowPaidBroadcast = false,
4060 std::string_view messageEffectId = "") const;
4061
4069 std::shared_ptr<Message> sendGame(const SendGameArgs& args) const;
4070
4094 bool sendGift(std::string_view giftId,
4095 std::variant<std::int64_t, std::string> chatId = { },
4096 bool payForUpgrade = false,
4097 std::string_view text = "",
4098 const std::vector<std::shared_ptr<MessageEntity>>& textEntities = { },
4099 std::string_view textParseMode = "",
4100 std::uint64_t userId = 0) const;
4101
4110 bool sendGift(const SendGiftArgs& args) const;
4111
4192 std::shared_ptr<Message> sendInvoice(std::variant<std::int64_t, std::string> chatId,
4193 std::string_view title,
4194 std::string_view description,
4195 std::string_view payload,
4196 std::string_view providerToken,
4197 std::string_view currency,
4198 const std::vector<std::shared_ptr<LabeledPrice>>& prices,
4199 std::string_view providerData = "",
4200 std::string_view photoUrl = "",
4201 std::uint32_t photoSize = 0,
4202 std::uint32_t photoWidth = 0,
4203 std::uint32_t photoHeight = 0,
4204 bool needName = false,
4205 bool needPhoneNumber = false,
4206 bool needEmail = false,
4207 bool needShippingAddress = false,
4208 bool sendPhoneNumberToProvider = false,
4209 bool sendEmailToProvider = false,
4210 bool isFlexible = false,
4211 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4212 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
4213 bool disableNotification = false,
4214 std::uint32_t messageThreadId = 0,
4215 std::uint64_t maxTipAmount = 0,
4216 const std::vector<std::uint64_t>& suggestedTipAmounts = { },
4217 std::string_view startParameter = "",
4218 bool protectContent = false,
4219 bool allowPaidBroadcast = false,
4220 std::uint64_t directMessagesTopicId = 0,
4221 std::string_view messageEffectId = "",
4222 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4223 = nullptr) const;
4224
4232 std::shared_ptr<Message> sendInvoice(const SendInvoiceArgs& args) const;
4233
4285 std::shared_ptr<Message> sendLivePhoto(std::variant<std::int64_t, std::string> chatId,
4286 std::variant<std::shared_ptr<InputFile>, std::string> livePhoto,
4287 std::variant<std::shared_ptr<InputFile>, std::string> photo,
4288 bool allowPaidBroadcast = false,
4289 std::string_view businessConnectionId = "",
4290 std::string_view callbackQueryId = "",
4291 std::string_view caption = "",
4292 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
4293 std::uint64_t directMessagesTopicId = 0,
4294 bool disableNotification = false,
4295 bool hasSpoiler = false,
4296 std::string_view messageEffectId = "",
4297 std::uint32_t messageThreadId = 0,
4298 std::string_view parseMode = "",
4299 bool protectContent = false,
4300 std::uint64_t receiverUserId = 0,
4301 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4302 std::shared_ptr<ReplyKeyboardMarkup>,
4303 std::shared_ptr<ReplyKeyboardRemove>,
4304 std::shared_ptr<ForceReply>> replyMarkup = { },
4305 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4306 bool showCaptionAboveMedia = false,
4307 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4308 = nullptr) const;
4309
4317 std::shared_ptr<Message> sendLivePhoto(const SendLivePhotoArgs& args) const;
4318
4365 std::shared_ptr<Message> sendLocation(std::variant<std::int64_t, std::string> chatId,
4366 double latitude,
4367 double longitude,
4368 std::uint32_t livePeriod = 0,
4369 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4370 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4371 std::shared_ptr<ReplyKeyboardMarkup>,
4372 std::shared_ptr<ReplyKeyboardRemove>,
4373 std::shared_ptr<ForceReply>> replyMarkup = { },
4374 bool disableNotification = false,
4375 double horizontalAccuracy = 0,
4376 std::uint32_t heading = 0,
4377 std::uint32_t proximityAlertRadius = 0,
4378 std::uint32_t messageThreadId = 0,
4379 bool protectContent = false,
4380 std::string_view businessConnectionId = "",
4381 bool allowPaidBroadcast = false,
4382 std::string_view callbackQueryId = "",
4383 std::uint64_t directMessagesTopicId = 0,
4384 std::string_view messageEffectId = "",
4385 std::uint64_t receiverUserId = 0,
4386 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4387 = nullptr) const;
4388
4396 std::shared_ptr<Message> sendLocation(const SendLocationArgs& args) const;
4397
4429 std::vector<std::shared_ptr<Message>>
4430 sendMediaGroup(std::variant<std::int64_t, std::string> chatId,
4431 const std::vector<std::variant<std::shared_ptr<InputMediaAudio>,
4432 std::shared_ptr<InputMediaDocument>,
4433 std::shared_ptr<InputMediaLivePhoto>,
4434 std::shared_ptr<InputMediaPhoto>,
4435 std::shared_ptr<InputMediaVideo>>>& media,
4436 bool disableNotification = false,
4437 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4438 std::uint32_t messageThreadId = 0,
4439 bool protectContent = false,
4440 std::string_view businessConnectionId = "",
4441 bool allowPaidBroadcast = false,
4442 std::uint64_t directMessagesTopicId = 0,
4443 std::string_view messageEffectId = "",
4444 const std::vector<InputFileAttachment>& attachments = { }) const;
4445
4455 std::vector<std::shared_ptr<Message>> sendMediaGroup(const SendMediaGroupArgs& args) const;
4456
4497 std::shared_ptr<Message> sendMessage(std::variant<std::int64_t, std::string> chatId,
4498 std::string_view text,
4499 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions = nullptr,
4500 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4501 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4502 std::shared_ptr<ReplyKeyboardMarkup>,
4503 std::shared_ptr<ReplyKeyboardRemove>,
4504 std::shared_ptr<ForceReply>> replyMarkup = { },
4505 std::string_view parseMode = "",
4506 bool disableNotification = false,
4507 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
4508 std::uint32_t messageThreadId = 0,
4509 bool protectContent = false,
4510 std::string_view businessConnectionId = "",
4511 bool allowPaidBroadcast = false,
4512 std::string_view callbackQueryId = "",
4513 std::uint64_t directMessagesTopicId = 0,
4514 std::string_view messageEffectId = "",
4515 std::uint64_t receiverUserId = 0,
4516 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4517 = nullptr) const;
4518
4526 std::shared_ptr<Message> sendMessage(const SendMessageArgs& args) const;
4527
4555 bool sendMessageDraft(std::variant<std::uint64_t, std::string> chatId,
4556 std::int64_t draftId,
4557 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
4558 std::uint32_t messageThreadId = 0,
4559 std::string_view parseMode = "",
4560 std::string_view text = "",
4561 bool canStop = false,
4562 bool keepOnStop = false) const;
4563
4574 bool sendMessageDraft(const SendMessageDraftArgs& args) const;
4575
4622 std::shared_ptr<Message> sendPaidMedia(std::variant<std::int64_t, std::string> chatId,
4623 const std::vector<std::shared_ptr<InputPaidMedia>>& media,
4624 std::uint32_t starCount,
4625 bool allowPaidBroadcast = false,
4626 std::string_view businessConnectionId = "",
4627 std::string_view caption = "",
4628 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
4629 std::uint64_t directMessagesTopicId = 0,
4630 bool disableNotification = false,
4631 std::uint32_t messageThreadId = 0,
4632 std::string_view parseMode = "",
4633 std::string_view payload = "",
4634 bool protectContent = false,
4635 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4636 std::shared_ptr<ReplyKeyboardMarkup>,
4637 std::shared_ptr<ReplyKeyboardRemove>,
4638 std::shared_ptr<ForceReply>> replyMarkup = { },
4639 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4640 bool showCaptionAboveMedia = false,
4641 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4642 = nullptr,
4643 const std::vector<InputFileAttachment>& attachments = { }) const;
4644
4652 std::shared_ptr<Message> sendPaidMedia(const SendPaidMediaArgs& args) const;
4653
4702 std::shared_ptr<Message> sendPhoto(std::variant<std::int64_t, std::string> chatId,
4703 std::variant<std::shared_ptr<InputFile>, std::string> photo,
4704 std::string_view caption = "",
4705 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4706 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4707 std::shared_ptr<ReplyKeyboardMarkup>,
4708 std::shared_ptr<ReplyKeyboardRemove>,
4709 std::shared_ptr<ForceReply>> replyMarkup = { },
4710 std::string_view parseMode = "",
4711 bool disableNotification = false,
4712 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
4713 std::uint32_t messageThreadId = 0,
4714 bool protectContent = false,
4715 bool hasSpoiler = false,
4716 std::string_view businessConnectionId = "",
4717 bool allowPaidBroadcast = false,
4718 std::string_view callbackQueryId = "",
4719 std::uint64_t directMessagesTopicId = 0,
4720 std::string_view messageEffectId = "",
4721 std::uint64_t receiverUserId = 0,
4722 bool showCaptionAboveMedia = false,
4723 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4724 = nullptr) const;
4725
4733 std::shared_ptr<Message> sendPhoto(const SendPhotoArgs& args) const;
4734
4808 std::shared_ptr<Message> sendPoll(std::variant<std::int64_t, std::string> chatId,
4809 std::string_view question,
4810 const std::vector<std::shared_ptr<InputPollOption>>& options,
4811 bool disableNotification = false,
4812 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4813 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4814 std::shared_ptr<ReplyKeyboardMarkup>,
4815 std::shared_ptr<ReplyKeyboardRemove>,
4816 std::shared_ptr<ForceReply>> replyMarkup = { },
4817 bool isAnonymous = true,
4818 std::string_view type = "",
4819 bool allowsMultipleAnswers = false,
4820 std::string_view explanation = "",
4821 std::string_view explanationParseMode = "",
4822 const std::vector<std::shared_ptr<MessageEntity>>& explanationEntities = { },
4823 std::uint32_t openPeriod = 0,
4824 std::int32_t closeDate = 0,
4825 bool isClosed = false,
4826 std::uint32_t messageThreadId = 0,
4827 bool protectContent = false,
4828 std::string_view businessConnectionId = "",
4829 bool allowAddingOptions = false,
4830 bool allowPaidBroadcast = false,
4831 bool allowsRevoting = false,
4832 const std::vector<std::uint32_t>& correctOptionIds = { },
4833 const std::vector<std::string>& countryCodes = { },
4834 std::string_view description = "",
4835 const std::vector<std::shared_ptr<MessageEntity>>& descriptionEntities = { },
4836 std::string_view descriptionParseMode = "",
4837 std::shared_ptr<InputPollMedia> explanationMedia = nullptr,
4838 bool hideResultsUntilCloses = false,
4839 std::shared_ptr<InputPollMedia> media = nullptr,
4840 bool membersOnly = false,
4841 std::string_view messageEffectId = "",
4842 const std::vector<std::shared_ptr<MessageEntity>>& questionEntities = { },
4843 std::string_view questionParseMode = "",
4844 bool shuffleOptions = false) const;
4845
4853 std::shared_ptr<Message> sendPoll(const SendPollArgs& args) const;
4854
4894 std::shared_ptr<Message> sendRichMessage(std::variant<std::int64_t, std::string> chatId,
4895 std::shared_ptr<InputRichMessage> richMessage,
4896 bool allowPaidBroadcast = false,
4897 std::string_view businessConnectionId = "",
4898 std::uint64_t directMessagesTopicId = 0,
4899 bool disableNotification = false,
4900 std::string_view messageEffectId = "",
4901 std::uint32_t messageThreadId = 0,
4902 bool protectContent = false,
4903 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4904 std::shared_ptr<ReplyKeyboardMarkup>,
4905 std::shared_ptr<ReplyKeyboardRemove>,
4906 std::shared_ptr<ForceReply>> replyMarkup = { },
4907 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
4908 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4909 = nullptr,
4910 const std::vector<InputFileAttachment>& attachments = { }) const;
4911
4921 std::shared_ptr<Message> sendRichMessage(const SendRichMessageArgs& args) const;
4922
4946 bool sendRichMessageDraft(std::variant<std::uint64_t, std::string> chatId,
4947 std::int64_t draftId,
4948 std::shared_ptr<InputRichMessage> richMessage,
4949 std::uint32_t messageThreadId = 0,
4950 bool canStop = false,
4951 bool keepOnStop = false) const;
4952
4963 bool sendRichMessageDraft(const SendRichMessageDraftArgs& args) const;
4964
4999 std::shared_ptr<Message> sendSharedWidget(std::variant<std::int64_t, std::string> chatId,
5000 std::string_view widgetId,
5001 bool allowPaidBroadcast = false,
5002 std::string_view caption = "",
5003 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities
5004 = { },
5005 std::string_view chatData = "",
5006 bool disableNotification = false,
5007 std::string_view messageEffectId = "",
5008 std::uint32_t messageThreadId = 0,
5009 std::string_view parseMode = "",
5010 bool protectContent = false,
5011 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5012 std::shared_ptr<ReplyKeyboardMarkup>,
5013 std::shared_ptr<ReplyKeyboardRemove>,
5014 std::shared_ptr<ForceReply>> replyMarkup = { },
5015 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
5016 bool showCaptionAboveMedia = false) const;
5017
5028 std::shared_ptr<Message> sendSharedWidget(const SendSharedWidgetArgs& args) const;
5029
5072 std::shared_ptr<Message> sendSticker(std::variant<std::int64_t, std::string> chatId,
5073 std::variant<std::shared_ptr<InputFile>, std::string> sticker,
5074 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
5075 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5076 std::shared_ptr<ReplyKeyboardMarkup>,
5077 std::shared_ptr<ReplyKeyboardRemove>,
5078 std::shared_ptr<ForceReply>> replyMarkup = { },
5079 bool disableNotification = false,
5080 std::uint32_t messageThreadId = 0,
5081 bool protectContent = false,
5082 std::string_view emoji = "",
5083 std::string_view businessConnectionId = "",
5084 bool allowPaidBroadcast = false,
5085 std::string_view callbackQueryId = "",
5086 std::uint64_t directMessagesTopicId = 0,
5087 std::string_view messageEffectId = "",
5088 std::uint64_t receiverUserId = 0,
5089 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5090 = nullptr) const;
5091
5100 std::shared_ptr<Message> sendSticker(const SendStickerArgs& args) const;
5101
5147 std::shared_ptr<Message> sendVenue(std::variant<std::int64_t, std::string> chatId,
5148 double latitude,
5149 double longitude,
5150 std::string_view title,
5151 std::string_view address,
5152 std::string_view foursquareId = "",
5153 std::string_view foursquareType = "",
5154 bool disableNotification = false,
5155 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
5156 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5157 std::shared_ptr<ReplyKeyboardMarkup>,
5158 std::shared_ptr<ReplyKeyboardRemove>,
5159 std::shared_ptr<ForceReply>> replyMarkup = { },
5160 std::string_view googlePlaceId = "",
5161 std::string_view googlePlaceType = "",
5162 std::uint32_t messageThreadId = 0,
5163 bool protectContent = false,
5164 std::string_view businessConnectionId = "",
5165 bool allowPaidBroadcast = false,
5166 std::string_view callbackQueryId = "",
5167 std::uint64_t directMessagesTopicId = 0,
5168 std::string_view messageEffectId = "",
5169 std::uint64_t receiverUserId = 0,
5170 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5171 = nullptr) const;
5172
5181 std::shared_ptr<Message> sendVenue(const SendVenueArgs& args) const;
5182
5250 std::shared_ptr<Message> sendVideo(std::variant<std::int64_t, std::string> chatId,
5251 std::variant<std::shared_ptr<InputFile>, std::string> video,
5252 bool supportsStreaming = false,
5253 std::uint32_t duration = 0,
5254 std::uint32_t width = 0,
5255 std::uint32_t height = 0,
5256 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
5257 std::string_view caption = "",
5258 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
5259 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5260 std::shared_ptr<ReplyKeyboardMarkup>,
5261 std::shared_ptr<ReplyKeyboardRemove>,
5262 std::shared_ptr<ForceReply>> replyMarkup = { },
5263 std::string_view parseMode = "",
5264 bool disableNotification = false,
5265 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
5266 std::uint32_t messageThreadId = 0,
5267 bool protectContent = false,
5268 bool hasSpoiler = false,
5269 std::string_view businessConnectionId = "",
5270 bool allowPaidBroadcast = false,
5271 std::string_view callbackQueryId = "",
5272 std::variant<std::shared_ptr<InputFile>, std::string> cover = { },
5273 std::uint64_t directMessagesTopicId = 0,
5274 std::string_view messageEffectId = "",
5275 std::uint64_t receiverUserId = 0,
5276 bool showCaptionAboveMedia = false,
5277 std::uint32_t startTimestamp = 0,
5278 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5279 = nullptr) const;
5280
5291 std::shared_ptr<Message> sendVideo(const SendVideoArgs& args) const;
5292
5342 std::shared_ptr<Message> sendVideoNote(std::variant<std::int64_t, std::string> chatId,
5343 std::variant<std::shared_ptr<InputFile>, std::string> videoNote,
5344 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
5345 bool disableNotification = false,
5346 std::uint32_t duration = 0,
5347 std::uint32_t length = 0,
5348 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
5349 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5350 std::shared_ptr<ReplyKeyboardMarkup>,
5351 std::shared_ptr<ReplyKeyboardRemove>,
5352 std::shared_ptr<ForceReply>> replyMarkup = { },
5353 std::uint32_t messageThreadId = 0,
5354 bool protectContent = false,
5355 std::string_view businessConnectionId = "",
5356 bool allowPaidBroadcast = false,
5357 std::string_view callbackQueryId = "",
5358 std::uint64_t directMessagesTopicId = 0,
5359 std::string_view messageEffectId = "",
5360 std::uint64_t receiverUserId = 0,
5361 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5362 = nullptr) const;
5363
5372 std::shared_ptr<Message> sendVideoNote(const SendVideoNoteArgs& args) const;
5373
5422 std::shared_ptr<Message> sendVoice(std::variant<std::int64_t, std::string> chatId,
5423 std::variant<std::shared_ptr<InputFile>, std::string> voice,
5424 std::string_view caption = "",
5425 std::uint32_t duration = 0,
5426 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
5427 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5428 std::shared_ptr<ReplyKeyboardMarkup>,
5429 std::shared_ptr<ReplyKeyboardRemove>,
5430 std::shared_ptr<ForceReply>> replyMarkup = { },
5431 std::string_view parseMode = "",
5432 bool disableNotification = false,
5433 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
5434 std::uint32_t messageThreadId = 0,
5435 bool protectContent = false,
5436 std::string_view businessConnectionId = "",
5437 bool allowPaidBroadcast = false,
5438 std::string_view callbackQueryId = "",
5439 std::uint64_t directMessagesTopicId = 0,
5440 std::string_view messageEffectId = "",
5441 std::uint64_t receiverUserId = 0,
5442 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5443 = nullptr) const;
5444
5456 std::shared_ptr<Message> sendVoice(const SendVoiceArgs& args) const;
5457
5504 std::shared_ptr<Message> sendWidget(std::variant<std::int64_t, std::string> chatId,
5505 std::string_view html,
5506 bool allowPaidBroadcast = false,
5507 bool allowQueries = false,
5508 std::string_view caption = "",
5509 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
5510 std::string_view chatData = "",
5511 bool disableNotification = false,
5512 std::uint32_t height = 0,
5513 bool isShared = false,
5514 std::string_view messageEffectId = "",
5515 std::uint32_t messageThreadId = 0,
5516 std::string_view parseMode = "",
5517 bool protectContent = false,
5518 std::string_view publicData = "",
5519 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5520 std::shared_ptr<ReplyKeyboardMarkup>,
5521 std::shared_ptr<ReplyKeyboardRemove>,
5522 std::shared_ptr<ForceReply>> replyMarkup = { },
5523 std::shared_ptr<ReplyParameters> replyParameters = nullptr,
5524 bool showCaptionAboveMedia = false,
5525 std::uint32_t width = 0) const;
5526
5537 std::shared_ptr<Message> sendWidget(const SendWidgetArgs& args) const;
5538
5548 bool setBusinessAccountBio(std::string_view businessConnectionId, std::string_view bio = "") const;
5549
5558 bool setBusinessAccountBio(const SetBusinessAccountBioArgs& args) const;
5559
5571 bool setBusinessAccountGiftSettings(std::shared_ptr<AcceptedGiftTypes> acceptedGiftTypes,
5572 std::string_view businessConnectionId,
5573 bool showGiftButton) const;
5574
5583 bool setBusinessAccountGiftSettings(const SetBusinessAccountGiftSettingsArgs& args) const;
5584
5596 bool setBusinessAccountName(std::string_view businessConnectionId,
5597 std::string_view firstName,
5598 std::string_view lastName = "") const;
5599
5608 bool setBusinessAccountName(const SetBusinessAccountNameArgs& args) const;
5609
5625 bool setBusinessAccountProfilePhoto(std::string_view businessConnectionId,
5626 std::shared_ptr<InputProfilePhoto> photo,
5627 bool isPublic = false,
5628 const std::vector<InputFileAttachment>& attachments = { }) const;
5629
5638 bool setBusinessAccountProfilePhoto(const SetBusinessAccountProfilePhotoArgs& args) const;
5639
5649 bool setBusinessAccountUsername(std::string_view businessConnectionId, std::string_view username = "") const;
5650
5659 bool setBusinessAccountUsername(const SetBusinessAccountUsernameArgs& args) const;
5660
5673 bool setChatAdministratorCustomTitle(std::variant<std::int64_t, std::string> chatId,
5674 std::uint64_t userId,
5675 std::string_view customTitle) const;
5676
5685 bool setChatAdministratorCustomTitle(const SetChatAdministratorCustomTitleArgs& args) const;
5686
5698 bool setChatDescription(std::variant<std::int64_t, std::string> chatId,
5699 std::string_view description = "") const;
5700
5710 bool setChatDescription(const SetChatDescriptionArgs& args) const;
5711
5724 bool setChatMemberTag(std::variant<std::int64_t, std::string> chatId,
5725 std::uint64_t userId,
5726 std::string_view tag = "") const;
5727
5737 bool setChatMemberTag(const SetChatMemberTagArgs& args) const;
5738
5750 bool setChatMenuButton(std::variant<std::uint64_t, std::string> chatId = { },
5751 std::shared_ptr<MenuButton> menuButton = nullptr) const;
5752
5761 bool setChatMenuButton(const SetChatMenuButtonArgs& args) const;
5762
5780 bool setChatPermissions(std::variant<std::int64_t, std::string> chatId,
5781 std::shared_ptr<ChatPermissions> permissions,
5782 bool useIndependentChatPermissions = false) const;
5783
5793 bool setChatPermissions(const SetChatPermissionsArgs& args) const;
5794
5806 bool setChatPhoto(std::variant<std::int64_t, std::string> chatId,
5807 std::variant<std::shared_ptr<InputFile>, std::string> photo) const;
5808
5818 bool setChatPhoto(const SetChatPhotoArgs& args) const;
5819
5832 bool setChatStickerSet(std::variant<std::int64_t, std::string> chatId, std::string_view stickerSetName) const;
5833
5844 bool setChatStickerSet(const SetChatStickerSetArgs& args) const;
5845
5857 bool setChatTitle(std::variant<std::int64_t, std::string> chatId, std::string_view title) const;
5858
5868 bool setChatTitle(const SetChatTitleArgs& args) const;
5869
5880 bool setCustomEmojiStickerSetThumbnail(std::string_view name, std::string_view customEmojiId = "") const;
5881
5890 bool setCustomEmojiStickerSetThumbnail(const SetCustomEmojiStickerSetThumbnailArgs& args) const;
5891
5913 std::shared_ptr<Message> setGameScore(std::uint64_t userId,
5914 std::uint32_t score,
5915 bool force = false,
5916 bool disableEditMessage = false,
5917 std::variant<std::int64_t, std::string> chatId = { },
5918 std::uint32_t messageId = 0,
5919 std::string_view inlineMessageId = "") const;
5920
5931 std::shared_ptr<Message> setGameScore(const SetGameScoreArgs& args) const;
5932
5945 bool setManagedBotAccessSettings(bool isAccessRestricted,
5946 std::uint64_t userId,
5947 const std::vector<std::uint64_t>& addedUserIds = { }) const;
5948
5956 bool setManagedBotAccessSettings(const SetManagedBotAccessSettingsArgs& args) const;
5957
5978 bool setMessageReaction(std::variant<std::int64_t, std::string> chatId,
5979 std::uint32_t messageId,
5980 const std::vector<std::shared_ptr<ReactionType>>& reaction = { },
5981 bool isBig = false) const;
5982
5993 bool setMessageReaction(const SetMessageReactionArgs& args) const;
5994
6009 bool setMyCommands(const std::vector<std::shared_ptr<BotCommand>>& commands,
6010 std::shared_ptr<BotCommandScope> scope = nullptr,
6011 std::string_view languageCode = "") const;
6012
6021 bool setMyCommands(const SetMyCommandsArgs& args) const;
6022
6037 bool setMyDefaultAdministratorRights(std::shared_ptr<ChatAdministratorRights> rights = nullptr,
6038 bool forChannels = false) const;
6039
6050 bool setMyDefaultAdministratorRights(const SetMyDefaultAdministratorRightsArgs& args) const;
6051
6064 bool setMyDescription(std::string_view description = "", std::string_view languageCode = "") const;
6065
6074 bool setMyDescription(const SetMyDescriptionArgs& args) const;
6075
6086 bool setMyName(std::string_view name = "", std::string_view languageCode = "") const;
6087
6095 bool setMyName(const SetMyNameArgs& args) const;
6096
6107 bool setMyProfilePhoto(std::shared_ptr<InputProfilePhoto> photo,
6108 const std::vector<InputFileAttachment>& attachments = { }) const;
6109
6117 bool setMyProfilePhoto(const SetMyProfilePhotoArgs& args) const;
6118
6132 bool setMyShortDescription(std::string_view shortDescription = "", std::string_view languageCode = "") const;
6133
6143 bool setMyShortDescription(const SetMyShortDescriptionArgs& args) const;
6144
6159 bool setPassportDataErrors(std::uint64_t userId,
6160 const std::vector<std::shared_ptr<PassportElementError>>& errors) const;
6161
6175 bool setPassportDataErrors(const SetPassportDataErrorsArgs& args) const;
6176
6187 bool setStickerEmojiList(std::string_view sticker, const std::vector<std::string>& emojiList) const;
6188
6198 bool setStickerEmojiList(const SetStickerEmojiListArgs& args) const;
6199
6210 bool setStickerKeywords(std::string_view sticker, const std::vector<std::string>& keywords = { }) const;
6211
6220 bool setStickerKeywords(const SetStickerKeywordsArgs& args) const;
6221
6232 bool setStickerMaskPosition(std::string_view sticker,
6233 std::shared_ptr<MaskPosition> maskPosition = nullptr) const;
6234
6243 bool setStickerMaskPosition(const SetStickerMaskPositionArgs& args) const;
6244
6254 bool setStickerPositionInSet(std::string_view sticker, std::uint32_t position) const;
6255
6264 bool setStickerPositionInSet(const SetStickerPositionInSetArgs& args) const;
6265
6291 bool setStickerSetThumbnail(std::string_view name,
6292 std::uint64_t userId,
6293 std::string_view format,
6294 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { }) const;
6295
6305 bool setStickerSetThumbnail(const SetStickerSetThumbnailArgs& args) const;
6306
6315 bool setStickerSetTitle(std::string_view name, std::string_view title) const;
6316
6324 bool setStickerSetTitle(const SetStickerSetTitleArgs& args) const;
6325
6338 bool setUserEmojiStatus(std::uint64_t userId,
6339 std::string_view emojiStatusCustomEmojiId = "",
6340 std::int32_t emojiStatusExpirationDate = 0) const;
6341
6351 bool setUserEmojiStatus(const SetUserEmojiStatusArgs& args) const;
6352
6390 bool setWebhook(std::string_view url,
6391 std::shared_ptr<InputFile> certificate = nullptr,
6392 std::uint32_t maxConnections = 40,
6393 const std::vector<std::string>& allowedUpdates = { },
6394 std::string_view ipAddress = "",
6395 bool dropPendingUpdates = false,
6396 std::string_view secretToken = "") const;
6397
6412 bool setWebhook(const SetWebhookArgs& args) const;
6413
6432 std::shared_ptr<Message> stopMessageLiveLocation(std::variant<std::int64_t, std::string> chatId = { },
6433 std::uint32_t messageId = 0,
6434 std::string_view inlineMessageId = "",
6435 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr,
6436 std::string_view businessConnectionId = "") const;
6437
6447 std::shared_ptr<Message> stopMessageLiveLocation(const StopMessageLiveLocationArgs& args) const;
6448
6462 std::shared_ptr<Poll> stopPoll(std::variant<std::int64_t, std::string> chatId,
6463 std::uint32_t messageId,
6464 std::string_view businessConnectionId = "",
6465 std::shared_ptr<InlineKeyboardMarkup> replyMarkup = nullptr) const;
6466
6475 std::shared_ptr<Poll> stopPoll(const StopPollArgs& args) const;
6476
6486 bool transferBusinessAccountStars(std::string_view businessConnectionId, std::uint32_t starCount) const;
6487
6496 bool transferBusinessAccountStars(const TransferBusinessAccountStarsArgs& args) const;
6497
6513 bool transferGift(std::string_view businessConnectionId,
6514 std::int64_t newOwnerChatId,
6515 std::string_view ownedGiftId,
6516 std::uint32_t starCount = 0) const;
6517
6527 bool transferGift(const TransferGiftArgs& args) const;
6528
6544 bool unbanChatMember(std::variant<std::int64_t, std::string> chatId,
6545 std::uint64_t userId,
6546 bool onlyIfBanned = false) const;
6547
6560 bool unbanChatMember(const UnbanChatMemberArgs& args) const;
6561
6573 bool unbanChatSenderChat(std::variant<std::int64_t, std::string> chatId, std::int64_t senderChatId) const;
6574
6584 bool unbanChatSenderChat(const UnbanChatSenderChatArgs& args) const;
6585
6596 bool unhideGeneralForumTopic(std::variant<std::int64_t, std::string> chatId) const;
6597
6607 bool unhideGeneralForumTopic(const UnhideGeneralForumTopicArgs& args) const;
6608
6621 bool unpinAllChatMessages(std::variant<std::int64_t, std::string> chatId) const;
6622
6634 bool unpinAllChatMessages(const UnpinAllChatMessagesArgs& args) const;
6635
6648 bool unpinAllForumTopicMessages(std::variant<std::int64_t, std::string> chatId,
6649 std::uint32_t messageThreadId) const;
6650
6661 bool unpinAllForumTopicMessages(const UnpinAllForumTopicMessagesArgs& args) const;
6662
6673 bool unpinAllGeneralForumTopicMessages(std::variant<std::int64_t, std::string> chatId) const;
6674
6684 bool unpinAllGeneralForumTopicMessages(const UnpinAllGeneralForumTopicMessagesArgs& args) const;
6685
6703 bool unpinChatMessage(std::variant<std::int64_t, std::string> chatId,
6704 std::string_view businessConnectionId = "",
6705 std::uint32_t messageId = 0) const;
6706
6718 bool unpinChatMessage(const UnpinChatMessageArgs& args) const;
6719
6737 bool upgradeGift(std::string_view businessConnectionId,
6738 std::string_view ownedGiftId,
6739 bool keepOriginalDetails = false,
6740 std::uint32_t starCount = 0) const;
6741
6751 bool upgradeGift(const UpgradeGiftArgs& args) const;
6752
6766 std::shared_ptr<File> uploadStickerFile(std::uint64_t userId,
6767 std::variant<std::shared_ptr<InputFile>, std::string> sticker,
6768 std::string_view stickerFormat) const;
6769
6779 std::shared_ptr<File> uploadStickerFile(const UploadStickerFileArgs& args) const;
6780
6799 bool verifyChat(std::variant<std::int64_t, std::string> chatId,
6800 std::string_view customDescription = "",
6801 const std::vector<std::shared_ptr<MessageEntity>>& customDescriptionEntities = { },
6802 std::string_view customDescriptionParseMode = "") const;
6803
6812 bool verifyChat(const VerifyChatArgs& args) const;
6813
6830 bool verifyUser(std::uint64_t userId,
6831 std::string_view customDescription = "",
6832 const std::vector<std::shared_ptr<MessageEntity>>& customDescriptionEntities = { },
6833 std::string_view customDescriptionParseMode = "") const;
6834
6843 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,...
std::shared_ptr< Story > repostStory(std::uint32_t activePeriod, std::string_view businessConnectionId, std::variant< std::int64_t, std::string > fromChatId, std::uint32_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...
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::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send phone contacts. On success, the sent Message is returned.
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 ...
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::uint32_t duration=0, std::uint32_t width=0, std::uint32_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::uint32_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::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, bool showCaptionAboveMedia=false, std::uint32_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< UserChatBoosts > getUserChatBoosts(std::variant< std::int64_t, std::string > chatId, std::uint64_t userId) const
Use this method to get the list of boosts added to a chat by a user. Requires administrator rights in...
std::string replaceManagedBotToken(std::uint64_t userId) const
Use this method to revoke the current token of a managed bot and generate a new one....
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 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...
bool verifyUser(std::uint64_t userId, std::string_view customDescription="", const std::vector< std::shared_ptr< MessageEntity > > &customDescriptionEntities={ }, std::string_view customDescriptionParseMode="") const
Verifies a user on behalf of the organization which is represented by the bot. Returns True on succes...
bool sendMessageDraft(std::variant< std::uint64_t, std::string > chatId, std::int64_t draftId, const std::vector< std::shared_ptr< MessageEntity > > &entities={ }, std::uint32_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....
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...
std::shared_ptr< Poll > stopPoll(std::variant< std::int64_t, std::string > chatId, std::uint32_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.
std::shared_ptr< Message > sendPaidMedia(std::variant< std::int64_t, std::string > chatId, const std::vector< std::shared_ptr< InputPaidMedia > > &media, std::uint32_t starCount, bool allowPaidBroadcast=false, std::string_view businessConnectionId="", std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::uint64_t directMessagesTopicId=0, bool disableNotification=false, std::uint32_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 close() const
Use this method to close the bot instance before moving it from one local server to another....
bool banChatMember(std::variant< std::int64_t, std::string > chatId, std::uint64_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< 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 declineSuggestedPost(std::variant< std::int64_t, std::string > chatId, std::uint32_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< 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::uint32_t limit=0, std::string_view offset="", bool sortByPrice=false) const
Returns the gifts owned by a chat. Returns OwnedGifts on success.
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::uint32_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::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_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...
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.
bool deleteForumTopic(std::variant< std::int64_t, std::string > chatId, std::uint32_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 removeUserVerification(std::uint64_t userId) const
Removes verification from a user who is currently verified on behalf of the organization represented ...
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< 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::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::uint32_t messageThreadId=0, bool protectContent=false, std::string_view emoji="", std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_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 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...
bool unpinChatMessage(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId="", std::uint32_t messageId=0) const
Use this method to remove a message from the list of pinned messages in a chat. In private chats and ...
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 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,...
std::shared_ptr< UserProfilePhotos > getUserProfilePhotos(std::uint64_t userId, std::uint32_t offset=0, std::uint32_t limit=100) const
Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.
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< UserProfileAudios > getUserProfileAudios(std::uint64_t userId, std::uint32_t limit=0, std::uint32_t offset=0) const
Use this method to get a list of profile audios for a user. Returns a UserProfileAudios object.
std::vector< std::shared_ptr< Message > > getUserPersonalChatMessages(std::uint32_t limit, std::uint64_t userId) const
Use this method to get the last messages from the personal chat (i.e., the chat currently added to th...
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 editEphemeralMessageReplyMarkup(std::variant< std::int64_t, std::string > chatId, std::uint32_t ephemeralMessageId, std::uint64_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 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 restrictChatMember(std::variant< std::int64_t, std::string > chatId, std::uint64_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 pinChatMessage(std::variant< std::int64_t, std::string > chatId, std::uint32_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 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 > 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::uint32_t duration=0, std::uint32_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::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_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< Message > editMessageMedia(std::shared_ptr< InputMedia > media, std::variant< std::int64_t, std::string > chatId={ }, std::uint32_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,...
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...
bool transferBusinessAccountStars(std::string_view businessConnectionId, std::uint32_t starCount) const
Transfers Telegram Stars from the business account balance to the bot's balance. Requires the can_tra...
bool promoteChatMember(std::variant< std::int64_t, std::string > chatId, std::uint64_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...
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....
bool answerWidgetQuery(std::string_view widgetQueryId, std::string_view data="") const
Use this method to send an answer to a query from a widget. The query must be answered within 15 seco...
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 editUserStarSubscription(bool isCanceled, std::string_view telegramPaymentChargeId, std::uint64_t userId) const
Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars....
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 logOut() const
Use this method to log out from the cloud Bot API server before launching the bot locally....
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< WebhookInfo > getWebhookInfo() const
Use this method to get current webhook status. Requires no parameters. On success,...
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::uint32_t messageThreadId=0, bool protectContent=false, bool hasSpoiler=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_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::shared_ptr< OwnedGifts > getUserGifts(std::uint64_t userId, bool excludeFromBlockchain=false, bool excludeLimitedNonUpgradable=false, bool excludeLimitedUpgradable=false, bool excludeUnique=false, bool excludeUnlimited=false, std::uint32_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 deleteMessage(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageId) const
Use this method to delete a message, including service messages, with the following limitations:- A m...
bool editEphemeralMessageText(std::variant< std::int64_t, std::string > chatId, std::uint32_t ephemeralMessageId, std::uint64_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...
std::shared_ptr< Message > sendAnimation(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > animation, std::uint32_t duration=0, std::uint32_t width=0, std::uint32_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::uint32_t messageThreadId=0, bool protectContent=false, bool hasSpoiler=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_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 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::shared_ptr< ChatInviteLink > createChatInviteLink(std::variant< std::int64_t, std::string > chatId, std::int32_t expireDate=0, std::uint32_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...
std::shared_ptr< Message > setGameScore(std::uint64_t userId, std::uint32_t score, bool force=false, bool disableEditMessage=false, std::variant< std::int64_t, std::string > chatId={ }, std::uint32_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 unpinAllForumTopicMessages(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageThreadId) const
Use this method to clear the list of pinned messages in a forum topic in a forum supergroup chat or a...
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 > 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::uint32_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 setWebhook(std::string_view url, std::shared_ptr< InputFile > certificate=nullptr, std::uint32_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 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...
bool addStickerToSet(std::uint64_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 setStickerSetThumbnail(std::string_view name, std::uint64_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...
std::shared_ptr< Message > editMessageChecklist(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId, std::shared_ptr< InputChecklist > checklist, std::uint32_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,...
std::shared_ptr< File > uploadStickerFile(std::uint64_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,...
std::shared_ptr< Message > editMessageLiveLocation(double latitude, double longitude, std::variant< std::int64_t, std::string > chatId={ }, std::uint32_t messageId=0, std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, double horizontalAccuracy=0, std::uint32_t heading=0, std::uint32_t proximityAlertRadius=0, std::string_view businessConnectionId="", std::uint32_t livePeriod=0) const
Use this method to edit live location messages. A location can be edited until its live_period expire...
bool giftPremiumSubscription(std::uint32_t monthCount, std::uint32_t starCount, std::uint64_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 answerInlineQuery(std::string_view inlineQueryId, const std::vector< std::shared_ptr< InlineQueryResult > > &results, std::uint32_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...
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::uint32_t > &messageIds, std::uint32_t messageThreadId=0, bool disableNotification=false, bool protectContent=false, bool removeCaption=false, std::uint64_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 upgradeGift(std::string_view businessConnectionId, std::string_view ownedGiftId, bool keepOriginalDetails=false, std::uint32_t starCount=0) const
Upgrades a given regular gift to a unique gift. Requires the can_transfer_and_upgrade_gifts business ...
bool createNewStickerSet(std::uint64_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...
bool readBusinessMessage(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId, std::uint32_t messageId) const
Marks incoming message as read on behalf of a business account. Requires the can_read_messages busine...
bool deleteBusinessMessages(std::string_view businessConnectionId, const std::vector< std::uint32_t > &messageIds) const
Delete messages on behalf of a business account. Requires the can_delete_sent_messages business bot r...
bool reopenForumTopic(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageThreadId) const
Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator...
bool editMessageWidgetData(std::string_view chatData="", std::variant< std::int64_t, std::string > chatId={ }, std::string_view inlineMessageId="", std::uint32_t messageId=0, std::string_view publicData="") const
Use this method to edit data of a widget in a message sent by the bot or via the bot (for inline bots...
bool editEphemeralMessageCaption(std::variant< std::int64_t, std::string > chatId, std::uint32_t ephemeralMessageId, std::uint64_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 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....
bool deleteEphemeralMessage(std::variant< std::int64_t, std::string > chatId, std::uint32_t ephemeralMessageId, std::uint64_t receiverUserId) const
Use this method to delete an ephemeral message. Note that it is not guaranteed that the user will rec...
std::shared_ptr< Message > sendSharedWidget(std::variant< std::int64_t, std::string > chatId, std::string_view widgetId, bool allowPaidBroadcast=false, std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view chatData="", bool disableNotification=false, std::string_view messageEffectId="", std::uint32_t messageThreadId=0, std::string_view parseMode="", 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) const
Use this method to send again a shared widget created by the bot. Currently, in the production enviro...
bool removeMyProfilePhoto() const
Removes the profile photo of the bot. Requires no parameters. Returns True on success.
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....
std::shared_ptr< Story > editStory(std::string_view businessConnectionId, std::shared_ptr< InputStoryContent > content, std::uint32_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< PreparedInlineMessage > savePreparedInlineMessage(std::shared_ptr< InlineQueryResult > result, std::uint64_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::shared_ptr< Message > sendLocation(std::variant< std::int64_t, std::string > chatId, double latitude, double longitude, std::uint32_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::uint32_t heading=0, std::uint32_t proximityAlertRadius=0, std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_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.
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::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::uint64_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 verifyChat(std::variant< std::int64_t, std::string > chatId, std::string_view customDescription="", const std::vector< std::shared_ptr< MessageEntity > > &customDescriptionEntities={ }, std::string_view customDescriptionParseMode="") const
Verifies a chat on behalf of the organization which is represented by the bot. Returns True on succes...
std::shared_ptr< Message > editMessageText(std::string_view text="", std::variant< std::int64_t, std::string > chatId={ }, std::uint32_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 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< ChatMember > getChatMember(std::variant< std::int64_t, std::string > chatId, std::uint64_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< StarAmount > getMyStarBalance() const
A method to get the current Telegram Stars balance of the bot. Requires no parameters....
std::shared_ptr< PreparedKeyboardButton > savePreparedKeyboardButton(std::shared_ptr< KeyboardButton > button, std::uint64_t userId) const
Stores a keyboard button that can be used by a user within a Mini App. Returns a PreparedKeyboardButt...
bool declineChatJoinRequest(std::variant< std::int64_t, std::string > chatId, std::uint64_t userId) const
Use this method to decline a chat join request. The bot must be an administrator in the chat for this...
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.
bool refundStarPayment(std::string_view telegramPaymentChargeId, std::uint64_t userId) const
Refunds a successful payment in Telegram Stars. Returns True on success.
std::shared_ptr< MenuButton > getChatMenuButton(std::variant< std::uint64_t, std::string > chatId={ }) const
Use this method to get the current value of the bot's menu button in a private chat,...
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::uint32_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.
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...
bool setManagedBotAccessSettings(bool isAccessRestricted, std::uint64_t userId, const std::vector< std::uint64_t > &addedUserIds={ }) const
Use this method to change the access settings of a managed bot. Returns True on success.
std::shared_ptr< ChatShareThemeBackdrops > getChatShareThemeBackdrops() const
Use this method to get the list of backdrops, which can be used as the background of a theme of the s...
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::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::uint64_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....
std::vector< std::shared_ptr< GameHighScore > > getGameHighScores(std::uint64_t userId, std::variant< std::int64_t, std::string > chatId={ }, std::uint32_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...
std::shared_ptr< ChatInviteLink > createChatSubscriptionInviteLink(std::variant< std::int64_t, std::string > chatId, std::uint32_t subscriptionPeriod, std::uint32_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...
std::shared_ptr< Message > stopMessageLiveLocation(std::variant< std::int64_t, std::string > chatId={ }, std::uint32_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....
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::uint32_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::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_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...
bool sendRichMessageDraft(std::variant< std::uint64_t, std::string > chatId, std::int64_t draftId, std::shared_ptr< InputRichMessage > richMessage, std::uint32_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....
std::shared_ptr< Message > editMessageReplyMarkup(std::variant< std::int64_t, std::string > chatId={ }, std::uint32_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...
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::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_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...
bool sendChatAction(std::variant< std::int64_t, std::string > chatId, std::string_view action, std::uint32_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 setMyProfilePhoto(std::shared_ptr< InputProfilePhoto > photo, const std::vector< InputFileAttachment > &attachments={ }) const
Changes the profile photo of the bot. Returns True on success.
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 deleteStory(std::string_view businessConnectionId, std::uint32_t storyId) const
Deletes a story previously posted by the bot on behalf of a managed business account....
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 setChatMemberTag(std::variant< std::int64_t, std::string > chatId, std::uint64_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 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 setStickerPositionInSet(std::string_view sticker, std::uint32_t position) const
Use this method to move a sticker in a set created by the bot to a specific position....
bool setPassportDataErrors(std::uint64_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< StarTransactions > getStarTransactions(std::uint32_t limit=0, std::uint32_t offset=0) const
Returns the bot's Telegram Star transactions in chronological order. On success, returns a StarTransa...
std::shared_ptr< UniqueGift > getUniqueGift(std::string_view name) const
Use this method to get information about a unique gift by its name. Returns a UniqueGift object on su...
std::vector< std::shared_ptr< Update > > getUpdates(std::int32_t offset=0, std::uint32_t limit=100, std::uint32_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...
bool answerCallbackQuery(std::string_view callbackQueryId, std::string_view text="", bool showAlert=false, std::string_view url="", std::uint32_t cacheTime=0) const
Use this method to send answers to callback queries sent from inline keyboards. The answer will be di...
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 ...
bool setUserEmojiStatus(std::uint64_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...
bool deleteBusinessAccountGift(std::string_view businessConnectionId, std::string_view ownedGiftId) const
Deletes a regular gift owned by a managed business account without receiving Telegram Stars for it....
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 ...
bool deleteMessageReaction(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageId, std::int64_t actorChatId=0, std::uint64_t userId=0) const
Use this method to remove a reaction from a message in a group or a supergroup chat....
bool deleteAllMessageReactions(std::variant< std::int64_t, std::string > chatId, std::int64_t actorChatId=0, std::uint64_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 setChatAdministratorCustomTitle(std::variant< std::int64_t, std::string > chatId, std::uint64_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....
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::uint64_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 editForumTopic(std::variant< std::int64_t, std::string > chatId, std::uint32_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 editEphemeralMessageMedia(std::variant< std::int64_t, std::string > chatId, std::uint32_t ephemeralMessageId, std::shared_ptr< InputMedia > media, std::uint64_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 transferGift(std::string_view businessConnectionId, std::int64_t newOwnerChatId, std::string_view ownedGiftId, std::uint32_t starCount=0) const
Transfers an owned unique gift to another user. Requires the can_transfer_and_upgrade_gifts business ...
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....
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::uint32_t photoSize=0, std::uint32_t photoWidth=0, std::uint32_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::uint32_t messageThreadId=0, std::uint64_t maxTipAmount=0, const std::vector< std::uint64_t > &suggestedTipAmounts={ }, std::string_view startParameter="", bool protectContent=false, bool allowPaidBroadcast=false, std::uint64_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.
std::shared_ptr< BotAccessSettings > getManagedBotAccessSettings(std::uint64_t userId) const
Use this method to get the access settings of a managed bot. Returns a BotAccessSettings object on su...
std::shared_ptr< Message > sendWidget(std::variant< std::int64_t, std::string > chatId, std::string_view html, bool allowPaidBroadcast=false, bool allowQueries=false, std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view chatData="", bool disableNotification=false, std::uint32_t height=0, bool isShared=false, std::string_view messageEffectId="", std::uint32_t messageThreadId=0, std::string_view parseMode="", bool protectContent=false, std::string_view publicData="", 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::uint32_t width=0) const
Use this method to send a message with an HTML widget. Currently, in the production environment,...
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::uint32_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...
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.
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...
std::shared_ptr< Message > forwardMessage(std::variant< std::int64_t, std::string > chatId, std::variant< std::int64_t, std::string > fromChatId, std::uint32_t messageId, bool disableNotification=false, bool protectContent=false, std::uint32_t messageThreadId=0, std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr, std::uint32_t videoStartTimestamp=0) const
Use this method to forward messages of any kind. Service messages and messages with protected content...
std::string getManagedBotToken(std::uint64_t userId) const
Use this method to get the token of a managed bot. Returns the token as String on success.
bool editSharedWidgetData(std::string_view publicData, std::string_view widgetId, std::uint32_t cacheTime=0) const
Use this method to edit public data of a shared widget created by the bot. A shared widget can be edi...
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...
std::shared_ptr< Message > editMessageCaption(std::variant< std::int64_t, std::string > chatId={ }, std::uint32_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 unbanChatMember(std::variant< std::int64_t, std::string > chatId, std::uint64_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 > sendRichMessage(std::variant< std::int64_t, std::string > chatId, std::shared_ptr< InputRichMessage > richMessage, bool allowPaidBroadcast=false, std::string_view businessConnectionId="", std::uint64_t directMessagesTopicId=0, bool disableNotification=false, std::string_view messageEffectId="", std::uint32_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,...
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::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_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.
bool approveSuggestedPost(std::variant< std::int64_t, std::string > chatId, std::uint32_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...
bool setChatMenuButton(std::variant< std::uint64_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< 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 deleteMessages(std::variant< std::int64_t, std::string > chatId, const std::vector< std::uint32_t > &messageIds) const
Use this method to delete multiple messages simultaneously. If some of the specified messages can't b...
bool approveChatJoinRequest(std::variant< std::int64_t, std::string > chatId, std::uint64_t userId) const
Use this method to approve a chat join request. The bot must be an administrator in the chat for this...
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::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::uint64_t directMessagesTopicId=0, bool disableNotification=false, bool hasSpoiler=false, std::string_view messageEffectId="", std::uint32_t messageThreadId=0, std::string_view parseMode="", bool protectContent=false, std::uint64_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::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::uint64_t maxTipAmount=0, const std::vector< std::uint64_t > &suggestedTipAmounts={ }, std::string_view providerData="", std::string_view photoUrl="", std::uint32_t photoSize=0, std::uint32_t photoWidth=0, std::uint32_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::uint32_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< 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::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....
bool closeForumTopic(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageThreadId) const
Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator i...
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 replaceStickerInSet(std::uint64_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...
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< ChatInviteLink > editChatInviteLink(std::variant< std::int64_t, std::string > chatId, std::string_view inviteLink, std::int32_t expireDate=0, std::uint32_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< MessageId > copyMessage(std::variant< std::int64_t, std::string > chatId, std::variant< std::int64_t, std::string > fromChatId, std::uint32_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::uint32_t messageThreadId=0, bool allowPaidBroadcast=false, std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr, std::uint32_t videoStartTimestamp=0) const
Use this method to copy messages of any kind. Service messages, paid media messages,...
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::uint32_t openPeriod=0, std::int32_t closeDate=0, bool isClosed=false, std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowAddingOptions=false, bool allowPaidBroadcast=false, bool allowsRevoting=false, const std::vector< std::uint32_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.
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::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::uint32_t > &messageIds, std::uint32_t messageThreadId=0, bool disableNotification=false, bool protectContent=false, std::uint64_t directMessagesTopicId=0) const
Use this method to forward multiple messages of any kind. If some of the specified messages can't be ...
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...
std::shared_ptr< Story > postStory(std::uint32_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...
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 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 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.
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::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send text messages. On success, the sent Message is returned.
bool setMessageReaction(std::variant< std::int64_t, std::string > chatId, std::uint32_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 ...
std::shared_ptr< ForumTopic > createForumTopic(std::variant< std::int64_t, std::string > chatId, std::string_view name, std::uint32_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....