ChatOwnerChanged

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

Bases: telegram.TelegramObject

This object represents a service message about an ownership change in 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) – The new owner of the chat

new_owner[source]

The new owner of the chat

Type:

telegram.User

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

See telegram.TelegramObject.de_json().