diff options
author | clarkzjw <[email protected]> | 2023-02-21 23:39:21 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-21 23:39:21 -0800 |
commit | 8e83ba6c232172956f4d399e7bfdbe4e832e0536 (patch) | |
tree | a4b45633455692257149ed498f9b5cc5ec548ad7 /bot.py | |
parent | 3a76618d0f46c7e28641b74a869544661c504e21 (diff) | |
download | swarm2fediverse-8e83ba6c232172956f4d399e7bfdbe4e832e0536.tar.gz |
optimize imports
Diffstat (limited to 'bot.py')
-rw-r--r-- | bot.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,8 +1,12 @@ | |||
1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python |
2 | 2 | ||
3 | import logging | ||
4 | from callback import * | ||
5 | from telegram.ext import Application, CallbackQueryHandler, CommandHandler, MessageHandler, filters, ConversationHandler | 3 | from telegram.ext import Application, CallbackQueryHandler, CommandHandler, MessageHandler, filters, ConversationHandler |
4 | import logging | ||
5 | from callback import callback_skip_media, callback_location_sharing, callback_manual_location, \ | ||
6 | callback_location_confirmation, callback_location_keyword_search, callback_skip_location_keyword, \ | ||
7 | callback_add_comment, callback_skip_comment, callback_add_media | ||
8 | from config import WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, ADD_MEDIA, ADD_COMMENT, BOT_TOKEN | ||
9 | from command import start_command, cancel_command, help_command | ||
6 | 10 | ||
7 | logging.basicConfig( | 11 | logging.basicConfig( |
8 | format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=logging.INFO | 12 | format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=logging.INFO |