Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy_types/message.ts>BackgroundTypeWallpaper

Type declarations of the Telegram Bot API.
Latest
interface BackgroundTypeWallpaper
import { type BackgroundTypeWallpaper } from "https://deno.land/x/grammy_types@v3.15.0/message.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