Раздел
Редактирование сообщений
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. |