telegramx.js

BackgroundTypePattern

interface

The background is a .PNG or .TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user.

Declaration

interface BackgroundTypePattern 

Properties

documentproperty#
document: Document;

Document with the pattern

fillproperty#

The background fill that is combined with the pattern

intensityproperty#
intensity: number;

Intensity of the pattern when it is shown above the filled background; 0-100

is_invertedproperty#
is_inverted?: boolean;

Optional. True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only.

is_movingproperty#
is_moving?: boolean;

Optional. True, if the background moves slightly when the device is tilted

typeproperty#
type: 'pattern';

Type of the background, always "pattern"