ChatBackground¶
- class pyrogram.types.ChatBackground¶
Describes a background set for a specific chat.
- Parameters:
id (
int) – Unique background identifier.document (
Document, optional) – Document with the background.is_creator (
bool, optional) – True, if the background was created by the current user.is_default (
bool, optional) – True, if this is one of default backgrounds.is_pattern (
bool, optional) – True, if this is a pattern wallpaper.is_dark (
bool, optional) – True, if the background is dark and is recommended to be used with dark theme.is_blurred (
bool, optional) – True, if the wallpaper must be downscaled to fit in 450x450 square and then box-blurred with radius 12.is_moving (
bool, optional) – True, if the background needs to be slightly moved when device is tilted.is_same (
bool, optional) – True, if the set background is the same as the background of the current user.only_for_self (
bool, optional) – True, if the background was set only for self.background_color (
int, optional) – Used for solid, gradient and freeform gradient fills.second_background_color (
int, optional) – Used for gradient and freeform gradient fills.third_background_color (
int, optional) – Used for freeform gradient fills.fourth_background_color (
int, optional) – Used for freeform gradient fills.intensity (
int, optional) – Intensity of the pattern when it is shown above the filled background; 0-100.rotation_angle (
int, optional) – Clockwise rotation angle of the gradient, in degrees; 0-359. Must always be divisible by 45.emoji (
str, optional) – If set, this wallpaper can be used as a channel wallpaper and is represented by the specified UTF-8 emoji.raw (
WallPaper, optional) – Raw object.