aboutsummaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-22 11:08:15 -0800
committerclarkzjw <[email protected]>2023-02-22 11:08:15 -0800
commiteab21831cf13c9afdafc59adde32c85b9716e76b (patch)
treefaaf96f2ccab196a4eb307a40886ed1ad32b750c /bot.py
parent0590292da6eec52e6f569749037c8f8f7bdd948e (diff)
downloadswarm2fediverse-eab21831cf13c9afdafc59adde32c85b9716e76b.tar.gz
fix /cancel flow
Diffstat (limited to 'bot.py')
-rw-r--r--bot.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot.py b/bot.py
index cd0d4ea..02182cd 100644
--- a/bot.py
+++ b/bot.py
@@ -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),
Powered by cgit v1.2.3 (git 2.41.0)