Base files added
This commit is contained in:
commit
2eb6934b23
6 changed files with 1686 additions and 0 deletions
12
src/lynx_main.js
Normal file
12
src/lynx_main.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
const TelegramBot = require('node-telegram-bot-api');
|
||||
const token = process.env.TGBOT_TOKEN; // config.env
|
||||
const bot = new TelegramBot(token, { polling: true });
|
||||
|
||||
bot.on('message', (msg) => {
|
||||
const chatId = msg.chat.id;
|
||||
const messageText = msg.text;
|
||||
|
||||
if (messageText === '/start') {
|
||||
bot.sendMessage(chatId, "Welcome to Lynx!\n\nI was made with love by Lucas Gabriel (lucmsilva)!\n\nCheck out my source code:\nhttps://github.com/lucmsilva651/lynx");
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue