Добавлена базовая структура проекта Telegram-бота (handlers, config, memory)

This commit is contained in:
grigorij
2026-06-10 22:51:56 +04:00
parent 1196a8a795
commit 2c6f82bfb5
15 changed files with 94 additions and 11 deletions
+9
View File
@@ -0,0 +1,9 @@
import os
from dotenv import load_dotenv
load_dotenv()
BOT_TOKEN = os.getenv("BOT_TOKEN")
if not BOT_TOKEN:
raise ValueError("BOT_TOKEN не найден")
+1
View File
@@ -0,0 +1 @@
BOOKINGS = {}
+8
View File
@@ -0,0 +1,8 @@
from aiogram import Router, F
from aiogram.types import Message
router = Router()
@router.message(F.text == "/start")
async def start(message: Message):
await message.answer("👋 Бот запущен (чистый старт)")
View File
View File