Layer 220
method Users
account.installTheme#c727bb3b flags:# dark:flags.0?true theme:flags.1?InputTheme format:flags.2?string base_theme:flags.3?BaseTheme = Bool;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Dark flags.0?true Whether to install the dark version
Theme flags.1?InputTheme Theme to install
Format flags.2?string Theme format, a string that identifies the theming engines supported by the client
BaseTheme flags.3?BaseTheme Indicates a basic theme provided by all clients

Returns

Bool

Gogram Example

// AccountInstallTheme - using Params struct
result, err := client.AccountInstallTheme(&tg.AccountInstallThemeParams{

    // Optional fields:
    // Dark: true,
    // Theme: &tg.InputTheme{},
    // Format: "...",
    // BaseTheme: &tg.BaseTheme{},
})
if err != nil {
    // handle error
}
// result is *tg.Bool