Files
seoulmate_bot_v1/services/bot/app/main.py
2025-08-12 21:02:23 +09:00

15 lines
531 B
Python

import asyncio
from telegram.ext import Application, CommandHandler
from app.core.config import settings
async def start(update, context):
await update.message.reply_text("Привет! Бот запущен.")
async def main():
app = Application.builder().token(settings.BOT_TOKEN).build()
app.add_handler(CommandHandler("start", start))
await app.initialize()
await app.start()
await app.updater.start_polling()
await app.updater.wait_until_closed()
if __name__ == "__main__":
asyncio.run(main())