Skip to main content

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.

func (c *Client) MessagesGetCustomEmojiDocuments(ctx context.Context, documentid []int64) ([]DocumentClass, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesGetCustomEmojiDocuments(ctx, documentid)
if err != nil {
return err
}
_ = res // []DocumentClass
return nil
})

Parameters

NameTypeRequiredDescription
DocumentID[]int64yesCustom emoji IDs from a messageEntityCustomEmoji.

Returns

[]DocumentClass

References