diff --git a/backend_integration.py b/backend_integration.py index 95a0828..9d2e4f6 100644 --- a/backend_integration.py +++ b/backend_integration.py @@ -34,10 +34,10 @@ class BackendClient: self.warn = False return self.up - async def vip(self, steamid, amount: int, extra: str): + async def vip(self, steamid, amount: int, extra: str, unique: str = ""): async with aiohttp.ClientSession(cookies={ "secretkey":self.secret_key}) as session: - async with session.post(self.vip_url + f"?steam={steamid}&amount={int(amount)}&service=qiwi&extra={extra}", ssl=False) as response: + async with session.post(self.vip_url + f"?steam={steamid}&amount={int(amount)}&service=qiwi&extra={extra}&unique={unique}", ssl=False) as response: try: result = int(await response.text()) if result == 0: diff --git a/paybot.facti13.py b/paybot.facti13.py index beb4165..24da7de 100644 --- a/paybot.facti13.py +++ b/paybot.facti13.py @@ -80,7 +80,7 @@ class Client: ######################################## # add vip info(f"Add vip {steam2}, amount {seconds}") - await self.backend.vip(steam2, seconds, f"rub={int(money)};") + await self.backend.vip(steam2, seconds, f"rub={int(money)};", unique=f"qiwi_{t.id}") if __name__ == "__main__": print("Build date: "+os.getenv("BUILDDATE", "not setted"))