Skip to main content

messages.searchCustomEmoji

Look for custom emojis associated to a UTF8 emoji

func (c *Client) MessagesSearchCustomEmoji(ctx context.Context, request *MessagesSearchCustomEmojiRequest) (EmojiListClass, error)

Calling this method

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

res, err := api.MessagesSearchCustomEmoji(ctx, &tg.MessagesSearchCustomEmojiRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // EmojiListClass
return nil
})

Parameters

NameTypeRequiredDescription
EmoticonstringyesThe emoji
Hashint64yesHash used for caching, for more info click here.

Returns

EmojiListClass

Possible errors

CodeTypeDescription
400EMOTICON_EMPTYThe emoji is empty.

References