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)