UNPKG

calamarcopollo

Version:
17 lines (11 loc) 469 B
'use strict'; var _telegramBotApi = require('telegram-bot-api'); var _telegramBotApi2 = _interopRequireDefault(_telegramBotApi); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } const options = { token: process.env.TELEGRAM_TOKEN, updates: { enabled: true } }; const tg = new _telegramBotApi2.default(options); tg.getMe().then(data => console.log(data)).catch(err => console.error(err)); module.exports = tg;