Show and don't mention deleted accounts in .info
This commit is contained in:
parent
0bfe376149
commit
33d884b0ac
|
@ -9,8 +9,8 @@ def _generate_sexy(entity, ping):
|
||||||
text = entity.first_name
|
text = entity.first_name
|
||||||
if entity.last_name:
|
if entity.last_name:
|
||||||
text += f' {entity.last_name}'
|
text += f' {entity.last_name}'
|
||||||
sexy_text = html.escape(text or 'Empty???')
|
sexy_text = html.escape(text or '') or '<code>[DELETED]</code>'
|
||||||
if ping and entity.type in ('private', 'bot'):
|
if ping and entity.type in ('private', 'bot') and text:
|
||||||
sexy_text = f'<a href="tg://user?id={entity.id}">{sexy_text}</a>'
|
sexy_text = f'<a href="tg://user?id={entity.id}">{sexy_text}</a>'
|
||||||
elif entity.username:
|
elif entity.username:
|
||||||
sexy_text = f'<a href="https://t.me/{entity.username}">{sexy_text}</a>'
|
sexy_text = f'<a href="https://t.me/{entity.username}">{sexy_text}</a>'
|
||||||
|
|
Loading…
Reference in New Issue