When I use file_get_contents function in PHP to get UPDATES of my Telegram Bot, I know how to get first Chat ID or Text But this page is not just for a one user & every user that types a text, comes to this page. Also every user has its Chat ID & Text. So How can I detect the latest Text & Chat ID to react to that ? For Example: When I use this code :
$Updates['result'][0]['message']['chat']['id']
It gets the first user Chat ID that has typed in my Bot. When I react to his text, I will send my message to the latest USER uses my bot ... How can I do that ?