Layer 227
WallPaperObj
Represents a wallpaper based on an image.
constructor
wallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper;
Parameters
| Name | Type | Description |
|---|---|---|
| Id | long | Identifier |
| Creator | flags .0? true | Whether we created this wallpaper |
| Default | flags .1? true | Whether this is the default wallpaper |
| Pattern | flags .3? true | Whether this is a pattern wallpaper |
| Dark | flags .4? true | Whether this wallpaper should be used in dark mode. |
| AccessHash | long | Access hash |
| Slug | string | Unique wallpaper ID, used when generating wallpaper links or importing wallpaper links. |
| Document | Document | The actual wallpaper |
| Settings | flags .2? WallPaperSettings | Info on how to generate the wallpaper, according to these instructions. |
Returns
WallPaperGogram Example
// Creating WallPaperObj constructor obj := &tg.WallPaperObj{ Id: int64(1234567890), Creator: nil, Default: nil, Pattern: nil, Dark: nil, AccessHash: int64(1234567890), // ... more required fields }