Markdown formatting + some fixes
This commit is contained in:
parent
1ec0af7cdb
commit
57154bcb70
8 changed files with 56 additions and 63 deletions
|
@ -2,10 +2,11 @@ module.exports = function(bot, msg) {
|
|||
const chatId = msg.chat.id;
|
||||
const userName = msg.from.first_name;
|
||||
const userId = msg.from.id;
|
||||
const lynxProfilePhoto = 'https://graph.org/file/10452df450f13ffb968c5.jpg';
|
||||
|
||||
const message = `Hello! I am Lynx!\nI was made with love by Lucas Gabriel (lucmsilva)!\n\nSee /help for the bot commands!`
|
||||
const message = `*Hello! I am Lynx!*\nI was made with love by Lucas Gabriel (lucmsilva)!\n\nSee /help for the bot commands!`;
|
||||
|
||||
bot.sendMessage(chatId, message)
|
||||
bot.sendPhoto(chatId, lynxProfilePhoto, { caption: message, parse_mode: 'Markdown' } )
|
||||
.catch(error => console.error('ERROR: Message cannot be sent:', error));
|
||||
console.log(`INFO: /start executed by ${userName}, ${userId}`)
|
||||
}
|
||||
console.log(`INFO: /start executed by ${userName}, ${userId}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue