DocumentAttributeCustomEmoji

class pyrogram.raw.types.DocumentAttributeCustomEmoji

Info about a custom emoji

Constructor of DocumentAttribute.

Details:
  • Layer: 223

  • ID: FD149899

Parameters:
  • alt (str) – The actual emoji

  • stickerset (InputStickerSet) – The emoji stickerset to which this emoji belongs.

  • free (bool, optional) – Whether this custom emoji can be sent by non-Premium users

  • text_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
├── freetrue (optional)
├── text_colortrue (optional)
├── altstring
└── stickersetInputStickerSet
│ ├── idlong
│ └── access_hashlong
│ └── short_namestring
│ └── emoticonstring

Example

DocumentAttributeCustomEmoji(
    alt="text",
    stickerset=InputStickerSetEmpty(),
)