Timgo
tim client in go
Install / Use
/learn @donnie4w/TimgoREADME
tim的go客户端
使用 timgo 连接 tim 服务器,可以进行登录,注册,加好友,建群,发信,广播状态,发送视频流数据等操作,实现im的具体功能
功能具体可以参考 webtim在线测试项目
快速使用
go get github.com/donnie4w/timgo
//建立操作对象
tc := timgo.NewTimClient(false,"192.168.2.11", "5080")
//实现消息接收后的处理事件
tc.MessageHandler(func(tm *TimMessage) {})
//实现状态信息接收后的处理事件
tc.PresenceHandler(func(tp *TimPresence) {})
注册
if ack, _ := tc.Register("13912345678", "123456", "yourdomain"); ack != nil {
fmt.Println(ack)
}
登录
tc.Login("13912345678", "123456", "yourdomain", "android 13 huawei", 1, nil)
向好友发信
tc.MessageToUser("QdH6CCms5FV", "hello", 0, 0, nil, nil)
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
