(20241213) SMS Auth reworked.

This commit is contained in:
2024-12-13 18:28:45 +05:30
parent 4c258b110a
commit 4f5668c036
9 changed files with 476 additions and 47 deletions
@@ -234,7 +234,7 @@ class AsyncNimbusSMS:
summary.rawResponse = response_json
summary.success = True if response_json.get("STATUS", "ERROR").lower() in ["ok"] else False
if summary.success: summary.messageId = response_json.get("RESPONSE", {}).get("UID")
else: summary.brief = response_json.get("RESPONSE", {}).get("INFO")
else: summary.message = response_json.get("RESPONSE", {}).get("INFO")
# For any other code that indicates some form of failure:
else: summary.rawResponse = response.content.decode()