Clear Telegram channel for changes
Can anyone point me to a way to programmatically check for changes in the Telegram room? I cannot decrypt the API. I want to do something like:
telegram.onMessageReceived('room_id', (msg) => {
console.log(msg.content);
}
I usually use Python, but open to using NodeJS because I want it to always work, tracking changes on the Ubuntu server.
As far as I can find on the internet, everything points to the bot API, but as I understand it, it will only be notified of updates to messages to the bot. I want to control public rooms where I cannot add a bot as an administrator since I have not created a room. Or is there a way to add a bot to public rooms? I do not think so.
Also, the room that I want to control does not allow anyone to communicate. It just notifies subscribers.
I've read these SOs so far and am still confused:
Can Telegram bonus read channel messages
source to share