Skip to content

Commit

Permalink
Beta82 (#223)
Browse files Browse the repository at this point in the history
* beta77

* beta77

* beta77

* beta77

* beta79

* beta79

* beta79

* beta81

* beta82
  • Loading branch information
Hoshinonyaruko authored Dec 6, 2023
1 parent c1922de commit 085eeeb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions handlers/send_guild_channel_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,15 @@ func GenerateReplyMessage(id string, foundItems map[string][]string, messageText
MsgSeq: msgseq,
MsgType: 0, // Assuming type 0 for images
}
} else if imageURLs, ok := foundItems["url_images"]; ok && len(imageURLs) > 0 {
// 发送网络图
reply = dto.MessageToCreate{
//EventID: id, // Use a placeholder event ID for now
Image: "https://" + imageURLs[0], // Using the same Image field for external URLs, adjust if needed
MsgID: id,
MsgSeq: msgseq,
MsgType: 0, // Assuming type 0 for images
}
} else if voiceURLs, ok := foundItems["base64_record"]; ok && len(voiceURLs) > 0 {
//频道 还不支持发语音
// Sending a voice message
Expand Down

0 comments on commit 085eeeb

Please sign in to comment.