Message.edit_ephemeral_text()¶
- async Message.edit_ephemeral_text()[source]¶
Shortcut for method
edit_ephemeral_message_textwill automatically fill method attributes:chat_id
receiver_id
message_id
Example
await message.edit_ephemeral_text("hello")
- Parameters:
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 together.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.reply_markup (
InlineKeyboardMarkup, optional) – An InlineKeyboardMarkup object.welcome (
bool, optional) – Pass True when editing a stored welcome message rather than one that was delivered once.
- Returns:
On success, the edited
Messageis returned.- Raises:
ValueError – In case the message is not an ephemeral one.
RPCError – In case of a Telegram RPC error.