Files
telegram_bot_vpn/bot/handlers/__init__.py
2026-02-18 00:02:25 +05:00

22 lines
1.4 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from aiogram import Router, types
from aiogram.filters import CommandStart
from bot.handlers import payments
from bot.handlers.payments import send_donation_invoice
from bot.handlers.cabinet import router as cabinet_router
from bot.keyboards.subscription import subscription_keyboard
router = Router()
router.include_router(payments.router)
router.include_router(cabinet_router)
@router.message(CommandStart())
async def cmd_start(message: types.Message):
await message.answer(
f"""Привет, {message.from_user.full_name}!
⭐ Поддержать проект\n\nЕсли вам нравится проект и вы хотите помочь его развитию, вы можете отправить звёзды или оформить подписку.\n\nПожертвования помогают покрывать:\n— еду автору\n— аренду серверов\n— развитие и улучшение проекта\n\nПоддержка полностью добровольная и не является обязательным условием получения доступа.\n\nВыберите вариант подписки:""",
reply_markup=subscription_keyboard
)
# Отправляем кнопку оплаты (инвойс) сразу после текста
await send_donation_invoice(message)