messages.setChatTheme
Change the chat theme of a certain chat, see here » for more info.
func (c *Client) MessagesSetChatTheme(ctx context.Context, request *MessagesSetChatThemeRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesSetChatTheme(ctx, &tg.MessagesSetChatThemeRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Private chat where to change theme |
Theme | InputChatThemeClass | yes | The theme to set. |
Returns
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. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.setChatTheme#81202c9