Skip to main content
Ephemeral Messages (introduced in Telegram Bot API 10.2) allow bots to send messages in groups that are visible only to a specific user and the bot itself. These messages automatically disappear and do not clutter the chat history.

Sending Ephemeral Messages

Most message-sending methods (sendMessage, sendPhoto, sendRichMessage, etc.) support the ephemeral_message_parameters parameter. However, bots typically use this feature in response to specific triggers or inline button clicks. (See sendMessage in the Messages & Content section for full details).

deleteEphemeralMessage

Deletes an ephemeral message.
BLP Example

editEphemeralMessageText

Edits the text of an ephemeral message.
BLP Example

editEphemeralMessageCaption

Edits the caption of an ephemeral media message.

editEphemeralMessageMedia

Edits animation, audio, document, photo, or video ephemeral messages.

editEphemeralMessageReplyMarkup

Edits only the reply markup of an ephemeral message.