mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-15 03:08:51 +00:00
added user
This commit is contained in:
parent
49e15545fa
commit
1dd462fcf3
1 changed files with 2 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ class LoggingMiddleware(BaseMiddleware):
|
|||
f"in chat [{callback_query.message.chat.type}:{callback_query.message.chat.id}]")
|
||||
|
||||
if callback_query.message.from_user:
|
||||
text += f" originally posted by [{callback_query.message.from_user.id}]"
|
||||
text += f" originally posted by user [ID:{callback_query.message.from_user.id}]"
|
||||
|
||||
self.logger.info(text)
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ class LoggingMiddleware(BaseMiddleware):
|
|||
f"in chat [{callback_query.message.chat.type}:{callback_query.message.chat.id}]")
|
||||
|
||||
if callback_query.message.from_user:
|
||||
text += f" originally posted by [{callback_query.message.from_user.id}]"
|
||||
text += f" originally posted by user [ID:{callback_query.message.from_user.id}]"
|
||||
|
||||
self.logger.info(text)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue