mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
the original sentence didn't sound grammatically correct,
parent
7ba5110ed2
commit
5f7e427aac
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ three classes concerning persistence in bots have been added.
|
|||
If you want to create your own persistence class, please carefully read the docs on [BasePersistence](https://python-telegram-bot.readthedocs.io/en/latest/telegram.ext.basepersistence.html). It will tell you what methods you need to overwrite. If you've written a persistence class that could be of use to others (e.g. a general one covering all types of data). Please add it below.
|
||||
|
||||
## What do I need to change?
|
||||
To make your bot persistent you need to know the following.
|
||||
To make your bot persistent you need to do the following.
|
||||
|
||||
- Create a persistence object (e.g. `my_persistence = PicklePersistence(filename='my_file')`)
|
||||
- Construct Updater with the persistence (`Updater('TOKEN', persistence=my_persistence, use_context=True)`)
|
||||
|
|
Loading…
Reference in a new issue