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
| Name | Type | Required | Description |
|---|---|---|---|
Emoticon | string | yes | The emoji |
Hash | int64 | yes | Hash used for caching, for more info click here. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | EMOTICON_EMPTY | The emoji is empty. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.searchCustomEmoji#2c11c0d7