chore: update slack-go to v0.23.1 (#2875)

Adapt Slack media uploads to the renamed UploadFile API.
This commit is contained in:
wenjie
2026-05-15 13:58:11 +08:00
committed by GitHub
parent b225629af8
commit bfb2b35f74
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -191,7 +191,7 @@ func (c *SlackChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessa
title = filename
}
_, err = c.api.UploadFileV2Context(ctx, slack.UploadFileV2Parameters{
_, err = c.api.UploadFileContext(ctx, slack.UploadFileParameters{
Channel: channelID,
ThreadTimestamp: threadTS,
File: localPath,
@@ -207,7 +207,7 @@ func (c *SlackChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessa
}
}
// UploadFileV2 does not expose the posted message timestamp in its
// UploadFile does not expose the posted message timestamp in its
// response; returning nil avoids conflating file IDs with message IDs.
return nil, nil
}