Skip to content

Support FileCaption fallback for grouped media downloads#1246

Open
expary wants to merge 1 commit into
iyear:masterfrom
expary:expary/fix-grouped-file-caption
Open

Support FileCaption fallback for grouped media downloads#1246
expary wants to merge 1 commit into
iyear:masterfrom
expary:expary/fix-grouped-file-caption

Conversation

@expary

@expary expary commented May 31, 2026

Copy link
Copy Markdown

Summary

  • Apply the first non-empty caption in a grouped message as a fallback for group members that do not have their own caption.
  • Keep existing single-message behavior and preserve per-file captions when present.
  • Document the FileCaption behavior for grouped media templates.

Tests

  • go test ./app/dl
  • go test ./app/dl ./app/chat ./pkg/tmessage
  • go test $(go list ./... | grep -v '^github.com/iyear/tdl/test$')
  • go test ./... (from core/)
  • go test ./... (from extension/)

Closes #1208

Use the first non-empty caption in a grouped message as the fallback for group members that do not carry their own caption, so FileCaption-based templates can name every file in the album.

Closes iyear#1208
@expary expary requested a review from XMLHexagram as a code owner May 31, 2026 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The FileCaption variable applies to all files in the album/combined message.FileCaption变量对相册/组合消息所有文件生效。

1 participant