转发图片出错 #169
转发图片出错
#169
-
涉及的编程语言Java 涉及的组件库mirai (QQ) 疑问描述大佬,转发图片不是这样写的吗
|
Beta Was this translation helpful? Give feedback.
Answered by
ForteScarlet
Sep 10, 2023
Replies: 1 comment 1 reply
-
首先,需要确保 其次,MiraiForwardMessageBuilder添加一个消息元素还需要其他参数,例如消息的发送人、或发送人的ID和昵称等。这些信息在IDE提示、API文档或源码注释等地方都应当都很清晰。 final var image = MiraiSendOnlyImage.of(Resource.of(new URL(pictureUrl)));
miraiForwardMessageBuilder.add(123L, "发送人昵称", image); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ForteScarlet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
首先,需要确保
Object obj
的确是一个图片连接字符串。其次,MiraiForwardMessageBuilder添加一个消息元素还需要其他参数,例如消息的发送人、或发送人的ID和昵称等。这些信息在IDE提示、API文档或源码注释等地方都应当都很清晰。
例如: