Skip to content

GramIO API Reference / gramio/dist / TelegramBackgroundTypePattern

Interface: TelegramBackgroundTypePattern

Defined in: @gramio/types/out/objects.d.ts:2313

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.

Documentation

Properties

PropertyTypeDescriptionDefined in
documentTelegramDocumentDocument with the pattern@gramio/types/out/objects.d.ts:2321
fillTelegramBackgroundFillThe background fill that is combined with the pattern@gramio/types/out/objects.d.ts:2325
intensitynumberIntensity of the pattern when it is shown above the filled background; 0-100@gramio/types/out/objects.d.ts:2329
is_inverted?trueOptional. 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@gramio/types/out/objects.d.ts:2333
is_moving?trueOptional. True, if the background moves slightly when the device is tilted@gramio/types/out/objects.d.ts:2337
type"pattern"Type of the background, always “pattern”@gramio/types/out/objects.d.ts:2317