mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 07:06:26 +01:00
adapt to asyncio & v14 changes
parent
09756ca065
commit
185fad2a67
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ This means two things for you:
|
||||||
|
|
||||||
* a regex expression, which will be used, if the `callback_data` is in fact a string
|
* a regex expression, which will be used, if the `callback_data` is in fact a string
|
||||||
* a callable accepting the `callback_data` as only argument. You can perform any kinds of tests on the `callback_data` and return `True` ore `False` accordingly
|
* a callable accepting the `callback_data` as only argument. You can perform any kinds of tests on the `callback_data` and return `True` ore `False` accordingly
|
||||||
* a type. In that case the `CallbackQuery` will be handled, if the `callback_data` is an instance of that type. Btw: This allows you to inform users, when a buttons' data has been dropped from cache. With `CallbackQueryHandler(callback, pattern=InvalidCallbackData)` you can e.g., call `update.callback_query.answer(text='Button is no longer valid', show_alert=True)` to inform the user.
|
* a type. In that case the `CallbackQuery` will be handled, if the `callback_data` is an instance of that type. Btw: This allows you to inform users, when a buttons' data has been dropped from cache. With `CallbackQueryHandler(callback, pattern=InvalidCallbackData)` you can e.g., call `await update.callback_query.answer(text='Button is no longer valid', show_alert=True)` to inform the user.
|
||||||
|
|
||||||
## Memory Usage
|
## Memory Usage
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue