From 6a27cfbb1e1146dccc13b6de04b18679ce585baa Mon Sep 17 00:00:00 2001 From: Clov614 Date: Fri, 16 Aug 2024 14:36:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20#110=20#428=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E7=94=B1=E8=87=AA=E5=B7=B1=E5=8F=91=E9=80=81?= =?UTF-8?q?=E7=A7=81=E8=81=8A=E6=B6=88=E6=81=AF=E6=8A=9B=E5=87=BA1204?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- message.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/message.go b/message.go index 5e9d135..d795d8f 100644 --- a/message.go +++ b/message.go @@ -171,7 +171,7 @@ func (m *Message) IsSelfSendToGroup() bool { func (m *Message) ReplyText(content string) (*SentMessage, error) { // 判断是否由自己发送 username := m.FromUserName - if m.IsSelfSendToGroup() { + if m.IsSendBySelf() { username = m.ToUserName } return m.Owner().sendTextToUser(username, content) @@ -181,7 +181,7 @@ func (m *Message) ReplyText(content string) (*SentMessage, error) { func (m *Message) ReplyEmoticon(md5 string, file io.Reader) (*SentMessage, error) { // 判断是否由自己发送 username := m.FromUserName - if m.IsSelfSendToGroup() { + if m.IsSendBySelf() { username = m.ToUserName } return m.Owner().sendEmoticonToUser(username, md5, file) @@ -191,7 +191,7 @@ func (m *Message) ReplyEmoticon(md5 string, file io.Reader) (*SentMessage, error func (m *Message) ReplyImage(file io.Reader) (*SentMessage, error) { // 判断是否由自己发送 username := m.FromUserName - if m.IsSelfSendToGroup() { + if m.IsSendBySelf() { username = m.ToUserName } return m.Owner().sendImageToUser(username, file) @@ -201,7 +201,7 @@ func (m *Message) ReplyImage(file io.Reader) (*SentMessage, error) { func (m *Message) ReplyVideo(file io.Reader) (*SentMessage, error) { // 判断是否由自己发送 username := m.FromUserName - if m.IsSelfSendToGroup() { + if m.IsSendBySelf() { username = m.ToUserName } return m.Owner().sendVideoToUser(username, file) @@ -211,7 +211,7 @@ func (m *Message) ReplyVideo(file io.Reader) (*SentMessage, error) { func (m *Message) ReplyFile(file io.Reader) (*SentMessage, error) { // 判断是否由自己发送 username := m.FromUserName - if m.IsSelfSendToGroup() { + if m.IsSendBySelf() { username = m.ToUserName } return m.Owner().sendFileToUser(username, file)