set_chat_wallpaper()¶
- async Client.set_chat_wallpaper()¶
Set a wallpaper for a chat.
Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat.wallpaper (
InputWallPaper, optional) – The wallpaper to set.settings (
WallPaperSettings, optional) – Wallpaper settings.wallpaper_id (
int, optional) – ID of a previously set wallpaper to reuse.for_both (
bool, optional) – If True, set the wallpaper for both sides of the conversation.revert (
bool, optional) – If True, revert the wallpaper to default.
- Returns:
Updates– The updates object.
Example
await app.set_chat_wallpaper(chat_id, wallpaper=wp)