addPreviewMedia
Add a main mini app preview, see here » for more info. Only owners of bots with a configured Main Mini App can use this method, see see here » for more info on how to check if you can invoke this method.
allowSendMessage
Allow the specified bot to send us messages
answerWebhookJSONQuery
Answers a custom query; for bots only
canSendMessage
Check whether the specified bot can send us messages
checkDownloadFileParams
Check if a mini app can request the download of a specific file: called when handling web_app_request_file_download events »
checkUsername
createBot
deletePreviewMedia
Delete a main mini app preview, see here » for more info. Only owners of bots with a configured Main Mini App can use this method, see see here » for more info on how to check if you can invoke this method.
editAccessSettings
editPreviewMedia
Edit a main mini app preview, see here » for more info. Only owners of bots with a configured Main Mini App can use this method, see see here » for more info on how to check if you can invoke this method.
exportBotToken
getAccessSettings
getAdminedBots
Get a list of bots owned by the current user
getBotCommands
Obtain a list of bot commands for the specified bot scope and language code
getBotInfo
Get localized name, about text and description of a bot (or of the current account, if called by a bot).
getBotMenuButton
Gets the menu button action for a given user or for all users, previously set using bots.setBotMenuButton; users can see this information in the botInfo constructor.
getBotRecommendations
Obtain a list of similarly themed bots, selected based on similarities in their subscriber bases, see here » for more info.
getPopularAppBots
Fetch popular Main Mini Apps, to be used in the apps tab of global search ».
getPreviewInfo
Bot owners only, fetch main mini app preview information, see here » for more info. Note: technically non-owners may also invoke this method, but it will always behave exactly as bots.getPreviewMedias, returning only previews for the current language and an empty lang_codes array, regardless of the passed lang_code, so please only use bots.getPreviewMedias if you're not the owner of the bot.
getPreviewMedias
Fetch main mini app previews, see here » for more info.
getRequestedWebViewButton
invokeWebViewCustomMethod
Send a custom request from a mini bot app, triggered by a web_app_invoke_custom_method event ». The response should be sent using a custom_method_invoked event, see here » for more info on the flow.
reorderPreviewMedias
Reorder a main mini app previews, see here » for more info. Only owners of bots with a configured Main Mini App can use this method, see see here » for more info on how to check if you can invoke this method.
reorderUsernames
Reorder usernames associated to a bot we own.
requestWebViewButton
resetBotCommands
Clear bot commands for the specified bot scope and language code
sendCustomRequest
Sends a custom request; for bots only
setBotBroadcastDefaultAdminRights
Set the default suggested admin rights for bots being added as admins to channels, see here for more info on how to handle them ».
setBotCommands
Set bot command list
setBotGroupDefaultAdminRights
Set the default suggested admin rights for bots being added as admins to groups, see here for more info on how to handle them ».
setBotInfo
Set localized name, about text and description of a bot (or of the current account, if called by a bot).
setBotMenuButton
Sets the menu button action » for a given user or for all users
setCustomVerification
Verify a user or chat on behalf of an organization ».
setJoinChatResults
toggleUserEmojiStatusPermission
Allow or prevent a bot from changing our emoji status »
toggleUsername
Activate or deactivate a purchased fragment.com username associated to a bot we own.
updateStarRefProgram
Create, edit or delete the affiliate program of a bot we own
updateUserEmojiStatus
Change the emoji status of a user (invoked by bots, see here » for more info on the full flow)