Raw.messages.SetChatWallPaper
Set a custom wallpaper in a specific private chat with another user.
messages.setChatWallPaper#8ffacae1 flags:# for_both:flags.3?true revert:flags.4?true peer:InputPeer wallpaper:flags.0?InputWallPaper settings:flags.2?WallPaperSettings id:flags.1?int = Updates;
export namespace Raw {
export namespace messages {
export class SetChatWallPaper {
constructor(params: {
forBoth?: boolean;
revert?: boolean;
peer: Raw.TypeInputPeer;
wallpaper?: Raw.TypeInputWallPaper;
settings?: Raw.TypeWallPaperSettings;
id?: number;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x8ffacae1
Property
forBoth
: boolean or undefinedOnly for premium users, sets the specified wallpaper for both users of the chat, without requiring confirmation from the other user.
revert
: boolean or undefinedIf we don’t like the new wallpaper the other user of the chat has chosen for us using the forBoth flag, we can re-set our previous wallpaper just on our side using this flag.
peer
: Raw.TypeInputPeerThe private chat where the wallpaper will be set
wallpaper
: Raw.TypeInputWallPaper or undefinedThe 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).
settings
: Raw.TypeWallPaperSettings or undefinedWallpaper settings, obtained as described in the wallpaper documentation or from messageactionsetchatwallpaper.wallpaper.settings.
id
: number or undefinedIf the wallpaper was obtained from a messageactionsetchatwallpaper service message, must contain the id of that message.