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] At
|
||||
- [x] 回复
|
||||
|
@ -455,11 +455,13 @@ ok:
|
||||
return &message.GroupPtt{
|
||||
Ptt: msg.Ptt{
|
||||
FileType: 4,
|
||||
SrcUin: c.Uin,
|
||||
FileMd5: h[:],
|
||||
FileName: "01234567890123456789012345678901.amr", // 应为MD5.amr(?
|
||||
FileName: hex.EncodeToString(h[:]) + ".amr",
|
||||
FileSize: int32(len(voice)),
|
||||
GroupFileKey: rsp.FileKey,
|
||||
BoolValid: true,
|
||||
PbReserve: []byte{0},
|
||||
PbReserve: []byte{8, 0, 40, 0, 56, 0},
|
||||
}}, nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user