mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2025-01-09 17:33:47 +00:00
Update sms_registration.py
This commit is contained in:
parent
207c33a6f4
commit
48f537d991
1 changed files with 3 additions and 2 deletions
|
@ -23,8 +23,9 @@ def register(push_token: bytes, no_parse = False, gateway = None) -> tuple[str,
|
||||||
if gateway is not None:
|
if gateway is not None:
|
||||||
print("Gateway found! " + str(gateway))
|
print("Gateway found! " + str(gateway))
|
||||||
else:
|
else:
|
||||||
print("Automatic gateway detection failed, switching to default...")
|
print("No gateway was provided, and automatic gateway detection failed. Please run again with the --gateway flag.")
|
||||||
gateway = GATEWAY
|
# gateway = GATEWAY
|
||||||
|
raise
|
||||||
token = push_token.hex().upper()
|
token = push_token.hex().upper()
|
||||||
req_id = random.randint(0, 2**32)
|
req_id = random.randint(0, 2**32)
|
||||||
sms = f"REG-REQ?v=3;t={token};r={req_id};"
|
sms = f"REG-REQ?v=3;t={token};r={req_id};"
|
||||||
|
|
Loading…
Reference in a new issue