Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/3_functions.ts>messages_setChatWallPaper_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class messages_setChatWallPaper_
extends Function_<enums.Updates>
import { messages_setChatWallPaper_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Set a custom wallpaper » in a specific private chat with another user.

Constructors

new
messages_setChatWallPaper_(params: { for_both?: true; revert?: true; peer: enums.InputPeer; wallpaper?: enums.InputWallPaper; settings?: enums.WallPaperSettings; id?: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
for_both: true

Only for Premium users, sets the specified wallpaper for both users of the chat, without requiring confirmation from the other user.

optional
id: number

If the wallpaper was obtained from a messageActionSetChatWallPaper service message, must contain the ID of that message.

peer: enums.InputPeer

The private chat where the wallpaper will be set

optional
revert: true

If we don't like the new wallpaper the other user of the chat has chosen for us using the for_both flag, we can re-set our previous wallpaper just on our side using this flag.

optional
settings: enums.WallPaperSettings

Wallpaper settings, obtained as described in the wallpaper documentation » or from messageActionSetChatWallPaper.wallpaper.settings.

optional
wallpaper: enums.InputWallPaper

The wallpaper », obtained as described in the wallpaper documentation »; must not be provided when installing a wallpaper obtained from a messageActionSetChatWallPaper service message (id must be provided, instead).

Static Properties

__F: (params: { for_both?: true; revert?: true; peer: enums.InputPeer; wallpaper?: enums.InputWallPaper; settings?: enums.WallPaperSettings; id?: number; }) => enums.Updates
readonly
[name]: string
readonly
[paramDesc]: ParamDesc