Reputation: 103
How to find the 𝘯th message in telegram with the python-telegram-bot API wrapper? I read the documentation fully and looked at tutorials such as this one but to no avail. It follows an updater mechanism so I can only receive new messages and reply to them.
I know I can create a list in which I store all the updates as they come but there's going to be millions of long messages and I was wondering if there was any proper way to do this. I am new to this wrapper and would really appreciate any sort of help. So, how would I write a program to find the 𝘯th message in a chat with my bot? The message can be either by the user or the bot.
Upvotes: 1
Views: 920
Reputation: 7060
As already answered here, the Telegram Bot API doesn't offer a get_message_by_id
method or similar functionality and so python-telegram-bot
can't either. So if you want to get all the details for every message by its message id, you have no choice than keeping track of them yourself.
Upvotes: 1