17 lines
802 B
JavaScript
17 lines
802 B
JavaScript
module.exports = {
|
|
help: (bot, msg, logger) => {
|
|
bot.on('message', (msg) => {
|
|
const updatesGroup = "/sub_status";
|
|
const checkName = updatesGroup + name
|
|
if (msg.text && msg.text.toString() === checkName) {
|
|
// logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Got the updates group info");
|
|
bot.sendMessage(msg.chat.id, "The updates groups can be found here")
|
|
.then(() => {
|
|
return bot.sendMessage(msg.chat.id, "https://t.me/joinchat/AAAAAFDxZ2rzgAW5acahxA").then(() => {
|
|
return bot.sendMessage(msg.chat.id, "Please join for BBLBTV updates")
|
|
})
|
|
})
|
|
}
|
|
})
|
|
}
|
|
}; |