9 lines
1.2 KiB
JavaScript
9 lines
1.2 KiB
JavaScript
const channel = process.env.CHANNEL
|
|
|
|
module.exports = {
|
|
welcomeMessage: (bot, msg, logger) => {
|
|
const newUserMention = "<a href=\"tg:\/\/user?id=" + msg.new_chat_member.id + "\">@" + msg.new_chat_member.first_name + "<\/a>"
|
|
bot.sendMessage(msg.chat.id, "Hello " + newUserMention + ", Welcome to " + channel + ". \n\nWe have many subscriptions on sale here. Please have a look at the content of all our room subs by <a href='https://t.me/c/1380372404/53456/53457'>PRESSING HERE</a>\n\n<a href='https://t.me/c/1380372404/53452/53454'>PRESS HERE</a> for the pricelist of those subs.\n\nIf you do have questions, please ask in here the general chat where you will be answered as quickly as possible. Please know that this is IPTV, which means you need to be willing to learn a little bit about how everything works and how to fix and maintain your device in order to get the best from it. Don't worry though because we have easy step by step posters and help videos for everything you will need.!!!", { parse_mode: "HTML" });
|
|
logger.info("ID - " + msg.new_chat_member.id + " First Name - " + msg.new_chat_member.first_name + " joined the group");
|
|
}
|
|
}; |