messages.SetChatTheme

class pyrogram.raw.functions.messages.SetChatTheme

Change the chat theme of a certain chat, see here » for more info.

Details:
  • Layer: 227

  • ID: 81202C9

Parameters:
Returns:

Updates

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
│ │ ├── 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 → InputChatTheme
├── InputChatTheme
│ └── emoticon → string
└── slug → string

Example

await app.invoke(
    SetChatTheme(
        peer=await app.resolve_peer(chat_id),
        theme=InputChatThemeEmpty(),
    )
)