Skip to main content
Module

x/grammy/types.ts>BackgroundTypeWallpaper

The Telegram Bot Framework.
Very Popular
Go to Latest
interface BackgroundTypeWallpaper
import { type BackgroundTypeWallpaper } from "https://deno.land/x/grammy@v1.23.0/types.ts";

The background is a wallpaper in the JPEG format.

Properties

type: "wallpaper"

Type of the background, always “wallpaper”

document: Document

Document with the wallpaper

dark_theme_dimming: number

Dimming of the background in dark themes, as a percentage; 0-100

optional
is_blurred: true

True, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12

optional
is_moving: true

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