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
DarkboolWhether to install the dark version
ThemeInputThemeClassTheme to install
FormatstringTheme format, a string that identifies the theming engines supported by the client
BaseThemeBaseThemeClassIndicates a basic theme provided by all clients

Returns

bool

References