Skip to content

开发大大你好,目前框架貌似只能直接回复发送者的消息,请问会考虑转发消息吗? #14

Answered by Yukari316
GeekSheng asked this question in Q&A
Discussion options

You must be logged in to vote

转发的功能是需要你自己去编写逻辑的,框架只会提供访问go-cqhttp的API接口

如果是想要转发闪照,由于闪照无法获取图片url,只能使用缓存文件转发
参考以下代码:

var img = eventArgs.Message.GetAllImage();
await eventArgs.SourceGroup.SendGroupMessage(CQCode.CQImage(img[0].ImgFile));

这只是简单的示例,实际的业务逻辑需要你自己去完成(毕竟我也不知道你们要拿来干什么.jpg

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Yukari316
Comment options

@Yukari316
Comment options

@d3ara1n
Comment options

@d3ara1n
Comment options

@Yukari316
Comment options

Answer selected by Yukari316
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants