mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
#ID more useful tag in user info
This commit is contained in:
parent
0fd8d541f7
commit
6789d23c28
@ -77,7 +77,7 @@ async def send_user_message(message: types.Message, super_chat_id: int, bot):
|
|||||||
user_info += message.from_user.full_name
|
user_info += message.from_user.full_name
|
||||||
if message.from_user.username:
|
if message.from_user.username:
|
||||||
user_info += " | @" + message.from_user.username
|
user_info += " | @" + message.from_user.username
|
||||||
user_info += f" | #{message.from_user.id}"
|
user_info += f" | #ID{message.from_user.id}"
|
||||||
|
|
||||||
# Добавлять информацию в конец текста
|
# Добавлять информацию в конец текста
|
||||||
if message.content_type == types.ContentType.TEXT and len(message.text) + len(user_info) < 4093: # noqa:E721
|
if message.content_type == types.ContentType.TEXT and len(message.text) + len(user_info) < 4093: # noqa:E721
|
||||||
|
Loading…
Reference in New Issue
Block a user