From c8d2c537fe5e7d0be4be00196dd02462a7898339 Mon Sep 17 00:00:00 2001 From: Hamid Hosseini Date: Tue, 1 Oct 2024 14:24:18 +0330 Subject: [PATCH] avoid admin field error --- marzpy/api/user.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/marzpy/api/user.py b/marzpy/api/user.py index 7dff0c5..bdd46cc 100644 --- a/marzpy/api/user.py +++ b/marzpy/api/user.py @@ -29,6 +29,7 @@ def __init__( online_at = 0, sub_last_user_agent:str = "", auto_delete_in_days:int = 0, + admin=None, **_, # Stop causing error when marzban update ): @@ -52,7 +53,8 @@ def __init__( self.online_at = online_at self.sub_updated_at = sub_updated_at self.auto_delete_in_days = auto_delete_in_days - + self.admin = admin + class UserMethods: async def add_user(self, user: User, token: dict): """add new user.