Skip to main content

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

NameTypeRequiredDescription
FormatstringyesTheme format, a string that identifies the theming engines supported by the client
ThemeInputThemeClassyesTheme

Returns

*Theme

Possible errors

CodeTypeDescription
400THEME_FORMAT_INVALIDInvalid theme format provided.
400THEME_INVALIDInvalid theme provided.
400THEME_SLUG_INVALIDThe specified theme slug is invalid.

References