Layer 220
Theme
Theme
constructor
theme#a00e67d6 flags:# creator:flags.0?true default:flags.1?true for_chat:flags.5?true id:long access_hash:long slug:string title:string document:flags.2?Document settings:flags.3?Vector<ThemeSettings> emoticon:flags.6?string installs_count:flags.4?int = Theme;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Creator | flags.0?true | Whether the current user is the creator of this theme |
| Default | flags.1?true | Whether this is the default theme |
| ForChat | flags.5?true | Whether this theme is meant to be used as a chat theme |
| Id | long | Theme ID |
| AccessHash | long | Theme access hash |
| Slug | string | Unique theme ID |
| Title | string | Theme name |
| Document | flags.2?Document | Theme |
| Settings | Vector<ThemeSettings> | Theme settings |
| Emoticon | flags.6?string | Theme emoji |
| InstallsCount | flags.4?int | Installation count |
Returns
ThemeGogram Example
// Creating Theme constructor obj := &tg.Theme{ Id: int64(0), AccessHash: int64(0), Slug: "...", Title: "...", // Optional fields: // Creator: true, // Default: true, // ForChat: true, // Document: &tg.Document{}, // ... more optional fields }