StaticGramBot API
Раздел

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

Updating messages

The following methods allow you to change an existing message in the message history instead of sending a new one with a result of an action. This is most useful for messages with inline keyboards using callback queries, but can also help reduce clutter in conversations with regular chat bots.

Please note, that it is currently only possible to edit messages without reply_markup or with inline keyboards.

Методы 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.

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