This commit is contained in:
2
main.py
2
main.py
@@ -80,7 +80,7 @@ def main():
|
||||
if not TELEGRAM_TOKEN:
|
||||
print("Ошибка: TELEGRAM_TOKEN не найден в переменных окружения.")
|
||||
return
|
||||
sync_to_async(init_db())
|
||||
# sync_to_async(init_db())
|
||||
application = Application.builder().token(TELEGRAM_TOKEN).build()
|
||||
application.add_handler(CommandHandler('start', start))
|
||||
application.add_handler(CommandHandler('help', help_command))
|
||||
|
||||
Reference in New Issue
Block a user