fix telegram media sending via message tool (path/url support)

This commit is contained in:
DBT
2026-02-25 11:46:36 +00:00
parent 1a3e6240f7
commit f04a6939b3
4 changed files with 136 additions and 5 deletions

View File

@@ -149,11 +149,12 @@ func NewAgentLoop(cfg *config.Config, msgBus *bus.MessageBus, provider providers
// Register message tool
messageTool := tools.NewMessageTool()
messageTool.SetSendCallback(func(channel, chatID, action, content, messageID, emoji string, buttons [][]bus.Button) error {
messageTool.SetSendCallback(func(channel, chatID, action, content, media, messageID, emoji string, buttons [][]bus.Button) error {
msgBus.PublishOutbound(bus.OutboundMessage{
Channel: channel,
ChatID: chatID,
Content: content,
Media: media,
Buttons: buttons,
Action: action,
MessageID: messageID,