diff options
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 |