-
-
Notifications
You must be signed in to change notification settings - Fork 981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func (m *Message) ReplyText(content string) (*SentMessage, error) 报错 Ret(1204) #110
Comments
不是所有的消息都是可以回复的,有的是系统消息 |
@eatmoreapple 你好,我也遇到了相同的问题,是在对我自己发送消息时出现的 |
我也遇到了,你解决了吗 |
遇到了同样的问题,复现方式:登陆 a 账号之后,再登陆 b 账号,b 账号接收消息报错 Ret(1204) |
我收到群里面自己的消息,然后回复 就会报错1204,msg.IsComeFromGroup()这里返回的是true 但是获取到的nickname是我自己的昵称不是群的昵称 |
我也遇到了,msg.ReplyText 回复自己的消息就会报错 |
我自己改了改代码解决了。。 |
@riba2534 怎么修改的求教 |
无法发送消息给自己,否则会返回1204的错误 |
在发送ReplyText之前判断一下,如果是自己发送的,给一个另外的识别码。方法均来自mssage.go(/usr/local/go/bin/pkg/mod/github.com/eatmoreapple/openwechat@v1.2.1/message.go) |
Bot.MessageHandler // 注册消息处理函数 类似下面这样
在
log.Print(err)
返回了Ret(1204)
我不清楚是怎么回事但是使用
Self.SendTextToFriend函数可以成功发送消息
msg.Bot.GetCurrentUser().SendTextToFriend(friend *Friend, text string) (*SentMessage, error)
类似下面这样
The text was updated successfully, but these errors were encountered: