diff --git a/server.js b/server.js new file mode 100644 index 0000000..c5e1ee4 --- /dev/null +++ b/server.js @@ -0,0 +1,16 @@ +const Telebot = require('telebot'); +const config = require('./config'); + +const bot = new Telebot({ + token: config.app.tokenBot, + usePlugins: ['askUser'], +}); + + +bot.on('/start', (msg) => { + const name = 'user'; + bot.sendMessage(msg.from.id, `hello ${name}`); +}); + + +bot.start();