Layer 220
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
Flags # Flags, see TL conditional fields
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

WallPaper

Gogram Example

// Creating WallPaper constructor
obj := &tg.WallPaper{
    Id: int64(0),
    AccessHash: int64(0),
    Slug: "...",
    Document: &tg.Document{},

    // Optional fields:
    // Creator: true,
    // Default: true,
    // Pattern: true,
    // Dark: true,
    // ... more optional fields
}