Layer 227
ThemeObj
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 |
|---|---|---|
| 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 | flags .3? Vector < ThemeSettings > | Theme settings |
| Emoticon | flags .6? string | Theme emoji |
| InstallsCount | flags .4? int | Installation count |
Returns
ThemeGogram Example
// Creating ThemeObj constructor obj := &tg.ThemeObj{ Creator: nil, Default: nil, ForChat: nil, Id: int64(1234567890), AccessHash: int64(1234567890), Slug: "Hello, World!", // ... more required fields }