Message.delete_ephemeral()

async Message.delete_ephemeral()[source]

Shortcut for method delete_ephemeral_message will automatically fill method attributes:

  • chat_id

  • receiver_id

  • message_id

Example

await message.delete_ephemeral()
Returns:

bool – True on success.

Raises:
  • ValueError – In case the message is not an ephemeral one.

  • RPCError – In case of a Telegram RPC error.