You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
286 B
14 lines
286 B
const Telegraf = require('telegraf');
|
|
const config = require('./config')
|
|
|
|
const bot = new Telegraf(config.apiKey)
|
|
|
|
bot.command('start', ctx => {
|
|
return ctx.reply('Bot succesfully started!');
|
|
})
|
|
|
|
bot.hears('hi', ctx => {
|
|
return ctx.reply('Hey!, How are you?');
|
|
})
|
|
|
|
bot.startPolling();
|
|
|