MadelineProtoDocs/docs/API_docs/constructors/documentAttributeCustomEmoji.md
2024-05-01 14:53:46 +02:00

1.3 KiB

title description nav_exclude image
documentAttributeCustomEmoji Info about a custom emoji true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: documentAttributeCustomEmoji

Back to constructors index

Info about a custom emoji

Attributes:

Name Type Required Description
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.
alt string Yes The actual emoji
stickerset InputStickerSet Optional The emoji stickerset to which this emoji belongs.

Type: DocumentAttribute

Example:

$documentAttributeCustomEmoji = ['_' => 'documentAttributeCustomEmoji', 'free' => Bool, 'text_color' => Bool, 'alt' => 'string', 'stickerset' => InputStickerSet];