Telegram Shell. Remote access over Telegram bot API.
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.

15 lines
286 B

7 years ago
const Telegraf = require('telegraf');
const config = require('./config')
const bot = new Telegraf(config.apiKey)
bot.command('start', ctx => {
7 years ago
return ctx.reply('Bot succesfully started!');
7 years ago
})
bot.hears('hi', ctx => {
7 years ago
return ctx.reply('Hey!, How are you?');
7 years ago
})
bot.startPolling();