skip to Main Content

I’m writing bot for telegram to gather some stats from group chat. I need to get info about every message (from the beginning of chat). I know how can i do it, but it’s a quite bad idea. I can use forwardMessage method, but i need second acc for it and i’m getting timeouted when i’m sending messages too fast (for one hour), so it’s a bit long way to collect stats for conversation that has over 2 million messages ;s I tried to set limit on 10 messages per second but i’m still getting timeouted, so idk how it works.
There must be other way to get JUST message info by id without forwarding it ;v I can’t find it in API.

2

Answers


  1. There has no API to do this at this time, you can suggest this idea to @BotSupport, before them added this feature, I am doing same thing like you.

    According to Bot FAQ, Telegram API rate limit 1/s pre chat, and global limit is 30/s.

    Login or Signup to reply.
  2. There is no way to do this with Telegram bot api, you can use ReadHistory Method of MadelineProto without the necessity to use forward message method

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