skip to Main Content

I currently made bot with node-telegram-bot-api and a issue I face was I used emojis on a few messages the bot sends and realised few emojis of them are not supported in desktop. Can I detect if user sending message to my bot is in desktop so that I can alternate the replies accordingly?

2

Answers


  1. The simple answer for this is No. There’s no way of detecting what platform the user on the other side is on in neither Bot API nor MTProto API.

    Login or Signup to reply.
  2. No, There is no possibility to get user Device Name.

    Check User Object: (https://core.telegram.org/bots/api#user)
    Check Chat Object: (https://core.telegram.org/bots/api#chat)
    CHeck Message Object: (https://core.telegram.org/bots/api#message)

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