You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked through all the documentation and didn't find anything like that, I was confused. I just wanted to observe whenever a new message arrived on a Telegram channel so that I could activate automations based on the messages that arrived.
The text was updated successfully, but these errors were encountered:
import{NewMessage}from'telegram/events'constcallbackFunction=async(event:any)=>{eventHandler(event);//example function}Client.addEventHandler(callbackFunction,newNewMessage({incoming: true,channels: ['@something','@somthing2']}))//if you want to remove the event for some reason Client.removeEventHandler(callbackFunction)
I looked through all the documentation and didn't find anything like that, I was confused. I just wanted to observe whenever a new message arrived on a Telegram channel so that I could activate automations based on the messages that arrived.
The text was updated successfully, but these errors were encountered: