Skip to content
Back to top
View this page

# BusinessMessagesDeleted

class telegram.BusinessMessagesDeleted(business_connection_id, chat, message_ids, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This object is received when messages are deleted from a connected business account.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal if their `business_connection_id`, `message_ids`, and `chat` are equal.

  Available In

  `telegram.Update.deleted_business_messages`

  Added in version 21.1.

  Parameters:

    - business_connection_id (`str`) – Unique identifier of the business connection.

    - chat (`telegram.Chat`) – Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.

    - message_ids (Sequence[`int`]) – A list of identifiers of the deleted messages in the chat of the business account.

  business_connection_id

    Unique identifier of the business connection.

    Type:

      `str`

  chat

    Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.

    Type:

      `telegram.Chat`

  message_ids

    A list of identifiers of the deleted messages in the chat of the business account.

    Type:

      tuple[`int`]

  classmethod de_json(data, bot=None)

    See `telegram.TelegramObject.de_json()`.