skip to Main Content

This is the code am using to send a custom emoji in JS using grammy.js but it doesn’t really work.

const message = "🚀 dsfs";
teleBot.api.sendMessage(CHANNEL_ID || "", message, {
  entities: [
    {
      type: "custom_emoji",
      length: message.length,
      offset: 0,
      custom_emoji_id: "5100686784019301387",
    },
  ],
});

I have gone through a few discussions around the same topic –

How to send custom emoji from Bot in Telegram

https://github.com/python-telegram-bot/python-telegram-bot/discussions/3375

Both of these mention buying a username on Fragment for 5000 TON ($44k) and then applying it to the bot. Is this the only method or is there something much simpler as telegram premium only costs like $33/year.

Can a userbot be used to send custom emojis?

2

Answers


  1. Unfortunately not! There’s no other method to send custom emojis than purchasing your bot a username from Fragment.

    Pretty harsh decision from Telegram for sure.

    Login or Signup to reply.
  2. Your bot already has an username, you’ve added that when creating the bot by the botFather.

    The Fragment way of retrieving a username is only if you want to buy an username from another user, it’s not necessary tho.

    You can find the bots username by talking to the botFather, or check the personal conversation with your bot and you’ll find it in the sidebar.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search