Skip to content

editEphemeralMessageText

Use this method to edit an ephemeral text or rich message. Note that it is not guaranteed that the user will receive the message edit event, especially if they are offline. On success, True is returned.

Parameters

chat_idIntegerStringRequired
Unique identifier for the target chat or username of the target supergroup in the format @username
receiver_user_idIntegerRequired
Identifier of the user who received the message
ephemeral_message_idIntegerRequired
Identifier of the ephemeral message to edit
textStringOptional✏️ FormattableminLen 1maxLen 4096
New text of the message, 1-4096 characters after entity parsing; required if rich\_message isn't specified
parse_modeStringOptional
Mode for parsing entities in the message text. See formatting options for more details.
entitiesMessageEntity[]Optional
A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse\_mode
rich_messageInputRichMessageOptional
New rich content of the message; required if text isn't specified
link_preview_optionsLinkPreviewOptionsOptional
Link preview generation options for the message
A JSON-serialized object for an inline keyboard

Returns

On success, True is returned.

GramIO Usage

Errors

Tips & Gotchas

See Also