StaticGramBot API
Раздел

Основные методы

Available methods

All methods in the Bot API are case-insensitive. We support GET and POST HTTP methods. Use either URL query string or application/json or application/x-www-form-urlencoded or multipart/form-data for passing parameters in Bot API requests.
On successful call, a JSON-object containing the result will be returned.

Методы 131

МетодСтатусОписание
getMeПоддерживаетсяA simple method for testing your bot's authentication token.
logOutПоддерживаетсяUse this method to log out from the cloud Bot API server before launching the bot locally.
closeПоддерживаетсяUse this method to close the bot instance before moving it from one local server to another.
sendMessageПоддерживаетсяUse this method to send text messages.
forwardMessageПоддерживаетсяUse this method to forward messages of any kind.
forwardMessagesПоддерживаетсяUse this method to forward multiple messages of any kind.
copyMessageПоддерживаетсяUse this method to copy messages of any kind.
copyMessagesПоддерживаетсяUse this method to copy messages of any kind.
sendPhotoЧастичноUse this method to send photos.
sendLivePhotoЧастичноUse this method to send live photos.
sendAudioЧастичноUse this method to send audio files, if you want Telegram clients to display them in the music player.
sendDocumentЧастичноUse this method to send general files.
sendVideoЧастичноUse this method to send video files, Telegram clients support MPEG4 videos (other formats may be sent as Document ).
sendAnimationЧастичноUse this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound).
sendVoiceЧастичноUse this method to send audio files, if you want Telegram clients to display the file as a playable voice message.
sendVideoNoteЧастичноUse this method to send a rounded square MPEG4 video of up to 1 minute long.
sendPaidMediaЧастичноUse this method to send paid media.
sendMediaGroupПоддерживаетсяUse this method to send a group of photos, live photos, videos, documents or audios as an album.
sendLocationПоддерживаетсяUse this method to send point on the map.
sendVenueПоддерживаетсяUse this method to send information about a venue.
sendContactПоддерживаетсяUse this method to send phone contacts.
sendPollЧастичноUse this method to send a native poll.
sendChecklistПоддерживаетсяUse this method to send a checklist on behalf of a connected business account.
sendDiceПоддерживаетсяUse this method to send an animated emoji that will display a random value.
sendMessageDraftПоддерживаетсяUse this method to stream a partial message to a user while the message is being generated.
sendChatActionПоддерживаетсяUse this method when you need to tell the user that something is happening on the bot's side.
setMessageReactionПоддерживаетсяUse this method to change the chosen reactions on a message.
getUserProfilePhotosПоддерживаетсяUse this method to get a list of profile pictures for a user.
getUserProfileAudiosПоддерживаетсяUse this method to get a list of profile audios for a user.
setUserEmojiStatusПоддерживаетсяChanges the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method requestEmojiStatusAccess .
getFileПоддерживаетсяUse this method to get basic information about a file and prepare it for downloading.
banChatMemberПоддерживаетсяUse this method to ban a user in a group, a supergroup or a channel.
unbanChatMemberПоддерживаетсяUse this method to unban a previously banned user in a supergroup or channel.
restrictChatMemberПоддерживаетсяUse this method to restrict a user in a supergroup.
promoteChatMemberПоддерживаетсяUse this method to promote or demote a user in a supergroup or a channel.
setChatAdministratorCustomTitleПоддерживаетсяUse this method to set a custom title for an administrator in a supergroup promoted by the bot.
setChatMemberTagПоддерживаетсяUse this method to set a tag for a regular member in a group or a supergroup.
banChatSenderChatПоддерживаетсяUse this method to ban a channel chat in a supergroup or a channel.
unbanChatSenderChatПоддерживаетсяUse this method to unban a previously banned channel chat in a supergroup or channel.
setChatPermissionsПоддерживаетсяUse this method to set default chat permissions for all members.
exportChatInviteLinkПоддерживаетсяUse this method to generate a new primary invite link for a chat; any previously generated primary link is revoked.
createChatInviteLinkПоддерживаетсяUse this method to create an additional invite link for a chat.
editChatInviteLinkПоддерживаетсяUse this method to edit a non-primary invite link created by the bot.
createChatSubscriptionInviteLinkЧастичноUse this method to create a subscription invite link for a channel chat.
editChatSubscriptionInviteLinkЧастичноUse this method to edit a subscription invite link created by the bot.
revokeChatInviteLinkПоддерживаетсяUse this method to revoke an invite link created by the bot.
approveChatJoinRequestПоддерживаетсяUse this method to approve a chat join request.
declineChatJoinRequestПоддерживаетсяUse this method to decline a chat join request.
answerChatJoinRequestQueryЧастичноUse this method to process a received chat join request query.
sendChatJoinRequestWebAppЧастичноUse this method to process a received chat join request query by showing a Mini App to the user before deciding the outcome.
setChatPhotoПоддерживаетсяUse this method to set a new profile photo for the chat.
deleteChatPhotoПоддерживаетсяUse this method to delete a chat photo.
setChatTitleПоддерживаетсяUse this method to change the title of a chat.
setChatDescriptionПоддерживаетсяUse this method to change the description of a group, a supergroup or a channel.
pinChatMessageПоддерживаетсяUse this method to add a message to the list of pinned messages in a chat.
unpinChatMessageПоддерживаетсяUse this method to remove a message from the list of pinned messages in a chat.
unpinAllChatMessagesПоддерживаетсяUse this method to clear the list of pinned messages in a chat.
leaveChatПоддерживаетсяUse this method for your bot to leave a group, supergroup or channel.
getChatПоддерживаетсяUse this method to get up-to-date information about the chat.
getChatAdministratorsПоддерживаетсяUse this method to get a list of administrators in a chat.
getChatMemberCountПоддерживаетсяUse this method to get the number of members in a chat.
getChatMemberПоддерживаетсяUse this method to get information about a member of a chat.
getUserPersonalChatMessagesПоддерживаетсяUse this method to get the last messages from the personal chat (i.e., the chat currently added to their profile) of a given user.
setChatStickerSetПоддерживаетсяUse this method to set a new group sticker set for a supergroup.
deleteChatStickerSetПоддерживаетсяUse this method to delete a group sticker set from a supergroup.
getForumTopicIconStickersПоддерживаетсяUse this method to get custom emoji stickers, which can be used as a forum topic icon by any user.
createForumTopicЧастичноUse this method to create a topic in a forum supergroup chat or a private chat with a user.
editForumTopicЧастичноUse this method to edit name and icon of a topic in a forum supergroup chat or a private chat with a user.
closeForumTopicЧастичноUse this method to close an open topic in a forum supergroup chat.
reopenForumTopicЧастичноUse this method to reopen a closed topic in a forum supergroup chat.
deleteForumTopicЧастичноUse this method to delete a forum topic along with all its messages in a forum supergroup chat or a private chat with a user.
unpinAllForumTopicMessagesЧастичноUse this method to clear the list of pinned messages in a forum topic in a forum supergroup chat or a private chat with a user.
editGeneralForumTopicПоддерживаетсяUse this method to edit the name of the 'General' topic in a forum supergroup chat.
closeGeneralForumTopicПоддерживаетсяUse this method to close an open 'General' topic in a forum supergroup chat.
reopenGeneralForumTopicПоддерживаетсяUse this method to reopen a closed 'General' topic in a forum supergroup chat.
hideGeneralForumTopicПоддерживаетсяUse this method to hide the 'General' topic in a forum supergroup chat.
unhideGeneralForumTopicПоддерживаетсяUse this method to unhide the 'General' topic in a forum supergroup chat.
unpinAllGeneralForumTopicMessagesПоддерживаетсяUse this method to clear the list of pinned messages in a General forum topic.
answerCallbackQueryПоддерживаетсяUse this method to send answers to callback queries sent from inline keyboards .
answerGuestQueryЧастичноUse this method to reply to a received guest message.
getUserChatBoostsПоддерживаетсяUse this method to get the list of boosts added to a chat by a user.
getBusinessConnectionПоддерживаетсяUse this method to get information about the connection of the bot with a business account.
getManagedBotTokenПоддерживаетсяUse this method to get the token of a managed bot.
replaceManagedBotTokenПоддерживаетсяUse this method to revoke the current token of a managed bot and generate a new one.
getManagedBotAccessSettingsПоддерживаетсяUse this method to get the access settings of a managed bot.
setManagedBotAccessSettingsЧастичноUse this method to change the access settings of a managed bot.
setMyCommandsПоддерживаетсяUse this method to change the list of the bot's commands.
deleteMyCommandsПоддерживаетсяUse this method to delete the list of the bot's commands for the given scope and user language.
getMyCommandsПоддерживаетсяUse this method to get the current list of the bot's commands for the given scope and user language.
setMyNameПоддерживаетсяUse this method to change the bot's name.
getMyNameПоддерживаетсяUse this method to get the current bot name for the given user language.
setMyDescriptionПоддерживаетсяUse this method to change the bot's description, which is shown in the chat with the bot if the chat is empty.
getMyDescriptionПоддерживаетсяUse this method to get the current bot description for the given user language.
setMyShortDescriptionПоддерживаетсяUse this method to change the bot's short description, which is shown on the bot's profile page and is sent together with the link when users share the bot.
getMyShortDescriptionПоддерживаетсяUse this method to get the current bot short description for the given user language.
setMyProfilePhotoПоддерживаетсяChanges the profile photo of the bot.
removeMyProfilePhotoПоддерживаетсяRemoves the profile photo of the bot.
setChatMenuButtonПоддерживаетсяUse this method to change the bot's menu button in a private chat, or the default menu button.
getChatMenuButtonПоддерживаетсяUse this method to get the current value of the bot's menu button in a private chat, or the default menu button.
setMyDefaultAdministratorRightsПоддерживаетсяUse this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels.
getMyDefaultAdministratorRightsПоддерживаетсяUse this method to get the current default administrator rights of the bot.
getAvailableGiftsПоддерживаетсяReturns the list of gifts that can be sent by the bot to users and channel chats.
sendGiftПоддерживаетсяSends a gift to the given user or channel chat.
giftPremiumSubscriptionПоддерживаетсяGifts a Telegram Premium subscription to the given user.
verifyUserПоддерживаетсяVerifies a user on behalf of the organization which is represented by the bot.
verifyChatПоддерживаетсяVerifies a chat on behalf of the organization which is represented by the bot.
removeUserVerificationПоддерживаетсяRemoves verification from a user who is currently verified on behalf of the organization represented by the bot.
removeChatVerificationПоддерживаетсяRemoves verification from a chat that is currently verified on behalf of the organization represented by the bot.
readBusinessMessageПоддерживаетсяMarks incoming message as read on behalf of a business account.
deleteBusinessMessagesПоддерживаетсяDelete messages on behalf of a business account.
setBusinessAccountNameПоддерживаетсяChanges the first and last name of a managed business account.
setBusinessAccountUsernameПоддерживаетсяChanges the username of a managed business account.
setBusinessAccountBioПоддерживаетсяChanges the bio of a managed business account.
setBusinessAccountProfilePhotoПоддерживаетсяChanges the profile photo of a managed business account.
removeBusinessAccountProfilePhotoПоддерживаетсяRemoves the current profile photo of a managed business account.
setBusinessAccountGiftSettingsПоддерживаетсяChanges the privacy settings pertaining to incoming gifts in a managed business account.
getBusinessAccountStarBalanceПоддерживаетсяReturns the amount of Telegram Stars owned by a managed business account.
transferBusinessAccountStarsПоддерживаетсяTransfers Telegram Stars from the business account balance to the bot's balance.
getBusinessAccountGiftsЧастичноReturns the gifts received and owned by a managed business account.
getUserGiftsПоддерживаетсяReturns the gifts owned and hosted by a user.
getChatGiftsПоддерживаетсяReturns the gifts owned by a chat.
convertGiftToStarsПоддерживаетсяConverts a given regular gift to Telegram Stars.
upgradeGiftПоддерживаетсяUpgrades a given regular gift to a unique gift.
transferGiftПоддерживаетсяTransfers an owned unique gift to another user.
postStoryЧастичноPosts a story on behalf of a managed business account.
repostStoryПоддерживаетсяReposts a story on behalf of a business account from another business account.
editStoryЧастичноEdits a story previously posted by the bot on behalf of a managed business account.
deleteStoryПоддерживаетсяDeletes a story previously posted by the bot on behalf of a managed business account.
answerWebAppQueryПоддерживаетсяUse this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated.
savePreparedInlineMessageПоддерживаетсяStores a message that can be sent by a user of a Mini App.
savePreparedKeyboardButtonПоддерживаетсяStores a keyboard button that can be used by a user within a Mini App.

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top