20 std::string_view name,
21 std::shared_ptr<InputSticker> sticker,
22 const std::vector<InputFileAttachment>& attachments = { })
const;
56 std::string_view text =
"",
57 bool showAlert =
false,
58 std::string_view url =
"",
59 std::int32_t cacheTime = 0)
const;
103 std::shared_ptr<InlineQueryResult> result)
const;
113 std::shared_ptr<SentGuestMessage>
answerGuestQuery(
const AnswerGuestQueryArgs& args)
const;
136 const std::vector<std::shared_ptr<InlineQueryResult>>& results,
137 std::int32_t cacheTime = 300,
138 bool isPersonal =
false,
139 std::string_view nextOffset =
"",
140 std::shared_ptr<InlineQueryResultsButton> button =
nullptr)
const;
206 const std::vector<std::shared_ptr<ShippingOption>>& shippingOptions = { },
207 std::string_view errorMessage =
"")
const;
231 std::shared_ptr<InlineQueryResult> result)
const;
283 std::int32_t messageId,
284 std::int32_t sendDate = 0)
const;
320 std::int32_t untilDate = 0,
321 bool revokeMessages =
true)
const;
349 bool banChatSenderChat(std::variant<std::int64_t, std::string> chatId, std::int64_t senderChatId)
const;
387 bool closeForumTopic(std::variant<std::int64_t, std::string> chatId, std::int32_t messageThreadId)
const;
492 std::shared_ptr<MessageId>
copyMessage(std::variant<std::int64_t, std::string> chatId,
493 std::variant<std::int64_t, std::string> fromChatId,
494 std::int32_t messageId,
495 std::string_view caption =
"",
496 std::string_view parseMode =
"",
497 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
498 bool disableNotification =
false,
499 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
500 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
501 std::shared_ptr<ReplyKeyboardMarkup>,
502 std::shared_ptr<ReplyKeyboardRemove>,
503 std::shared_ptr<ForceReply>> replyMarkup = { },
504 bool protectContent =
false,
505 std::int32_t messageThreadId = 0,
506 bool allowPaidBroadcast =
false,
507 std::int64_t directMessagesTopicId = 0,
508 std::string_view messageEffectId =
"",
509 bool showCaptionAboveMedia =
false,
510 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
512 std::int32_t videoStartTimestamp = 0)
const;
526 std::shared_ptr<MessageId>
copyMessage(
const CopyMessageArgs& args)
const;
557 std::vector<std::shared_ptr<MessageId>>
copyMessages(std::variant<std::int64_t, std::string> chatId,
558 std::variant<std::int64_t, std::string> fromChatId,
559 const std::vector<std::int32_t>& messageIds,
560 std::int32_t messageThreadId = 0,
561 bool disableNotification =
false,
562 bool protectContent =
false,
563 bool removeCaption =
false,
564 std::int64_t directMessagesTopicId = 0)
const;
579 std::vector<std::shared_ptr<MessageId>>
copyMessages(
const CopyMessagesArgs& args)
const;
599 std::int32_t expireDate = 0,
600 std::int32_t memberLimit = 0,
601 std::string_view name =
"",
602 bool createsJoinRequest =
false)
const;
633 std::int32_t subscriptionPeriod,
634 std::int32_t subscriptionPrice,
635 std::string_view name =
"")
const;
647 std::shared_ptr<ChatInviteLink>
667 std::shared_ptr<ForumTopic>
createForumTopic(std::variant<std::int64_t, std::string> chatId,
668 std::string_view name,
669 std::int32_t iconColor = 0,
670 std::string_view iconCustomEmojiId =
"")
const;
744 std::string_view description,
745 std::string_view payload,
746 std::string_view providerToken,
747 std::string_view currency,
748 const std::vector<std::shared_ptr<LabeledPrice>>& prices,
749 std::int32_t maxTipAmount = 0,
750 const std::vector<std::int32_t>& suggestedTipAmounts = { },
751 std::string_view providerData =
"",
752 std::string_view photoUrl =
"",
753 std::int32_t photoSize = 0,
754 std::int32_t photoWidth = 0,
755 std::int32_t photoHeight = 0,
756 bool needName =
false,
757 bool needPhoneNumber =
false,
758 bool needEmail =
false,
759 bool needShippingAddress =
false,
760 bool sendPhoneNumberToProvider =
false,
761 bool sendEmailToProvider =
false,
762 bool isFlexible =
false,
763 std::string_view businessConnectionId =
"",
764 std::int32_t subscriptionPeriod = 0)
const;
802 std::string_view name,
803 std::string_view title,
804 const std::vector<std::shared_ptr<InputSticker>>& stickers,
805 Sticker::Type stickerType = Sticker::Type::Regular,
806 bool needsRepainting =
false,
807 const std::vector<InputFileAttachment>& attachments = { })
const;
855 std::int32_t messageId,
856 std::string_view comment =
"")
const;
885 std::int64_t actorChatId = 0,
886 std::int64_t userId = 0)
const;
915 const std::vector<std::int32_t>& messageIds)
const;
990 std::int32_t ephemeralMessageId,
991 std::int64_t receiverUserId)
const;
1016 bool deleteForumTopic(std::variant<std::int64_t, std::string> chatId, std::int32_t messageThreadId)
const;
1049 bool deleteMessage(std::variant<std::int64_t, std::string> chatId, std::int32_t messageId)
const;
1086 std::int32_t messageId,
1087 std::int64_t actorChatId = 0,
1088 std::int64_t userId = 0)
const;
1113 const std::vector<std::int32_t>& messageIds)
const;
1139 std::string_view languageCode =
"")
const;
1203 bool deleteStory(std::string_view businessConnectionId, std::int32_t storyId)
const;
1253 std::string_view inviteLink,
1254 std::int32_t expireDate = 0,
1255 std::int32_t memberLimit = 0,
1256 std::string_view name =
"",
1257 bool createsJoinRequest =
false)
const;
1283 std::string_view inviteLink,
1284 std::string_view name =
"")
const;
1295 std::shared_ptr<ChatInviteLink>
1319 std::int32_t ephemeralMessageId,
1320 std::int64_t receiverUserId,
1321 std::string_view caption =
"",
1322 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
1323 std::string_view parseMode =
"",
1324 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1325 bool showCaptionAboveMedia =
false)
const;
1356 std::int32_t ephemeralMessageId,
1357 std::shared_ptr<InputMedia> media,
1358 std::int64_t receiverUserId,
1359 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1360 const std::vector<InputFileAttachment>& attachments = { })
const;
1387 std::int32_t ephemeralMessageId,
1388 std::int64_t receiverUserId,
1389 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr)
const;
1424 std::int32_t ephemeralMessageId,
1425 std::int64_t receiverUserId,
1426 std::string_view text =
"",
1427 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
1428 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions =
nullptr,
1429 std::string_view parseMode =
"",
1430 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1431 std::shared_ptr<InputRichMessage> richMessage =
nullptr)
const;
1463 std::int32_t messageThreadId,
1464 std::string_view name =
"",
1465 std::string_view iconCustomEmojiId =
"")
const;
1530 std::int32_t messageId = 0,
1531 std::string_view caption =
"",
1532 std::string_view inlineMessageId =
"",
1533 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1534 std::string_view parseMode =
"",
1535 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities
1537 std::string_view businessConnectionId =
"",
1538 bool showCaptionAboveMedia =
false)
const;
1567 std::string_view businessConnectionId,
1568 std::shared_ptr<InputChecklist> checklist,
1569 std::int32_t messageId,
1570 std::shared_ptr<InlineKeyboardMarkup> replyMarkup
1617 std::variant<std::int64_t, std::string> chatId = { },
1618 std::int32_t messageId = 0,
1619 std::string_view inlineMessageId =
"",
1620 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1621 double horizontalAccuracy = 0,
1622 std::int32_t heading = 0,
1623 std::int32_t proximityAlertRadius = 0,
1624 std::string_view businessConnectionId =
"",
1625 std::int32_t livePeriod = 0)
const;
1668 std::variant<std::int64_t, std::string> chatId = { },
1669 std::int32_t messageId = 0,
1670 std::string_view inlineMessageId =
"",
1671 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1672 std::string_view businessConnectionId =
"",
1673 const std::vector<InputFileAttachment>& attachments = { })
const;
1712 std::int32_t messageId = 0,
1713 std::string_view inlineMessageId =
"",
1714 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1715 std::string_view businessConnectionId =
"")
const;
1762 std::variant<std::int64_t, std::string> chatId = { },
1763 std::int32_t messageId = 0,
1764 std::string_view inlineMessageId =
"",
1765 std::string_view parseMode =
"",
1766 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions =
nullptr,
1767 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1768 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
1769 std::string_view businessConnectionId =
"",
1770 std::shared_ptr<InputRichMessage> richMessage =
nullptr,
1771 const std::vector<InputFileAttachment>& attachments = { })
const;
1804 std::shared_ptr<Story>
editStory(std::string_view businessConnectionId,
1805 std::shared_ptr<InputStoryContent> content,
1806 std::int32_t storyId,
1807 const std::vector<std::shared_ptr<StoryArea>>& areas = { },
1808 std::string_view caption =
"",
1809 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
1810 std::string_view parseMode =
"",
1811 const std::vector<InputFileAttachment>& attachments = { })
const;
1821 std::shared_ptr<Story>
editStory(
const EditStoryArgs& args)
const;
1902 std::shared_ptr<Message>
forwardMessage(std::variant<std::int64_t, std::string> chatId,
1903 std::variant<std::int64_t, std::string> fromChatId,
1904 std::int32_t messageId,
1905 bool disableNotification =
false,
1906 bool protectContent =
false,
1907 std::int32_t messageThreadId = 0,
1908 std::int64_t directMessagesTopicId = 0,
1909 std::string_view messageEffectId =
"",
1910 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
1912 std::int32_t videoStartTimestamp = 0)
const;
1951 std::vector<std::shared_ptr<MessageId>>
forwardMessages(std::variant<std::int64_t, std::string> chatId,
1952 std::variant<std::int64_t, std::string> fromChatId,
1953 const std::vector<std::int32_t>& messageIds,
1954 std::int32_t messageThreadId = 0,
1955 bool disableNotification =
false,
1956 bool protectContent =
false,
1957 std::int64_t directMessagesTopicId = 0)
const;
1969 std::vector<std::shared_ptr<MessageId>>
forwardMessages(
const ForwardMessagesArgs& args)
const;
2006 bool excludeFromBlockchain =
false,
2007 bool excludeLimitedNonUpgradable =
false,
2008 bool excludeLimitedUpgradable =
false,
2009 bool excludeSaved =
false,
2010 bool excludeUnique =
false,
2011 bool excludeUnlimited =
false,
2012 bool excludeUnsaved =
false,
2013 std::int32_t limit = 0,
2014 std::string_view offset =
"",
2015 bool sortByPrice =
false)
const;
2076 std::shared_ptr<ChatFullInfo>
getChat(std::variant<std::int64_t, std::string> chatId)
const;
2086 std::shared_ptr<ChatFullInfo>
getChat(
const GetChatArgs& args)
const;
2100 bool returnBots =
false)
const;
2140 std::shared_ptr<OwnedGifts>
getChatGifts(std::variant<std::int64_t, std::string> chatId,
2141 bool excludeFromBlockchain =
false,
2142 bool excludeLimitedNonUpgradable =
false,
2143 bool excludeLimitedUpgradable =
false,
2144 bool excludeSaved =
false,
2145 bool excludeUnique =
false,
2146 bool excludeUnlimited =
false,
2147 bool excludeUnsaved =
false,
2148 std::int32_t limit = 0,
2149 std::string_view offset =
"",
2150 bool sortByPrice =
false)
const;
2159 std::shared_ptr<OwnedGifts>
getChatGifts(
const GetChatGiftsArgs& args)
const;
2172 std::shared_ptr<ChatMember>
getChatMember(std::variant<std::int64_t, std::string> chatId,
2173 std::int64_t userId)
const;
2214 std::shared_ptr<MenuButton>
getChatMenuButton(std::variant<std::int64_t, std::string> chatId = { })
const;
2235 std::vector<std::shared_ptr<Sticker>>
2262 std::shared_ptr<File>
getFile(std::string_view fileId)
const;
2278 std::shared_ptr<File>
getFile(
const GetFileArgs& args)
const;
2305 std::variant<std::int64_t, std::string> chatId
2307 std::int32_t messageId = 0,
2308 std::string_view inlineMessageId =
"")
const;
2319 std::vector<std::shared_ptr<GameHighScore>>
getGameHighScores(
const GetGameHighScoresArgs& args)
const;
2340 std::shared_ptr<BotAccessSettings>
2383 std::vector<std::shared_ptr<BotCommand>>
getMyCommands(std::shared_ptr<BotCommandScope> scope =
nullptr,
2384 std::string_view languageCode =
"")
const;
2395 std::vector<std::shared_ptr<BotCommand>>
getMyCommands(
const GetMyCommandsArgs& args)
const;
2417 std::shared_ptr<ChatAdministratorRights>
2448 std::shared_ptr<BotName>
getMyName(std::string_view languageCode =
"")
const;
2458 std::shared_ptr<BotName>
getMyName(
const GetMyNameArgs& args)
const;
2557 std::vector<std::shared_ptr<Update>>
getUpdates(std::int32_t offset = 0,
2558 std::int32_t limit = 100,
2559 std::int32_t timeout = 0,
2560 const std::vector<std::string>& allowedUpdates = { })
const;
2570 std::vector<std::shared_ptr<Update>>
getUpdates(
const GetUpdatesArgs& args)
const;
2583 std::int64_t userId)
const;
2617 bool excludeFromBlockchain =
false,
2618 bool excludeLimitedNonUpgradable =
false,
2619 bool excludeLimitedUpgradable =
false,
2620 bool excludeUnique =
false,
2621 bool excludeUnlimited =
false,
2622 std::int32_t limit = 0,
2623 std::string_view offset =
"",
2624 bool sortByPrice =
false)
const;
2633 std::shared_ptr<OwnedGifts>
getUserGifts(
const GetUserGiftsArgs& args)
const;
2646 std::int64_t userId)
const;
2657 std::vector<std::shared_ptr<Message>>
2672 std::shared_ptr<UserProfileAudios>
2697 std::shared_ptr<UserProfilePhotos>
2742 std::int32_t starCount,
2743 std::int64_t userId,
2744 std::string_view text =
"",
2745 const std::vector<std::shared_ptr<MessageEntity>>& textEntities = { },
2746 std::string_view textParseMode =
"")
const;
2792 bool leaveChat(std::variant<std::int64_t, std::string> chatId)
const;
2835 std::int32_t messageId,
2836 std::string_view businessConnectionId =
"",
2837 bool disableNotification =
false)
const;
2876 std::string_view businessConnectionId,
2877 std::shared_ptr<InputStoryContent> content,
2878 const std::vector<std::shared_ptr<StoryArea>>& areas = { },
2879 std::string_view caption =
"",
2880 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
2881 std::string_view parseMode =
"",
2882 bool postToChatPage =
false,
2883 bool protectContent =
false,
2884 const std::vector<InputFileAttachment>& attachments = { })
const;
2894 std::shared_ptr<Story>
postStory(
const PostStoryArgs& args)
const;
2944 std::int64_t userId,
2945 bool canChangeInfo =
false,
2946 bool canPostMessages =
false,
2947 bool canEditMessages =
false,
2948 bool canDeleteMessages =
false,
2949 bool canInviteUsers =
false,
2950 bool canPinMessages =
false,
2951 bool canPromoteMembers =
false,
2952 bool isAnonymous =
false,
2953 bool canManageChat =
false,
2954 bool canManageVideoChats =
false,
2955 bool canRestrictMembers =
false,
2956 bool canManageTopics =
false,
2957 bool canPostStories =
false,
2958 bool canEditStories =
false,
2959 bool canDeleteStories =
false,
2960 bool canManageDirectMessages =
false,
2961 bool canManageTags =
false,
2962 bool canSendWelcomeMessages =
false)
const;
2989 std::string_view businessConnectionId,
2990 std::int32_t messageId)
const;
3105 bool reopenForumTopic(std::variant<std::int64_t, std::string> chatId, std::int32_t messageThreadId)
const;
3181 std::string_view name,
3182 std::string_view oldSticker,
3183 std::shared_ptr<InputSticker> sticker,
3184 const std::vector<InputFileAttachment>& attachments = { })
const;
3216 std::string_view businessConnectionId,
3217 std::variant<std::int64_t, std::string> fromChatId,
3218 std::int32_t fromStoryId,
3219 bool postToChatPage =
false,
3220 bool protectContent =
false)
const;
3232 std::shared_ptr<Story>
repostStory(
const RepostStoryArgs& args)
const;
3256 std::int64_t userId,
3257 std::shared_ptr<ChatPermissions> permissions,
3258 std::int32_t untilDate = 0,
3259 bool useIndependentChatPermissions =
false)
const;
3285 std::string_view inviteLink)
const;
3313 std::int64_t userId,
3314 bool allowBotChats =
false,
3315 bool allowChannelChats =
false,
3316 bool allowGroupChats =
false,
3317 bool allowUserChats =
false)
const;
3327 std::shared_ptr<PreparedInlineMessage>
3341 std::int64_t userId)
const;
3351 std::shared_ptr<PreparedKeyboardButton>
3413 std::shared_ptr<Message>
sendAnimation(std::variant<std::int64_t, std::string> chatId,
3414 std::variant<std::shared_ptr<InputFile>, std::string> animation,
3415 std::int32_t duration = 0,
3416 std::int32_t width = 0,
3417 std::int32_t height = 0,
3418 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
3419 std::string_view caption =
"",
3420 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
3421 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3422 std::shared_ptr<ReplyKeyboardMarkup>,
3423 std::shared_ptr<ReplyKeyboardRemove>,
3424 std::shared_ptr<ForceReply>> replyMarkup = { },
3425 std::string_view parseMode =
"",
3426 bool disableNotification =
false,
3427 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
3428 std::int32_t messageThreadId = 0,
3429 bool protectContent =
false,
3430 bool hasSpoiler =
false,
3431 std::string_view businessConnectionId =
"",
3432 bool allowPaidBroadcast =
false,
3433 std::string_view callbackQueryId =
"",
3434 std::int64_t directMessagesTopicId = 0,
3435 std::string_view messageEffectId =
"",
3436 std::int64_t receiverUserId = 0,
3437 bool showCaptionAboveMedia =
false,
3438 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3509 std::shared_ptr<Message>
sendAudio(std::variant<std::int64_t, std::string> chatId,
3510 std::variant<std::shared_ptr<InputFile>, std::string> audio,
3511 std::string_view caption =
"",
3512 std::int32_t duration = 0,
3513 std::string_view performer =
"",
3514 std::string_view title =
"",
3515 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
3516 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
3517 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3518 std::shared_ptr<ReplyKeyboardMarkup>,
3519 std::shared_ptr<ReplyKeyboardRemove>,
3520 std::shared_ptr<ForceReply>> replyMarkup = { },
3521 std::string_view parseMode =
"",
3522 bool disableNotification =
false,
3523 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
3524 std::int32_t messageThreadId = 0,
3525 bool protectContent =
false,
3526 std::string_view businessConnectionId =
"",
3527 bool allowPaidBroadcast =
false,
3528 std::string_view callbackQueryId =
"",
3529 std::int64_t directMessagesTopicId = 0,
3530 std::string_view messageEffectId =
"",
3531 std::int64_t receiverUserId = 0,
3532 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3546 std::shared_ptr<Message>
sendAudio(
const SendAudioArgs& args)
const;
3572 std::string_view action,
3573 std::int32_t messageThreadId = 0,
3574 std::string_view businessConnectionId =
"")
const;
3633 std::shared_ptr<Message>
sendChecklist(std::variant<std::int64_t, std::string> chatId,
3634 std::string_view businessConnectionId,
3635 std::shared_ptr<InputChecklist> checklist,
3636 bool disableNotification =
false,
3637 std::string_view messageEffectId =
"",
3638 bool protectContent =
false,
3639 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
3640 std::shared_ptr<ReplyParameters> replyParameters =
nullptr)
const;
3689 std::shared_ptr<Message>
sendContact(std::variant<std::int64_t, std::string> chatId,
3690 std::string_view phoneNumber,
3691 std::string_view firstName,
3692 std::string_view lastName =
"",
3693 std::string_view vcard =
"",
3694 bool disableNotification =
false,
3695 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
3696 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3697 std::shared_ptr<ReplyKeyboardMarkup>,
3698 std::shared_ptr<ReplyKeyboardRemove>,
3699 std::shared_ptr<ForceReply>> replyMarkup = { },
3700 std::int32_t messageThreadId = 0,
3701 bool protectContent =
false,
3702 std::string_view businessConnectionId =
"",
3703 bool allowPaidBroadcast =
false,
3704 std::string_view callbackQueryId =
"",
3705 std::int64_t directMessagesTopicId = 0,
3706 std::string_view messageEffectId =
"",
3707 std::int64_t receiverUserId = 0,
3708 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3718 std::shared_ptr<Message>
sendContact(
const SendContactArgs& args)
const;
3755 std::shared_ptr<Message>
sendDice(std::variant<std::int64_t, std::string> chatId,
3756 bool disableNotification =
false,
3757 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
3758 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3759 std::shared_ptr<ReplyKeyboardMarkup>,
3760 std::shared_ptr<ReplyKeyboardRemove>,
3761 std::shared_ptr<ForceReply>> replyMarkup = { },
3762 std::string_view emoji =
"",
3763 std::int32_t messageThreadId = 0,
3764 bool protectContent =
false,
3765 std::string_view businessConnectionId =
"",
3766 bool allowPaidBroadcast =
false,
3767 std::int64_t directMessagesTopicId = 0,
3768 std::string_view messageEffectId =
"",
3769 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3780 std::shared_ptr<Message>
sendDice(
const SendDiceArgs& args)
const;
3837 std::shared_ptr<Message>
sendDocument(std::variant<std::int64_t, std::string> chatId,
3838 std::variant<std::shared_ptr<InputFile>, std::string> document,
3839 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
3840 std::string_view caption =
"",
3841 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
3842 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3843 std::shared_ptr<ReplyKeyboardMarkup>,
3844 std::shared_ptr<ReplyKeyboardRemove>,
3845 std::shared_ptr<ForceReply>> replyMarkup = { },
3846 std::string_view parseMode =
"",
3847 bool disableNotification =
false,
3848 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
3849 bool disableContentTypeDetection =
false,
3850 std::int32_t messageThreadId = 0,
3851 bool protectContent =
false,
3852 std::string_view businessConnectionId =
"",
3853 bool allowPaidBroadcast =
false,
3854 std::string_view callbackQueryId =
"",
3855 std::int64_t directMessagesTopicId = 0,
3856 std::string_view messageEffectId =
"",
3857 std::int64_t receiverUserId = 0,
3858 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3900 std::shared_ptr<Message>
sendGame(std::variant<std::int64_t, std::string> chatId,
3901 std::string_view gameShortName,
3902 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
3903 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
3904 bool disableNotification =
false,
3905 std::int32_t messageThreadId = 0,
3906 bool protectContent =
false,
3907 std::string_view businessConnectionId =
"",
3908 bool allowPaidBroadcast =
false,
3909 std::string_view messageEffectId =
"")
const;
3918 std::shared_ptr<Message>
sendGame(
const SendGameArgs& args)
const;
3944 std::variant<std::int64_t, std::string> chatId = { },
3945 bool payForUpgrade =
false,
3946 std::string_view text =
"",
3947 const std::vector<std::shared_ptr<MessageEntity>>& textEntities = { },
3948 std::string_view textParseMode =
"",
3949 std::int64_t userId = 0)
const;
4041 std::shared_ptr<Message>
sendInvoice(std::variant<std::int64_t, std::string> chatId,
4042 std::string_view title,
4043 std::string_view description,
4044 std::string_view payload,
4045 std::string_view providerToken,
4046 std::string_view currency,
4047 const std::vector<std::shared_ptr<LabeledPrice>>& prices,
4048 std::string_view providerData =
"",
4049 std::string_view photoUrl =
"",
4050 std::int32_t photoSize = 0,
4051 std::int32_t photoWidth = 0,
4052 std::int32_t photoHeight = 0,
4053 bool needName =
false,
4054 bool needPhoneNumber =
false,
4055 bool needEmail =
false,
4056 bool needShippingAddress =
false,
4057 bool sendPhoneNumberToProvider =
false,
4058 bool sendEmailToProvider =
false,
4059 bool isFlexible =
false,
4060 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4061 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
4062 bool disableNotification =
false,
4063 std::int32_t messageThreadId = 0,
4064 std::int32_t maxTipAmount = 0,
4065 const std::vector<std::int32_t>& suggestedTipAmounts = { },
4066 std::string_view startParameter =
"",
4067 bool protectContent =
false,
4068 bool allowPaidBroadcast =
false,
4069 std::int64_t directMessagesTopicId = 0,
4070 std::string_view messageEffectId =
"",
4071 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4081 std::shared_ptr<Message>
sendInvoice(
const SendInvoiceArgs& args)
const;
4133 std::shared_ptr<Message>
sendLivePhoto(std::variant<std::int64_t, std::string> chatId,
4134 std::variant<std::shared_ptr<InputFile>, std::string> livePhoto,
4135 std::variant<std::shared_ptr<InputFile>, std::string> photo,
4136 bool allowPaidBroadcast =
false,
4137 std::string_view businessConnectionId =
"",
4138 std::string_view callbackQueryId =
"",
4139 std::string_view caption =
"",
4140 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
4141 std::int64_t directMessagesTopicId = 0,
4142 bool disableNotification =
false,
4143 bool hasSpoiler =
false,
4144 std::string_view messageEffectId =
"",
4145 std::int32_t messageThreadId = 0,
4146 std::string_view parseMode =
"",
4147 bool protectContent =
false,
4148 std::int64_t receiverUserId = 0,
4149 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4150 std::shared_ptr<ReplyKeyboardMarkup>,
4151 std::shared_ptr<ReplyKeyboardRemove>,
4152 std::shared_ptr<ForceReply>> replyMarkup = { },
4153 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4154 bool showCaptionAboveMedia =
false,
4155 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4212 std::shared_ptr<Message>
sendLocation(std::variant<std::int64_t, std::string> chatId,
4215 std::int32_t livePeriod = 0,
4216 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4217 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4218 std::shared_ptr<ReplyKeyboardMarkup>,
4219 std::shared_ptr<ReplyKeyboardRemove>,
4220 std::shared_ptr<ForceReply>> replyMarkup = { },
4221 bool disableNotification =
false,
4222 double horizontalAccuracy = 0,
4223 std::int32_t heading = 0,
4224 std::int32_t proximityAlertRadius = 0,
4225 std::int32_t messageThreadId = 0,
4226 bool protectContent =
false,
4227 std::string_view businessConnectionId =
"",
4228 bool allowPaidBroadcast =
false,
4229 std::string_view callbackQueryId =
"",
4230 std::int64_t directMessagesTopicId = 0,
4231 std::string_view messageEffectId =
"",
4232 std::int64_t receiverUserId = 0,
4233 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4276 std::vector<std::shared_ptr<Message>>
4278 const std::vector<std::variant<std::shared_ptr<InputMediaAudio>,
4279 std::shared_ptr<InputMediaDocument>,
4280 std::shared_ptr<InputMediaLivePhoto>,
4281 std::shared_ptr<InputMediaPhoto>,
4282 std::shared_ptr<InputMediaVideo>>>& media,
4283 bool disableNotification =
false,
4284 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4285 std::int32_t messageThreadId = 0,
4286 bool protectContent =
false,
4287 std::string_view businessConnectionId =
"",
4288 bool allowPaidBroadcast =
false,
4289 std::int64_t directMessagesTopicId = 0,
4290 std::string_view messageEffectId =
"",
4291 const std::vector<InputFileAttachment>& attachments = { })
const;
4302 std::vector<std::shared_ptr<Message>>
sendMediaGroup(
const SendMediaGroupArgs& args)
const;
4343 std::shared_ptr<Message>
sendMessage(std::variant<std::int64_t, std::string> chatId,
4344 std::string_view text,
4345 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions =
nullptr,
4346 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4347 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4348 std::shared_ptr<ReplyKeyboardMarkup>,
4349 std::shared_ptr<ReplyKeyboardRemove>,
4350 std::shared_ptr<ForceReply>> replyMarkup = { },
4351 std::string_view parseMode =
"",
4352 bool disableNotification =
false,
4353 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
4354 std::int32_t messageThreadId = 0,
4355 bool protectContent =
false,
4356 std::string_view businessConnectionId =
"",
4357 bool allowPaidBroadcast =
false,
4358 std::string_view callbackQueryId =
"",
4359 std::int64_t directMessagesTopicId = 0,
4360 std::string_view messageEffectId =
"",
4361 std::int64_t receiverUserId = 0,
4362 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4372 std::shared_ptr<Message>
sendMessage(
const SendMessageArgs& args)
const;
4402 std::int32_t draftId,
4403 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
4404 std::int32_t messageThreadId = 0,
4405 std::string_view parseMode =
"",
4406 std::string_view text =
"",
4407 bool canStop =
false,
4408 bool keepOnStop =
false)
const;
4467 std::shared_ptr<Message>
sendPaidMedia(std::variant<std::int64_t, std::string> chatId,
4468 const std::vector<std::shared_ptr<InputPaidMedia>>& media,
4469 std::int32_t starCount,
4470 bool allowPaidBroadcast =
false,
4471 std::string_view businessConnectionId =
"",
4472 std::string_view caption =
"",
4473 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
4474 std::int64_t directMessagesTopicId = 0,
4475 bool disableNotification =
false,
4476 std::int32_t messageThreadId = 0,
4477 std::string_view parseMode =
"",
4478 std::string_view payload =
"",
4479 bool protectContent =
false,
4480 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4481 std::shared_ptr<ReplyKeyboardMarkup>,
4482 std::shared_ptr<ReplyKeyboardRemove>,
4483 std::shared_ptr<ForceReply>> replyMarkup = { },
4484 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4485 bool showCaptionAboveMedia =
false,
4486 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4488 const std::vector<InputFileAttachment>& attachments = { })
const;
4546 std::shared_ptr<Message>
sendPhoto(std::variant<std::int64_t, std::string> chatId,
4547 std::variant<std::shared_ptr<InputFile>, std::string> photo,
4548 std::string_view caption =
"",
4549 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4550 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4551 std::shared_ptr<ReplyKeyboardMarkup>,
4552 std::shared_ptr<ReplyKeyboardRemove>,
4553 std::shared_ptr<ForceReply>> replyMarkup = { },
4554 std::string_view parseMode =
"",
4555 bool disableNotification =
false,
4556 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
4557 std::int32_t messageThreadId = 0,
4558 bool protectContent =
false,
4559 bool hasSpoiler =
false,
4560 std::string_view businessConnectionId =
"",
4561 bool allowPaidBroadcast =
false,
4562 std::string_view callbackQueryId =
"",
4563 std::int64_t directMessagesTopicId = 0,
4564 std::string_view messageEffectId =
"",
4565 std::int64_t receiverUserId = 0,
4566 bool showCaptionAboveMedia =
false,
4567 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4577 std::shared_ptr<Message>
sendPhoto(
const SendPhotoArgs& args)
const;
4652 std::shared_ptr<Message>
sendPoll(std::variant<std::int64_t, std::string> chatId,
4653 std::string_view question,
4654 const std::vector<std::shared_ptr<InputPollOption>>& options,
4655 bool disableNotification =
false,
4656 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4657 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4658 std::shared_ptr<ReplyKeyboardMarkup>,
4659 std::shared_ptr<ReplyKeyboardRemove>,
4660 std::shared_ptr<ForceReply>> replyMarkup = { },
4661 bool isAnonymous =
true,
4662 std::string_view type =
"",
4663 bool allowsMultipleAnswers =
false,
4664 std::string_view explanation =
"",
4665 std::string_view explanationParseMode =
"",
4666 const std::vector<std::shared_ptr<MessageEntity>>& explanationEntities = { },
4667 std::int32_t openPeriod = 0,
4668 std::int32_t closeDate = 0,
4669 bool isClosed =
false,
4670 std::int32_t messageThreadId = 0,
4671 bool protectContent =
false,
4672 std::string_view businessConnectionId =
"",
4673 bool allowAddingOptions =
false,
4674 bool allowPaidBroadcast =
false,
4675 bool allowsRevoting =
false,
4676 const std::vector<std::int32_t>& correctOptionIds = { },
4677 const std::vector<std::string>& countryCodes = { },
4678 std::string_view description =
"",
4679 const std::vector<std::shared_ptr<MessageEntity>>& descriptionEntities = { },
4680 std::string_view descriptionParseMode =
"",
4681 std::shared_ptr<InputPollMedia> explanationMedia =
nullptr,
4682 bool hideResultsUntilCloses =
false,
4683 std::shared_ptr<InputPollMedia> media =
nullptr,
4684 bool membersOnly =
false,
4685 std::string_view messageEffectId =
"",
4686 const std::vector<std::shared_ptr<MessageEntity>>& questionEntities = { },
4687 std::string_view questionParseMode =
"",
4688 bool shuffleOptions =
false)
const;
4697 std::shared_ptr<Message>
sendPoll(
const SendPollArgs& args)
const;
4738 std::shared_ptr<InputRichMessage> richMessage,
4739 bool allowPaidBroadcast =
false,
4740 std::string_view businessConnectionId =
"",
4741 std::int64_t directMessagesTopicId = 0,
4742 bool disableNotification =
false,
4743 std::string_view messageEffectId =
"",
4744 std::int32_t messageThreadId = 0,
4745 bool protectContent =
false,
4746 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4747 std::shared_ptr<ReplyKeyboardMarkup>,
4748 std::shared_ptr<ReplyKeyboardRemove>,
4749 std::shared_ptr<ForceReply>> replyMarkup = { },
4750 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4751 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4753 const std::vector<InputFileAttachment>& attachments = { })
const;
4790 std::int32_t draftId,
4791 std::shared_ptr<InputRichMessage> richMessage,
4792 std::int32_t messageThreadId = 0,
4793 bool canStop =
false,
4794 bool keepOnStop =
false)
const;
4849 std::shared_ptr<Message>
sendSticker(std::variant<std::int64_t, std::string> chatId,
4850 std::variant<std::shared_ptr<InputFile>, std::string> sticker,
4851 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4852 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4853 std::shared_ptr<ReplyKeyboardMarkup>,
4854 std::shared_ptr<ReplyKeyboardRemove>,
4855 std::shared_ptr<ForceReply>> replyMarkup = { },
4856 bool disableNotification =
false,
4857 std::int32_t messageThreadId = 0,
4858 bool protectContent =
false,
4859 std::string_view emoji =
"",
4860 std::string_view businessConnectionId =
"",
4861 bool allowPaidBroadcast =
false,
4862 std::string_view callbackQueryId =
"",
4863 std::int64_t directMessagesTopicId = 0,
4864 std::string_view messageEffectId =
"",
4865 std::int64_t receiverUserId = 0,
4866 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4877 std::shared_ptr<Message>
sendSticker(
const SendStickerArgs& args)
const;
4923 std::shared_ptr<Message>
sendVenue(std::variant<std::int64_t, std::string> chatId,
4926 std::string_view title,
4927 std::string_view address,
4928 std::string_view foursquareId =
"",
4929 std::string_view foursquareType =
"",
4930 bool disableNotification =
false,
4931 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4932 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4933 std::shared_ptr<ReplyKeyboardMarkup>,
4934 std::shared_ptr<ReplyKeyboardRemove>,
4935 std::shared_ptr<ForceReply>> replyMarkup = { },
4936 std::string_view googlePlaceId =
"",
4937 std::string_view googlePlaceType =
"",
4938 std::int32_t messageThreadId = 0,
4939 bool protectContent =
false,
4940 std::string_view businessConnectionId =
"",
4941 bool allowPaidBroadcast =
false,
4942 std::string_view callbackQueryId =
"",
4943 std::int64_t directMessagesTopicId = 0,
4944 std::string_view messageEffectId =
"",
4945 std::int64_t receiverUserId = 0,
4946 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4957 std::shared_ptr<Message>
sendVenue(
const SendVenueArgs& args)
const;
5025 std::shared_ptr<Message>
sendVideo(std::variant<std::int64_t, std::string> chatId,
5026 std::variant<std::shared_ptr<InputFile>, std::string> video,
5027 bool supportsStreaming =
false,
5028 std::int32_t duration = 0,
5029 std::int32_t width = 0,
5030 std::int32_t height = 0,
5031 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
5032 std::string_view caption =
"",
5033 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
5034 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5035 std::shared_ptr<ReplyKeyboardMarkup>,
5036 std::shared_ptr<ReplyKeyboardRemove>,
5037 std::shared_ptr<ForceReply>> replyMarkup = { },
5038 std::string_view parseMode =
"",
5039 bool disableNotification =
false,
5040 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
5041 std::int32_t messageThreadId = 0,
5042 bool protectContent =
false,
5043 bool hasSpoiler =
false,
5044 std::string_view businessConnectionId =
"",
5045 bool allowPaidBroadcast =
false,
5046 std::string_view callbackQueryId =
"",
5047 std::variant<std::shared_ptr<InputFile>, std::string> cover = { },
5048 std::int64_t directMessagesTopicId = 0,
5049 std::string_view messageEffectId =
"",
5050 std::int64_t receiverUserId = 0,
5051 bool showCaptionAboveMedia =
false,
5052 std::int32_t startTimestamp = 0,
5053 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5066 std::shared_ptr<Message>
sendVideo(
const SendVideoArgs& args)
const;
5116 std::shared_ptr<Message>
sendVideoNote(std::variant<std::int64_t, std::string> chatId,
5117 std::variant<std::shared_ptr<InputFile>, std::string> videoNote,
5118 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
5119 bool disableNotification =
false,
5120 std::int32_t duration = 0,
5121 std::int32_t length = 0,
5122 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
5123 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5124 std::shared_ptr<ReplyKeyboardMarkup>,
5125 std::shared_ptr<ReplyKeyboardRemove>,
5126 std::shared_ptr<ForceReply>> replyMarkup = { },
5127 std::int32_t messageThreadId = 0,
5128 bool protectContent =
false,
5129 std::string_view businessConnectionId =
"",
5130 bool allowPaidBroadcast =
false,
5131 std::string_view callbackQueryId =
"",
5132 std::int64_t directMessagesTopicId = 0,
5133 std::string_view messageEffectId =
"",
5134 std::int64_t receiverUserId = 0,
5135 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5195 std::shared_ptr<Message>
sendVoice(std::variant<std::int64_t, std::string> chatId,
5196 std::variant<std::shared_ptr<InputFile>, std::string> voice,
5197 std::string_view caption =
"",
5198 std::int32_t duration = 0,
5199 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
5200 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5201 std::shared_ptr<ReplyKeyboardMarkup>,
5202 std::shared_ptr<ReplyKeyboardRemove>,
5203 std::shared_ptr<ForceReply>> replyMarkup = { },
5204 std::string_view parseMode =
"",
5205 bool disableNotification =
false,
5206 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
5207 std::int32_t messageThreadId = 0,
5208 bool protectContent =
false,
5209 std::string_view businessConnectionId =
"",
5210 bool allowPaidBroadcast =
false,
5211 std::string_view callbackQueryId =
"",
5212 std::int64_t directMessagesTopicId = 0,
5213 std::string_view messageEffectId =
"",
5214 std::int64_t receiverUserId = 0,
5215 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5229 std::shared_ptr<Message>
sendVoice(
const SendVoiceArgs& args)
const;
5264 std::string_view businessConnectionId,
5265 bool showGiftButton)
const;
5289 std::string_view firstName,
5290 std::string_view lastName =
"")
const;
5318 std::shared_ptr<InputProfilePhoto> photo,
5319 bool isPublic =
false,
5320 const std::vector<InputFileAttachment>& attachments = { })
const;
5366 std::int64_t userId,
5367 std::string_view customTitle)
const;
5391 std::string_view description =
"")
const;
5417 std::int64_t userId,
5418 std::string_view tag =
"")
const;
5443 std::shared_ptr<MenuButton> menuButton =
nullptr)
const;
5473 std::shared_ptr<ChatPermissions> permissions,
5474 bool useIndependentChatPermissions =
false)
const;
5499 std::variant<std::shared_ptr<InputFile>, std::string> photo)
const;
5524 bool setChatStickerSet(std::variant<std::int64_t, std::string> chatId, std::string_view stickerSetName)
const;
5549 bool setChatTitle(std::variant<std::int64_t, std::string> chatId, std::string_view title)
const;
5608 bool disableEditMessage =
false,
5609 std::variant<std::int64_t, std::string> chatId = { },
5610 std::int32_t messageId = 0,
5611 std::string_view inlineMessageId =
"")
const;
5638 std::int64_t userId,
5639 const std::vector<std::int32_t>& addedUserIds = { })
const;
5671 std::int32_t messageId,
5672 const std::vector<std::shared_ptr<ReactionType>>& reaction = { },
5673 bool isBig =
false)
const;
5702 std::shared_ptr<BotCommandScope> scope =
nullptr,
5703 std::string_view languageCode =
"")
const;
5730 bool forChannels =
false)
const;
5756 bool setMyDescription(std::string_view description =
"", std::string_view languageCode =
"")
const;
5778 bool setMyName(std::string_view name =
"", std::string_view languageCode =
"")
const;
5800 const std::vector<InputFileAttachment>& attachments = { })
const;
5852 const std::vector<std::shared_ptr<PassportElementError>>& errors)
const;
5925 std::shared_ptr<MaskPosition> maskPosition =
nullptr)
const;
5984 std::int64_t userId,
5985 std::string_view format,
5986 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { })
const;
6031 std::string_view emojiStatusCustomEmojiId =
"",
6032 std::int32_t emojiStatusExpirationDate = 0)
const;
6083 std::shared_ptr<InputFile> certificate =
nullptr,
6084 std::int32_t maxConnections = 40,
6085 const std::vector<std::string>& allowedUpdates = { },
6086 std::string_view ipAddress =
"",
6087 bool dropPendingUpdates =
false,
6088 std::string_view secretToken =
"")
const;
6125 std::int32_t messageId = 0,
6126 std::string_view inlineMessageId =
"",
6127 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
6128 std::string_view businessConnectionId =
"")
const;
6154 std::shared_ptr<Poll>
stopPoll(std::variant<std::int64_t, std::string> chatId,
6155 std::int32_t messageId,
6156 std::string_view businessConnectionId =
"",
6157 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr)
const;
6167 std::shared_ptr<Poll>
stopPoll(
const StopPollArgs& args)
const;
6206 std::int64_t newOwnerChatId,
6207 std::string_view ownedGiftId,
6208 std::int32_t starCount = 0)
const;
6237 std::int64_t userId,
6238 bool onlyIfBanned =
false)
const;
6341 std::int32_t messageThreadId)
const;
6396 std::string_view businessConnectionId =
"",
6397 std::int32_t messageId = 0)
const;
6430 std::string_view ownedGiftId,
6431 bool keepOriginalDetails =
false,
6432 std::int32_t starCount = 0)
const;
6459 std::variant<std::shared_ptr<InputFile>, std::string> sticker,
6460 std::string_view stickerFormat)
const;
6486 bool verifyChat(std::variant<std::int64_t, std::string> chatId, std::string_view customDescription =
"")
const;
6509 bool verifyUser(std::int64_t userId, std::string_view customDescription =
"")
const;
bool answerShippingQuery(std::string_view shippingQueryId, bool ok, const std::vector< std::shared_ptr< ShippingOption > > &shippingOptions={ }, std::string_view errorMessage="") const
If you sent an invoice requesting a shipping address and the parameter is_flexible was specified,...
bool setMyCommands(const std::vector< std::shared_ptr< BotCommand > > &commands, std::shared_ptr< BotCommandScope > scope=nullptr, std::string_view languageCode="") const
Use this method to change the list of the bot's commands. See this manual for more details about bot ...
bool pinChatMessage(std::variant< std::int64_t, std::string > chatId, std::int32_t messageId, std::string_view businessConnectionId="", bool disableNotification=false) const
Use this method to add a message to the list of pinned messages in a chat. In private chats and chann...
bool transferGift(std::string_view businessConnectionId, std::int64_t newOwnerChatId, std::string_view ownedGiftId, std::int32_t starCount=0) const
Transfers an owned unique gift to another user. Requires the can_transfer_and_upgrade_gifts business ...
std::shared_ptr< Message > sendGame(std::variant< std::int64_t, std::string > chatId, std::string_view gameShortName, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, bool disableNotification=false, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view messageEffectId="") const
Use this method to send a game. On success, the sent Message is returned.
bool approveSuggestedPost(std::variant< std::int64_t, std::string > chatId, std::int32_t messageId, std::int32_t sendDate=0) const
Use this method to approve a suggested post in a direct messages chat. The bot must have the 'can_pos...
std::shared_ptr< OwnedGifts > getChatGifts(std::variant< std::int64_t, std::string > chatId, bool excludeFromBlockchain=false, bool excludeLimitedNonUpgradable=false, bool excludeLimitedUpgradable=false, bool excludeSaved=false, bool excludeUnique=false, bool excludeUnlimited=false, bool excludeUnsaved=false, std::int32_t limit=0, std::string_view offset="", bool sortByPrice=false) const
Returns the gifts owned by a chat. Returns OwnedGifts on success.
bool unbanChatMember(std::variant< std::int64_t, std::string > chatId, std::int64_t userId, bool onlyIfBanned=false) const
Use this method to unban a previously banned user in a supergroup or channel. The user will not retur...
std::shared_ptr< Message > sendAnimation(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > animation, std::int32_t duration=0, std::int32_t width=0, std::int32_t height=0, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::string_view caption="", std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::int32_t messageThreadId=0, bool protectContent=false, bool hasSpoiler=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound)....
bool verifyChat(std::variant< std::int64_t, std::string > chatId, std::string_view customDescription="") const
Verifies a chat on behalf of the organization which is represented by the bot. Returns True on succes...
bool setStickerPositionInSet(std::string_view sticker, std::int32_t position) const
Use this method to move a sticker in a set created by the bot to a specific position....
std::string exportChatInviteLink(std::variant< std::int64_t, std::string > chatId) const
Use this method to generate a new primary invite link for a chat; any previously generated primary li...
bool editEphemeralMessageReplyMarkup(std::variant< std::int64_t, std::string > chatId, std::int32_t ephemeralMessageId, std::int64_t receiverUserId, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr) const
Use this method to edit only the reply markup of an ephemeral message. Note that it is not guaranteed...
bool setStickerMaskPosition(std::string_view sticker, std::shared_ptr< MaskPosition > maskPosition=nullptr) const
Use this method to change the mask position of a mask sticker. The sticker must belong to a sticker s...
std::shared_ptr< ChatInviteLink > createChatSubscriptionInviteLink(std::variant< std::int64_t, std::string > chatId, std::int32_t subscriptionPeriod, std::int32_t subscriptionPrice, std::string_view name="") const
Use this method to create a subscription invite link for a channel chat. The bot must have the can_in...
bool approveChatJoinRequest(std::variant< std::int64_t, std::string > chatId, std::int64_t userId) const
Use this method to approve a chat join request. The bot must be an administrator in the chat for this...
std::shared_ptr< ForumTopic > createForumTopic(std::variant< std::int64_t, std::string > chatId, std::string_view name, std::int32_t iconColor=0, std::string_view iconCustomEmojiId="") const
Use this method to create a topic in a forum supergroup chat or a private chat with a user....
bool sendChatJoinRequestWebApp(std::string_view chatJoinRequestQueryId, std::string_view webAppUrl) const
Use this method to process a received chat join request query by showing a Mini App to the user befor...
bool deleteEphemeralMessage(std::variant< std::int64_t, std::string > chatId, std::int32_t ephemeralMessageId, std::int64_t receiverUserId) const
Use this method to delete an ephemeral message. Note that it is not guaranteed that the user will rec...
bool deleteStory(std::string_view businessConnectionId, std::int32_t storyId) const
Deletes a story previously posted by the bot on behalf of a managed business account....
std::shared_ptr< UserChatBoosts > getUserChatBoosts(std::variant< std::int64_t, std::string > chatId, std::int64_t userId) const
Use this method to get the list of boosts added to a chat by a user. Requires administrator rights in...
bool close() const
Use this method to close the bot instance before moving it from one local server to another....
std::shared_ptr< ChatInviteLink > revokeChatInviteLink(std::variant< std::int64_t, std::string > chatId, std::string_view inviteLink) const
Use this method to revoke an invite link created by the bot. If the primary link is revoked,...
bool editUserStarSubscription(bool isCanceled, std::string_view telegramPaymentChargeId, std::int64_t userId) const
Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars....
std::shared_ptr< BotName > getMyName(std::string_view languageCode="") const
Use this method to get the current bot name for the given user language. Returns BotName on success.
std::shared_ptr< Message > sendLocation(std::variant< std::int64_t, std::string > chatId, double latitude, double longitude, std::int32_t livePeriod=0, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, bool disableNotification=false, double horizontalAccuracy=0, std::int32_t heading=0, std::int32_t proximityAlertRadius=0, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send point on the map. On success, the sent Message is returned.
bool removeBusinessAccountProfilePhoto(std::string_view businessConnectionId, bool isPublic=false) const
Removes the current profile photo of a managed business account. Requires the can_edit_profile_photo ...
std::shared_ptr< ChatInviteLink > editChatInviteLink(std::variant< std::int64_t, std::string > chatId, std::string_view inviteLink, std::int32_t expireDate=0, std::int32_t memberLimit=0, std::string_view name="", bool createsJoinRequest=false) const
Use this method to edit a non-primary invite link created by the bot. The bot must be an administrato...
std::shared_ptr< Message > sendChecklist(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId, std::shared_ptr< InputChecklist > checklist, bool disableNotification=false, std::string_view messageEffectId="", bool protectContent=false, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::shared_ptr< ReplyParameters > replyParameters=nullptr) const
Use this method to send a checklist on behalf of a connected business account. On success,...
std::string replaceManagedBotToken(std::int64_t userId) const
Use this method to revoke the current token of a managed bot and generate a new one....
std::shared_ptr< Message > stopMessageLiveLocation(std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::string_view businessConnectionId="") const
Use this method to stop updating a live location message before live_period expires....
bool unpinAllChatMessages(std::variant< std::int64_t, std::string > chatId) const
Use this method to clear the list of pinned messages in a chat. In private chats and channel direct m...
std::shared_ptr< Message > sendPaidMedia(std::variant< std::int64_t, std::string > chatId, const std::vector< std::shared_ptr< InputPaidMedia > > &media, std::int32_t starCount, bool allowPaidBroadcast=false, std::string_view businessConnectionId="", std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::int64_t directMessagesTopicId=0, bool disableNotification=false, std::int32_t messageThreadId=0, std::string_view parseMode="", std::string_view payload="", bool protectContent=false, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::shared_ptr< ReplyParameters > replyParameters=nullptr, bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to send paid media. On success, the sent Message is returned.
bool editGeneralForumTopic(std::variant< std::int64_t, std::string > chatId, std::string_view name) const
Use this method to edit the name of the 'General' topic in a forum supergroup chat....
std::shared_ptr< StarAmount > getBusinessAccountStarBalance(std::string_view businessConnectionId) const
Returns the amount of Telegram Stars owned by a managed business account. Requires the can_view_gifts...
bool closeForumTopic(std::variant< std::int64_t, std::string > chatId, std::int32_t messageThreadId) const
Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator i...
std::shared_ptr< Message > editMessageLiveLocation(double latitude, double longitude, std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, double horizontalAccuracy=0, std::int32_t heading=0, std::int32_t proximityAlertRadius=0, std::string_view businessConnectionId="", std::int32_t livePeriod=0) const
Use this method to edit live location messages. A location can be edited until its live_period expire...
std::shared_ptr< Message > editMessageChecklist(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId, std::shared_ptr< InputChecklist > checklist, std::int32_t messageId, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr) const
Use this method to edit a checklist on behalf of a connected business account. On success,...
bool banChatSenderChat(std::variant< std::int64_t, std::string > chatId, std::int64_t senderChatId) const
Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned,...
bool setChatMemberTag(std::variant< std::int64_t, std::string > chatId, std::int64_t userId, std::string_view tag="") const
Use this method to set a tag for a regular member in a group or a supergroup. The bot must be an admi...
bool deleteStickerFromSet(std::string_view sticker) const
Use this method to delete a sticker from a set created by the bot. Returns True on success.
std::shared_ptr< ChatInviteLink > createChatInviteLink(std::variant< std::int64_t, std::string > chatId, std::int32_t expireDate=0, std::int32_t memberLimit=0, std::string_view name="", bool createsJoinRequest=false) const
Use this method to create an additional invite link for a chat. The bot must be an administrator in t...
bool setMyName(std::string_view name="", std::string_view languageCode="") const
Use this method to change the bot's name. Returns True on success.
bool upgradeGift(std::string_view businessConnectionId, std::string_view ownedGiftId, bool keepOriginalDetails=false, std::int32_t starCount=0) const
Upgrades a given regular gift to a unique gift. Requires the can_transfer_and_upgrade_gifts business ...
bool giftPremiumSubscription(std::int32_t monthCount, std::int32_t starCount, std::int64_t userId, std::string_view text="", const std::vector< std::shared_ptr< MessageEntity > > &textEntities={ }, std::string_view textParseMode="") const
Gifts a Telegram Premium subscription to the given user. Returns True on success.
bool setMyDescription(std::string_view description="", std::string_view languageCode="") const
Use this method to change the bot's description, which is shown in the chat with the bot if the chat ...
bool deleteMessages(std::variant< std::int64_t, std::string > chatId, const std::vector< std::int32_t > &messageIds) const
Use this method to delete multiple messages simultaneously. If some of the specified messages can't b...
std::string getManagedBotToken(std::int64_t userId) const
Use this method to get the token of a managed bot. Returns the token as String on success.
bool hideGeneralForumTopic(std::variant< std::int64_t, std::string > chatId) const
Use this method to hide the 'General' topic in a forum supergroup chat. The bot must be an administra...
std::shared_ptr< Message > editMessageText(std::string_view text="", std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view inlineMessageId="", std::string_view parseMode="", std::shared_ptr< LinkPreviewOptions > linkPreviewOptions=nullptr, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, const std::vector< std::shared_ptr< MessageEntity > > &entities={ }, std::string_view businessConnectionId="", std::shared_ptr< InputRichMessage > richMessage=nullptr, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to edit text, rich and game messages. On success, if the edited message is not an inl...
bool editEphemeralMessageText(std::variant< std::int64_t, std::string > chatId, std::int32_t ephemeralMessageId, std::int64_t receiverUserId, std::string_view text="", const std::vector< std::shared_ptr< MessageEntity > > &entities={ }, std::shared_ptr< LinkPreviewOptions > linkPreviewOptions=nullptr, std::string_view parseMode="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::shared_ptr< InputRichMessage > richMessage=nullptr) const
Use this method to edit an ephemeral text or rich message. Note that it is not guaranteed that the us...
bool restrictChatMember(std::variant< std::int64_t, std::string > chatId, std::int64_t userId, std::shared_ptr< ChatPermissions > permissions, std::int32_t untilDate=0, bool useIndependentChatPermissions=false) const
Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergrou...
bool createNewStickerSet(std::int64_t userId, std::string_view name, std::string_view title, const std::vector< std::shared_ptr< InputSticker > > &stickers, Sticker::Type stickerType=Sticker::Type::Regular, bool needsRepainting=false, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker...
std::shared_ptr< ChatMember > getChatMember(std::variant< std::int64_t, std::string > chatId, std::int64_t userId) const
Use this method to get information about a member of a chat. The method is only guaranteed to work fo...
std::shared_ptr< BotDescription > getMyDescription(std::string_view languageCode="") const
Use this method to get the current bot description for the given user language. Returns BotDescriptio...
std::shared_ptr< PreparedInlineMessage > savePreparedInlineMessage(std::shared_ptr< InlineQueryResult > result, std::int64_t userId, bool allowBotChats=false, bool allowChannelChats=false, bool allowGroupChats=false, bool allowUserChats=false) const
Stores a message that can be sent by a user of a Mini App. Returns a PreparedInlineMessage object.
std::vector< std::shared_ptr< Update > > getUpdates(std::int32_t offset=0, std::int32_t limit=100, std::int32_t timeout=0, const std::vector< std::string > &allowedUpdates={ }) const
Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update obj...
std::shared_ptr< File > getFile(std::string_view fileId) const
Use this method to get basic information about a file and prepare it for downloading....
std::shared_ptr< UserProfilePhotos > getUserProfilePhotos(std::int64_t userId, std::int32_t offset=0, std::int32_t limit=100) const
Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.
std::shared_ptr< Message > editMessageCaption(std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view caption="", std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::string_view parseMode="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view businessConnectionId="", bool showCaptionAboveMedia=false) const
Use this method to edit captions of messages. On success, if the edited message is not an inline mess...
bool setStickerSetTitle(std::string_view name, std::string_view title) const
Use this method to set the title of a created sticker set. Returns True on success.
bool setUserEmojiStatus(std::int64_t userId, std::string_view emojiStatusCustomEmojiId="", std::int32_t emojiStatusExpirationDate=0) const
Changes the emoji status for a given user that previously allowed the bot to manage their emoji statu...
std::shared_ptr< Story > postStory(std::int32_t activePeriod, std::string_view businessConnectionId, std::shared_ptr< InputStoryContent > content, const std::vector< std::shared_ptr< StoryArea > > &areas={ }, std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view parseMode="", bool postToChatPage=false, bool protectContent=false, const std::vector< InputFileAttachment > &attachments={ }) const
Posts a story on behalf of a managed business account. Requires the can_manage_stories business bot r...
std::vector< std::shared_ptr< MessageId > > copyMessages(std::variant< std::int64_t, std::string > chatId, std::variant< std::int64_t, std::string > fromChatId, const std::vector< std::int32_t > &messageIds, std::int32_t messageThreadId=0, bool disableNotification=false, bool protectContent=false, bool removeCaption=false, std::int64_t directMessagesTopicId=0) const
Use this method to copy messages of any kind. If some of the specified messages can't be found or cop...
bool setChatStickerSet(std::variant< std::int64_t, std::string > chatId, std::string_view stickerSetName) const
Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in ...
bool declineChatJoinRequest(std::variant< std::int64_t, std::string > chatId, std::int64_t userId) const
Use this method to decline a chat join request. The bot must be an administrator in the chat for this...
bool sendGift(std::string_view giftId, std::variant< std::int64_t, std::string > chatId={ }, bool payForUpgrade=false, std::string_view text="", const std::vector< std::shared_ptr< MessageEntity > > &textEntities={ }, std::string_view textParseMode="", std::int64_t userId=0) const
Sends a gift to the given user or channel chat. The gift can't be converted to Telegram Stars by the ...
bool logOut() const
Use this method to log out from the cloud Bot API server before launching the bot locally....
std::shared_ptr< Message > sendVenue(std::variant< std::int64_t, std::string > chatId, double latitude, double longitude, std::string_view title, std::string_view address, std::string_view foursquareId="", std::string_view foursquareType="", bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view googlePlaceId="", std::string_view googlePlaceType="", std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send information about a venue. On success, the sent Message is returned.
std::vector< std::shared_ptr< Message > > sendMediaGroup(std::variant< std::int64_t, std::string > chatId, const std::vector< std::variant< std::shared_ptr< InputMediaAudio >, std::shared_ptr< InputMediaDocument >, std::shared_ptr< InputMediaLivePhoto >, std::shared_ptr< InputMediaPhoto >, std::shared_ptr< InputMediaVideo > > > &media, bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to send a group of photos, live photos, videos, documents or audios as an album....
bool setStickerEmojiList(std::string_view sticker, const std::vector< std::string > &emojiList) const
Use this method to change the list of emoji assigned to a regular or custom emoji sticker....
std::shared_ptr< Message > sendVideo(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > video, bool supportsStreaming=false, std::int32_t duration=0, std::int32_t width=0, std::int32_t height=0, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::string_view caption="", std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::int32_t messageThreadId=0, bool protectContent=false, bool hasSpoiler=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::variant< std::shared_ptr< InputFile >, std::string > cover={ }, std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, bool showCaptionAboveMedia=false, std::int32_t startTimestamp=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send video files, Telegram clients support MPEG4 videos (other formats may be sent...
std::shared_ptr< WebhookInfo > getWebhookInfo() const
Use this method to get current webhook status. Requires no parameters. On success,...
bool deleteMessage(std::variant< std::int64_t, std::string > chatId, std::int32_t messageId) const
Use this method to delete a message, including service messages, with the following limitations:- A m...
bool setChatDescription(std::variant< std::int64_t, std::string > chatId, std::string_view description="") const
Use this method to change the description of a group, a supergroup or a channel. The bot must be an a...
bool setMyShortDescription(std::string_view shortDescription="", std::string_view languageCode="") const
Use this method to change the bot's short description, which is shown on the bot's profile page and i...
std::vector< std::shared_ptr< MessageId > > forwardMessages(std::variant< std::int64_t, std::string > chatId, std::variant< std::int64_t, std::string > fromChatId, const std::vector< std::int32_t > &messageIds, std::int32_t messageThreadId=0, bool disableNotification=false, bool protectContent=false, std::int64_t directMessagesTopicId=0) const
Use this method to forward multiple messages of any kind. If some of the specified messages can't be ...
bool setWebhook(std::string_view url, std::shared_ptr< InputFile > certificate=nullptr, std::int32_t maxConnections=40, const std::vector< std::string > &allowedUpdates={ }, std::string_view ipAddress="", bool dropPendingUpdates=false, std::string_view secretToken="") const
Use this method to specify a URL and receive incoming updates via an outgoing webhook....
bool leaveChat(std::variant< std::int64_t, std::string > chatId) const
Use this method for your bot to leave a group, supergroup or channel. Returns True on success.
bool unbanChatSenderChat(std::variant< std::int64_t, std::string > chatId, std::int64_t senderChatId) const
Use this method to unban a previously banned channel chat in a supergroup or channel....
std::shared_ptr< Message > sendDice(std::variant< std::int64_t, std::string > chatId, bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view emoji="", std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send an animated emoji that will display a random value. On success,...
bool setBusinessAccountProfilePhoto(std::string_view businessConnectionId, std::shared_ptr< InputProfilePhoto > photo, bool isPublic=false, const std::vector< InputFileAttachment > &attachments={ }) const
Changes the profile photo of a managed business account. Requires the can_edit_profile_photo business...
std::shared_ptr< Story > repostStory(std::int32_t activePeriod, std::string_view businessConnectionId, std::variant< std::int64_t, std::string > fromChatId, std::int32_t fromStoryId, bool postToChatPage=false, bool protectContent=false) const
Reposts a story on behalf of a business account from another business account. Both business accounts...
bool setChatMenuButton(std::variant< std::int64_t, std::string > chatId={ }, std::shared_ptr< MenuButton > menuButton=nullptr) const
Use this method to change the bot's menu button in a private chat, or the default menu button....
std::shared_ptr< OwnedGifts > getUserGifts(std::int64_t userId, bool excludeFromBlockchain=false, bool excludeLimitedNonUpgradable=false, bool excludeLimitedUpgradable=false, bool excludeUnique=false, bool excludeUnlimited=false, std::int32_t limit=0, std::string_view offset="", bool sortByPrice=false) const
Returns the gifts owned and hosted by a user. Returns OwnedGifts on success.
bool deleteBusinessMessages(std::string_view businessConnectionId, const std::vector< std::int32_t > &messageIds) const
Delete messages on behalf of a business account. Requires the can_delete_sent_messages business bot r...
bool deleteMessageReaction(std::variant< std::int64_t, std::string > chatId, std::int32_t messageId, std::int64_t actorChatId=0, std::int64_t userId=0) const
Use this method to remove a reaction from a message in a group or a supergroup chat....
std::shared_ptr< Message > sendMessage(std::variant< std::int64_t, std::string > chatId, std::string_view text, std::shared_ptr< LinkPreviewOptions > linkPreviewOptions=nullptr, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &entities={ }, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send text messages. On success, the sent Message is returned.
std::vector< std::shared_ptr< GameHighScore > > getGameHighScores(std::int64_t userId, std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view inlineMessageId="") const
Use this method to get data for high score tables. Will return the score of the specified user and se...
bool unpinAllForumTopicMessages(std::variant< std::int64_t, std::string > chatId, std::int32_t messageThreadId) const
Use this method to clear the list of pinned messages in a forum topic in a forum supergroup chat or a...
std::shared_ptr< StarTransactions > getStarTransactions(std::int32_t limit=0, std::int32_t offset=0) const
Returns the bot's Telegram Star transactions in chronological order. On success, returns a StarTransa...
bool answerCallbackQuery(std::string_view callbackQueryId, std::string_view text="", bool showAlert=false, std::string_view url="", std::int32_t cacheTime=0) const
Use this method to send answers to callback queries sent from inline keyboards. The answer will be di...
bool convertGiftToStars(std::string_view businessConnectionId, std::string_view ownedGiftId) const
Converts a given regular gift to Telegram Stars. Requires the can_convert_gifts_to_stars business bot...
bool deleteWebhook(bool dropPendingUpdates=false) const
Use this method to remove webhook integration if you decide to switch back to getUpdates....
std::shared_ptr< MessageId > copyMessage(std::variant< std::int64_t, std::string > chatId, std::variant< std::int64_t, std::string > fromChatId, std::int32_t messageId, std::string_view caption="", std::string_view parseMode="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, bool protectContent=false, std::int32_t messageThreadId=0, bool allowPaidBroadcast=false, std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr, std::int32_t videoStartTimestamp=0) const
Use this method to copy messages of any kind. Service messages, paid media messages,...
bool removeMyProfilePhoto() const
Removes the profile photo of the bot. Requires no parameters. Returns True on success.
bool sendRichMessageDraft(std::variant< std::int64_t, std::string > chatId, std::int32_t draftId, std::shared_ptr< InputRichMessage > richMessage, std::int32_t messageThreadId=0, bool canStop=false, bool keepOnStop=false) const
Use this method to stream a partial rich message to a user while the message is being generated....
bool deleteMyCommands(std::shared_ptr< BotCommandScope > scope=nullptr, std::string_view languageCode="") const
Use this method to delete the list of the bot's commands for the given scope and user language....
bool setChatTitle(std::variant< std::int64_t, std::string > chatId, std::string_view title) const
Use this method to change the title of a chat. Titles can't be changed for private chats....
std::shared_ptr< Message > editMessageReplyMarkup(std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::string_view businessConnectionId="") const
Use this method to edit only the reply markup of messages. On success, if the edited message is not a...
bool sendMessageDraft(std::variant< std::int64_t, std::string > chatId, std::int32_t draftId, const std::vector< std::shared_ptr< MessageEntity > > &entities={ }, std::int32_t messageThreadId=0, std::string_view parseMode="", std::string_view text="", bool canStop=false, bool keepOnStop=false) const
Use this method to stream a partial message to a user while the message is being generated....
std::shared_ptr< Message > sendVoice(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > voice, std::string_view caption="", std::int32_t duration=0, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send audio files, if you want Telegram clients to display the file as a playable v...
bool setPassportDataErrors(std::int64_t userId, const std::vector< std::shared_ptr< PassportElementError > > &errors) const
Informs a user that some of the Telegram Passport elements they provided contains errors....
std::shared_ptr< StarAmount > getMyStarBalance() const
A method to get the current Telegram Stars balance of the bot. Requires no parameters....
std::shared_ptr< Message > sendPhoto(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > photo, std::string_view caption="", std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::int32_t messageThreadId=0, bool protectContent=false, bool hasSpoiler=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send photos. On success, the sent Message is returned.
std::int32_t getChatMemberCount(std::variant< std::int64_t, std::string > chatId) const
Use this method to get the number of members in a chat. Returns Integer on success.
bool refundStarPayment(std::string_view telegramPaymentChargeId, std::int64_t userId) const
Refunds a successful payment in Telegram Stars. Returns True on success.
std::vector< std::shared_ptr< ChatMember > > getChatAdministrators(std::variant< std::int64_t, std::string > chatId, bool returnBots=false) const
Use this method to get a list of administrators in a chat. Returns an Array of ChatMember objects.
std::vector< std::shared_ptr< BotCommand > > getMyCommands(std::shared_ptr< BotCommandScope > scope=nullptr, std::string_view languageCode="") const
Use this method to get the current list of the bot's commands for the given scope and user language....
std::shared_ptr< Message > sendVideoNote(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > videoNote, std::shared_ptr< ReplyParameters > replyParameters=nullptr, bool disableNotification=false, std::int32_t duration=0, std::int32_t length=0, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send a rounded square MPEG4 video of up to 1 minute long. On success,...
std::shared_ptr< Gifts > getAvailableGifts() const
Returns the list of gifts that can be sent by the bot to users and channel chats. Requires no paramet...
std::shared_ptr< MenuButton > getChatMenuButton(std::variant< std::int64_t, std::string > chatId={ }) const
Use this method to get the current value of the bot's menu button in a private chat,...
std::shared_ptr< PreparedKeyboardButton > savePreparedKeyboardButton(std::shared_ptr< KeyboardButton > button, std::int64_t userId) const
Stores a keyboard button that can be used by a user within a Mini App. Returns a PreparedKeyboardButt...
bool declineSuggestedPost(std::variant< std::int64_t, std::string > chatId, std::int32_t messageId, std::string_view comment="") const
Use this method to decline a suggested post in a direct messages chat. The bot must have the 'can_man...
std::shared_ptr< Message > setGameScore(std::int64_t userId, std::int32_t score, bool force=false, bool disableEditMessage=false, std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view inlineMessageId="") const
Use this method to set the score of the specified user in a game message. On success,...
bool setMyProfilePhoto(std::shared_ptr< InputProfilePhoto > photo, const std::vector< InputFileAttachment > &attachments={ }) const
Changes the profile photo of the bot. Returns True on success.
std::shared_ptr< Message > sendPoll(std::variant< std::int64_t, std::string > chatId, std::string_view question, const std::vector< std::shared_ptr< InputPollOption > > &options, bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, bool isAnonymous=true, std::string_view type="", bool allowsMultipleAnswers=false, std::string_view explanation="", std::string_view explanationParseMode="", const std::vector< std::shared_ptr< MessageEntity > > &explanationEntities={ }, std::int32_t openPeriod=0, std::int32_t closeDate=0, bool isClosed=false, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowAddingOptions=false, bool allowPaidBroadcast=false, bool allowsRevoting=false, const std::vector< std::int32_t > &correctOptionIds={ }, const std::vector< std::string > &countryCodes={ }, std::string_view description="", const std::vector< std::shared_ptr< MessageEntity > > &descriptionEntities={ }, std::string_view descriptionParseMode="", std::shared_ptr< InputPollMedia > explanationMedia=nullptr, bool hideResultsUntilCloses=false, std::shared_ptr< InputPollMedia > media=nullptr, bool membersOnly=false, std::string_view messageEffectId="", const std::vector< std::shared_ptr< MessageEntity > > &questionEntities={ }, std::string_view questionParseMode="", bool shuffleOptions=false) const
Use this method to send a native poll. On success, the sent Message is returned.
std::shared_ptr< Message > sendContact(std::variant< std::int64_t, std::string > chatId, std::string_view phoneNumber, std::string_view firstName, std::string_view lastName="", std::string_view vcard="", bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send phone contacts. On success, the sent Message is returned.
std::shared_ptr< Message > sendInvoice(std::variant< std::int64_t, std::string > chatId, std::string_view title, std::string_view description, std::string_view payload, std::string_view providerToken, std::string_view currency, const std::vector< std::shared_ptr< LabeledPrice > > &prices, std::string_view providerData="", std::string_view photoUrl="", std::int32_t photoSize=0, std::int32_t photoWidth=0, std::int32_t photoHeight=0, bool needName=false, bool needPhoneNumber=false, bool needEmail=false, bool needShippingAddress=false, bool sendPhoneNumberToProvider=false, bool sendEmailToProvider=false, bool isFlexible=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, bool disableNotification=false, std::int32_t messageThreadId=0, std::int32_t maxTipAmount=0, const std::vector< std::int32_t > &suggestedTipAmounts={ }, std::string_view startParameter="", bool protectContent=false, bool allowPaidBroadcast=false, std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send invoices. On success, the sent Message is returned.
bool setChatPhoto(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > photo) const
Use this method to set a new profile photo for the chat. Photos can't be changed for private chats....
bool deleteForumTopic(std::variant< std::int64_t, std::string > chatId, std::int32_t messageThreadId) const
Use this method to delete a forum topic along with all its messages in a forum supergroup chat or a p...
bool setBusinessAccountBio(std::string_view businessConnectionId, std::string_view bio="") const
Changes the bio of a managed business account. Requires the can_change_bio business bot right....
bool unhideGeneralForumTopic(std::variant< std::int64_t, std::string > chatId) const
Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administ...
bool setStickerSetThumbnail(std::string_view name, std::int64_t userId, std::string_view format, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }) const
Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail fi...
bool setManagedBotAccessSettings(bool isAccessRestricted, std::int64_t userId, const std::vector< std::int32_t > &addedUserIds={ }) const
Use this method to change the access settings of a managed bot. Returns True on success.
bool setMessageReaction(std::variant< std::int64_t, std::string > chatId, std::int32_t messageId, const std::vector< std::shared_ptr< ReactionType > > &reaction={ }, bool isBig=false) const
Use this method to change the chosen reactions on a message. Service messages of some types can't be ...
bool banChatMember(std::variant< std::int64_t, std::string > chatId, std::int64_t userId, std::int32_t untilDate=0, bool revokeMessages=true) const
Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and c...
std::shared_ptr< Message > sendRichMessage(std::variant< std::int64_t, std::string > chatId, std::shared_ptr< InputRichMessage > richMessage, bool allowPaidBroadcast=false, std::string_view businessConnectionId="", std::int64_t directMessagesTopicId=0, bool disableNotification=false, std::string_view messageEffectId="", std::int32_t messageThreadId=0, bool protectContent=false, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to send rich messages. If the message contains a block with a media element,...
bool editEphemeralMessageCaption(std::variant< std::int64_t, std::string > chatId, std::int32_t ephemeralMessageId, std::int64_t receiverUserId, std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view parseMode="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, bool showCaptionAboveMedia=false) const
Use this method to edit the caption of an ephemeral message. Note that it is not guaranteed that the ...
bool setChatPermissions(std::variant< std::int64_t, std::string > chatId, std::shared_ptr< ChatPermissions > permissions, bool useIndependentChatPermissions=false) const
Use this method to set default chat permissions for all members. The bot must be an administrator in ...
std::vector< std::shared_ptr< Message > > getUserPersonalChatMessages(std::int32_t limit, std::int64_t userId) const
Use this method to get the last messages from the personal chat (i.e., the chat currently added to th...
std::shared_ptr< Poll > stopPoll(std::variant< std::int64_t, std::string > chatId, std::int32_t messageId, std::string_view businessConnectionId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr) const
Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.
bool deleteChatStickerSet(std::variant< std::int64_t, std::string > chatId) const
Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in ...
std::shared_ptr< OwnedGifts > getBusinessAccountGifts(std::string_view businessConnectionId, bool excludeFromBlockchain=false, bool excludeLimitedNonUpgradable=false, bool excludeLimitedUpgradable=false, bool excludeSaved=false, bool excludeUnique=false, bool excludeUnlimited=false, bool excludeUnsaved=false, std::int32_t limit=0, std::string_view offset="", bool sortByPrice=false) const
Returns the gifts received and owned by a managed business account. Requires the can_view_gifts_and_s...
bool setChatAdministratorCustomTitle(std::variant< std::int64_t, std::string > chatId, std::int64_t userId, std::string_view customTitle) const
Use this method to set a custom title for an administrator in a supergroup promoted by the bot....
std::shared_ptr< ChatFullInfo > getChat(std::variant< std::int64_t, std::string > chatId) const
Use this method to get up-to-date information about the chat. Returns a ChatFullInfo object on succes...
bool setBusinessAccountGiftSettings(std::shared_ptr< AcceptedGiftTypes > acceptedGiftTypes, std::string_view businessConnectionId, bool showGiftButton) const
Changes the privacy settings pertaining to incoming gifts in a managed business account....
bool promoteChatMember(std::variant< std::int64_t, std::string > chatId, std::int64_t userId, bool canChangeInfo=false, bool canPostMessages=false, bool canEditMessages=false, bool canDeleteMessages=false, bool canInviteUsers=false, bool canPinMessages=false, bool canPromoteMembers=false, bool isAnonymous=false, bool canManageChat=false, bool canManageVideoChats=false, bool canRestrictMembers=false, bool canManageTopics=false, bool canPostStories=false, bool canEditStories=false, bool canDeleteStories=false, bool canManageDirectMessages=false, bool canManageTags=false, bool canSendWelcomeMessages=false) const
Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administ...
bool transferBusinessAccountStars(std::string_view businessConnectionId, std::int32_t starCount) const
Transfers Telegram Stars from the business account balance to the bot's balance. Requires the can_tra...
bool unpinChatMessage(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId="", std::int32_t messageId=0) const
Use this method to remove a message from the list of pinned messages in a chat. In private chats and ...
std::shared_ptr< BusinessConnection > getBusinessConnection(std::string_view businessConnectionId) const
Use this method to get information about the connection of the bot with a business account....
bool closeGeneralForumTopic(std::variant< std::int64_t, std::string > chatId) const
Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an admin...
std::shared_ptr< StickerSet > getStickerSet(std::string_view name) const
Use this method to get a sticker set. On success, a StickerSet object is returned.
std::shared_ptr< Message > editMessageMedia(std::shared_ptr< InputMedia > media, std::variant< std::int64_t, std::string > chatId={ }, std::int32_t messageId=0, std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::string_view businessConnectionId="", const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to edit animation, audio, document, live photo, photo, or video messages,...
bool setCustomEmojiStickerSetThumbnail(std::string_view name, std::string_view customEmojiId="") const
Use this method to set the thumbnail of a custom emoji sticker set. Returns True on success.
std::shared_ptr< SentWebAppMessage > answerWebAppQuery(std::string_view webAppQueryId, std::shared_ptr< InlineQueryResult > result) const
Use this method to set the result of an interaction with a Web App and send a corresponding message o...
bool addStickerToSet(std::int64_t userId, std::string_view name, std::shared_ptr< InputSticker > sticker, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 2...
bool setBusinessAccountUsername(std::string_view businessConnectionId, std::string_view username="") const
Changes the username of a managed business account. Requires the can_change_username business bot rig...
bool removeUserVerification(std::int64_t userId) const
Removes verification from a user who is currently verified on behalf of the organization represented ...
std::shared_ptr< Message > sendAudio(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > audio, std::string_view caption="", std::int32_t duration=0, std::string_view performer="", std::string_view title="", std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send audio files, if you want Telegram clients to display them in the music player...
std::shared_ptr< ChatInviteLink > editChatSubscriptionInviteLink(std::variant< std::int64_t, std::string > chatId, std::string_view inviteLink, std::string_view name="") const
Use this method to edit a subscription invite link created by the bot. The bot must have the can_invi...
bool setBusinessAccountName(std::string_view businessConnectionId, std::string_view firstName, std::string_view lastName="") const
Changes the first and last name of a managed business account. Requires the can_change_name business ...
bool editForumTopic(std::variant< std::int64_t, std::string > chatId, std::int32_t messageThreadId, std::string_view name="", std::string_view iconCustomEmojiId="") const
Use this method to edit name and icon of a topic in a forum supergroup chat or a private chat with a ...
bool deleteAllMessageReactions(std::variant< std::int64_t, std::string > chatId, std::int64_t actorChatId=0, std::int64_t userId=0) const
Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a giv...
bool editEphemeralMessageMedia(std::variant< std::int64_t, std::string > chatId, std::int32_t ephemeralMessageId, std::shared_ptr< InputMedia > media, std::int64_t receiverUserId, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to edit the media of an ephemeral message. Note that it is not guaranteed that the us...
bool verifyUser(std::int64_t userId, std::string_view customDescription="") const
Verifies a user on behalf of the organization which is represented by the bot. Returns True on succes...
bool answerPreCheckoutQuery(std::string_view preCheckoutQueryId, bool ok, std::string_view errorMessage="") const
Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmat...
std::string createInvoiceLink(std::string_view title, std::string_view description, std::string_view payload, std::string_view providerToken, std::string_view currency, const std::vector< std::shared_ptr< LabeledPrice > > &prices, std::int32_t maxTipAmount=0, const std::vector< std::int32_t > &suggestedTipAmounts={ }, std::string_view providerData="", std::string_view photoUrl="", std::int32_t photoSize=0, std::int32_t photoWidth=0, std::int32_t photoHeight=0, bool needName=false, bool needPhoneNumber=false, bool needEmail=false, bool needShippingAddress=false, bool sendPhoneNumberToProvider=false, bool sendEmailToProvider=false, bool isFlexible=false, std::string_view businessConnectionId="", std::int32_t subscriptionPeriod=0) const
Use this method to create a link for an invoice. Returns the created invoice link as String on succes...
std::shared_ptr< UserProfileAudios > getUserProfileAudios(std::int64_t userId, std::int32_t limit=0, std::int32_t offset=0) const
Use this method to get a list of profile audios for a user. Returns a UserProfileAudios object.
bool replaceStickerInSet(std::int64_t userId, std::string_view name, std::string_view oldSticker, std::shared_ptr< InputSticker > sticker, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to replace an existing sticker in a sticker set with a new one. The method is equival...
std::shared_ptr< ChatAdministratorRights > getMyDefaultAdministratorRights(bool forChannels=false) const
Use this method to get the current default administrator rights of the bot. Returns ChatAdministrator...
bool unpinAllGeneralForumTopicMessages(std::variant< std::int64_t, std::string > chatId) const
Use this method to clear the list of pinned messages in a General forum topic. The bot must be an adm...
std::shared_ptr< Message > sendDocument(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > document, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::string_view caption="", std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, bool disableContentTypeDetection=false, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send general files. On success, the sent Message is returned. Bots can currently s...
std::shared_ptr< BotAccessSettings > getManagedBotAccessSettings(std::int64_t userId) const
Use this method to get the access settings of a managed bot. Returns a BotAccessSettings object on su...
std::vector< std::shared_ptr< Sticker > > getForumTopicIconStickers() const
Use this method to get custom emoji stickers, which can be used as a forum topic icon by any user....
std::shared_ptr< SentGuestMessage > answerGuestQuery(std::string_view guestQueryId, std::shared_ptr< InlineQueryResult > result) const
Use this method to reply to a received guest message. On success, a SentGuestMessage object is return...
std::vector< std::shared_ptr< Sticker > > getCustomEmojiStickers(const std::vector< std::string > &customEmojiIds) const
Use this method to get information about custom emoji stickers by their identifiers....
std::shared_ptr< Message > sendSticker(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > sticker, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, bool disableNotification=false, std::int32_t messageThreadId=0, bool protectContent=false, std::string_view emoji="", std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::int64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success,...
bool setStickerKeywords(std::string_view sticker, const std::vector< std::string > &keywords={ }) const
Use this method to change search keywords assigned to a regular or custom emoji sticker....
bool answerInlineQuery(std::string_view inlineQueryId, const std::vector< std::shared_ptr< InlineQueryResult > > &results, std::int32_t cacheTime=300, bool isPersonal=false, std::string_view nextOffset="", std::shared_ptr< InlineQueryResultsButton > button=nullptr) const
Use this method to send answers to an inline query. On success, True is returned.No more than 50 resu...
bool reopenGeneralForumTopic(std::variant< std::int64_t, std::string > chatId) const
Use this method to reopen a closed 'General' topic in a forum supergroup chat. The bot must be an adm...
std::shared_ptr< Message > forwardMessage(std::variant< std::int64_t, std::string > chatId, std::variant< std::int64_t, std::string > fromChatId, std::int32_t messageId, bool disableNotification=false, bool protectContent=false, std::int32_t messageThreadId=0, std::int64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr, std::int32_t videoStartTimestamp=0) const
Use this method to forward messages of any kind. Service messages and messages with protected content...
std::shared_ptr< File > uploadStickerFile(std::int64_t userId, std::variant< std::shared_ptr< InputFile >, std::string > sticker, std::string_view stickerFormat) const
Use this method to upload a file with a sticker for later use in the createNewStickerSet,...
bool readBusinessMessage(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId, std::int32_t messageId) const
Marks incoming message as read on behalf of a business account. Requires the can_read_messages busine...
bool deleteStickerSet(std::string_view name) const
Use this method to delete a sticker set that was created by the bot. Returns True on success....
std::shared_ptr< Story > editStory(std::string_view businessConnectionId, std::shared_ptr< InputStoryContent > content, std::int32_t storyId, const std::vector< std::shared_ptr< StoryArea > > &areas={ }, std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view parseMode="", const std::vector< InputFileAttachment > &attachments={ }) const
Edits a story previously posted by the bot on behalf of a managed business account....
std::shared_ptr< Message > sendLivePhoto(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > livePhoto, std::variant< std::shared_ptr< InputFile >, std::string > photo, bool allowPaidBroadcast=false, std::string_view businessConnectionId="", std::string_view callbackQueryId="", std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::int64_t directMessagesTopicId=0, bool disableNotification=false, bool hasSpoiler=false, std::string_view messageEffectId="", std::int32_t messageThreadId=0, std::string_view parseMode="", bool protectContent=false, std::int64_t receiverUserId=0, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::shared_ptr< ReplyParameters > replyParameters=nullptr, bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send live photos. On success, the sent Message is returned.
std::shared_ptr< User > getMe() const
A simple method for testing your bot's authentication token. Requires no parameters....
bool removeChatVerification(std::variant< std::int64_t, std::string > chatId) const
Removes verification from a chat that is currently verified on behalf of the organization represented...
bool deleteChatPhoto(std::variant< std::int64_t, std::string > chatId) const
Use this method to delete a chat photo. Photos can't be changed for private chats....
bool reopenForumTopic(std::variant< std::int64_t, std::string > chatId, std::int32_t messageThreadId) const
Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator...
bool setMyDefaultAdministratorRights(std::shared_ptr< ChatAdministratorRights > rights=nullptr, bool forChannels=false) const
Use this method to change the default administrator rights requested by the bot when it's added as an...
std::shared_ptr< BotShortDescription > getMyShortDescription(std::string_view languageCode="") const
Use this method to get the current bot short description for the given user language....
bool sendChatAction(std::variant< std::int64_t, std::string > chatId, std::string_view action, std::int32_t messageThreadId=0, std::string_view businessConnectionId="") const
Use this method when you need to tell the user that something is happening on the bot's side....
bool answerChatJoinRequestQuery(std::string_view chatJoinRequestQueryId, std::string_view result) const
Use this method to process a received chat join request query. Returns True on success.