mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix: set_user receives dict
This commit is contained in:
parent
beb9f29517
commit
1020aaffc1
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ class SentryMiddleware(BaseMiddleware):
|
|||
user_data = {"id": user.id}
|
||||
if user.username is not None:
|
||||
user_data["username"] = user.username
|
||||
set_user(**user_data)
|
||||
set_user(user_data)
|
||||
set_context("user", user.to_python())
|
||||
|
||||
chat = Chat.get_current()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue