mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-10-23 17:36:26 +02:00
add persistence
parent
fa1710c658
commit
2483eff4aa
1 changed files with 6 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
|||
* [ConversationHandler](#conversationhandler)
|
||||
* [Filters in handlers](#filters-in-handlers)
|
||||
* [Special note about regex filters](#special-note-about-regex-filters)
|
||||
* [Persistence](#persistence)
|
||||
|
||||
# Context based callbacks
|
||||
The biggest change in this release is context based callbacks. When running your bot you will probably see a warning like the following:
|
||||
|
@ -162,4 +163,8 @@ This would make `context.matches` equal a list of regex matches, but only if the
|
|||
* it will be a list of two matches. The first one will be `test` and the second one `it`.
|
||||
Note that in the last case, the order is the order that the filters were executed in, and not necessarily left to right.
|
||||
|
||||
Also note that `context.match` is a shortcut for `context.matches[0]`. Very useful when you are only interested in the first match.
|
||||
Also note that `context.match` is a shortcut for `context.matches[0]`. Very useful when you are only interested in the first match.
|
||||
|
||||
***
|
||||
# Persistence
|
||||
In version 12 we introduce persistence to the bot's mechanics. If you want to use this please read the [wiki page](https://github.com/python-telegram-bot/python-telegram-bot/wiki/Making-your-bot-persistent) dedicated to persistence.
|
Loading…
Reference in a new issue