Answer the question
In order to leave comments, you need to log in
Telegram bot in PHP, how can I get message content by knowing its id?
Good day to all, I am writing a bot in php in a telegram, and I ran into a task, I need to take data from the last SMS and work with it. But here's the problem, after studying the documentation, and googling, I realized that there is a method of copying + sending sms, answering sms, but there is no receiving sms by id in the api.
Hence the question, tell me please, maybe I just didn’t see it and this can be done with simple manipulations through the api?
And if not, then the prospect of writing all SMS to a file or database does not please me very much.
Maybe someone faced a similar issue?
PS I need information from SMS to determine where a person sends SMS, to fill in information in the database, maybe this is not the best method, but I see the essence like this:
command pressed -> SMS sent by bot -> response sent to bot by user -> check SMS from bot, does it match? - excellent - we write down the data that the user entered, and write to him that everything is fine
Answer the question
In order to leave comments, you need to log in
There is no such functionality in the Telegram API, you need to store the history on your own
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question