mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 07:06:26 +01:00
Change eh.start() to eh.start_polling()
This commit is contained in:
parent
ab313488ad
commit
ba3d174fde
2 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ def main():
|
|||
|
||||
# Start the Bot and store the update Queue,
|
||||
# so we can insert updates ourselves
|
||||
update_queue = eh.start(poll_interval=0.1, timeout=20)
|
||||
update_queue = eh.start_polling(poll_interval=0.1, timeout=20)
|
||||
|
||||
# Start CLI-Loop
|
||||
while True:
|
||||
|
|
|
@ -62,7 +62,7 @@ def main():
|
|||
bc.addErrorHandler(error)
|
||||
|
||||
# Start the Bot
|
||||
eh.start()
|
||||
eh.start_polling()
|
||||
|
||||
# Start CLI-Loop
|
||||
while True:
|
||||
|
|
Loading…
Reference in a new issue