const TelegramBot = require('node-telegram-bot-api');
module.exports = class TelegramBot_ extends TelegramBot {
    constructor(config) {
        super(config.telegramBotToken, { polling: true });
    }
}

const TelegramBot = require('node-telegram-bot-api');
module.exports = class TelegramBot_ extends TelegramBot {
    constructor(config) {
        super(config.telegramBotToken, { polling: false });
    }
}

Disable polling messages on the telegram bot
Disable polling messages on the telegram bot

* Since the bot does not need to receive messages, disabling polling would
  not affect the program.
