Message.delete()

Message.delete()

Shortcut for method delete_messages will automatically fill method attributes:

  • chat_id

  • message_ids

Parameters:

revoke (bool, optional) – Deletes messages on both parts. This is only for private cloud chats and normal groups, messages on channels and supergroups are always revoked (i.e.: deleted for everyone). Defaults to True.

Returns:

bool – True on success, False otherwise.

Raises:

RPCError – In case of a Telegram RPC error.