From fe943d5697dfaf8c9e9457337914ac04a9428e56 Mon Sep 17 00:00:00 2001 From: jowi-tech <72805812+jowi-tech@users.noreply.github.com> Date: Sun, 31 Jan 2021 16:58:20 +0100 Subject: [PATCH] Update Telegram_phone_validation.py --- Telegram_phone_validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram_phone_validation.py b/Telegram_phone_validation.py index 89124b3..79f4765 100644 --- a/Telegram_phone_validation.py +++ b/Telegram_phone_validation.py @@ -16,7 +16,7 @@ def get_names(phone_number): username = contacts.to_dict()['users'][0]['username'] del_usr = client(functions.contacts.DeleteContactsRequest(id=[username])) if not username: - return f'No user name returned by the API for the number: {phone_number}' + return f'Response detected, but no user name returned by the API for the number: {phone_number}' else: return username except IndexError as e: