BackgroundType

Added in version 21.2.

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

Bases: telegram.TelegramObject

Base class for Telegram BackgroundType Objects. It can be one of:

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 (str) – Type of the background. Can be one of: FILL, WALLPAPER PATTERN or CHAT_THEME.

type[source]

Type of the background. Can be one of: FILL, WALLPAPER PATTERN or CHAT_THEME.

Type:

str

CHAT_THEME = 'chat_theme'[source]

telegram.constants.BackgroundTypeType.CHAT_THEME

FILL = 'fill'[source]

telegram.constants.BackgroundTypeType.FILL

PATTERN = 'pattern'[source]

telegram.constants.BackgroundTypeType.PATTERN

WALLPAPER = 'wallpaper'[source]

telegram.constants.BackgroundTypeType.WALLPAPER

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

See telegram.TelegramObject.de_json().