Spaces:
No application file
No application file
File size: 556 Bytes
7ae4117 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import os
import asyncio
import logging
from aiogram import Bot, Dispatcher, types
from aiogram.filters import Command
from aiogram.fsm.storage.memory import MemoryStorage
BOT_TOKEN = os.getenv("BOT_TOKEN")
bot = Bot(token=BOT_TOKEN)
dp = Dispatcher(storage=MemoryStorage())
@dp.message(Command("start"))
async def start(message: types.Message):
await message.answer("✨ Добро пожаловать в LongField Clinic!")
async def main():
await dp.start_polling(bot)
if __name__ == "__main__":
asyncio.run(main()) |