WallPaper
- class pyrogram.raw.types.WallPaper
Represents a wallpaper based on an image.
Constructor of
WallPaper.- Details:
Layer:
223ID:
A437C3ED
- Parameters:
id (
int64-bit) – Identifieraccess_hash (
int64-bit) – Access hashslug (
str) – Unique wallpaper ID, used when generating wallpaper links or importing wallpaper links.document (
Document) – The actual wallpapercreator (
bool, optional) – Whether we created this wallpaperdefault (
bool, optional) – Whether this is the default wallpaperpattern (
bool, optional) – Whether this is a pattern wallpaper »dark (
bool, optional) – Whether this wallpaper should be used in dark mode.settings (
WallPaperSettings, optional) – Info on how to generate the wallpaper, according to these instructions ».
- Functions:
This object can be returned by 3 functions.
Get info about a certain wallpaper
Create and upload a new wallpaper
Get info about multiple wallpapers
TL Schema
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
Parameter Tree
longtrue (optional)true (optional)true (optional)true (optional)longstringDocumentDocumentEmptylongDocumentlonglongbytesintstringlongVector < PhotoSize > (optional)PhotoSizeEmptystringPhotoSizestringintintintPhotoCachedSizestringintintbytesPhotoStrippedSizestringbytesPhotoSizeProgressivestringintintVector < int >PhotoPathSizestringbytesVector < VideoSize > (optional)VideoSizestringintintintdouble (optional)VideoSizeEmojiMarkuplongVector < int >VideoSizeStickerMarkupInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftslongVector < int >intVector < DocumentAttribute >intintDocumentAttributeStickertrue (optional)stringInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftsMaskCoords (optional)MaskCoordsDocumentAttributeVideotrue (optional)true (optional)true (optional)doubleintintint (optional)double (optional)string (optional)DocumentAttributeAudiotrue (optional)intstring (optional)string (optional)bytes (optional)stringtrue (optional)true (optional)stringInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetDiceInputStickerSetTonGiftsWallPaperSettings (optional)true (optional)true (optional)int (optional)int (optional)int (optional)int (optional)int (optional)int (optional)string (optional)Example
WallPaper(
id=0,
access_hash=0,
slug="text",
document=DocumentEmpty(id=0),
)