messages.SetChatTheme
- class pyrogram.raw.functions.messages.SetChatTheme
Change the chat theme of a certain chat, see here » for more info.
- Details:
Layer:
223ID:
81202C9
- Parameters:
peer (
InputPeer) – Private chat where to change themetheme (
InputChatTheme) – The theme to set.
- Returns:
TL Schema
messages.setChatTheme#81202c9
peer:InputPeer
theme:InputChatTheme
= Updates
Parameter Tree
SetChatTheme
├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ │ └── chat_id →
long│ ├──
InputPeerUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ ├──
InputPeerChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ ├──
InputPeerUserFromMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├── msg_id →
int│ │ └── user_id →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long└── theme →
InputChatThemeExample
await app.invoke(
SetChatTheme(
peer=await app.resolve_peer(chat_id),
theme=InputChatThemeEmpty(),
)
)