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.
Question posted in Telegram API
A comprehensive official documentation can be found here.
A comprehensive official documentation can be found here.
2
Answers
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.
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