Skip to content

Commit

Permalink
Update bot_manager.py (ehForwarderBot#113)
Browse files Browse the repository at this point in the history
remove bot.set_webhook
  • Loading branch information
JamzumSum committed Nov 20, 2021
1 parent 4906a45 commit 45a1d6d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions efb_telegram_master/bot_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,6 @@ def __init__(self, channel: 'TelegramChannel'):
if isinstance(config.get('webhook'), dict):
self.logger.debug("Setting up webhook...")
self.webhook = True
webhook_conf = config['webhook']
if webhook_conf.get('set_webhook'):
set_webhook = webhook_conf['set_webhook']
if set_webhook.get('certificate'):
set_webhook['certificate'] = open(set_webhook['certificate'], 'rb')
self.logger.debug("Setting webhook URL...")
self.updater.bot.set_webhook(**set_webhook)
self.logger.debug("Webhook URL is set...")
self.logger.debug("Webhook is set...")

self.logger.debug("Checking connection to Telegram bot API...")
Expand Down

0 comments on commit 45a1d6d

Please sign in to comment.