Layer 220
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

Updates

Possible 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