Create and implement router for payments

This commit is contained in:
hteppl
2024-12-08 04:17:50 +03:00
parent 69b1705fd5
commit 56ff84f7a5
2 changed files with 22 additions and 0 deletions
+3
View File
@@ -6,6 +6,7 @@ from .coupons import router as coupons_router
from .donate import router as donate_router
from .notifications import router as notifications_router
from .pay import router as pay_router
from .payments import router as payments_router
from .profile import router as profile_router
from .start import router as start_router
@@ -18,4 +19,6 @@ router.include_routers(
donate_router,
coupons_router,
notifications_router,
payments_router,
)
+19
View File
@@ -0,0 +1,19 @@
__all__ = ('router',)
from aiogram import Router
from .cryprobot_pay import router as cryprobot_router
from .freekassa_pay import router as freekassa_router
from .robokassa_pay import router as robokassa_router
from .stars_pay import router as stars_router
from .yookassa_pay import router as yookassa_router
router = Router(name='payments_main_router')
router.include_routers(
cryprobot_router,
stars_router,
freekassa_router,
robokassa_router,
yookassa_router,
)