Skip to content

[Bug]Telegram 适配器对附件消息的 caption 处理不一致 #7000

@Clhikari

Description

@Clhikari

What happened / 发生了什么

当前观察到:

  • photo 分支会把 caption 写入 message.message_str,并追加 Comp.Plain(...)
  • document 分支没有处理 caption
  • video 分支也没有处理 caption

Reproduce / 如何复现?

  1. 在 Telegram 中发送一个文件或视频
  2. 同时填写说明文字(caption)
  3. 上层插件只能拿到 Comp.File / Comp.Video
  4. event.message_str 为空,说明文字丢失

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

telegram平台适配器

OS

Linux

Logs / 报错日志

建议统一处理 Telegram 附件 caption,至少覆盖:

  • photo
  • document
  • video

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:platformThe bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions