It's version 0.4

This commit is contained in:
Niken
2025-10-19 14:28:41 +03:00
parent 772d3d5b83
commit 7b653d4dcc
32 changed files with 775 additions and 326 deletions
+9 -8
View File
@@ -2,6 +2,7 @@ import os
from dotenv import load_dotenv
from typing import Dict
class Config:
# Загружаем .env
load_dotenv()
@@ -9,19 +10,19 @@ class Config:
# API
API_TOKEN = os.getenv("TELEGRAM_BOT_TOKEN")
Token = os.getenv("ACCESS_TOKEN")
DEEPGRAM_API_KEY = os.getenv("DEEPGRAM_API_KEY")
DEEPGRAM_AGENT_URL = "https://api.deepgram.com/v1/agent/think"
DEEPGRAM_TTS_URL = "https://api.deepgram.com/v1/speak?"
# 5575756416
BAN = [1]
if not API_TOKEN:
raise ValueError("❌ TELEGRAM_BOT_TOKEN не найден в переменных окружения!")
# Admins (user_id: уровень)
ADMINS: Dict[int, int] = {
850906163: 0,
6394047531: 4
}
ADMINS: Dict[int, int] = {850906163: 0, 6394047531: 4, 1345058877: 3}
Names: Dict[int, str] = {
850906163: "Ляпич",
6394047531: "Прокопович"
}
Names: Dict[int, str] = {850906163: "Ляпич", 6394047531: "Прокопович"}
# Chats
CHAT_IDS = [-1003038389942]