Categories
Telegrafjs: How to send messages without subscribing to something?
you need the bot to track changes in the local file and immediately send them to telegrams, without waiting for the user to request something
Answer the question
In order to leave comments, you need to log in
via node's fs const fs = require('fs'); fs.watchFile('url-to-file', (curr, prev) => { // code bot.telegram.sendMessage(chat-id, message); });
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question