fix: correct type mismatch in observe-only tests and wrap long line
- Fix bus.Peer used where *routing.RoutePeer is expected in loop_test.go - Wrap 127-char ObserveGroupMessage call in telegram.go to satisfy golines https://claude.ai/code/session_01BEyzHEY8t2ghPnfr5WsSRB
This commit is contained in:
parent
316ce8041e
commit
3bd90a2212
2 changed files with 5 additions and 2 deletions
|
|
@ -3482,7 +3482,7 @@ func TestObserveOnlyMessage_DoesNotRespondEvenWithContinuation(t *testing.T) {
|
|||
// Confirm history accumulated
|
||||
route := al.registry.ResolveRoute(routing.RouteInput{
|
||||
Channel: "slack",
|
||||
Peer: bus.Peer{Kind: "channel", ID: "channel1"},
|
||||
Peer: &routing.RoutePeer{Kind: "channel", ID: "channel1"},
|
||||
})
|
||||
defaultAgent := al.registry.GetDefaultAgent()
|
||||
if defaultAgent == nil {
|
||||
|
|
|
|||
|
|
@ -715,7 +715,10 @@ func (c *TelegramChannel) handleMessage(ctx context.Context, message *telego.Mes
|
|||
"first_name": user.FirstName,
|
||||
"is_group": "true",
|
||||
}
|
||||
c.ObserveGroupMessage(ctx, observePeer, messageIDStr, platformID, compositeChatID, content, mediaPaths, observeMeta, sender)
|
||||
c.ObserveGroupMessage(
|
||||
ctx, observePeer, messageIDStr, platformID,
|
||||
compositeChatID, content, mediaPaths, observeMeta, sender,
|
||||
)
|
||||
return nil
|
||||
}
|
||||
content = cleaned
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue