edit_ephemeral_message_text()¶
- async Client.edit_ephemeral_message_text()¶
Edit the text of an ephemeral message.
Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat.receiver_id (
int|str) – Unique identifier (int) or username (str) of the user the ephemeral message was sent to.message_id (
int) – Identifier of the ephemeral message to edit.text (
str, optional) – New text of the message. Required if rich_message is not given.parse_mode (
ParseMode, optional) – By default, texts are parsed using both Markdown and HTML styles. You can combine both syntaxes.entities (List of
MessageEntity, optional) – List of special entities that appear in message text, which can be specified instead of parse_mode.rich_message (
InputRichMessage, optional) – New rich content of the message. Overrides text. Unlike the send methods this takes the built object rather than a string, because a rich message that has to be composed is composed once and edited many times.reply_markup (
InlineKeyboardMarkup, optional) – An inline keyboard.welcome (
bool, optional) – Pass True when editing a stored welcome message rather than one that was delivered once.
- Returns:
Message– On success, the edited message is returned.
Example
await app.edit_ephemeral_message_text( chat_id, receiver_id, message_id, "New text" )