DocumentAttributeCustomEmoji
- class pyrogram.raw.types.DocumentAttributeCustomEmoji
Info about a custom emoji
Constructor of
DocumentAttribute.- Details:
Layer:
223ID:
FD149899
- Parameters:
alt (
str) – The actual emojistickerset (
InputStickerSet) – The emoji stickerset to which this emoji belongs.free (
bool, optional) – Whether this custom emoji can be sent by non-Premium userstext_color (
bool, optional) – Whether the color of this TGS custom emoji should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context.
TL Schema
documentAttributeCustomEmoji#fd149899
flags:#
free:flags.0?true
text_color:flags.1?true
alt:string
stickerset:InputStickerSet
= DocumentAttribute
Parameter Tree
DocumentAttributeCustomEmoji
├── free →
true (optional)├── text_color →
true (optional)├── alt →
string└── stickerset →
InputStickerSet│ ├── id →
long│ └── access_hash →
long│ └── short_name →
string│ └── emoticon →
stringExample
DocumentAttributeCustomEmoji(
alt="text",
stickerset=InputStickerSetEmpty(),
)