skip to Main Content

We can get Telegram messages when they are complete and sent via long polling or webhooks, but is there a way to understand when the user has started typing?

I guess this is not a normal case for bots and I dont think there is a straight away method but could we fall back on the Telegram API for messaging apps for that?

2

Answers


  1. Chosen as BEST ANSWER

    Well, actually I found a solution in the current Bot API; inline queries. While they are not intended for this, inline queries send what the user types in to the bot in real-time, so you are alerted as soon as the first characters are typed in.


  2. There is a way in Telegram Core API, named: updateUserTyping.
    But there is not any way in Telegram Bot API yet (until today: 2016-10-17).

    If you type or send a file to the bot during these processes you do not get any message from Telegram in your webhook, but it’s possible they’ll add a new feature to detect user typing in future Bot API updates.

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