mirror of
https://github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot.git
synced 2026-02-20 03:11:47 +00:00
Revert "feat: allow configuring miniapp branding"
This commit is contained in:
@@ -79,16 +79,6 @@ def _status_label(status: str) -> str:
|
||||
return mapping.get(status, status.title())
|
||||
|
||||
|
||||
def _miniapp_service_name() -> str:
|
||||
value = (settings.MINIAPP_SERVICE_NAME or "").strip()
|
||||
return value or "RemnaWave VPN"
|
||||
|
||||
|
||||
def _miniapp_service_description() -> str:
|
||||
value = (settings.MINIAPP_SERVICE_DESCRIPTION or "").strip()
|
||||
return value or "Secure & Fast Connection"
|
||||
|
||||
|
||||
def _parse_datetime_string(value: Optional[str]) -> Optional[str]:
|
||||
if not value:
|
||||
return None
|
||||
@@ -369,8 +359,6 @@ async def get_subscription_details(
|
||||
)
|
||||
|
||||
return MiniAppSubscriptionResponse(
|
||||
service_name=_miniapp_service_name(),
|
||||
service_description=_miniapp_service_description(),
|
||||
subscription_id=subscription.id,
|
||||
remnawave_short_uuid=subscription.remnawave_short_uuid,
|
||||
user=response_user,
|
||||
|
||||
@@ -64,8 +64,6 @@ class MiniAppTransaction(BaseModel):
|
||||
|
||||
class MiniAppSubscriptionResponse(BaseModel):
|
||||
success: bool = True
|
||||
service_name: Optional[str] = None
|
||||
service_description: Optional[str] = None
|
||||
subscription_id: int
|
||||
remnawave_short_uuid: Optional[str] = None
|
||||
user: MiniAppSubscriptionUser
|
||||
|
||||
Reference in New Issue
Block a user