fix(agent): propagate SenderID in AgentEvent emitters

Expose the original acting sender ID in agent events so group-chat
telemetry and audit logs stay aligned with the real Telegram user
instead of only the group-scoped UserID.
This commit is contained in:
viettranx committed 2026-04-17 20:45:48 +07:00
1 parent 680521a882
commit a29938ceed
5 files changed
+10 -1

No files matched your search

+1
View File
@@ -26,6 +26,7 @@ func (l *Loop) Run(ctx context.Context, req RunRequest) (*RunResult, error) {
event.TeamID = req.TeamID
event.TeamTaskID = req.TeamTaskID
event.ParentAgentID = req.ParentAgentID
event.SenderID = req.SenderID
event.UserID = req.UserID
event.Channel = req.Channel
event.ChatID = req.ChatID