feat(withdraw): add user withdrawal flow using CryptoPay
This commit is contained in:
+11
@@ -1,9 +1,11 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from aiogram import Bot
|
||||
from aiosend import CryptoPay
|
||||
|
||||
_bot: Bot | None = None
|
||||
_log_bot: Bot | None = None
|
||||
_cp: CryptoPay | None = None
|
||||
|
||||
|
||||
def set_bots(bot: Bot, log_bot: Bot | None = None) -> None:
|
||||
@@ -18,3 +20,12 @@ def get_bot() -> Bot | None:
|
||||
|
||||
def get_log_bot() -> Bot | None:
|
||||
return _log_bot
|
||||
|
||||
|
||||
def set_cp(cp: CryptoPay | None = None) -> None:
|
||||
global _cp
|
||||
_cp = cp
|
||||
|
||||
|
||||
def get_cp() -> CryptoPay | None:
|
||||
return _cp
|
||||
|
||||
Reference in New Issue
Block a user