Skip to content

Commit 42f9a88

Browse files
committed
TASK: Add some logging when starting the bot
1 parent 3840ee4 commit 42f9a88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,10 @@ def restart(bot, update):
480480
if USE_WEBHOOK:
481481
updater.start_webhook(listen="127.0.0.1", port=WEBHOOK_PORT, url_path=BOT_TOKEN, cert=CERTPATH, webhook_url=WEBHOOK_URL)
482482
updater.bot.set_webhook(WEBHOOK_URL)
483+
logger.info("Started webhook server!")
483484
else:
484485
updater.start_polling()
486+
logger.info("Started polling!")
485487

486488
logger.info("Bot started as @{}".format(updater.bot.username))
487489
updater.idle()

0 commit comments

Comments
 (0)