You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
token = await get_token()
user = User(
username="Mewhrzad",
proxies={
"vless": {"id": "35e7e39c-7d5c-1f4b-8b71-508e4f37ff53","flow": ""},
},
inbounds={"vless": ["Germany"]},
expire=0,
data_limit=0,
data_limit_reset_strategy="no_reset",
status="active",
)
result = await panel.add_user(user=user,token=token) #return new User object
print(result)
and I got TypeError: User.__init__() got an unexpected keyword argument 'auto_delete_in_days'
I think the problem is for user.py line 9 while creating user instance ( auto_delete_in_days does not exist )
solution : You can add auto_delete_in_days arg to User class and also please add kwargs in this and other classes to stop causing these issues when Marzban update
The text was updated successfully, but these errors were encountered:
I ran
and I got
TypeError: User.__init__() got an unexpected keyword argument 'auto_delete_in_days'
I think the problem is for user.py line 9 while creating user instance ( auto_delete_in_days does not exist )
solution : You can add
auto_delete_in_days
arg to User class and also please add kwargs in this and other classes to stop causing these issues when Marzban updateThe text was updated successfully, but these errors were encountered: