Skip to content

Commit

Permalink
fix: fixed import
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyreplus committed Nov 26, 2024
1 parent a553321 commit 3d2c08f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions bot.py
Original file line number Diff line number Diff line change
@@ -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")

Expand Down Expand Up @@ -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()

0 comments on commit 3d2c08f

Please sign in to comment.