{"size": 463, "ext": "js", "max_stars_repo_path": "bot.js", "max_stars_repo_name": "Djelnar/jobs-bot", "max_stars_repo_stars_event_min_datetime": "2017-07-22T20:02:39.000Z", "max_stars_repo_stars_event_max_datetime": "2019-07-07T20:44:57.000Z", "max_issues_repo_path": "bot.js", "max_issues_repo_name": "Djelnar/jobs-bot", "max_issues_repo_issues_event_min_datetime": "2017-08-30T06:38:12.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-09T13:40:02.000Z", "max_forks_repo_path": "bot.js", "max_forks_repo_name": "Djelnar/jobs-bot", "max_forks_repo_forks_event_min_datetime": "2019-04-26T15:52:02.000Z", "max_forks_repo_forks_event_max_datetime": "2020-02-10T21:54:08.000Z"}
{"max_stars_count": 15, "max_issues_count": 7, "max_forks_count": 3, "avg_line_length": 30.8666666667, "max_line_length": 92, "alphanum_fraction": 0.717062635}
const debug = require('debug')('jobs-bot:bot');
const TelegramBot = require('node-telegram-bot-api');

TelegramBot.prototype.deleteMessage = function deleteMessage(chatId, messageId, form = {}) {
  form.chat_id = chatId;
  form.message_id = messageId;
  return this._request('deleteMessage', { form });
};

debug('token', process.env.APP_BOT_TOKEN.split(':')[0]);

const bot = new TelegramBot(process.env.APP_BOT_TOKEN, { polling: true });

module.exports = bot;
