mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-11 13:19:57 +00:00
commit
318dce8e0b
@ -4,12 +4,12 @@ module.exports = function(bot, msg) {
|
|||||||
const userId = msg.from.id;
|
const userId = msg.from.id;
|
||||||
|
|
||||||
const message = `Hi! I am Lynx!\nI am a simple bot made entirely from scratch in Node.js by Lucas Gabriel (lucmsilva).\n\nSome commands to test:
|
const message = `Hi! I am Lynx!\nI am a simple bot made entirely from scratch in Node.js by Lucas Gabriel (lucmsilva).\n\nSome commands to test:
|
||||||
- /start: start the bot
|
• /start: start the bot
|
||||||
- /help: send this message
|
• /help: send this message
|
||||||
- /whois: send some information about yourself\n\nSee my source code in:
|
• /whois: send some information about yourself\n\nSee my source code in:
|
||||||
- https://github.com/lucmsilva651/lynx.\n\nThanks to all users, testers, contributors, and others. Without you, perhaps this bot wouldn't be possible.`;
|
• https://github.com/lucmsilva651/lynx.\n\nThanks to all users, testers, contributors, and others. Without you, perhaps this bot wouldn't be possible ❤️`;
|
||||||
|
|
||||||
bot.sendMessage(chatId, message)
|
bot.sendMessage(chatId, message, {disable_web_page_preview: true})
|
||||||
.catch(error => console.error('ERROR: Message cannot be send:', error));
|
.catch(error => console.error('ERROR: Message cannot be send:', error));
|
||||||
console.log(`INFO: /help executed by ${userName}, ${userId}`);
|
console.log(`INFO: /help executed by ${userName}, ${userId}`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user