StaticGramBot API

Все методы

185 методов Bot API 10.3. Статус показывает, насколько метод поддержан сервером StaticGram.

Получение обновлений 4

МетодСтатусОписание
getUpdatesПоддерживаетсяUse this method to receive incoming updates using long polling ( wiki ).
setWebhookПоддерживаетсяUse this method to specify a URL and receive incoming updates via an outgoing webhook.
deleteWebhookПоддерживаетсяUse this method to remove webhook integration if you decide to switch back to getUpdates .
getWebhookInfoПоддерживаетсяUse this method to get current webhook status.

Основные методы 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.

Редактирование сообщений 19

МетодСтатусОписание
editMessageTextПоддерживаетсяUse this method to edit text, rich and game messages.
editMessageCaptionПоддерживаетсяUse this method to edit captions of messages.
editMessageMediaПоддерживаетсяUse this method to edit animation, audio, document, live photo, photo, or video messages, or to replace a text or a rich message with a media.
editMessageLiveLocationЧастичноUse this method to edit live location messages.
stopMessageLiveLocationЧастичноUse this method to stop updating a live location message before live_period expires.
editMessageChecklistПоддерживаетсяUse this method to edit a checklist on behalf of a connected business account.
editMessageReplyMarkupПоддерживаетсяUse this method to edit only the reply markup of messages.
stopPollПоддерживаетсяUse this method to stop a poll which was sent by the bot.
editEphemeralMessageTextПоддерживаетсяUse this method to edit an ephemeral text or rich message.
editEphemeralMessageMediaПоддерживаетсяUse this method to edit the media of an ephemeral message.
editEphemeralMessageCaptionПоддерживаетсяUse this method to edit the caption of an ephemeral message.
editEphemeralMessageReplyMarkupПоддерживаетсяUse this method to edit only the reply markup of an ephemeral message.
approveSuggestedPostПоддерживаетсяUse this method to approve a suggested post in a direct messages chat.
declineSuggestedPostПоддерживаетсяUse this method to decline a suggested post in a direct messages chat.
deleteMessageПоддерживаетсяUse this method to delete a message, including service messages, with the following limitations: - A message can only be deleted if it was sent less than 48 hours ago.
deleteMessagesПоддерживаетсяUse this method to delete multiple messages simultaneously.
deleteEphemeralMessageПоддерживаетсяUse this method to delete an ephemeral message.
deleteMessageReactionЧастичноUse this method to remove a reaction from a message in a group or a supergroup chat.
deleteAllMessageReactionsЧастичноUse this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a given user or chat.

Стикеры 16

МетодСтатусОписание
sendStickerЧастичноUse this method to send static .WEBP, animated .TGS, or video .WEBM stickers.
getStickerSetПоддерживаетсяUse this method to get a sticker set.
getCustomEmojiStickersПоддерживаетсяUse this method to get information about custom emoji stickers by their identifiers.
uploadStickerFileПоддерживаетсяUse this method to upload a file with a sticker for later use in the createNewStickerSet , addStickerToSet , or replaceStickerInSet methods (the file can be used multiple times).
createNewStickerSetПоддерживаетсяUse this method to create a new sticker set owned by a user.
addStickerToSetПоддерживаетсяUse this method to add a new sticker to a set created by the bot.
setStickerPositionInSetПоддерживаетсяUse this method to move a sticker in a set created by the bot to a specific position.
deleteStickerFromSetПоддерживаетсяUse this method to delete a sticker from a set created by the bot.
replaceStickerInSetПоддерживаетсяUse this method to replace an existing sticker in a sticker set with a new one.
setStickerEmojiListПоддерживаетсяUse this method to change the list of emoji assigned to a regular or custom emoji sticker.
setStickerKeywordsПоддерживаетсяUse this method to change search keywords assigned to a regular or custom emoji sticker.
setStickerMaskPositionПоддерживаетсяUse this method to change the mask position of a mask sticker.
setStickerSetTitleПоддерживаетсяUse this method to set the title of a created sticker set.
setStickerSetThumbnailПоддерживаетсяUse this method to set the thumbnail of a regular or mask sticker set.
setCustomEmojiStickerSetThumbnailПоддерживаетсяUse this method to set the thumbnail of a custom emoji sticker set.
deleteStickerSetПоддерживаетсяUse this method to delete a sticker set that was created by the bot.

Rich-сообщения 2

МетодСтатусОписание
sendRichMessageПоддерживаетсяUse this method to send rich messages.
sendRichMessageDraftЧастичноUse this method to stream a partial rich message to a user while the message is being generated.

Inline-режим 1

МетодСтатусОписание
answerInlineQueryПоддерживаетсяUse this method to send answers to an inline query.

Платежи 8

МетодСтатусОписание
sendInvoiceПоддерживаетсяUse this method to send invoices.
createInvoiceLinkПоддерживаетсяUse this method to create a link for an invoice.
answerShippingQueryПоддерживаетсяIf you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot.
answerPreCheckoutQueryПоддерживаетсяOnce the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query .
getMyStarBalanceПоддерживаетсяA method to get the current Telegram Stars balance of the bot.
getStarTransactionsПоддерживаетсяReturns the bot's Telegram Star transactions in chronological order.
refundStarPaymentПоддерживаетсяRefunds a successful payment in Telegram Stars .
editUserStarSubscriptionПоддерживаетсяAllows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars.

Telegram Passport 1

МетодСтатусОписание
setPassportDataErrorsЧастичноInforms a user that some of the Telegram Passport elements they provided contains errors.

Игры 3

МетодСтатусОписание
sendGameПоддерживаетсяUse this method to send a game.
setGameScoreПоддерживаетсяUse this method to set the score of the specified user in a game message.
getGameHighScoresПоддерживаетсяUse this method to get data for high score tables.

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