mullwar / telebot

The easy way to write Telegram bots in Node.js
https://www.npmjs.com/package/telebot
MIT License
1.48k stars 270 forks source link

Send messages to group periodically #143

Open Hylance opened 6 years ago

Hylance commented 6 years ago

I want to build a telegram bot to send a message to a super group every couple of hours. Anyone has any idea how to realize that feature?

GregorGlinka commented 6 years ago

In my opinion you can use the Tick-Event to measure the time. After an hour you send to the Group and save the last time you send to the Group. And so on... You must know the id of the Group.

CarlosLopezES commented 6 years ago

https://github.com/mullwar/telebot/issues/125

cikaldev commented 3 years ago

i have done implement this functionality using node-cron same like #125