MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接
    1. 主页
    2. Listen-cl
    L
    • 资料
    • 关注 0
    • 粉丝 0
    • 主题 0
    • 帖子 2
    • 最佳 0
    • 有争议的 0
    • 群组 0

    Listen-cl

    @Listen-cl

    0
    声望
    1
    资料浏览
    2
    帖子
    0
    粉丝
    0
    关注
    注册时间 最后登录

    Listen-cl 取消关注 关注

    Listen-cl 发布的最新帖子

    • RE: eridanus-dep 轻量化的Onebot v11 python sdk

      @Anstiya 好的,谢谢

      发布在 其他项目发布
      L
      Listen-cl
    • RE: eridanus-dep 轻量化的Onebot v11 python sdk

      大佬我提个问题,我是新手,刚开始用mirai,我看到你的ws adapter源码中发送好友消息的格式是data = {
      "action": "send_private_msg",
      "echo": echo,
      "params": {
      "user_id": user_id,
      "message": message.to_dict()
      }
      }
      可是我在文档“https://github.com/project-mirai/mirai-api-http/blob/master/docs/api/API.md#发送好友消息”里面看到的是另一种格式{
      "sessionKey":"YourSession",
      "target":987654321,
      "messageChain":[
      { "type":"Plain", "text":"hello\n" },
      { "type":"Plain", "text":"world" },
      { "type":"Image", "url":"https://i0.hdslb.com/bfs/album/67fc4e6b417d9c68ef98ba71d5e79505bbad97a1.png" }
      ]
      }
      而且我按照官方文档的格式发送消息会收到一个code:500,msg为空的响应

      发布在 其他项目发布
      L
      Listen-cl