messages.SetChatTheme

class pyrogram.raw.functions.messages.SetChatTheme

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

Details:
  • Layer: 223

  • ID: 81202C9

Parameters:
Returns:

Updates

TL Schema

messages.setChatTheme#81202c9
peer:InputPeer
theme:InputChatTheme

= Updates

Parameter Tree

SetChatTheme
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── themeInputChatTheme
├── InputChatTheme
│ └── emoticonstring
└── slugstring

Example

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