Link Search Menu Expand Document

Constructor: documentAttributeCustomEmoji

Back to constructors index

Info about a custom emoji

Attributes:

NameTypeRequiredDescription
freeBoolOptionalWhether this custom emoji can be sent by non-Premium users
text_colorBoolOptionalWhether 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.
altstringYesThe actual emoji
stickersetInputStickerSetOptionalThe emoji stickerset to which this emoji belongs.

Type: DocumentAttribute

Example:

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