Skip to content

Commit

Permalink
logging how the bot is running
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigondec committed Oct 4, 2019
1 parent 3a937d6 commit 1a192a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ def run_web(self):

self.updater.bot.set_webhook(f"{self.server_url}/{self.token}")

logging.info('Bot está rodando!')
logging.info('Bot está rodando como um webserver!')
self.updater.idle()

def run_cmd(self):
"""Start the bot as a python script loop"""
self.updater.start_polling()

logging.info('Bot está rodando!')
logging.info('Bot está rodando como um script python!')
self.updater.idle()

0 comments on commit 1a192a4

Please sign in to comment.