account.getTheme
Get theme information
func (c *Client) AccountGetTheme(ctx context.Context, request *AccountGetThemeRequest) (*Theme, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountGetTheme(ctx, &tg.AccountGetThemeRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *Theme
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Format | string | yes | Theme format, a string that identifies the theming engines supported by the client |
Theme | InputThemeClass | yes | Theme |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | THEME_FORMAT_INVALID | Invalid theme format provided. |
| 400 | THEME_INVALID | Invalid theme provided. |
| 400 | THEME_SLUG_INVALID | The specified theme slug is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.getTheme#3a5869ec