From 8e83ba6c232172956f4d399e7bfdbe4e832e0536 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Tue, 21 Feb 2023 23:39:21 -0800 Subject: optimize imports --- command.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'command.py') diff --git a/command.py b/command.py index 753b0a2..09340fc 100644 --- a/command.py +++ b/command.py @@ -1,13 +1,8 @@ -from config import * +from telegram import Update +from telegram.constants import ParseMode +from telegram.ext import ContextTypes, ConversationHandler -from telegram import __version__ as TG_VER -from typing import cast, List -from telegram import InlineKeyboardButton, InlineKeyboardMarkup, Update, ReplyKeyboardMarkup, KeyboardButton -from telegram.ext import Application, CallbackQueryHandler, CommandHandler, ContextTypes, MessageHandler, filters, \ - ConversationHandler, CallbackContext -from telegram.constants import ParseMode, ChatAction -from telegram.error import BadRequest -from telegram import InlineKeyboardButton, InlineKeyboardMarkup, ReplyKeyboardRemove +from config import * async def start_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: -- cgit v1.2.3