I'm trying to send the custom_emoji through Telegram API using MessageEntity object.
Here is how I've tried to do it:
const message = 'π'
ctx.sendMessage({
text: message,
entities: [{
type: 'custom_emoji',
length: message.length,
offset: 0,
custom_emoji_id: '5389102131527556772'
}]
})
p.s. I'm using Telegraf TS, but it doesn't matter since it's just a basic function