diff --git a/examples/callback_data_factory.py b/examples/callback_data_factory.py index 9a8affe9..2335ea95 100644 --- a/examples/callback_data_factory.py +++ b/examples/callback_data_factory.py @@ -112,7 +112,7 @@ async def query_post_vote(query: types.CallbackQuery, callback_data: dict): @dp.errors_handler(exception=MessageNotModified) async def message_not_modified_handler(update, error): - return True + return True # errors_handler must return True if error was handled correctly if __name__ == '__main__': diff --git a/examples/callback_data_factory_simple.py b/examples/callback_data_factory_simple.py index 5fc9c548..a6d246d5 100644 --- a/examples/callback_data_factory_simple.py +++ b/examples/callback_data_factory_simple.py @@ -61,7 +61,7 @@ async def callback_vote_action(query: types.CallbackQuery, callback_data: dict): @dp.errors_handler(exception=MessageNotModified) # handle the cases when this exception raises async def message_not_modified_handler(update, error): - return True + return True # errors_handler must return True if error was handled correctly if __name__ == '__main__':