Skip to main content

account.updateTheme

Update theme

func (c *Client) AccountUpdateTheme(ctx context.Context, request *AccountUpdateThemeRequest) (*Theme, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.AccountUpdateTheme(ctx, &tg.AccountUpdateThemeRequest{
// 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 to update
SlugstringUnique theme ID
TitlestringTheme name
DocumentInputDocumentClassTheme file
Settings[]InputThemeSettingsTheme settings

Returns

*Theme

Possible errors

CodeTypeDescription
400THEME_INVALIDInvalid theme provided.

References