mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-24 16:17:37 +01:00
Fix misspelling of separate
parent
a73c422899
commit
7e1292898d
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ If you're done playing around, stop the bot with:
|
|||
>>> updater.stop()
|
||||
```
|
||||
|
||||
**Note:** As you have read earlier, the `Updater` runs in a seperate thread. That is very nice for this tutorial, but if you are writing a script, you probably want to stop the Bot by pressing Ctrl+C or sending a signal to the Bot process. To do that, use `updater.idle()`. It blocks execution until one of those two things occur, then calls `updater.stop()` and then continues execution of the script.
|
||||
**Note:** As you have read earlier, the `Updater` runs in a separate thread. That is very nice for this tutorial, but if you are writing a script, you probably want to stop the Bot by pressing Ctrl+C or sending a signal to the Bot process. To do that, use `updater.idle()`. It blocks execution until one of those two things occur, then calls `updater.stop()` and then continues execution of the script.
|
||||
|
||||
#### What to read next?
|
||||
Learn about the library exceptions and best practices in [Exception Handling](https://github.com/python-telegram-bot/python-telegram-bot/wiki/Exception-Handling).
|
||||
|
|
Loading…
Reference in a new issue