MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接

    QQ群成员(未加好友)私聊报错

    开发交流
    3
    7
    419
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • L
      laocunzhang 最后由 编辑

      java.util.NoSuchElementException: group 2055561833
      at net.mamoe.mirai.Bot.getGroupOrFail(Bot.kt:152)
      at net.mamoe.mirai.internal.message.OnlineMessageSourceFromTempImpl.<init>(incomingSourceImpl.kt:139)
      at net.mamoe.mirai.internal.message.ReceiveMessageTransformer.createMessageSource(ReceiveMessageHandler.kt:109)
      at net.mamoe.mirai.internal.message.ReceiveMessageHandlerKt.toMessageChain(ReceiveMessageHandler.kt:83)
      at net.mamoe.mirai.internal.message.ReceiveMessageHandlerKt.toMessageChainOnline(ReceiveMessageHandler.kt:49)
      at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvc_PbGetMsgKt.transform(MessageSvc.PbGetMsg.kt:515)
      at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvc_PbGetMsgKt.transform$default(MessageSvc.PbGetMsg.kt:248)
      at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$messages$5.invokeSuspend(MessageSvc.PbGetMsg.kt:184)
      at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$messages$5.invoke(MessageSvc.PbGetMsg.kt)
      at kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1$2.emit(Collect.kt:134)
      at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$$inlined$filter$1$2.emit(Collect.kt:135)
      at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$messages$2$invokeSuspend$$inlined$filter$1$2.emit(Collect.kt:135)
      at kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3.collect(SafeCollector.common.kt:115)
      at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$messages$2$invokeSuspend$$inlined$filter$1.collect(SafeCollector.common.kt:114)
      at kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$$inlined$unsafeFlow$1$lambda$1.emit(Collect.kt:134)
      at kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1$2.emit(Collect.kt:134)
      at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$$inlined$filterNot$1$2.emit(Collect.kt:135)
      at kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3.collect(SafeCollector.common.kt:115)
      at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$$inlined$filterNot$1.collect(SafeCollector.common.kt:114)
      at kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1.collect(SafeCollector.common.kt:114)
      at kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$$inlined$unsafeFlow$1.collect(SafeCollector.common.kt:114)
      at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$$inlined$filter$1.collect(SafeCollector.common.kt:114)
      at kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1.collect(SafeCollector.common.kt:114)
      at kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$$inlined$unsafeFlow$1.collect(SafeCollector.common.kt:114)
      at kotlinx.coroutines.flow.FlowKt__CollectionKt.toCollection(Collection.kt:32)
      at kotlinx.coroutines.flow.FlowKt.toCollection(Unknown Source)
      at kotlinx.coroutines.flow.FlowKt__CollectionKt.toList(Collection.kt:15)
      at kotlinx.coroutines.flow.FlowKt.toList(Unknown Source)
      at kotlinx.coroutines.flow.FlowKt__CollectionKt.toList$default(Collection.kt:15)
      at kotlinx.coroutines.flow.FlowKt.toList$default(Unknown Source)
      at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg.decode(MessageSvc.PbGetMsg.kt:188)
      at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$1.invokeSuspend(MessageSvc.PbGetMsg.kt)
      at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
      at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
      at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
      at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
      at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
      at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

      1 条回复 最后回复 回复 引用 0
      • L
        laocunzhang 最后由 编辑

        临时会话 会出错

        1 条回复 最后回复 回复 引用 0
        • L
          laocunzhang 最后由 编辑

          <dependency>
          <groupId>net.mamoe</groupId>
          <artifactId>mirai-core-jvm</artifactId>
          <version>2.7-M2</version>
          </dependency>

          1 条回复 最后回复 回复 引用 0
          • yoonching
            yoonching 最后由 编辑

            qq群有一个设置开关是允许成员发起临时会话,安卓手Q的设置路径是管理群-成员权限。如果关闭,则除了群主和管理员不得发起临时会话。是不是这个被勾选了啊。

            L 1 条回复 最后回复 回复 引用 0
            • L
              laocunzhang @yoonching 最后由 编辑

              不是的,我都机器人是管理员,是可以发起临时会话权限的

              1 条回复 最后回复 回复 引用 0
              • L
                laocunzhang 最后由 编辑

                这个临时消息有个group id是2055561833,这个群不存在的。有点奇怪。临时会话的群id么?

                1 条回复 最后回复 回复 引用 0
                • A
                  AlbertYip 最后由 编辑

                  请问一下,大神这个功能,私聊群成员怎么实现的呢?小弟也有这个需求,实在搞不懂,要怎么实现,其他大神说用什么yiri-mirai,这是个什么东东啊?怎么用呢?你是用什么方法实现的?能参考一下吗?

                  1 条回复 最后回复 回复 引用 0
                  • 1 / 1
                  • First post
                    Last post
                  Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact