Skip to content

使用图片回复需要引用的消息时报未知错误 #109

@feilongproject

Description

@feilongproject
await message.reply(
    content=f"机器人{self.robot.name}收到你的@消息了: {message.content}",
    file_image="test.png",
)

当使用以上代码时会正常使用图片发送被动消息,但是当使用以下代码时会报错

await message.reply(
    content=f"机器人{self.robot.name}收到你的@消息了: {message.content}",
    file_image="test.png",
+    message_reference=message_reference,
)

image

是否可以添加当file_imagemessage_reference同时存在时,使用logging警告,并按优先级发送,而不是报未知错误?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions