From 3d2c08ff6bee464d5e193a035e3ff4a3f32d2ee2 Mon Sep 17 00:00:00 2001 From: Lyreplus Date: Tue, 26 Nov 2024 21:42:04 +0100 Subject: [PATCH] fix: fixed import --- bot.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bot.py b/bot.py index 797db27..e0d9140 100644 --- a/bot.py +++ b/bot.py @@ -1,10 +1,8 @@ from database import db from telegram import Update from telegram.ext import Application, CommandHandler, ContextTypes -import requests -from telegram.constants import ParseMode import os -from commands import handle_odg, ore, start +from commands import commands BOT_TOKEN = os.getenv("BOT_TOKEN") @@ -43,10 +41,10 @@ def main(): application = Application.builder().token(BOT_TOKEN).build() application.add_handler(CommandHandler("start", deep_linked_level_1)) - application.add_handler(CommandHandler("odg", handle_odg)) + application.add_handler(CommandHandler("odg", commands.handle_odg)) application.add_handler(CommandHandler("chatid", get_chat_id_topic)) - application.add_handler(CommandHandler("ore", ore)) - application.add_handler(CommandHandler("start", start)) + application.add_handler(CommandHandler("ore", commands.ore)) + application.add_handler(CommandHandler("start", commands.start)) application.run_polling() main()