2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-28 20:57:52 +00:00
the-guard-bot/bot/index.js
2018-02-10 20:20:17 +01:00

13 lines
229 B
JavaScript

'use strict';
const Telegraf = require('telegraf');
const config = require('../config');
const bot = new Telegraf(config.token);
if (process.env.NODE_ENV === 'development') {
bot.polling.offset = -1;
}
module.exports = bot;