HIT(Harbin Institue of Technology) Master graduates. Now work for NXP
- C / C++
- Rust
- Go
- Python
- Kotlin
- Verilog
Latex
- Full Stack
- Embedded (baremetal, embedded linux, FPGA)
- Deep leraning
- Zephyr is Fun
- Working
- Email [email protected]
- Telegram @Logiase
适配于Mirai HTTP API的Golang SDK
License: GNU Affero General Public License v3.0
HIT(Harbin Institue of Technology) Master graduates. Now work for NXP
FetchMessage报错cannot unmarshal object into Go value of type []gomirai.InEvent
测试代码如下:
var respS []gomirai.InEvent
str := `{"code":0,"errorMessage":"","data":[{"type":"FriendMessage","messageChain":[{"type":"Source","id":1111111111,"time":1586940031},{"type":"Plain","text":"哈哈哈"}],"sender":{"id":123456789,"nickname":"Batty","remark":""}}]}`
err := json.Unmarshal([]byte(str), &respS)
if err != nil {
fmt.Println(err)
}
fmt.Printf("%#v\n", respS)
当接收到好友的文本、表情、图片或上述三个消息组合而成的消息时,InEvent.SenderDetail( )提示 sender 序列化失败。
其它类型的消息暂未测试。
操作系统:Windows10 X64 1909
依赖版本
这个里面的url字段怎么填?
求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊求助啊
b.SendFriendMessage(e.Sender.Id, 0, message.PlainMessage("中文消息"))
实际上回复的消息是:
ä¸æ��æ¶�æ�¯
bot.go中SendImageMessage函数实际调用了/sendGroupMessage接口,正确的应为/sendImageMessage接口
下面是我收到 MemberJoinEvent 之后打印出来的事件内容
MemberJoinEvent
{MemberJoinEvent [] {0 {0 }} 0 0 0}
都是空的,没有成员信息。
如何得到进群成员的信息呢?
现在的情况我在wsl运行mirai-console,在win发送图片的话,mirai-api-http那边不认我的图片的路径导致发送失败。
本人小白一枚,没有任何编程经验,你这一大堆的都没有exe要怎么运行啊
�[0m�[0Kimport cycle not allowed�[0K�[?25l
package awesomeProject4�[0K
imports github.com/Logiase/gomirai/bot�[0K
imports github.com/Logiase/gomirai/helper�[0K
imports github.com/Logiase/gomirai/bot�[0K
�[0K�[?25h
只替换了例子中的QQID与httpapi地址,无其他任何import添加。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.