diff options
author | clarkzjw <[email protected]> | 2023-02-22 11:08:15 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-22 11:08:15 -0800 |
commit | eab21831cf13c9afdafc59adde32c85b9716e76b (patch) | |
tree | faaf96f2ccab196a4eb307a40886ed1ad32b750c /bot.py | |
parent | 0590292da6eec52e6f569749037c8f8f7bdd948e (diff) | |
download | swarm2fediverse-eab21831cf13c9afdafc59adde32c85b9716e76b.tar.gz |
fix /cancel flow
Diffstat (limited to 'bot.py')
-rw-r--r-- | bot.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -55,15 +55,15 @@ def main() -> None: | |||
55 | MessageHandler(filters.LOCATION, callback_location_sharing), | 55 | MessageHandler(filters.LOCATION, callback_location_sharing), |
56 | ], | 56 | ], |
57 | LOCATION_SEARCH_KEYWORD: [ | 57 | LOCATION_SEARCH_KEYWORD: [ |
58 | MessageHandler(filters.TEXT, callback_location_keyword_search), | 58 | MessageHandler(filters.TEXT & ~filters.COMMAND, callback_location_keyword_search), |
59 | CallbackQueryHandler(callback_skip_location_keyword), | 59 | CallbackQueryHandler(callback_skip_location_keyword), |
60 | ], | 60 | ], |
61 | LOCATION_CONFIRMATION: [ | 61 | LOCATION_CONFIRMATION: [ |
62 | CallbackQueryHandler(callback_location_confirmation), | 62 | CallbackQueryHandler(callback_location_confirmation), |
63 | MessageHandler(filters.TEXT, callback_manual_location) | 63 | MessageHandler(filters.TEXT & ~filters.COMMAND, callback_manual_location) |
64 | ], | 64 | ], |
65 | ADD_COMMENT: [ | 65 | ADD_COMMENT: [ |
66 | MessageHandler(filters.TEXT, callback_add_comment), | 66 | MessageHandler(filters.TEXT & ~filters.COMMAND, callback_add_comment), |
67 | CallbackQueryHandler(callback_skip_comment), | 67 | CallbackQueryHandler(callback_skip_comment), |
68 | ], | 68 | ], |
69 | ADD_MEDIA: [MessageHandler(filters.PHOTO, callback_add_media), | 69 | ADD_MEDIA: [MessageHandler(filters.PHOTO, callback_add_media), |