the original sentence didn't sound grammatically correct,

Aron Lawrence 2019-03-29 20:47:35 -04:00
parent 7ba5110ed2
commit 5f7e427aac

@ -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)`)