ChatBackground

Added in version 21.2.

class telegram.ChatBackground(type, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object represents a chat background.

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

Added in version 21.2.

Parameters:

type (telegram.BackgroundType) – Type of the background.

type[source]

Type of the background.

Type:

telegram.BackgroundType

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

See telegram.TelegramObject.de_json().