Include the PTID with spb's info

This commit is contained in:
Justin Crawford 2020-12-07 07:03:03 -08:00 committed by blank X
parent b076dd0018
commit 55a5b70c2f
1 changed files with 2 additions and 0 deletions

View File

@ -171,6 +171,8 @@ async def get_spam_protection(entity):
return f'- <b>{resp.status}:</b> {html.escape(type(ex).__name__)}: {html.escape(str(ex))}' return f'- <b>{resp.status}:</b> {html.escape(type(ex).__name__)}: {html.escape(str(ex))}'
if json['success']: if json['success']:
text = '' text = ''
if json['results']['private_telegram_id']:
text += f'- <b>PTID:</b> <code>' + json['results']['private_telegram_id'] + "</code>\n"
if json['results']['attributes']['intellivoid_accounts_verified']: if json['results']['attributes']['intellivoid_accounts_verified']:
text += '- <b>Intellivoid Account Linked:</b> Yes\n' text += '- <b>Intellivoid Account Linked:</b> Yes\n'
if json['results']['attributes']['is_potential_spammer']: if json['results']['attributes']['is_potential_spammer']: