From 185fad2a67dd2dbab9458083bcac5eeae9a2071d Mon Sep 17 00:00:00 2001 From: Harshil <37377066+harshil21@users.noreply.github.com> Date: Wed, 20 Apr 2022 19:31:14 +0530 Subject: [PATCH] adapt to asyncio & v14 changes --- Arbitrary-callback_data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Arbitrary-callback_data.md b/Arbitrary-callback_data.md index 68339ae..4344adb 100644 --- a/Arbitrary-callback_data.md +++ b/Arbitrary-callback_data.md @@ -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 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