Spaces:
No application file
No application file
Upload 3 files
Browse files- README.md +3 -12
- app.py +21 -0
- requirements.txt +3 -0
README.md
CHANGED
|
@@ -1,12 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
colorFrom: gray
|
| 5 |
-
colorTo: pink
|
| 6 |
-
sdk: gradio
|
| 7 |
-
sdk_version: 5.32.0
|
| 8 |
-
app_file: app.py
|
| 9 |
-
pinned: false
|
| 10 |
-
---
|
| 11 |
-
|
| 12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
+
# LongField Clinic Bot
|
| 2 |
+
|
| 3 |
+
Telegram бот для ортодонтии LongField
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import asyncio
|
| 3 |
+
import logging
|
| 4 |
+
from aiogram import Bot, Dispatcher, types
|
| 5 |
+
from aiogram.filters import Command
|
| 6 |
+
from aiogram.fsm.storage.memory import MemoryStorage
|
| 7 |
+
|
| 8 |
+
BOT_TOKEN = os.getenv("BOT_TOKEN")
|
| 9 |
+
|
| 10 |
+
bot = Bot(token=BOT_TOKEN)
|
| 11 |
+
dp = Dispatcher(storage=MemoryStorage())
|
| 12 |
+
|
| 13 |
+
@dp.message(Command("start"))
|
| 14 |
+
async def start(message: types.Message):
|
| 15 |
+
await message.answer("✨ Добро пожаловать в LongField Clinic!")
|
| 16 |
+
|
| 17 |
+
async def main():
|
| 18 |
+
await dp.start_polling(bot)
|
| 19 |
+
|
| 20 |
+
if __name__ == "__main__":
|
| 21 |
+
asyncio.run(main())
|
requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
aiogram==3.4.1
|
| 2 |
+
python-dotenv==1.0.0
|
| 3 |
+
requests==2.31.0
|