migrations + util scripts
This commit is contained in:
2
main.py
2
main.py
@@ -10,6 +10,7 @@ from dotenv import load_dotenv
|
||||
from db import AsyncSessionLocal, init_db
|
||||
from models import Admin, Channel, Group, Button
|
||||
from asyncio import run as sync_to_async
|
||||
from handlers.admin_panel import admin_panel_conv
|
||||
load_dotenv()
|
||||
TELEGRAM_TOKEN = os.getenv('TELEGRAM_TOKEN')
|
||||
|
||||
@@ -91,6 +92,7 @@ def main():
|
||||
application.add_handler(channel_buttons_conv)
|
||||
application.add_handler(CommandHandler('edit_button', edit_button))
|
||||
application.add_handler(CommandHandler('del_button', del_button))
|
||||
application.add_handler(admin_panel_conv)
|
||||
import sys
|
||||
import asyncio
|
||||
if sys.platform.startswith('win'):
|
||||
|
||||
Reference in New Issue
Block a user