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
| Name | Type | Required | Description |
|---|---|---|---|
Dark | bool | — | Whether to install the dark version |
Theme | InputThemeClass | — | Theme to install |
Format | string | — | Theme format, a string that identifies the theming engines supported by the client |
BaseTheme | BaseThemeClass | — | Indicates a basic theme provided by all clients |
Returns
bool
References
- Official documentation
- Generated Go reference
- TL definition:
account.installTheme#c727bb3b