BBLBTV_Suzie/data/bot/functions/welcomeMesage.js

9 lines
999 B
JavaScript
Raw Normal View History

2020-06-30 13:34:58 +01:00
const channel = process.env.CHANNEL
2020-06-25 19:45:38 +01:00
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>"
2021-01-30 15:03:12 +00:00
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" });
2020-06-25 19:45:38 +01:00
logger.info("ID - " + msg.new_chat_member.id + " First Name - " + msg.new_chat_member.first_name + " joined the group");
}
};