7

Does exists any way to get bot's statistics with API or with web interface or with BotFather? Or I must to collect statistics by processing updates from bot API?

ps. Currently I store statistics in Redis by processing updates from bot API, but I wish find better way.

Nick
  • 9,735
  • 7
  • 59
  • 89

4 Answers4

5

As aleix said there is no official support. After several days of research I've found the solutions for all platform bots, including telegram:

aslantorret
  • 273
  • 4
  • 10
2

no, there is no official support from Telegram to do that. There are third party analytics like botan, you can get navigate via bot to your bots stats:

Andrii Abramov
  • 10,019
  • 9
  • 74
  • 96
aleix
  • 277
  • 5
  • 13
0

If it is your bot performance that you worry about and you bot is popular (~300 requests per min), Botfather will monitor the request/response rate and alert you if there is something wrong.

Check the Status alert section in Bot Intro.

mockingjay
  • 181
  • 1
  • 10
-1

no actually you cant! But the easiest way for getting statistics about the users is to save the chat_id to database or into simple txt file.

the best way for that is use php mysql function to insert each chat_id into 1 columns then send it to your chat_id ...!

SPiDev
  • 11
  • 1