ChatOwnerLeft

class telegram.ChatOwnerLeft(new_owner=None, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object represents a service message about the chat owner leaving the chat.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their new_owner is equal.

Added in version 22.7.

Parameters:

new_owner (telegram.User, optional) – The user which will be the new owner of the chat if the previous owner does not return to the chat

new_owner[source]

Optional. The user which will be the new owner of the chat if the previous owner does not return to the chat

Type:

telegram.User

classmethod de_json(data, bot=None)[source]

See telegram.TelegramObject.de_json().