Layer 227
method Users
account.updateTheme#2bf40ccc flags:# format:string theme:InputTheme slug:flags.0?string title:flags.1?string document:flags.2?InputDocument settings:flags.3?Vector<InputThemeSettings> = Theme;

Parameters

Name Type Description
Format string Theme format, a string that identifies the theming engines supported by the client
Theme InputTheme Theme to update
Slug flags .0? string Unique theme ID
Title flags .1? string Theme name
Document flags .2? InputDocument Theme file
Settings flags .3? Vector < InputThemeSettings > Theme settings

Returns

Theme

Gogram Example

// AccountUpdateTheme - using Params struct
result, err := client.AccountUpdateTheme(&tg.AccountUpdateThemeParams{
    Format: "Hello, World!",
    Theme: &tg.InputTheme{},
    Slug: "Hello, World!",
    Title: "Hello, World!",
    Document: nil,
    Settings: nil,
})
if err != nil {
    // handle error
}
// result is *tg.Theme

Possible Errors

Code Type Description
400 THEME_INVALID Invalid theme provided.