No polling, just sending messages? #25
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hey there,
I want to use the node-telegram-api for sending notifications from my admin panel (of a nodejs project).
I've read trough all of the docs but I couldn't find out the most efficient way to send messages without polling all time.
Should I use code like
or is there a way to start the bot at the beginning and just stop polling updates?
Or can I simply send messages without starting?
Thanks in advance
Hey there!
I think it should work fine if you don't run
bot.start()
,bot.start
essentially starts polling and nothing else.