delete_welcome_message()

async Client.delete_welcome_message()

Delete one of the welcome messages a bot has stored for a chat.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • message_id (int) – Identifier of the welcome message to delete.

Returns:

bool – True on success.

Example

await app.delete_welcome_message(chat_id, message_id)