Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取合并转发内容中的合并转发内容? #1051

Closed
eric2788 opened this issue Sep 14, 2021 · 5 comments
Closed

获取合并转发内容中的合并转发内容? #1051

eric2788 opened this issue Sep 14, 2021 · 5 comments
Labels
feature request question Further information is requested

Comments

@eric2788
Copy link

环境信息

go-cqhttp版本: v1.0.0-beta6

需要添加的功能内容

是这样的,我透过 get_forward_msg 获取了那个 msg 内容后,发现内容中所转发的聊天记录(合并消息内容)不是 forward 的 CQCode, 而是 xml 的 CQcode:

<?xml version=\"1.0\" encoding=\"utf-8\"?>\n    
<msg brief=\"&#91;聊天记录&#93;\" m_fileName=\"MultiMsg_44C99D36-EA51-4889-9A4D-9A7B56D4589A\" action=\"viewMultiMsg\" tSum=\"2\" flag=\"3\" serviceID=\"35\" m_fileSize=\"100\"  >
	<item layout=\"1\">
		<title color=\"#000000\" size=\"34\" > 瓜瓜的聊天记录 </title>
		<title color=\"#000000\" size=\"26\" > 瓜瓜: 图片列表</title>
		<title color=\"#000000\" size=\"26\" > 瓜瓜: &#91;图片&#93; </title>
		<title color=\"#000000\" size=\"26\" > 瓜瓜: &#91;图片&#93; </title>
		<title color=\"#000000\" size=\"26\" > 瓜瓜: &#91;图片&#93; </title>
		<hr></hr>
		<summary color=\"#808080\" size=\"26\" > 查看转发消息  </summary>
	</item>
	<source name=\"聊天记录\"></source>
</msg>

这种,是xml 卡片类型,而不是 forward 类型,请问有没有办法去取得这个合并消息内容中的聊天记录的消息内容?

@wdvxdr1123
Copy link
Collaborator

有点诡异, 正常情况下是可以得到[CQ:forward],可能和发送客户端有关

@wdvxdr1123 wdvxdr1123 added the question Further information is requested label Sep 16, 2021
@eric2788
Copy link
Author

有点诡异, 正常情况下是可以得到[CQ:forward],可能和发送客户端有关

我用的协议是ipad

@Mrs4s
Copy link
Owner

Mrs4s commented Oct 30, 2021

无法复现 如果有复现方法的话可以 Reopen 一下

@railannad
Copy link

@eric2788 请问你解决了吗

@eric2788
Copy link
Author

eric2788 commented Nov 29, 2021

沒有,但因為最近不使用這個功能了所以暫時不影響

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants