Time trigger in telegraf js – Telegram API
I am making a Telegram bot with Telegraf framework in JavaScript with nodeJS. I want to send a message to the user every Monday morning at 9.00 AM. How can I make this time based trigger in telegraf js?
I am making a Telegram bot with Telegraf framework in JavaScript with nodeJS. I want to send a message to the user every Monday morning at 9.00 AM. How can I make this time based trigger in telegraf js?
I am attempting to send a message/photo message after a successful payment has been made, but I am thrown the following error: Error: Telegraf: "replyWithPhoto" isn't available for "pre_checkout_query::" My code as follows: bot.on('pre_checkout_query', (ctx) => { ctx.answerPreCheckoutQuery(true) .then(() =>…
I am creating a telegram bot using telegraf using wizards. I would like to have several wizards in my bot. How can I enter to another scene? I am using the below code and I am getting error Cannot read…
I am using node.js telegraf module to create a telegram bot. I am using the code below. var picture = (context)ctx.message.photo[0].file_id; var photo = `https://api.telegram.org/bot1234-ABCD/getFile?file_id=${picture}`; console.log(photo.file_path);