mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 01:15:31 +00:00
Minor refactoring:
- removed remaining assertions - quotes replaced with double quotes in f-strings
This commit is contained in:
parent
5a905abe87
commit
70fb332fd3
5 changed files with 9 additions and 7 deletions
|
|
@ -84,12 +84,12 @@ async def cmd_id(message: types.Message):
|
|||
chat = message.chat
|
||||
|
||||
result_msg = [hbold('Info about user:'),
|
||||
f'First name: {target.first_name}']
|
||||
f"First name: {target.first_name}"]
|
||||
if target.last_name:
|
||||
result_msg.append(f"Last name: {target.last_name}")
|
||||
if target.username:
|
||||
result_msg.append(f"Username: {target.mention}")
|
||||
result_msg.append(f'User ID: {target.id}')
|
||||
result_msg.append(f"User ID: {target.id}")
|
||||
|
||||
result_msg.extend([hbold('Chat:'),
|
||||
f"Type: {chat.type}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue