I add command /id and /dowmp4 for dowload video with Youtube and i improve code.

It's version 0.2.1
This commit is contained in:
Niken
2025-10-04 23:18:56 +03:00
parent 5197518029
commit c5f6da31ba
6 changed files with 228 additions and 3 deletions
+4 -2
View File
@@ -8,12 +8,14 @@ class Config:
# API
API_TOKEN = os.getenv("TELEGRAM_BOT_TOKEN")
Token = os.getenv("ACCESS_TOKEN")
if not API_TOKEN:
raise ValueError("❌ TELEGRAM_BOT_TOKEN не найден в переменных окружения!")
# Admins (user_id: уровень)
ADMINS: Dict[int, int] = {
850906163: 0
850906163: 0,
6394047531: 5
}
# Chats
@@ -28,7 +30,7 @@ class Config:
WATCHER_BASE_DELAY = 600
# Пути
LOG_FILE = "bot.log"
LOG_FILE = "storage/log/bot.log"
if __name__ == "__main__":