Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Latest
interface BackgroundTypeWallpaper
import { type BackgroundTypeWallpaper } from "https://deno.land/x/grammy@v1.32.0/types.web.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