Layer 220
WallPaperNoFile
Represents a wallpaper only based on colors/gradients.
constructor
wallPaperNoFile#e0804116 id:long flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper;
Parameters
| Name | Type | Description |
|---|---|---|
| Id | long | Wallpaper ID |
| Flags | # | Flags, see TL conditional fields |
| Default | flags.1?true | Whether this is the default wallpaper |
| Dark | flags.4?true | Whether this wallpaper should be used in dark mode. |
| Settings | flags.2?WallPaperSettings | Info on how to generate the wallpaper. |
Returns
WallPaperGogram Example
// Creating WallPaperNoFile constructor obj := &tg.WallPaperNoFile{ Id: int64(0), // Optional fields: // Default: true, // Dark: true, // Settings: &tg.WallPaperSettings{}, }