messageEntityCustomEmoji

Represents a custom emoji.
Note that this entity must wrap exactly one regular emoji (the one contained in documentAttributeCustomEmoji.alt) in the related text, otherwise the server will ignore it.

messageEntityCustomEmoji#c8cf05f8 offset:int length:int document_id:long = MessageEntity;

Parameters

Name Type Description
offset int Offset of message entity within message (in UTF-16 code units)
length int Length of message entity within message (in UTF-16 code units)
document_id long Document ID of the custom emoji, use messages.getCustomEmojiDocuments to fetch the emoji animation and the actual emoji it represents.

Type

MessageEntity

Related pages

Styled text with message entities

How to create styled text with message entities

Custom emojis

Telegram allows including animated and static custom emojis inside of messages.

messages.getCustomEmojiDocuments

Fetch custom emoji stickers ».

Returns a list of documents with the animated custom emoji in TGS format, and a documentAttributeCustomEmoji attribute with the original emoji and info about the emoji stickerset this custom emoji belongs to.

documentAttributeCustomEmoji

Info about a custom emoji

Go up