mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
Fix Ptt on PC
This commit is contained in:
parent
b0f1dde18c
commit
5db0afe0ab
@ -16,6 +16,7 @@ qq-android协议的golang实现 移植于mirai
|
|||||||
#### 消息类型
|
#### 消息类型
|
||||||
- [x] 文本
|
- [x] 文本
|
||||||
- [x] 图片
|
- [x] 图片
|
||||||
|
- [ ] 语音
|
||||||
- [x] 表情
|
- [x] 表情
|
||||||
- [x] At
|
- [x] At
|
||||||
- [x] 回复
|
- [x] 回复
|
||||||
|
@ -454,12 +454,14 @@ func (c *QQClient) UploadGroupPtt(groupCode int64, voice []byte, voiceLength int
|
|||||||
ok:
|
ok:
|
||||||
return &message.GroupPtt{
|
return &message.GroupPtt{
|
||||||
Ptt: msg.Ptt{
|
Ptt: msg.Ptt{
|
||||||
FileType: 4,
|
FileType: 4,
|
||||||
FileMd5: h[:],
|
SrcUin: c.Uin,
|
||||||
FileName: "01234567890123456789012345678901.amr", // 应为MD5.amr(?
|
FileMd5: h[:],
|
||||||
FileSize: int32(len(voice)),
|
FileName: hex.EncodeToString(h[:]) + ".amr",
|
||||||
BoolValid: true,
|
FileSize: int32(len(voice)),
|
||||||
PbReserve: []byte{0},
|
GroupFileKey: rsp.FileKey,
|
||||||
|
BoolValid: true,
|
||||||
|
PbReserve: []byte{8, 0, 40, 0, 56, 0},
|
||||||
}}, nil
|
}}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user