Layer 220
MessagesSetChatTheme
Change the chat theme of a certain chat, see here for more info.
method
Users
messages.setChatTheme#81202c9 peer:InputPeer theme:InputChatTheme = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Private chat where to change theme |
| Theme | InputChatTheme | The theme to set. |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | EMOJI_INVALID | The specified theme emoji is valid. |
| 400 | EMOJI_NOT_MODIFIED | The theme wasn't changed. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// MessagesSetChatTheme - positional arguments result, err := client.MessagesSetChatTheme(&tg.InputPeerUser{UserID: int64(123456789)}, &tg.InputChatTheme{}) if err != nil { // handle error } // result is *tg.Updates