'Selenium Webhook equivalent / listen to new data from telegram without bot

I have a web scraping project that requires the scraper to wait for when there is new data. I thought about reverse engineering the websocket but that might take some time.

if you know how to work with the telegram websockets to get data without a bot I'd appreciate it

So what I will need to do is get the web scraper to wait for new messages on a telegram chat and only execute action when a new message is detected, it might need work with javascript event listeners or something but I wanted to ask for the most efficient solution for the given problem. thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source