9 lines
999 B
JavaScript
9 lines
999 B
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\nPlease PM me @" + process.env.BOT_USERNAME + " to find out all needed information about our service before asking an admin or posting in here.\n\nIf you do ask questions, and its obvious you have not spoken to me, you will make the admins very unhappy. This is IPTV, admins don't have time for hand holding.!!!\n\nPlease know that this is a Private IPTV group and you have 24 hours to purchase a sub with us. If you don't make a purchase by then please leave the room or you will be removed. Thanks", { parse_mode: "HTML" });
|
|
logger.info("ID - " + msg.new_chat_member.id + " First Name - " + msg.new_chat_member.first_name + " joined the group");
|
|
}
|
|
}; |