Skip to main content

account.installTheme

Install a theme

func (c *Client) AccountInstallTheme(ctx context.Context, request *AccountInstallThemeRequest) (bool, error)

Calling this method​

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

res, err := api.AccountInstallTheme(ctx, &tg.AccountInstallThemeRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters​

NameTypeRequiredDescription
Darkbool—Whether to install the dark version
ThemeInputThemeClass—Theme to install
Formatstring—Theme format, a string that identifies the theming engines supported by the client
BaseThemeBaseThemeClass—Indicates a basic theme provided by all clients

Returns​

bool

References​