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::uint32_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::uint32_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;
308 std::uint32_t messageId,
309 std::int32_t sendDate = 0)
const;
344 std::uint64_t userId,
345 std::int32_t untilDate = 0,
346 bool revokeMessages =
true)
const;
374 bool banChatSenderChat(std::variant<std::int64_t, std::string> chatId, std::int64_t senderChatId)
const;
412 bool closeForumTopic(std::variant<std::int64_t, std::string> chatId, std::uint32_t messageThreadId)
const;
517 std::shared_ptr<MessageId>
copyMessage(std::variant<std::int64_t, std::string> chatId,
518 std::variant<std::int64_t, std::string> fromChatId,
519 std::uint32_t messageId,
520 std::string_view caption =
"",
521 std::string_view parseMode =
"",
522 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
523 bool disableNotification =
false,
524 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
525 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
526 std::shared_ptr<ReplyKeyboardMarkup>,
527 std::shared_ptr<ReplyKeyboardRemove>,
528 std::shared_ptr<ForceReply>> replyMarkup = { },
529 bool protectContent =
false,
530 std::uint32_t messageThreadId = 0,
531 bool allowPaidBroadcast =
false,
532 std::uint64_t directMessagesTopicId = 0,
533 std::string_view messageEffectId =
"",
534 bool showCaptionAboveMedia =
false,
535 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
537 std::uint32_t videoStartTimestamp = 0)
const;
551 std::shared_ptr<MessageId>
copyMessage(
const CopyMessageArgs& args)
const;
582 std::vector<std::shared_ptr<MessageId>>
copyMessages(std::variant<std::int64_t, std::string> chatId,
583 std::variant<std::int64_t, std::string> fromChatId,
584 const std::vector<std::uint32_t>& messageIds,
585 std::uint32_t messageThreadId = 0,
586 bool disableNotification =
false,
587 bool protectContent =
false,
588 bool removeCaption =
false,
589 std::uint64_t directMessagesTopicId = 0)
const;
604 std::vector<std::shared_ptr<MessageId>>
copyMessages(
const CopyMessagesArgs& args)
const;
624 std::int32_t expireDate = 0,
625 std::uint32_t memberLimit = 0,
626 std::string_view name =
"",
627 bool createsJoinRequest =
false)
const;
658 std::uint32_t subscriptionPeriod,
659 std::uint32_t subscriptionPrice,
660 std::string_view name =
"")
const;
672 std::shared_ptr<ChatInviteLink>
694 std::shared_ptr<ForumTopic>
createForumTopic(std::variant<std::int64_t, std::string> chatId,
695 std::string_view name,
696 std::uint32_t iconColor = 0,
697 std::string_view iconCustomEmojiId =
"")
const;
773 std::string_view description,
774 std::string_view payload,
775 std::string_view providerToken,
776 std::string_view currency,
777 const std::vector<std::shared_ptr<LabeledPrice>>& prices,
778 std::uint64_t maxTipAmount = 0,
779 const std::vector<std::uint64_t>& suggestedTipAmounts = { },
780 std::string_view providerData =
"",
781 std::string_view photoUrl =
"",
782 std::uint32_t photoSize = 0,
783 std::uint32_t photoWidth = 0,
784 std::uint32_t photoHeight = 0,
785 bool needName =
false,
786 bool needPhoneNumber =
false,
787 bool needEmail =
false,
788 bool needShippingAddress =
false,
789 bool sendPhoneNumberToProvider =
false,
790 bool sendEmailToProvider =
false,
791 bool isFlexible =
false,
792 std::string_view businessConnectionId =
"",
793 std::uint32_t subscriptionPeriod = 0)
const;
831 std::string_view name,
832 std::string_view title,
833 const std::vector<std::shared_ptr<InputSticker>>& stickers,
834 Sticker::Type stickerType = Sticker::Type::Regular,
835 bool needsRepainting =
false,
836 const std::vector<InputFileAttachment>& attachments = { })
const;
884 std::uint32_t messageId,
885 std::string_view comment =
"")
const;
914 std::int64_t actorChatId = 0,
915 std::uint64_t userId = 0)
const;
969 const std::vector<std::uint32_t>& messageIds)
const;
1044 std::uint32_t ephemeralMessageId,
1045 std::uint64_t receiverUserId)
const;
1070 bool deleteForumTopic(std::variant<std::int64_t, std::string> chatId, std::uint32_t messageThreadId)
const;
1103 bool deleteMessage(std::variant<std::int64_t, std::string> chatId, std::uint32_t messageId)
const;
1140 std::uint32_t messageId,
1141 std::int64_t actorChatId = 0,
1142 std::uint64_t userId = 0)
const;
1167 const std::vector<std::uint32_t>& messageIds)
const;
1193 std::string_view languageCode =
"")
const;
1257 bool deleteStory(std::string_view businessConnectionId, std::uint32_t storyId)
const;
1307 std::string_view inviteLink,
1308 std::int32_t expireDate = 0,
1309 std::uint32_t memberLimit = 0,
1310 std::string_view name =
"",
1311 bool createsJoinRequest =
false)
const;
1337 std::string_view inviteLink,
1338 std::string_view name =
"")
const;
1349 std::shared_ptr<ChatInviteLink>
1373 std::uint32_t ephemeralMessageId,
1374 std::uint64_t receiverUserId,
1375 std::string_view caption =
"",
1376 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
1377 std::string_view parseMode =
"",
1378 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1379 bool showCaptionAboveMedia =
false)
const;
1410 std::uint32_t ephemeralMessageId,
1411 std::shared_ptr<InputMedia> media,
1412 std::uint64_t receiverUserId,
1413 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1414 const std::vector<InputFileAttachment>& attachments = { })
const;
1441 std::uint32_t ephemeralMessageId,
1442 std::uint64_t receiverUserId,
1443 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr)
const;
1478 std::uint32_t ephemeralMessageId,
1479 std::uint64_t receiverUserId,
1480 std::string_view text =
"",
1481 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
1482 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions =
nullptr,
1483 std::string_view parseMode =
"",
1484 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1485 std::shared_ptr<InputRichMessage> richMessage =
nullptr)
const;
1517 std::uint32_t messageThreadId,
1518 std::string_view name =
"",
1519 std::string_view iconCustomEmojiId =
"")
const;
1584 std::uint32_t messageId = 0,
1585 std::string_view caption =
"",
1586 std::string_view inlineMessageId =
"",
1587 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1588 std::string_view parseMode =
"",
1589 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities
1591 std::string_view businessConnectionId =
"",
1592 bool showCaptionAboveMedia =
false)
const;
1621 std::string_view businessConnectionId,
1622 std::shared_ptr<InputChecklist> checklist,
1623 std::uint32_t messageId,
1624 std::shared_ptr<InlineKeyboardMarkup> replyMarkup
1671 std::variant<std::int64_t, std::string> chatId = { },
1672 std::uint32_t messageId = 0,
1673 std::string_view inlineMessageId =
"",
1674 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1675 double horizontalAccuracy = 0,
1676 std::uint32_t heading = 0,
1677 std::uint32_t proximityAlertRadius = 0,
1678 std::string_view businessConnectionId =
"",
1679 std::uint32_t livePeriod = 0)
const;
1722 std::variant<std::int64_t, std::string> chatId = { },
1723 std::uint32_t messageId = 0,
1724 std::string_view inlineMessageId =
"",
1725 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1726 std::string_view businessConnectionId =
"",
1727 const std::vector<InputFileAttachment>& attachments = { })
const;
1766 std::uint32_t messageId = 0,
1767 std::string_view inlineMessageId =
"",
1768 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1769 std::string_view businessConnectionId =
"")
const;
1816 std::variant<std::int64_t, std::string> chatId = { },
1817 std::uint32_t messageId = 0,
1818 std::string_view inlineMessageId =
"",
1819 std::string_view parseMode =
"",
1820 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions =
nullptr,
1821 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
1822 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
1823 std::string_view businessConnectionId =
"",
1824 std::shared_ptr<InputRichMessage> richMessage =
nullptr,
1825 const std::vector<InputFileAttachment>& attachments = { })
const;
1860 std::variant<std::int64_t, std::string> chatId = { },
1861 std::string_view inlineMessageId =
"",
1862 std::uint32_t messageId = 0,
1863 std::string_view publicData =
"")
const;
1921 std::shared_ptr<Story>
editStory(std::string_view businessConnectionId,
1922 std::shared_ptr<InputStoryContent> content,
1923 std::uint32_t storyId,
1924 const std::vector<std::shared_ptr<StoryArea>>& areas = { },
1925 std::string_view caption =
"",
1926 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
1927 std::string_view parseMode =
"",
1928 const std::vector<InputFileAttachment>& attachments = { })
const;
1938 std::shared_ptr<Story>
editStory(
const EditStoryArgs& args)
const;
2019 std::shared_ptr<Message>
forwardMessage(std::variant<std::int64_t, std::string> chatId,
2020 std::variant<std::int64_t, std::string> fromChatId,
2021 std::uint32_t messageId,
2022 bool disableNotification =
false,
2023 bool protectContent =
false,
2024 std::uint32_t messageThreadId = 0,
2025 std::uint64_t directMessagesTopicId = 0,
2026 std::string_view messageEffectId =
"",
2027 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
2029 std::uint32_t videoStartTimestamp = 0)
const;
2068 std::vector<std::shared_ptr<MessageId>>
forwardMessages(std::variant<std::int64_t, std::string> chatId,
2069 std::variant<std::int64_t, std::string> fromChatId,
2070 const std::vector<std::uint32_t>& messageIds,
2071 std::uint32_t messageThreadId = 0,
2072 bool disableNotification =
false,
2073 bool protectContent =
false,
2074 std::uint64_t directMessagesTopicId = 0)
const;
2086 std::vector<std::shared_ptr<MessageId>>
forwardMessages(
const ForwardMessagesArgs& args)
const;
2123 bool excludeFromBlockchain =
false,
2124 bool excludeLimitedNonUpgradable =
false,
2125 bool excludeLimitedUpgradable =
false,
2126 bool excludeSaved =
false,
2127 bool excludeUnique =
false,
2128 bool excludeUnlimited =
false,
2129 bool excludeUnsaved =
false,
2130 std::uint32_t limit = 0,
2131 std::string_view offset =
"",
2132 bool sortByPrice =
false)
const;
2193 std::shared_ptr<ChatFullInfo>
getChat(std::variant<std::int64_t, std::string> chatId)
const;
2203 std::shared_ptr<ChatFullInfo>
getChat(
const GetChatArgs& args)
const;
2217 bool returnBots =
false)
const;
2257 std::shared_ptr<OwnedGifts>
getChatGifts(std::variant<std::int64_t, std::string> chatId,
2258 bool excludeFromBlockchain =
false,
2259 bool excludeLimitedNonUpgradable =
false,
2260 bool excludeLimitedUpgradable =
false,
2261 bool excludeSaved =
false,
2262 bool excludeUnique =
false,
2263 bool excludeUnlimited =
false,
2264 bool excludeUnsaved =
false,
2265 std::uint32_t limit = 0,
2266 std::string_view offset =
"",
2267 bool sortByPrice =
false)
const;
2276 std::shared_ptr<OwnedGifts>
getChatGifts(
const GetChatGiftsArgs& args)
const;
2289 std::shared_ptr<ChatMember>
getChatMember(std::variant<std::int64_t, std::string> chatId,
2290 std::uint64_t userId)
const;
2331 std::shared_ptr<MenuButton>
getChatMenuButton(std::variant<std::uint64_t, std::string> chatId = { })
const;
2362 std::vector<std::shared_ptr<Sticker>>
2389 std::shared_ptr<File>
getFile(std::string_view fileId)
const;
2405 std::shared_ptr<File>
getFile(
const GetFileArgs& args)
const;
2432 std::variant<std::int64_t, std::string> chatId
2434 std::uint32_t messageId = 0,
2435 std::string_view inlineMessageId =
"")
const;
2446 std::vector<std::shared_ptr<GameHighScore>>
getGameHighScores(
const GetGameHighScoresArgs& args)
const;
2467 std::shared_ptr<BotAccessSettings>
2510 std::vector<std::shared_ptr<BotCommand>>
getMyCommands(std::shared_ptr<BotCommandScope> scope =
nullptr,
2511 std::string_view languageCode =
"")
const;
2522 std::vector<std::shared_ptr<BotCommand>>
getMyCommands(
const GetMyCommandsArgs& args)
const;
2544 std::shared_ptr<ChatAdministratorRights>
2575 std::shared_ptr<BotName>
getMyName(std::string_view languageCode =
"")
const;
2585 std::shared_ptr<BotName>
getMyName(
const GetMyNameArgs& args)
const;
2626 std::shared_ptr<StarTransactions>
getStarTransactions(std::uint32_t limit = 0, std::uint32_t offset = 0)
const;
2704 std::vector<std::shared_ptr<Update>>
getUpdates(std::int32_t offset = 0,
2705 std::uint32_t limit = 100,
2706 std::uint32_t timeout = 0,
2707 const std::vector<std::string>& allowedUpdates = { })
const;
2717 std::vector<std::shared_ptr<Update>>
getUpdates(
const GetUpdatesArgs& args)
const;
2730 std::uint64_t userId)
const;
2764 bool excludeFromBlockchain =
false,
2765 bool excludeLimitedNonUpgradable =
false,
2766 bool excludeLimitedUpgradable =
false,
2767 bool excludeUnique =
false,
2768 bool excludeUnlimited =
false,
2769 std::uint32_t limit = 0,
2770 std::string_view offset =
"",
2771 bool sortByPrice =
false)
const;
2780 std::shared_ptr<OwnedGifts>
getUserGifts(
const GetUserGiftsArgs& args)
const;
2793 std::uint64_t userId)
const;
2804 std::vector<std::shared_ptr<Message>>
2819 std::shared_ptr<UserProfileAudios>
2844 std::shared_ptr<UserProfilePhotos>
2889 std::uint32_t starCount,
2890 std::uint64_t userId,
2891 std::string_view text =
"",
2892 const std::vector<std::shared_ptr<MessageEntity>>& textEntities = { },
2893 std::string_view textParseMode =
"")
const;
2939 bool leaveChat(std::variant<std::int64_t, std::string> chatId)
const;
2982 std::uint32_t messageId,
2983 std::string_view businessConnectionId =
"",
2984 bool disableNotification =
false)
const;
3022 std::shared_ptr<Story>
postStory(std::uint32_t activePeriod,
3023 std::string_view businessConnectionId,
3024 std::shared_ptr<InputStoryContent> content,
3025 const std::vector<std::shared_ptr<StoryArea>>& areas = { },
3026 std::string_view caption =
"",
3027 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
3028 std::string_view parseMode =
"",
3029 bool postToChatPage =
false,
3030 bool protectContent =
false,
3031 const std::vector<InputFileAttachment>& attachments = { })
const;
3041 std::shared_ptr<Story>
postStory(
const PostStoryArgs& args)
const;
3091 std::uint64_t userId,
3092 bool canChangeInfo =
false,
3093 bool canPostMessages =
false,
3094 bool canEditMessages =
false,
3095 bool canDeleteMessages =
false,
3096 bool canInviteUsers =
false,
3097 bool canPinMessages =
false,
3098 bool canPromoteMembers =
false,
3099 bool isAnonymous =
false,
3100 bool canManageChat =
false,
3101 bool canManageVideoChats =
false,
3102 bool canRestrictMembers =
false,
3103 bool canManageTopics =
false,
3104 bool canPostStories =
false,
3105 bool canEditStories =
false,
3106 bool canDeleteStories =
false,
3107 bool canManageDirectMessages =
false,
3108 bool canManageTags =
false,
3109 bool canSendWelcomeMessages =
false)
const;
3136 std::string_view businessConnectionId,
3137 std::uint32_t messageId)
const;
3252 bool reopenForumTopic(std::variant<std::int64_t, std::string> chatId, std::uint32_t messageThreadId)
const;
3328 std::string_view name,
3329 std::string_view oldSticker,
3330 std::shared_ptr<InputSticker> sticker,
3331 const std::vector<InputFileAttachment>& attachments = { })
const;
3363 std::string_view businessConnectionId,
3364 std::variant<std::int64_t, std::string> fromChatId,
3365 std::uint32_t fromStoryId,
3366 bool postToChatPage =
false,
3367 bool protectContent =
false)
const;
3379 std::shared_ptr<Story>
repostStory(
const RepostStoryArgs& args)
const;
3403 std::uint64_t userId,
3404 std::shared_ptr<ChatPermissions> permissions,
3405 std::int32_t untilDate = 0,
3406 bool useIndependentChatPermissions =
false)
const;
3432 std::string_view inviteLink)
const;
3460 std::uint64_t userId,
3461 bool allowBotChats =
false,
3462 bool allowChannelChats =
false,
3463 bool allowGroupChats =
false,
3464 bool allowUserChats =
false)
const;
3474 std::shared_ptr<PreparedInlineMessage>
3488 std::uint64_t userId)
const;
3498 std::shared_ptr<PreparedKeyboardButton>
3561 std::shared_ptr<Message>
sendAnimation(std::variant<std::int64_t, std::string> chatId,
3562 std::variant<std::shared_ptr<InputFile>, std::string> animation,
3563 std::uint32_t duration = 0,
3564 std::uint32_t width = 0,
3565 std::uint32_t height = 0,
3566 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
3567 std::string_view caption =
"",
3568 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
3569 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3570 std::shared_ptr<ReplyKeyboardMarkup>,
3571 std::shared_ptr<ReplyKeyboardRemove>,
3572 std::shared_ptr<ForceReply>> replyMarkup = { },
3573 std::string_view parseMode =
"",
3574 bool disableNotification =
false,
3575 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
3576 std::uint32_t messageThreadId = 0,
3577 bool protectContent =
false,
3578 bool hasSpoiler =
false,
3579 std::string_view businessConnectionId =
"",
3580 bool allowPaidBroadcast =
false,
3581 std::string_view callbackQueryId =
"",
3582 std::uint64_t directMessagesTopicId = 0,
3583 std::string_view messageEffectId =
"",
3584 std::uint64_t receiverUserId = 0,
3585 bool showCaptionAboveMedia =
false,
3586 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3658 std::shared_ptr<Message>
sendAudio(std::variant<std::int64_t, std::string> chatId,
3659 std::variant<std::shared_ptr<InputFile>, std::string> audio,
3660 std::string_view caption =
"",
3661 std::uint32_t duration = 0,
3662 std::string_view performer =
"",
3663 std::string_view title =
"",
3664 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
3665 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
3666 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3667 std::shared_ptr<ReplyKeyboardMarkup>,
3668 std::shared_ptr<ReplyKeyboardRemove>,
3669 std::shared_ptr<ForceReply>> replyMarkup = { },
3670 std::string_view parseMode =
"",
3671 bool disableNotification =
false,
3672 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
3673 std::uint32_t messageThreadId = 0,
3674 bool protectContent =
false,
3675 std::string_view businessConnectionId =
"",
3676 bool allowPaidBroadcast =
false,
3677 std::string_view callbackQueryId =
"",
3678 std::uint64_t directMessagesTopicId = 0,
3679 std::string_view messageEffectId =
"",
3680 std::uint64_t receiverUserId = 0,
3681 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3695 std::shared_ptr<Message>
sendAudio(
const SendAudioArgs& args)
const;
3721 std::string_view action,
3722 std::uint32_t messageThreadId = 0,
3723 std::string_view businessConnectionId =
"")
const;
3782 std::shared_ptr<Message>
sendChecklist(std::variant<std::int64_t, std::string> chatId,
3783 std::string_view businessConnectionId,
3784 std::shared_ptr<InputChecklist> checklist,
3785 bool disableNotification =
false,
3786 std::string_view messageEffectId =
"",
3787 bool protectContent =
false,
3788 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
3789 std::shared_ptr<ReplyParameters> replyParameters =
nullptr)
const;
3839 std::shared_ptr<Message>
sendContact(std::variant<std::int64_t, std::string> chatId,
3840 std::string_view phoneNumber,
3841 std::string_view firstName,
3842 std::string_view lastName =
"",
3843 std::string_view vcard =
"",
3844 bool disableNotification =
false,
3845 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
3846 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3847 std::shared_ptr<ReplyKeyboardMarkup>,
3848 std::shared_ptr<ReplyKeyboardRemove>,
3849 std::shared_ptr<ForceReply>> replyMarkup = { },
3850 std::uint32_t messageThreadId = 0,
3851 bool protectContent =
false,
3852 std::string_view businessConnectionId =
"",
3853 bool allowPaidBroadcast =
false,
3854 std::string_view callbackQueryId =
"",
3855 std::uint64_t directMessagesTopicId = 0,
3856 std::string_view messageEffectId =
"",
3857 std::uint64_t receiverUserId = 0,
3858 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3868 std::shared_ptr<Message>
sendContact(
const SendContactArgs& args)
const;
3905 std::shared_ptr<Message>
sendDice(std::variant<std::int64_t, std::string> chatId,
3906 bool disableNotification =
false,
3907 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
3908 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3909 std::shared_ptr<ReplyKeyboardMarkup>,
3910 std::shared_ptr<ReplyKeyboardRemove>,
3911 std::shared_ptr<ForceReply>> replyMarkup = { },
3912 std::string_view emoji =
"",
3913 std::uint32_t messageThreadId = 0,
3914 bool protectContent =
false,
3915 std::string_view businessConnectionId =
"",
3916 bool allowPaidBroadcast =
false,
3917 std::uint64_t directMessagesTopicId = 0,
3918 std::string_view messageEffectId =
"",
3919 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
3930 std::shared_ptr<Message>
sendDice(
const SendDiceArgs& args)
const;
3988 std::shared_ptr<Message>
sendDocument(std::variant<std::int64_t, std::string> chatId,
3989 std::variant<std::shared_ptr<InputFile>, std::string> document,
3990 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
3991 std::string_view caption =
"",
3992 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
3993 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
3994 std::shared_ptr<ReplyKeyboardMarkup>,
3995 std::shared_ptr<ReplyKeyboardRemove>,
3996 std::shared_ptr<ForceReply>> replyMarkup = { },
3997 std::string_view parseMode =
"",
3998 bool disableNotification =
false,
3999 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
4000 bool disableContentTypeDetection =
false,
4001 std::uint32_t messageThreadId = 0,
4002 bool protectContent =
false,
4003 std::string_view businessConnectionId =
"",
4004 bool allowPaidBroadcast =
false,
4005 std::string_view callbackQueryId =
"",
4006 std::uint64_t directMessagesTopicId = 0,
4007 std::string_view messageEffectId =
"",
4008 std::uint64_t receiverUserId = 0,
4009 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4051 std::shared_ptr<Message>
sendGame(std::variant<std::int64_t, std::string> chatId,
4052 std::string_view gameShortName,
4053 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4054 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
4055 bool disableNotification =
false,
4056 std::uint32_t messageThreadId = 0,
4057 bool protectContent =
false,
4058 std::string_view businessConnectionId =
"",
4059 bool allowPaidBroadcast =
false,
4060 std::string_view messageEffectId =
"")
const;
4069 std::shared_ptr<Message>
sendGame(
const SendGameArgs& args)
const;
4095 std::variant<std::int64_t, std::string> chatId = { },
4096 bool payForUpgrade =
false,
4097 std::string_view text =
"",
4098 const std::vector<std::shared_ptr<MessageEntity>>& textEntities = { },
4099 std::string_view textParseMode =
"",
4100 std::uint64_t userId = 0)
const;
4192 std::shared_ptr<Message>
sendInvoice(std::variant<std::int64_t, std::string> chatId,
4193 std::string_view title,
4194 std::string_view description,
4195 std::string_view payload,
4196 std::string_view providerToken,
4197 std::string_view currency,
4198 const std::vector<std::shared_ptr<LabeledPrice>>& prices,
4199 std::string_view providerData =
"",
4200 std::string_view photoUrl =
"",
4201 std::uint32_t photoSize = 0,
4202 std::uint32_t photoWidth = 0,
4203 std::uint32_t photoHeight = 0,
4204 bool needName =
false,
4205 bool needPhoneNumber =
false,
4206 bool needEmail =
false,
4207 bool needShippingAddress =
false,
4208 bool sendPhoneNumberToProvider =
false,
4209 bool sendEmailToProvider =
false,
4210 bool isFlexible =
false,
4211 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4212 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
4213 bool disableNotification =
false,
4214 std::uint32_t messageThreadId = 0,
4215 std::uint64_t maxTipAmount = 0,
4216 const std::vector<std::uint64_t>& suggestedTipAmounts = { },
4217 std::string_view startParameter =
"",
4218 bool protectContent =
false,
4219 bool allowPaidBroadcast =
false,
4220 std::uint64_t directMessagesTopicId = 0,
4221 std::string_view messageEffectId =
"",
4222 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4232 std::shared_ptr<Message>
sendInvoice(
const SendInvoiceArgs& args)
const;
4285 std::shared_ptr<Message>
sendLivePhoto(std::variant<std::int64_t, std::string> chatId,
4286 std::variant<std::shared_ptr<InputFile>, std::string> livePhoto,
4287 std::variant<std::shared_ptr<InputFile>, std::string> photo,
4288 bool allowPaidBroadcast =
false,
4289 std::string_view businessConnectionId =
"",
4290 std::string_view callbackQueryId =
"",
4291 std::string_view caption =
"",
4292 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
4293 std::uint64_t directMessagesTopicId = 0,
4294 bool disableNotification =
false,
4295 bool hasSpoiler =
false,
4296 std::string_view messageEffectId =
"",
4297 std::uint32_t messageThreadId = 0,
4298 std::string_view parseMode =
"",
4299 bool protectContent =
false,
4300 std::uint64_t receiverUserId = 0,
4301 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4302 std::shared_ptr<ReplyKeyboardMarkup>,
4303 std::shared_ptr<ReplyKeyboardRemove>,
4304 std::shared_ptr<ForceReply>> replyMarkup = { },
4305 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4306 bool showCaptionAboveMedia =
false,
4307 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4365 std::shared_ptr<Message>
sendLocation(std::variant<std::int64_t, std::string> chatId,
4368 std::uint32_t livePeriod = 0,
4369 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4370 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4371 std::shared_ptr<ReplyKeyboardMarkup>,
4372 std::shared_ptr<ReplyKeyboardRemove>,
4373 std::shared_ptr<ForceReply>> replyMarkup = { },
4374 bool disableNotification =
false,
4375 double horizontalAccuracy = 0,
4376 std::uint32_t heading = 0,
4377 std::uint32_t proximityAlertRadius = 0,
4378 std::uint32_t messageThreadId = 0,
4379 bool protectContent =
false,
4380 std::string_view businessConnectionId =
"",
4381 bool allowPaidBroadcast =
false,
4382 std::string_view callbackQueryId =
"",
4383 std::uint64_t directMessagesTopicId = 0,
4384 std::string_view messageEffectId =
"",
4385 std::uint64_t receiverUserId = 0,
4386 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4429 std::vector<std::shared_ptr<Message>>
4431 const std::vector<std::variant<std::shared_ptr<InputMediaAudio>,
4432 std::shared_ptr<InputMediaDocument>,
4433 std::shared_ptr<InputMediaLivePhoto>,
4434 std::shared_ptr<InputMediaPhoto>,
4435 std::shared_ptr<InputMediaVideo>>>& media,
4436 bool disableNotification =
false,
4437 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4438 std::uint32_t messageThreadId = 0,
4439 bool protectContent =
false,
4440 std::string_view businessConnectionId =
"",
4441 bool allowPaidBroadcast =
false,
4442 std::uint64_t directMessagesTopicId = 0,
4443 std::string_view messageEffectId =
"",
4444 const std::vector<InputFileAttachment>& attachments = { })
const;
4455 std::vector<std::shared_ptr<Message>>
sendMediaGroup(
const SendMediaGroupArgs& args)
const;
4497 std::shared_ptr<Message>
sendMessage(std::variant<std::int64_t, std::string> chatId,
4498 std::string_view text,
4499 std::shared_ptr<LinkPreviewOptions> linkPreviewOptions =
nullptr,
4500 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4501 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4502 std::shared_ptr<ReplyKeyboardMarkup>,
4503 std::shared_ptr<ReplyKeyboardRemove>,
4504 std::shared_ptr<ForceReply>> replyMarkup = { },
4505 std::string_view parseMode =
"",
4506 bool disableNotification =
false,
4507 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
4508 std::uint32_t messageThreadId = 0,
4509 bool protectContent =
false,
4510 std::string_view businessConnectionId =
"",
4511 bool allowPaidBroadcast =
false,
4512 std::string_view callbackQueryId =
"",
4513 std::uint64_t directMessagesTopicId = 0,
4514 std::string_view messageEffectId =
"",
4515 std::uint64_t receiverUserId = 0,
4516 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4526 std::shared_ptr<Message>
sendMessage(
const SendMessageArgs& args)
const;
4556 std::int64_t draftId,
4557 const std::vector<std::shared_ptr<MessageEntity>>& entities = { },
4558 std::uint32_t messageThreadId = 0,
4559 std::string_view parseMode =
"",
4560 std::string_view text =
"",
4561 bool canStop =
false,
4562 bool keepOnStop =
false)
const;
4622 std::shared_ptr<Message>
sendPaidMedia(std::variant<std::int64_t, std::string> chatId,
4623 const std::vector<std::shared_ptr<InputPaidMedia>>& media,
4624 std::uint32_t starCount,
4625 bool allowPaidBroadcast =
false,
4626 std::string_view businessConnectionId =
"",
4627 std::string_view caption =
"",
4628 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
4629 std::uint64_t directMessagesTopicId = 0,
4630 bool disableNotification =
false,
4631 std::uint32_t messageThreadId = 0,
4632 std::string_view parseMode =
"",
4633 std::string_view payload =
"",
4634 bool protectContent =
false,
4635 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4636 std::shared_ptr<ReplyKeyboardMarkup>,
4637 std::shared_ptr<ReplyKeyboardRemove>,
4638 std::shared_ptr<ForceReply>> replyMarkup = { },
4639 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4640 bool showCaptionAboveMedia =
false,
4641 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4643 const std::vector<InputFileAttachment>& attachments = { })
const;
4702 std::shared_ptr<Message>
sendPhoto(std::variant<std::int64_t, std::string> chatId,
4703 std::variant<std::shared_ptr<InputFile>, std::string> photo,
4704 std::string_view caption =
"",
4705 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4706 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4707 std::shared_ptr<ReplyKeyboardMarkup>,
4708 std::shared_ptr<ReplyKeyboardRemove>,
4709 std::shared_ptr<ForceReply>> replyMarkup = { },
4710 std::string_view parseMode =
"",
4711 bool disableNotification =
false,
4712 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
4713 std::uint32_t messageThreadId = 0,
4714 bool protectContent =
false,
4715 bool hasSpoiler =
false,
4716 std::string_view businessConnectionId =
"",
4717 bool allowPaidBroadcast =
false,
4718 std::string_view callbackQueryId =
"",
4719 std::uint64_t directMessagesTopicId = 0,
4720 std::string_view messageEffectId =
"",
4721 std::uint64_t receiverUserId = 0,
4722 bool showCaptionAboveMedia =
false,
4723 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4733 std::shared_ptr<Message>
sendPhoto(
const SendPhotoArgs& args)
const;
4808 std::shared_ptr<Message>
sendPoll(std::variant<std::int64_t, std::string> chatId,
4809 std::string_view question,
4810 const std::vector<std::shared_ptr<InputPollOption>>& options,
4811 bool disableNotification =
false,
4812 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4813 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4814 std::shared_ptr<ReplyKeyboardMarkup>,
4815 std::shared_ptr<ReplyKeyboardRemove>,
4816 std::shared_ptr<ForceReply>> replyMarkup = { },
4817 bool isAnonymous =
true,
4818 std::string_view type =
"",
4819 bool allowsMultipleAnswers =
false,
4820 std::string_view explanation =
"",
4821 std::string_view explanationParseMode =
"",
4822 const std::vector<std::shared_ptr<MessageEntity>>& explanationEntities = { },
4823 std::uint32_t openPeriod = 0,
4824 std::int32_t closeDate = 0,
4825 bool isClosed =
false,
4826 std::uint32_t messageThreadId = 0,
4827 bool protectContent =
false,
4828 std::string_view businessConnectionId =
"",
4829 bool allowAddingOptions =
false,
4830 bool allowPaidBroadcast =
false,
4831 bool allowsRevoting =
false,
4832 const std::vector<std::uint32_t>& correctOptionIds = { },
4833 const std::vector<std::string>& countryCodes = { },
4834 std::string_view description =
"",
4835 const std::vector<std::shared_ptr<MessageEntity>>& descriptionEntities = { },
4836 std::string_view descriptionParseMode =
"",
4837 std::shared_ptr<InputPollMedia> explanationMedia =
nullptr,
4838 bool hideResultsUntilCloses =
false,
4839 std::shared_ptr<InputPollMedia> media =
nullptr,
4840 bool membersOnly =
false,
4841 std::string_view messageEffectId =
"",
4842 const std::vector<std::shared_ptr<MessageEntity>>& questionEntities = { },
4843 std::string_view questionParseMode =
"",
4844 bool shuffleOptions =
false)
const;
4853 std::shared_ptr<Message>
sendPoll(
const SendPollArgs& args)
const;
4895 std::shared_ptr<InputRichMessage> richMessage,
4896 bool allowPaidBroadcast =
false,
4897 std::string_view businessConnectionId =
"",
4898 std::uint64_t directMessagesTopicId = 0,
4899 bool disableNotification =
false,
4900 std::string_view messageEffectId =
"",
4901 std::uint32_t messageThreadId = 0,
4902 bool protectContent =
false,
4903 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
4904 std::shared_ptr<ReplyKeyboardMarkup>,
4905 std::shared_ptr<ReplyKeyboardRemove>,
4906 std::shared_ptr<ForceReply>> replyMarkup = { },
4907 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
4908 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
4910 const std::vector<InputFileAttachment>& attachments = { })
const;
4947 std::int64_t draftId,
4948 std::shared_ptr<InputRichMessage> richMessage,
4949 std::uint32_t messageThreadId = 0,
4950 bool canStop =
false,
4951 bool keepOnStop =
false)
const;
5000 std::string_view widgetId,
5001 bool allowPaidBroadcast =
false,
5002 std::string_view caption =
"",
5003 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities
5005 std::string_view chatData =
"",
5006 bool disableNotification =
false,
5007 std::string_view messageEffectId =
"",
5008 std::uint32_t messageThreadId = 0,
5009 std::string_view parseMode =
"",
5010 bool protectContent =
false,
5011 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5012 std::shared_ptr<ReplyKeyboardMarkup>,
5013 std::shared_ptr<ReplyKeyboardRemove>,
5014 std::shared_ptr<ForceReply>> replyMarkup = { },
5015 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
5016 bool showCaptionAboveMedia =
false)
const;
5072 std::shared_ptr<Message>
sendSticker(std::variant<std::int64_t, std::string> chatId,
5073 std::variant<std::shared_ptr<InputFile>, std::string> sticker,
5074 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
5075 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5076 std::shared_ptr<ReplyKeyboardMarkup>,
5077 std::shared_ptr<ReplyKeyboardRemove>,
5078 std::shared_ptr<ForceReply>> replyMarkup = { },
5079 bool disableNotification =
false,
5080 std::uint32_t messageThreadId = 0,
5081 bool protectContent =
false,
5082 std::string_view emoji =
"",
5083 std::string_view businessConnectionId =
"",
5084 bool allowPaidBroadcast =
false,
5085 std::string_view callbackQueryId =
"",
5086 std::uint64_t directMessagesTopicId = 0,
5087 std::string_view messageEffectId =
"",
5088 std::uint64_t receiverUserId = 0,
5089 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5100 std::shared_ptr<Message>
sendSticker(
const SendStickerArgs& args)
const;
5147 std::shared_ptr<Message>
sendVenue(std::variant<std::int64_t, std::string> chatId,
5150 std::string_view title,
5151 std::string_view address,
5152 std::string_view foursquareId =
"",
5153 std::string_view foursquareType =
"",
5154 bool disableNotification =
false,
5155 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
5156 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5157 std::shared_ptr<ReplyKeyboardMarkup>,
5158 std::shared_ptr<ReplyKeyboardRemove>,
5159 std::shared_ptr<ForceReply>> replyMarkup = { },
5160 std::string_view googlePlaceId =
"",
5161 std::string_view googlePlaceType =
"",
5162 std::uint32_t messageThreadId = 0,
5163 bool protectContent =
false,
5164 std::string_view businessConnectionId =
"",
5165 bool allowPaidBroadcast =
false,
5166 std::string_view callbackQueryId =
"",
5167 std::uint64_t directMessagesTopicId = 0,
5168 std::string_view messageEffectId =
"",
5169 std::uint64_t receiverUserId = 0,
5170 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5181 std::shared_ptr<Message>
sendVenue(
const SendVenueArgs& args)
const;
5250 std::shared_ptr<Message>
sendVideo(std::variant<std::int64_t, std::string> chatId,
5251 std::variant<std::shared_ptr<InputFile>, std::string> video,
5252 bool supportsStreaming =
false,
5253 std::uint32_t duration = 0,
5254 std::uint32_t width = 0,
5255 std::uint32_t height = 0,
5256 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
5257 std::string_view caption =
"",
5258 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
5259 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5260 std::shared_ptr<ReplyKeyboardMarkup>,
5261 std::shared_ptr<ReplyKeyboardRemove>,
5262 std::shared_ptr<ForceReply>> replyMarkup = { },
5263 std::string_view parseMode =
"",
5264 bool disableNotification =
false,
5265 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
5266 std::uint32_t messageThreadId = 0,
5267 bool protectContent =
false,
5268 bool hasSpoiler =
false,
5269 std::string_view businessConnectionId =
"",
5270 bool allowPaidBroadcast =
false,
5271 std::string_view callbackQueryId =
"",
5272 std::variant<std::shared_ptr<InputFile>, std::string> cover = { },
5273 std::uint64_t directMessagesTopicId = 0,
5274 std::string_view messageEffectId =
"",
5275 std::uint64_t receiverUserId = 0,
5276 bool showCaptionAboveMedia =
false,
5277 std::uint32_t startTimestamp = 0,
5278 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5291 std::shared_ptr<Message>
sendVideo(
const SendVideoArgs& args)
const;
5342 std::shared_ptr<Message>
sendVideoNote(std::variant<std::int64_t, std::string> chatId,
5343 std::variant<std::shared_ptr<InputFile>, std::string> videoNote,
5344 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
5345 bool disableNotification =
false,
5346 std::uint32_t duration = 0,
5347 std::uint32_t length = 0,
5348 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { },
5349 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5350 std::shared_ptr<ReplyKeyboardMarkup>,
5351 std::shared_ptr<ReplyKeyboardRemove>,
5352 std::shared_ptr<ForceReply>> replyMarkup = { },
5353 std::uint32_t messageThreadId = 0,
5354 bool protectContent =
false,
5355 std::string_view businessConnectionId =
"",
5356 bool allowPaidBroadcast =
false,
5357 std::string_view callbackQueryId =
"",
5358 std::uint64_t directMessagesTopicId = 0,
5359 std::string_view messageEffectId =
"",
5360 std::uint64_t receiverUserId = 0,
5361 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5422 std::shared_ptr<Message>
sendVoice(std::variant<std::int64_t, std::string> chatId,
5423 std::variant<std::shared_ptr<InputFile>, std::string> voice,
5424 std::string_view caption =
"",
5425 std::uint32_t duration = 0,
5426 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
5427 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5428 std::shared_ptr<ReplyKeyboardMarkup>,
5429 std::shared_ptr<ReplyKeyboardRemove>,
5430 std::shared_ptr<ForceReply>> replyMarkup = { },
5431 std::string_view parseMode =
"",
5432 bool disableNotification =
false,
5433 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
5434 std::uint32_t messageThreadId = 0,
5435 bool protectContent =
false,
5436 std::string_view businessConnectionId =
"",
5437 bool allowPaidBroadcast =
false,
5438 std::string_view callbackQueryId =
"",
5439 std::uint64_t directMessagesTopicId = 0,
5440 std::string_view messageEffectId =
"",
5441 std::uint64_t receiverUserId = 0,
5442 std::shared_ptr<SuggestedPostParameters> suggestedPostParameters
5456 std::shared_ptr<Message>
sendVoice(
const SendVoiceArgs& args)
const;
5504 std::shared_ptr<Message>
sendWidget(std::variant<std::int64_t, std::string> chatId,
5505 std::string_view html,
5506 bool allowPaidBroadcast =
false,
5507 bool allowQueries =
false,
5508 std::string_view caption =
"",
5509 const std::vector<std::shared_ptr<MessageEntity>>& captionEntities = { },
5510 std::string_view chatData =
"",
5511 bool disableNotification =
false,
5512 std::uint32_t height = 0,
5513 bool isShared =
false,
5514 std::string_view messageEffectId =
"",
5515 std::uint32_t messageThreadId = 0,
5516 std::string_view parseMode =
"",
5517 bool protectContent =
false,
5518 std::string_view publicData =
"",
5519 std::variant<std::shared_ptr<InlineKeyboardMarkup>,
5520 std::shared_ptr<ReplyKeyboardMarkup>,
5521 std::shared_ptr<ReplyKeyboardRemove>,
5522 std::shared_ptr<ForceReply>> replyMarkup = { },
5523 std::shared_ptr<ReplyParameters> replyParameters =
nullptr,
5524 bool showCaptionAboveMedia =
false,
5525 std::uint32_t width = 0)
const;
5537 std::shared_ptr<Message>
sendWidget(
const SendWidgetArgs& args)
const;
5572 std::string_view businessConnectionId,
5573 bool showGiftButton)
const;
5597 std::string_view firstName,
5598 std::string_view lastName =
"")
const;
5626 std::shared_ptr<InputProfilePhoto> photo,
5627 bool isPublic =
false,
5628 const std::vector<InputFileAttachment>& attachments = { })
const;
5674 std::uint64_t userId,
5675 std::string_view customTitle)
const;
5699 std::string_view description =
"")
const;
5725 std::uint64_t userId,
5726 std::string_view tag =
"")
const;
5751 std::shared_ptr<MenuButton> menuButton =
nullptr)
const;
5781 std::shared_ptr<ChatPermissions> permissions,
5782 bool useIndependentChatPermissions =
false)
const;
5807 std::variant<std::shared_ptr<InputFile>, std::string> photo)
const;
5832 bool setChatStickerSet(std::variant<std::int64_t, std::string> chatId, std::string_view stickerSetName)
const;
5857 bool setChatTitle(std::variant<std::int64_t, std::string> chatId, std::string_view title)
const;
5914 std::uint32_t score,
5916 bool disableEditMessage =
false,
5917 std::variant<std::int64_t, std::string> chatId = { },
5918 std::uint32_t messageId = 0,
5919 std::string_view inlineMessageId =
"")
const;
5946 std::uint64_t userId,
5947 const std::vector<std::uint64_t>& addedUserIds = { })
const;
5979 std::uint32_t messageId,
5980 const std::vector<std::shared_ptr<ReactionType>>& reaction = { },
5981 bool isBig =
false)
const;
6010 std::shared_ptr<BotCommandScope> scope =
nullptr,
6011 std::string_view languageCode =
"")
const;
6038 bool forChannels =
false)
const;
6064 bool setMyDescription(std::string_view description =
"", std::string_view languageCode =
"")
const;
6086 bool setMyName(std::string_view name =
"", std::string_view languageCode =
"")
const;
6108 const std::vector<InputFileAttachment>& attachments = { })
const;
6160 const std::vector<std::shared_ptr<PassportElementError>>& errors)
const;
6233 std::shared_ptr<MaskPosition> maskPosition =
nullptr)
const;
6292 std::uint64_t userId,
6293 std::string_view format,
6294 std::variant<std::shared_ptr<InputFile>, std::string> thumbnail = { })
const;
6339 std::string_view emojiStatusCustomEmojiId =
"",
6340 std::int32_t emojiStatusExpirationDate = 0)
const;
6391 std::shared_ptr<InputFile> certificate =
nullptr,
6392 std::uint32_t maxConnections = 40,
6393 const std::vector<std::string>& allowedUpdates = { },
6394 std::string_view ipAddress =
"",
6395 bool dropPendingUpdates =
false,
6396 std::string_view secretToken =
"")
const;
6433 std::uint32_t messageId = 0,
6434 std::string_view inlineMessageId =
"",
6435 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr,
6436 std::string_view businessConnectionId =
"")
const;
6462 std::shared_ptr<Poll>
stopPoll(std::variant<std::int64_t, std::string> chatId,
6463 std::uint32_t messageId,
6464 std::string_view businessConnectionId =
"",
6465 std::shared_ptr<InlineKeyboardMarkup> replyMarkup =
nullptr)
const;
6475 std::shared_ptr<Poll>
stopPoll(
const StopPollArgs& args)
const;
6514 std::int64_t newOwnerChatId,
6515 std::string_view ownedGiftId,
6516 std::uint32_t starCount = 0)
const;
6545 std::uint64_t userId,
6546 bool onlyIfBanned =
false)
const;
6649 std::uint32_t messageThreadId)
const;
6704 std::string_view businessConnectionId =
"",
6705 std::uint32_t messageId = 0)
const;
6738 std::string_view ownedGiftId,
6739 bool keepOriginalDetails =
false,
6740 std::uint32_t starCount = 0)
const;
6767 std::variant<std::shared_ptr<InputFile>, std::string> sticker,
6768 std::string_view stickerFormat)
const;
6800 std::string_view customDescription =
"",
6801 const std::vector<std::shared_ptr<MessageEntity>>& customDescriptionEntities = { },
6802 std::string_view customDescriptionParseMode =
"")
const;
6831 std::string_view customDescription =
"",
6832 const std::vector<std::shared_ptr<MessageEntity>>& customDescriptionEntities = { },
6833 std::string_view customDescriptionParseMode =
"")
const;
bool answerShippingQuery(std::string_view shippingQueryId, bool ok, const std::vector< std::shared_ptr< ShippingOption > > &shippingOptions={ }, std::string_view errorMessage="") const
If you sent an invoice requesting a shipping address and the parameter is_flexible was specified,...
std::shared_ptr< Story > repostStory(std::uint32_t activePeriod, std::string_view businessConnectionId, std::variant< std::int64_t, std::string > fromChatId, std::uint32_t fromStoryId, bool postToChatPage=false, bool protectContent=false) const
Reposts a story on behalf of a business account from another business account. Both business accounts...
std::shared_ptr< Message > sendContact(std::variant< std::int64_t, std::string > chatId, std::string_view phoneNumber, std::string_view firstName, std::string_view lastName="", std::string_view vcard="", bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send phone contacts. On success, the sent Message is returned.
bool setMyCommands(const std::vector< std::shared_ptr< BotCommand > > &commands, std::shared_ptr< BotCommandScope > scope=nullptr, std::string_view languageCode="") const
Use this method to change the list of the bot's commands. See this manual for more details about bot ...
std::shared_ptr< Message > sendVideo(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > video, bool supportsStreaming=false, std::uint32_t duration=0, std::uint32_t width=0, std::uint32_t height=0, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::string_view caption="", std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::uint32_t messageThreadId=0, bool protectContent=false, bool hasSpoiler=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::variant< std::shared_ptr< InputFile >, std::string > cover={ }, std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, bool showCaptionAboveMedia=false, std::uint32_t startTimestamp=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send video files, Telegram clients support MPEG4 videos (other formats may be sent...
std::shared_ptr< UserChatBoosts > getUserChatBoosts(std::variant< std::int64_t, std::string > chatId, std::uint64_t userId) const
Use this method to get the list of boosts added to a chat by a user. Requires administrator rights in...
std::string replaceManagedBotToken(std::uint64_t userId) const
Use this method to revoke the current token of a managed bot and generate a new one....
std::string exportChatInviteLink(std::variant< std::int64_t, std::string > chatId) const
Use this method to generate a new primary invite link for a chat; any previously generated primary li...
bool setStickerMaskPosition(std::string_view sticker, std::shared_ptr< MaskPosition > maskPosition=nullptr) const
Use this method to change the mask position of a mask sticker. The sticker must belong to a sticker s...
bool verifyUser(std::uint64_t userId, std::string_view customDescription="", const std::vector< std::shared_ptr< MessageEntity > > &customDescriptionEntities={ }, std::string_view customDescriptionParseMode="") const
Verifies a user on behalf of the organization which is represented by the bot. Returns True on succes...
bool sendMessageDraft(std::variant< std::uint64_t, std::string > chatId, std::int64_t draftId, const std::vector< std::shared_ptr< MessageEntity > > &entities={ }, std::uint32_t messageThreadId=0, std::string_view parseMode="", std::string_view text="", bool canStop=false, bool keepOnStop=false) const
Use this method to stream a partial message to a user while the message is being generated....
bool sendChatJoinRequestWebApp(std::string_view chatJoinRequestQueryId, std::string_view webAppUrl) const
Use this method to process a received chat join request query by showing a Mini App to the user befor...
std::shared_ptr< Poll > stopPoll(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageId, std::string_view businessConnectionId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr) const
Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.
std::shared_ptr< Message > sendPaidMedia(std::variant< std::int64_t, std::string > chatId, const std::vector< std::shared_ptr< InputPaidMedia > > &media, std::uint32_t starCount, bool allowPaidBroadcast=false, std::string_view businessConnectionId="", std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::uint64_t directMessagesTopicId=0, bool disableNotification=false, std::uint32_t messageThreadId=0, std::string_view parseMode="", std::string_view payload="", bool protectContent=false, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::shared_ptr< ReplyParameters > replyParameters=nullptr, bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to send paid media. On success, the sent Message is returned.
bool close() const
Use this method to close the bot instance before moving it from one local server to another....
bool banChatMember(std::variant< std::int64_t, std::string > chatId, std::uint64_t userId, std::int32_t untilDate=0, bool revokeMessages=true) const
Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and c...
std::shared_ptr< ChatInviteLink > revokeChatInviteLink(std::variant< std::int64_t, std::string > chatId, std::string_view inviteLink) const
Use this method to revoke an invite link created by the bot. If the primary link is revoked,...
bool declineSuggestedPost(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageId, std::string_view comment="") const
Use this method to decline a suggested post in a direct messages chat. The bot must have the 'can_man...
std::shared_ptr< OwnedGifts > getChatGifts(std::variant< std::int64_t, std::string > chatId, bool excludeFromBlockchain=false, bool excludeLimitedNonUpgradable=false, bool excludeLimitedUpgradable=false, bool excludeSaved=false, bool excludeUnique=false, bool excludeUnlimited=false, bool excludeUnsaved=false, std::uint32_t limit=0, std::string_view offset="", bool sortByPrice=false) const
Returns the gifts owned by a chat. Returns OwnedGifts on success.
std::shared_ptr< Message > sendVoice(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > voice, std::string_view caption="", std::uint32_t duration=0, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send audio files, if you want Telegram clients to display the file as a playable v...
std::shared_ptr< BotName > getMyName(std::string_view languageCode="") const
Use this method to get the current bot name for the given user language. Returns BotName on success.
bool deleteForumTopic(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageThreadId) const
Use this method to delete a forum topic along with all its messages in a forum supergroup chat or a p...
bool removeUserVerification(std::uint64_t userId) const
Removes verification from a user who is currently verified on behalf of the organization represented ...
bool removeBusinessAccountProfilePhoto(std::string_view businessConnectionId, bool isPublic=false) const
Removes the current profile photo of a managed business account. Requires the can_edit_profile_photo ...
std::shared_ptr< Message > sendChecklist(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId, std::shared_ptr< InputChecklist > checklist, bool disableNotification=false, std::string_view messageEffectId="", bool protectContent=false, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::shared_ptr< ReplyParameters > replyParameters=nullptr) const
Use this method to send a checklist on behalf of a connected business account. On success,...
std::shared_ptr< Message > sendSticker(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > sticker, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, bool disableNotification=false, std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view emoji="", std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success,...
bool unpinAllChatMessages(std::variant< std::int64_t, std::string > chatId) const
Use this method to clear the list of pinned messages in a chat. In private chats and channel direct m...
bool unpinChatMessage(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId="", std::uint32_t messageId=0) const
Use this method to remove a message from the list of pinned messages in a chat. In private chats and ...
bool editGeneralForumTopic(std::variant< std::int64_t, std::string > chatId, std::string_view name) const
Use this method to edit the name of the 'General' topic in a forum supergroup chat....
std::shared_ptr< StarAmount > getBusinessAccountStarBalance(std::string_view businessConnectionId) const
Returns the amount of Telegram Stars owned by a managed business account. Requires the can_view_gifts...
bool banChatSenderChat(std::variant< std::int64_t, std::string > chatId, std::int64_t senderChatId) const
Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned,...
std::shared_ptr< UserProfilePhotos > getUserProfilePhotos(std::uint64_t userId, std::uint32_t offset=0, std::uint32_t limit=100) const
Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.
bool deleteStickerFromSet(std::string_view sticker) const
Use this method to delete a sticker from a set created by the bot. Returns True on success.
std::shared_ptr< UserProfileAudios > getUserProfileAudios(std::uint64_t userId, std::uint32_t limit=0, std::uint32_t offset=0) const
Use this method to get a list of profile audios for a user. Returns a UserProfileAudios object.
std::vector< std::shared_ptr< Message > > getUserPersonalChatMessages(std::uint32_t limit, std::uint64_t userId) const
Use this method to get the last messages from the personal chat (i.e., the chat currently added to th...
bool setMyName(std::string_view name="", std::string_view languageCode="") const
Use this method to change the bot's name. Returns True on success.
bool editEphemeralMessageReplyMarkup(std::variant< std::int64_t, std::string > chatId, std::uint32_t ephemeralMessageId, std::uint64_t receiverUserId, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr) const
Use this method to edit only the reply markup of an ephemeral message. Note that it is not guaranteed...
bool setMyDescription(std::string_view description="", std::string_view languageCode="") const
Use this method to change the bot's description, which is shown in the chat with the bot if the chat ...
bool restrictChatMember(std::variant< std::int64_t, std::string > chatId, std::uint64_t userId, std::shared_ptr< ChatPermissions > permissions, std::int32_t untilDate=0, bool useIndependentChatPermissions=false) const
Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergrou...
bool pinChatMessage(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageId, std::string_view businessConnectionId="", bool disableNotification=false) const
Use this method to add a message to the list of pinned messages in a chat. In private chats and chann...
bool hideGeneralForumTopic(std::variant< std::int64_t, std::string > chatId) const
Use this method to hide the 'General' topic in a forum supergroup chat. The bot must be an administra...
std::shared_ptr< Message > sendVideoNote(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > videoNote, std::shared_ptr< ReplyParameters > replyParameters=nullptr, bool disableNotification=false, std::uint32_t duration=0, std::uint32_t length=0, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send a rounded square MPEG4 video of up to 1 minute long. On success,...
std::shared_ptr< Message > editMessageMedia(std::shared_ptr< InputMedia > media, std::variant< std::int64_t, std::string > chatId={ }, std::uint32_t messageId=0, std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::string_view businessConnectionId="", const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to edit animation, audio, document, live photo, photo, or video messages,...
std::shared_ptr< BotDescription > getMyDescription(std::string_view languageCode="") const
Use this method to get the current bot description for the given user language. Returns BotDescriptio...
bool transferBusinessAccountStars(std::string_view businessConnectionId, std::uint32_t starCount) const
Transfers Telegram Stars from the business account balance to the bot's balance. Requires the can_tra...
bool promoteChatMember(std::variant< std::int64_t, std::string > chatId, std::uint64_t userId, bool canChangeInfo=false, bool canPostMessages=false, bool canEditMessages=false, bool canDeleteMessages=false, bool canInviteUsers=false, bool canPinMessages=false, bool canPromoteMembers=false, bool isAnonymous=false, bool canManageChat=false, bool canManageVideoChats=false, bool canRestrictMembers=false, bool canManageTopics=false, bool canPostStories=false, bool canEditStories=false, bool canDeleteStories=false, bool canManageDirectMessages=false, bool canManageTags=false, bool canSendWelcomeMessages=false) const
Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administ...
std::shared_ptr< File > getFile(std::string_view fileId) const
Use this method to get basic information about a file and prepare it for downloading....
bool answerWidgetQuery(std::string_view widgetQueryId, std::string_view data="") const
Use this method to send an answer to a query from a widget. The query must be answered within 15 seco...
bool setStickerSetTitle(std::string_view name, std::string_view title) const
Use this method to set the title of a created sticker set. Returns True on success.
bool editUserStarSubscription(bool isCanceled, std::string_view telegramPaymentChargeId, std::uint64_t userId) const
Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars....
bool setChatStickerSet(std::variant< std::int64_t, std::string > chatId, std::string_view stickerSetName) const
Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in ...
bool logOut() const
Use this method to log out from the cloud Bot API server before launching the bot locally....
bool setStickerEmojiList(std::string_view sticker, const std::vector< std::string > &emojiList) const
Use this method to change the list of emoji assigned to a regular or custom emoji sticker....
std::shared_ptr< WebhookInfo > getWebhookInfo() const
Use this method to get current webhook status. Requires no parameters. On success,...
std::shared_ptr< Message > sendPhoto(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > photo, std::string_view caption="", std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::uint32_t messageThreadId=0, bool protectContent=false, bool hasSpoiler=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send photos. On success, the sent Message is returned.
std::shared_ptr< OwnedGifts > getUserGifts(std::uint64_t userId, bool excludeFromBlockchain=false, bool excludeLimitedNonUpgradable=false, bool excludeLimitedUpgradable=false, bool excludeUnique=false, bool excludeUnlimited=false, std::uint32_t limit=0, std::string_view offset="", bool sortByPrice=false) const
Returns the gifts owned and hosted by a user. Returns OwnedGifts on success.
bool deleteMessage(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageId) const
Use this method to delete a message, including service messages, with the following limitations:- A m...
bool editEphemeralMessageText(std::variant< std::int64_t, std::string > chatId, std::uint32_t ephemeralMessageId, std::uint64_t receiverUserId, std::string_view text="", const std::vector< std::shared_ptr< MessageEntity > > &entities={ }, std::shared_ptr< LinkPreviewOptions > linkPreviewOptions=nullptr, std::string_view parseMode="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::shared_ptr< InputRichMessage > richMessage=nullptr) const
Use this method to edit an ephemeral text or rich message. Note that it is not guaranteed that the us...
std::shared_ptr< Message > sendAnimation(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > animation, std::uint32_t duration=0, std::uint32_t width=0, std::uint32_t height=0, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::string_view caption="", std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::uint32_t messageThreadId=0, bool protectContent=false, bool hasSpoiler=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound)....
bool setChatDescription(std::variant< std::int64_t, std::string > chatId, std::string_view description="") const
Use this method to change the description of a group, a supergroup or a channel. The bot must be an a...
bool setMyShortDescription(std::string_view shortDescription="", std::string_view languageCode="") const
Use this method to change the bot's short description, which is shown on the bot's profile page and i...
std::shared_ptr< ChatInviteLink > createChatInviteLink(std::variant< std::int64_t, std::string > chatId, std::int32_t expireDate=0, std::uint32_t memberLimit=0, std::string_view name="", bool createsJoinRequest=false) const
Use this method to create an additional invite link for a chat. The bot must be an administrator in t...
std::shared_ptr< Message > setGameScore(std::uint64_t userId, std::uint32_t score, bool force=false, bool disableEditMessage=false, std::variant< std::int64_t, std::string > chatId={ }, std::uint32_t messageId=0, std::string_view inlineMessageId="") const
Use this method to set the score of the specified user in a game message. On success,...
bool unpinAllForumTopicMessages(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageThreadId) const
Use this method to clear the list of pinned messages in a forum topic in a forum supergroup chat or a...
bool leaveChat(std::variant< std::int64_t, std::string > chatId) const
Use this method for your bot to leave a group, supergroup or channel. Returns True on success.
bool unbanChatSenderChat(std::variant< std::int64_t, std::string > chatId, std::int64_t senderChatId) const
Use this method to unban a previously banned channel chat in a supergroup or channel....
std::shared_ptr< Message > sendGame(std::variant< std::int64_t, std::string > chatId, std::string_view gameShortName, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, bool disableNotification=false, std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view messageEffectId="") const
Use this method to send a game. On success, the sent Message is returned.
bool setWebhook(std::string_view url, std::shared_ptr< InputFile > certificate=nullptr, std::uint32_t maxConnections=40, const std::vector< std::string > &allowedUpdates={ }, std::string_view ipAddress="", bool dropPendingUpdates=false, std::string_view secretToken="") const
Use this method to specify a URL and receive incoming updates via an outgoing webhook....
bool setBusinessAccountProfilePhoto(std::string_view businessConnectionId, std::shared_ptr< InputProfilePhoto > photo, bool isPublic=false, const std::vector< InputFileAttachment > &attachments={ }) const
Changes the profile photo of a managed business account. Requires the can_edit_profile_photo business...
bool addStickerToSet(std::uint64_t userId, std::string_view name, std::shared_ptr< InputSticker > sticker, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 2...
bool setStickerSetThumbnail(std::string_view name, std::uint64_t userId, std::string_view format, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }) const
Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail fi...
std::shared_ptr< Message > editMessageChecklist(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId, std::shared_ptr< InputChecklist > checklist, std::uint32_t messageId, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr) const
Use this method to edit a checklist on behalf of a connected business account. On success,...
std::shared_ptr< File > uploadStickerFile(std::uint64_t userId, std::variant< std::shared_ptr< InputFile >, std::string > sticker, std::string_view stickerFormat) const
Use this method to upload a file with a sticker for later use in the createNewStickerSet,...
std::shared_ptr< Message > editMessageLiveLocation(double latitude, double longitude, std::variant< std::int64_t, std::string > chatId={ }, std::uint32_t messageId=0, std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, double horizontalAccuracy=0, std::uint32_t heading=0, std::uint32_t proximityAlertRadius=0, std::string_view businessConnectionId="", std::uint32_t livePeriod=0) const
Use this method to edit live location messages. A location can be edited until its live_period expire...
bool giftPremiumSubscription(std::uint32_t monthCount, std::uint32_t starCount, std::uint64_t userId, std::string_view text="", const std::vector< std::shared_ptr< MessageEntity > > &textEntities={ }, std::string_view textParseMode="") const
Gifts a Telegram Premium subscription to the given user. Returns True on success.
bool answerInlineQuery(std::string_view inlineQueryId, const std::vector< std::shared_ptr< InlineQueryResult > > &results, std::uint32_t cacheTime=300, bool isPersonal=false, std::string_view nextOffset="", std::shared_ptr< InlineQueryResultsButton > button=nullptr) const
Use this method to send answers to an inline query. On success, True is returned.No more than 50 resu...
std::vector< std::shared_ptr< MessageId > > copyMessages(std::variant< std::int64_t, std::string > chatId, std::variant< std::int64_t, std::string > fromChatId, const std::vector< std::uint32_t > &messageIds, std::uint32_t messageThreadId=0, bool disableNotification=false, bool protectContent=false, bool removeCaption=false, std::uint64_t directMessagesTopicId=0) const
Use this method to copy messages of any kind. If some of the specified messages can't be found or cop...
bool upgradeGift(std::string_view businessConnectionId, std::string_view ownedGiftId, bool keepOriginalDetails=false, std::uint32_t starCount=0) const
Upgrades a given regular gift to a unique gift. Requires the can_transfer_and_upgrade_gifts business ...
bool createNewStickerSet(std::uint64_t userId, std::string_view name, std::string_view title, const std::vector< std::shared_ptr< InputSticker > > &stickers, Sticker::Type stickerType=Sticker::Type::Regular, bool needsRepainting=false, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker...
bool readBusinessMessage(std::variant< std::int64_t, std::string > chatId, std::string_view businessConnectionId, std::uint32_t messageId) const
Marks incoming message as read on behalf of a business account. Requires the can_read_messages busine...
bool deleteBusinessMessages(std::string_view businessConnectionId, const std::vector< std::uint32_t > &messageIds) const
Delete messages on behalf of a business account. Requires the can_delete_sent_messages business bot r...
bool reopenForumTopic(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageThreadId) const
Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator...
bool editMessageWidgetData(std::string_view chatData="", std::variant< std::int64_t, std::string > chatId={ }, std::string_view inlineMessageId="", std::uint32_t messageId=0, std::string_view publicData="") const
Use this method to edit data of a widget in a message sent by the bot or via the bot (for inline bots...
bool editEphemeralMessageCaption(std::variant< std::int64_t, std::string > chatId, std::uint32_t ephemeralMessageId, std::uint64_t receiverUserId, std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view parseMode="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, bool showCaptionAboveMedia=false) const
Use this method to edit the caption of an ephemeral message. Note that it is not guaranteed that the ...
bool convertGiftToStars(std::string_view businessConnectionId, std::string_view ownedGiftId) const
Converts a given regular gift to Telegram Stars. Requires the can_convert_gifts_to_stars business bot...
bool deleteWebhook(bool dropPendingUpdates=false) const
Use this method to remove webhook integration if you decide to switch back to getUpdates....
bool deleteEphemeralMessage(std::variant< std::int64_t, std::string > chatId, std::uint32_t ephemeralMessageId, std::uint64_t receiverUserId) const
Use this method to delete an ephemeral message. Note that it is not guaranteed that the user will rec...
std::shared_ptr< Message > sendSharedWidget(std::variant< std::int64_t, std::string > chatId, std::string_view widgetId, bool allowPaidBroadcast=false, std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view chatData="", bool disableNotification=false, std::string_view messageEffectId="", std::uint32_t messageThreadId=0, std::string_view parseMode="", bool protectContent=false, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::shared_ptr< ReplyParameters > replyParameters=nullptr, bool showCaptionAboveMedia=false) const
Use this method to send again a shared widget created by the bot. Currently, in the production enviro...
bool removeMyProfilePhoto() const
Removes the profile photo of the bot. Requires no parameters. Returns True on success.
bool deleteMyCommands(std::shared_ptr< BotCommandScope > scope=nullptr, std::string_view languageCode="") const
Use this method to delete the list of the bot's commands for the given scope and user language....
std::shared_ptr< Story > editStory(std::string_view businessConnectionId, std::shared_ptr< InputStoryContent > content, std::uint32_t storyId, const std::vector< std::shared_ptr< StoryArea > > &areas={ }, std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view parseMode="", const std::vector< InputFileAttachment > &attachments={ }) const
Edits a story previously posted by the bot on behalf of a managed business account....
std::shared_ptr< PreparedInlineMessage > savePreparedInlineMessage(std::shared_ptr< InlineQueryResult > result, std::uint64_t userId, bool allowBotChats=false, bool allowChannelChats=false, bool allowGroupChats=false, bool allowUserChats=false) const
Stores a message that can be sent by a user of a Mini App. Returns a PreparedInlineMessage object.
std::shared_ptr< Message > sendLocation(std::variant< std::int64_t, std::string > chatId, double latitude, double longitude, std::uint32_t livePeriod=0, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, bool disableNotification=false, double horizontalAccuracy=0, std::uint32_t heading=0, std::uint32_t proximityAlertRadius=0, std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send point on the map. On success, the sent Message is returned.
std::shared_ptr< Message > sendDice(std::variant< std::int64_t, std::string > chatId, bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view emoji="", std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send an animated emoji that will display a random value. On success,...
bool verifyChat(std::variant< std::int64_t, std::string > chatId, std::string_view customDescription="", const std::vector< std::shared_ptr< MessageEntity > > &customDescriptionEntities={ }, std::string_view customDescriptionParseMode="") const
Verifies a chat on behalf of the organization which is represented by the bot. Returns True on succes...
std::shared_ptr< Message > editMessageText(std::string_view text="", std::variant< std::int64_t, std::string > chatId={ }, std::uint32_t messageId=0, std::string_view inlineMessageId="", std::string_view parseMode="", std::shared_ptr< LinkPreviewOptions > linkPreviewOptions=nullptr, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, const std::vector< std::shared_ptr< MessageEntity > > &entities={ }, std::string_view businessConnectionId="", std::shared_ptr< InputRichMessage > richMessage=nullptr, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to edit text, rich and game messages. On success, if the edited message is not an inl...
bool setChatTitle(std::variant< std::int64_t, std::string > chatId, std::string_view title) const
Use this method to change the title of a chat. Titles can't be changed for private chats....
std::shared_ptr< ChatMember > getChatMember(std::variant< std::int64_t, std::string > chatId, std::uint64_t userId) const
Use this method to get information about a member of a chat. The method is only guaranteed to work fo...
std::shared_ptr< StarAmount > getMyStarBalance() const
A method to get the current Telegram Stars balance of the bot. Requires no parameters....
std::shared_ptr< PreparedKeyboardButton > savePreparedKeyboardButton(std::shared_ptr< KeyboardButton > button, std::uint64_t userId) const
Stores a keyboard button that can be used by a user within a Mini App. Returns a PreparedKeyboardButt...
bool declineChatJoinRequest(std::variant< std::int64_t, std::string > chatId, std::uint64_t userId) const
Use this method to decline a chat join request. The bot must be an administrator in the chat for this...
std::vector< std::shared_ptr< ChatMember > > getChatAdministrators(std::variant< std::int64_t, std::string > chatId, bool returnBots=false) const
Use this method to get a list of administrators in a chat. Returns an Array of ChatMember objects.
bool refundStarPayment(std::string_view telegramPaymentChargeId, std::uint64_t userId) const
Refunds a successful payment in Telegram Stars. Returns True on success.
std::shared_ptr< MenuButton > getChatMenuButton(std::variant< std::uint64_t, std::string > chatId={ }) const
Use this method to get the current value of the bot's menu button in a private chat,...
std::vector< std::shared_ptr< BotCommand > > getMyCommands(std::shared_ptr< BotCommandScope > scope=nullptr, std::string_view languageCode="") const
Use this method to get the current list of the bot's commands for the given scope and user language....
std::uint32_t getChatMemberCount(std::variant< std::int64_t, std::string > chatId) const
Use this method to get the number of members in a chat. Returns Integer on success.
std::shared_ptr< Gifts > getAvailableGifts() const
Returns the list of gifts that can be sent by the bot to users and channel chats. Requires no paramet...
bool setManagedBotAccessSettings(bool isAccessRestricted, std::uint64_t userId, const std::vector< std::uint64_t > &addedUserIds={ }) const
Use this method to change the access settings of a managed bot. Returns True on success.
std::shared_ptr< ChatShareThemeBackdrops > getChatShareThemeBackdrops() const
Use this method to get the list of backdrops, which can be used as the background of a theme of the s...
std::vector< std::shared_ptr< Message > > sendMediaGroup(std::variant< std::int64_t, std::string > chatId, const std::vector< std::variant< std::shared_ptr< InputMediaAudio >, std::shared_ptr< InputMediaDocument >, std::shared_ptr< InputMediaLivePhoto >, std::shared_ptr< InputMediaPhoto >, std::shared_ptr< InputMediaVideo > > > &media, bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to send a group of photos, live photos, videos, documents or audios as an album....
std::vector< std::shared_ptr< GameHighScore > > getGameHighScores(std::uint64_t userId, std::variant< std::int64_t, std::string > chatId={ }, std::uint32_t messageId=0, std::string_view inlineMessageId="") const
Use this method to get data for high score tables. Will return the score of the specified user and se...
std::shared_ptr< ChatInviteLink > createChatSubscriptionInviteLink(std::variant< std::int64_t, std::string > chatId, std::uint32_t subscriptionPeriod, std::uint32_t subscriptionPrice, std::string_view name="") const
Use this method to create a subscription invite link for a channel chat. The bot must have the can_in...
std::shared_ptr< Message > stopMessageLiveLocation(std::variant< std::int64_t, std::string > chatId={ }, std::uint32_t messageId=0, std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::string_view businessConnectionId="") const
Use this method to stop updating a live location message before live_period expires....
std::shared_ptr< Message > sendAudio(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > audio, std::string_view caption="", std::uint32_t duration=0, std::string_view performer="", std::string_view title="", std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send audio files, if you want Telegram clients to display them in the music player...
bool sendRichMessageDraft(std::variant< std::uint64_t, std::string > chatId, std::int64_t draftId, std::shared_ptr< InputRichMessage > richMessage, std::uint32_t messageThreadId=0, bool canStop=false, bool keepOnStop=false) const
Use this method to stream a partial rich message to a user while the message is being generated....
std::shared_ptr< Message > editMessageReplyMarkup(std::variant< std::int64_t, std::string > chatId={ }, std::uint32_t messageId=0, std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::string_view businessConnectionId="") const
Use this method to edit only the reply markup of messages. On success, if the edited message is not a...
std::shared_ptr< Message > sendDocument(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > document, std::variant< std::shared_ptr< InputFile >, std::string > thumbnail={ }, std::string_view caption="", std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, bool disableContentTypeDetection=false, std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send general files. On success, the sent Message is returned. Bots can currently s...
bool sendChatAction(std::variant< std::int64_t, std::string > chatId, std::string_view action, std::uint32_t messageThreadId=0, std::string_view businessConnectionId="") const
Use this method when you need to tell the user that something is happening on the bot's side....
bool setMyProfilePhoto(std::shared_ptr< InputProfilePhoto > photo, const std::vector< InputFileAttachment > &attachments={ }) const
Changes the profile photo of the bot. Returns True on success.
bool setChatPhoto(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > photo) const
Use this method to set a new profile photo for the chat. Photos can't be changed for private chats....
bool deleteStory(std::string_view businessConnectionId, std::uint32_t storyId) const
Deletes a story previously posted by the bot on behalf of a managed business account....
bool setBusinessAccountBio(std::string_view businessConnectionId, std::string_view bio="") const
Changes the bio of a managed business account. Requires the can_change_bio business bot right....
bool setChatMemberTag(std::variant< std::int64_t, std::string > chatId, std::uint64_t userId, std::string_view tag="") const
Use this method to set a tag for a regular member in a group or a supergroup. The bot must be an admi...
bool unhideGeneralForumTopic(std::variant< std::int64_t, std::string > chatId) const
Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administ...
bool setStickerPositionInSet(std::string_view sticker, std::uint32_t position) const
Use this method to move a sticker in a set created by the bot to a specific position....
bool setPassportDataErrors(std::uint64_t userId, const std::vector< std::shared_ptr< PassportElementError > > &errors) const
Informs a user that some of the Telegram Passport elements they provided contains errors....
std::shared_ptr< StarTransactions > getStarTransactions(std::uint32_t limit=0, std::uint32_t offset=0) const
Returns the bot's Telegram Star transactions in chronological order. On success, returns a StarTransa...
std::shared_ptr< UniqueGift > getUniqueGift(std::string_view name) const
Use this method to get information about a unique gift by its name. Returns a UniqueGift object on su...
std::vector< std::shared_ptr< Update > > getUpdates(std::int32_t offset=0, std::uint32_t limit=100, std::uint32_t timeout=0, const std::vector< std::string > &allowedUpdates={ }) const
Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update obj...
bool answerCallbackQuery(std::string_view callbackQueryId, std::string_view text="", bool showAlert=false, std::string_view url="", std::uint32_t cacheTime=0) const
Use this method to send answers to callback queries sent from inline keyboards. The answer will be di...
bool setChatPermissions(std::variant< std::int64_t, std::string > chatId, std::shared_ptr< ChatPermissions > permissions, bool useIndependentChatPermissions=false) const
Use this method to set default chat permissions for all members. The bot must be an administrator in ...
bool setUserEmojiStatus(std::uint64_t userId, std::string_view emojiStatusCustomEmojiId="", std::int32_t emojiStatusExpirationDate=0) const
Changes the emoji status for a given user that previously allowed the bot to manage their emoji statu...
bool deleteBusinessAccountGift(std::string_view businessConnectionId, std::string_view ownedGiftId) const
Deletes a regular gift owned by a managed business account without receiving Telegram Stars for it....
bool deleteChatStickerSet(std::variant< std::int64_t, std::string > chatId) const
Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in ...
bool deleteMessageReaction(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageId, std::int64_t actorChatId=0, std::uint64_t userId=0) const
Use this method to remove a reaction from a message in a group or a supergroup chat....
bool deleteAllMessageReactions(std::variant< std::int64_t, std::string > chatId, std::int64_t actorChatId=0, std::uint64_t userId=0) const
Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a giv...
bool setChatAdministratorCustomTitle(std::variant< std::int64_t, std::string > chatId, std::uint64_t userId, std::string_view customTitle) const
Use this method to set a custom title for an administrator in a supergroup promoted by the bot....
bool sendGift(std::string_view giftId, std::variant< std::int64_t, std::string > chatId={ }, bool payForUpgrade=false, std::string_view text="", const std::vector< std::shared_ptr< MessageEntity > > &textEntities={ }, std::string_view textParseMode="", std::uint64_t userId=0) const
Sends a gift to the given user or channel chat. The gift can't be converted to Telegram Stars by the ...
bool editForumTopic(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageThreadId, std::string_view name="", std::string_view iconCustomEmojiId="") const
Use this method to edit name and icon of a topic in a forum supergroup chat or a private chat with a ...
bool editEphemeralMessageMedia(std::variant< std::int64_t, std::string > chatId, std::uint32_t ephemeralMessageId, std::shared_ptr< InputMedia > media, std::uint64_t receiverUserId, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to edit the media of an ephemeral message. Note that it is not guaranteed that the us...
bool transferGift(std::string_view businessConnectionId, std::int64_t newOwnerChatId, std::string_view ownedGiftId, std::uint32_t starCount=0) const
Transfers an owned unique gift to another user. Requires the can_transfer_and_upgrade_gifts business ...
std::shared_ptr< ChatFullInfo > getChat(std::variant< std::int64_t, std::string > chatId) const
Use this method to get up-to-date information about the chat. Returns a ChatFullInfo object on succes...
bool setBusinessAccountGiftSettings(std::shared_ptr< AcceptedGiftTypes > acceptedGiftTypes, std::string_view businessConnectionId, bool showGiftButton) const
Changes the privacy settings pertaining to incoming gifts in a managed business account....
std::shared_ptr< Message > sendInvoice(std::variant< std::int64_t, std::string > chatId, std::string_view title, std::string_view description, std::string_view payload, std::string_view providerToken, std::string_view currency, const std::vector< std::shared_ptr< LabeledPrice > > &prices, std::string_view providerData="", std::string_view photoUrl="", std::uint32_t photoSize=0, std::uint32_t photoWidth=0, std::uint32_t photoHeight=0, bool needName=false, bool needPhoneNumber=false, bool needEmail=false, bool needShippingAddress=false, bool sendPhoneNumberToProvider=false, bool sendEmailToProvider=false, bool isFlexible=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, bool disableNotification=false, std::uint32_t messageThreadId=0, std::uint64_t maxTipAmount=0, const std::vector< std::uint64_t > &suggestedTipAmounts={ }, std::string_view startParameter="", bool protectContent=false, bool allowPaidBroadcast=false, std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send invoices. On success, the sent Message is returned.
std::shared_ptr< BotAccessSettings > getManagedBotAccessSettings(std::uint64_t userId) const
Use this method to get the access settings of a managed bot. Returns a BotAccessSettings object on su...
std::shared_ptr< Message > sendWidget(std::variant< std::int64_t, std::string > chatId, std::string_view html, bool allowPaidBroadcast=false, bool allowQueries=false, std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view chatData="", bool disableNotification=false, std::uint32_t height=0, bool isShared=false, std::string_view messageEffectId="", std::uint32_t messageThreadId=0, std::string_view parseMode="", bool protectContent=false, std::string_view publicData="", std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::shared_ptr< ReplyParameters > replyParameters=nullptr, bool showCaptionAboveMedia=false, std::uint32_t width=0) const
Use this method to send a message with an HTML widget. Currently, in the production environment,...
std::shared_ptr< OwnedGifts > getBusinessAccountGifts(std::string_view businessConnectionId, bool excludeFromBlockchain=false, bool excludeLimitedNonUpgradable=false, bool excludeLimitedUpgradable=false, bool excludeSaved=false, bool excludeUnique=false, bool excludeUnlimited=false, bool excludeUnsaved=false, std::uint32_t limit=0, std::string_view offset="", bool sortByPrice=false) const
Returns the gifts received and owned by a managed business account. Requires the can_view_gifts_and_s...
std::shared_ptr< BusinessConnection > getBusinessConnection(std::string_view businessConnectionId) const
Use this method to get information about the connection of the bot with a business account....
bool closeGeneralForumTopic(std::variant< std::int64_t, std::string > chatId) const
Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an admin...
std::shared_ptr< StickerSet > getStickerSet(std::string_view name) const
Use this method to get a sticker set. On success, a StickerSet object is returned.
bool setCustomEmojiStickerSetThumbnail(std::string_view name, std::string_view customEmojiId="") const
Use this method to set the thumbnail of a custom emoji sticker set. Returns True on success.
std::shared_ptr< SentWebAppMessage > answerWebAppQuery(std::string_view webAppQueryId, std::shared_ptr< InlineQueryResult > result) const
Use this method to set the result of an interaction with a Web App and send a corresponding message o...
std::shared_ptr< Message > forwardMessage(std::variant< std::int64_t, std::string > chatId, std::variant< std::int64_t, std::string > fromChatId, std::uint32_t messageId, bool disableNotification=false, bool protectContent=false, std::uint32_t messageThreadId=0, std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr, std::uint32_t videoStartTimestamp=0) const
Use this method to forward messages of any kind. Service messages and messages with protected content...
std::string getManagedBotToken(std::uint64_t userId) const
Use this method to get the token of a managed bot. Returns the token as String on success.
bool editSharedWidgetData(std::string_view publicData, std::string_view widgetId, std::uint32_t cacheTime=0) const
Use this method to edit public data of a shared widget created by the bot. A shared widget can be edi...
bool setBusinessAccountUsername(std::string_view businessConnectionId, std::string_view username="") const
Changes the username of a managed business account. Requires the can_change_username business bot rig...
std::shared_ptr< Message > editMessageCaption(std::variant< std::int64_t, std::string > chatId={ }, std::uint32_t messageId=0, std::string_view caption="", std::string_view inlineMessageId="", std::shared_ptr< InlineKeyboardMarkup > replyMarkup=nullptr, std::string_view parseMode="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view businessConnectionId="", bool showCaptionAboveMedia=false) const
Use this method to edit captions of messages. On success, if the edited message is not an inline mess...
bool unbanChatMember(std::variant< std::int64_t, std::string > chatId, std::uint64_t userId, bool onlyIfBanned=false) const
Use this method to unban a previously banned user in a supergroup or channel. The user will not retur...
std::shared_ptr< Message > sendRichMessage(std::variant< std::int64_t, std::string > chatId, std::shared_ptr< InputRichMessage > richMessage, bool allowPaidBroadcast=false, std::string_view businessConnectionId="", std::uint64_t directMessagesTopicId=0, bool disableNotification=false, std::string_view messageEffectId="", std::uint32_t messageThreadId=0, bool protectContent=false, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to send rich messages. If the message contains a block with a media element,...
std::shared_ptr< Message > sendVenue(std::variant< std::int64_t, std::string > chatId, double latitude, double longitude, std::string_view title, std::string_view address, std::string_view foursquareId="", std::string_view foursquareType="", bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view googlePlaceId="", std::string_view googlePlaceType="", std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send information about a venue. On success, the sent Message is returned.
bool approveSuggestedPost(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageId, std::int32_t sendDate=0) const
Use this method to approve a suggested post in a direct messages chat. The bot must have the 'can_pos...
bool setChatMenuButton(std::variant< std::uint64_t, std::string > chatId={ }, std::shared_ptr< MenuButton > menuButton=nullptr) const
Use this method to change the bot's menu button in a private chat, or the default menu button....
std::shared_ptr< ChatInviteLink > editChatSubscriptionInviteLink(std::variant< std::int64_t, std::string > chatId, std::string_view inviteLink, std::string_view name="") const
Use this method to edit a subscription invite link created by the bot. The bot must have the can_invi...
bool setBusinessAccountName(std::string_view businessConnectionId, std::string_view firstName, std::string_view lastName="") const
Changes the first and last name of a managed business account. Requires the can_change_name business ...
bool deleteMessages(std::variant< std::int64_t, std::string > chatId, const std::vector< std::uint32_t > &messageIds) const
Use this method to delete multiple messages simultaneously. If some of the specified messages can't b...
bool approveChatJoinRequest(std::variant< std::int64_t, std::string > chatId, std::uint64_t userId) const
Use this method to approve a chat join request. The bot must be an administrator in the chat for this...
bool answerPreCheckoutQuery(std::string_view preCheckoutQueryId, bool ok, std::string_view errorMessage="") const
Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmat...
std::shared_ptr< Message > sendLivePhoto(std::variant< std::int64_t, std::string > chatId, std::variant< std::shared_ptr< InputFile >, std::string > livePhoto, std::variant< std::shared_ptr< InputFile >, std::string > photo, bool allowPaidBroadcast=false, std::string_view businessConnectionId="", std::string_view callbackQueryId="", std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::uint64_t directMessagesTopicId=0, bool disableNotification=false, bool hasSpoiler=false, std::string_view messageEffectId="", std::uint32_t messageThreadId=0, std::string_view parseMode="", bool protectContent=false, std::uint64_t receiverUserId=0, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::shared_ptr< ReplyParameters > replyParameters=nullptr, bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send live photos. On success, the sent Message is returned.
std::string createInvoiceLink(std::string_view title, std::string_view description, std::string_view payload, std::string_view providerToken, std::string_view currency, const std::vector< std::shared_ptr< LabeledPrice > > &prices, std::uint64_t maxTipAmount=0, const std::vector< std::uint64_t > &suggestedTipAmounts={ }, std::string_view providerData="", std::string_view photoUrl="", std::uint32_t photoSize=0, std::uint32_t photoWidth=0, std::uint32_t photoHeight=0, bool needName=false, bool needPhoneNumber=false, bool needEmail=false, bool needShippingAddress=false, bool sendPhoneNumberToProvider=false, bool sendEmailToProvider=false, bool isFlexible=false, std::string_view businessConnectionId="", std::uint32_t subscriptionPeriod=0) const
Use this method to create a link for an invoice. Returns the created invoice link as String on succes...
std::shared_ptr< ChatAdministratorRights > getMyDefaultAdministratorRights(bool forChannels=false) const
Use this method to get the current default administrator rights of the bot. Returns ChatAdministrator...
bool unpinAllGeneralForumTopicMessages(std::variant< std::int64_t, std::string > chatId) const
Use this method to clear the list of pinned messages in a General forum topic. The bot must be an adm...
std::vector< std::shared_ptr< Sticker > > getForumTopicIconStickers() const
Use this method to get custom emoji stickers, which can be used as a forum topic icon by any user....
std::shared_ptr< SentGuestMessage > answerGuestQuery(std::string_view guestQueryId, std::shared_ptr< InlineQueryResult > result) const
Use this method to reply to a received guest message. On success, a SentGuestMessage object is return...
std::vector< std::shared_ptr< Sticker > > getCustomEmojiStickers(const std::vector< std::string > &customEmojiIds) const
Use this method to get information about custom emoji stickers by their identifiers....
bool closeForumTopic(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageThreadId) const
Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator i...
bool setStickerKeywords(std::string_view sticker, const std::vector< std::string > &keywords={ }) const
Use this method to change search keywords assigned to a regular or custom emoji sticker....
bool replaceStickerInSet(std::uint64_t userId, std::string_view name, std::string_view oldSticker, std::shared_ptr< InputSticker > sticker, const std::vector< InputFileAttachment > &attachments={ }) const
Use this method to replace an existing sticker in a sticker set with a new one. The method is equival...
bool reopenGeneralForumTopic(std::variant< std::int64_t, std::string > chatId) const
Use this method to reopen a closed 'General' topic in a forum supergroup chat. The bot must be an adm...
std::shared_ptr< ChatInviteLink > editChatInviteLink(std::variant< std::int64_t, std::string > chatId, std::string_view inviteLink, std::int32_t expireDate=0, std::uint32_t memberLimit=0, std::string_view name="", bool createsJoinRequest=false) const
Use this method to edit a non-primary invite link created by the bot. The bot must be an administrato...
std::shared_ptr< MessageId > copyMessage(std::variant< std::int64_t, std::string > chatId, std::variant< std::int64_t, std::string > fromChatId, std::uint32_t messageId, std::string_view caption="", std::string_view parseMode="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, bool protectContent=false, std::uint32_t messageThreadId=0, bool allowPaidBroadcast=false, std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", bool showCaptionAboveMedia=false, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr, std::uint32_t videoStartTimestamp=0) const
Use this method to copy messages of any kind. Service messages, paid media messages,...
std::shared_ptr< Message > sendPoll(std::variant< std::int64_t, std::string > chatId, std::string_view question, const std::vector< std::shared_ptr< InputPollOption > > &options, bool disableNotification=false, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, bool isAnonymous=true, std::string_view type="", bool allowsMultipleAnswers=false, std::string_view explanation="", std::string_view explanationParseMode="", const std::vector< std::shared_ptr< MessageEntity > > &explanationEntities={ }, std::uint32_t openPeriod=0, std::int32_t closeDate=0, bool isClosed=false, std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowAddingOptions=false, bool allowPaidBroadcast=false, bool allowsRevoting=false, const std::vector< std::uint32_t > &correctOptionIds={ }, const std::vector< std::string > &countryCodes={ }, std::string_view description="", const std::vector< std::shared_ptr< MessageEntity > > &descriptionEntities={ }, std::string_view descriptionParseMode="", std::shared_ptr< InputPollMedia > explanationMedia=nullptr, bool hideResultsUntilCloses=false, std::shared_ptr< InputPollMedia > media=nullptr, bool membersOnly=false, std::string_view messageEffectId="", const std::vector< std::shared_ptr< MessageEntity > > &questionEntities={ }, std::string_view questionParseMode="", bool shuffleOptions=false) const
Use this method to send a native poll. On success, the sent Message is returned.
bool deleteStickerSet(std::string_view name) const
Use this method to delete a sticker set that was created by the bot. Returns True on success....
std::vector< std::shared_ptr< MessageId > > forwardMessages(std::variant< std::int64_t, std::string > chatId, std::variant< std::int64_t, std::string > fromChatId, const std::vector< std::uint32_t > &messageIds, std::uint32_t messageThreadId=0, bool disableNotification=false, bool protectContent=false, std::uint64_t directMessagesTopicId=0) const
Use this method to forward multiple messages of any kind. If some of the specified messages can't be ...
std::shared_ptr< User > getMe() const
A simple method for testing your bot's authentication token. Requires no parameters....
bool removeChatVerification(std::variant< std::int64_t, std::string > chatId) const
Removes verification from a chat that is currently verified on behalf of the organization represented...
std::shared_ptr< Story > postStory(std::uint32_t activePeriod, std::string_view businessConnectionId, std::shared_ptr< InputStoryContent > content, const std::vector< std::shared_ptr< StoryArea > > &areas={ }, std::string_view caption="", const std::vector< std::shared_ptr< MessageEntity > > &captionEntities={ }, std::string_view parseMode="", bool postToChatPage=false, bool protectContent=false, const std::vector< InputFileAttachment > &attachments={ }) const
Posts a story on behalf of a managed business account. Requires the can_manage_stories business bot r...
bool deleteChatPhoto(std::variant< std::int64_t, std::string > chatId) const
Use this method to delete a chat photo. Photos can't be changed for private chats....
bool setMyDefaultAdministratorRights(std::shared_ptr< ChatAdministratorRights > rights=nullptr, bool forChannels=false) const
Use this method to change the default administrator rights requested by the bot when it's added as an...
std::shared_ptr< BotShortDescription > getMyShortDescription(std::string_view languageCode="") const
Use this method to get the current bot short description for the given user language....
bool answerChatJoinRequestQuery(std::string_view chatJoinRequestQueryId, std::string_view result) const
Use this method to process a received chat join request query. Returns True on success.
std::shared_ptr< Message > sendMessage(std::variant< std::int64_t, std::string > chatId, std::string_view text, std::shared_ptr< LinkPreviewOptions > linkPreviewOptions=nullptr, std::shared_ptr< ReplyParameters > replyParameters=nullptr, std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup={ }, std::string_view parseMode="", bool disableNotification=false, const std::vector< std::shared_ptr< MessageEntity > > &entities={ }, std::uint32_t messageThreadId=0, bool protectContent=false, std::string_view businessConnectionId="", bool allowPaidBroadcast=false, std::string_view callbackQueryId="", std::uint64_t directMessagesTopicId=0, std::string_view messageEffectId="", std::uint64_t receiverUserId=0, std::shared_ptr< SuggestedPostParameters > suggestedPostParameters=nullptr) const
Use this method to send text messages. On success, the sent Message is returned.
bool setMessageReaction(std::variant< std::int64_t, std::string > chatId, std::uint32_t messageId, const std::vector< std::shared_ptr< ReactionType > > &reaction={ }, bool isBig=false) const
Use this method to change the chosen reactions on a message. Service messages of some types can't be ...
std::shared_ptr< ForumTopic > createForumTopic(std::variant< std::int64_t, std::string > chatId, std::string_view name, std::uint32_t iconColor=0, std::string_view iconCustomEmojiId="") const
Use this method to create a topic in a forum supergroup chat or a private chat with a user....