MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    Solved python怎样@全体成员

    开发交流
    3
    8
    277
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lawren-w last edited by

      可以艾特好友,全体成员怎么艾特

      T 1 Reply Last reply Reply Quote 0
      • MrXiaoM
        MrXiaoM 童心未泯 last edited by

        java:

        AtAll.INSTANCE
        
        L 1 Reply Last reply Reply Quote 0
        • L
          lawren-w @MrXiaoM last edited by

          @mrxiaom 谢谢,已解决

          1 Reply Last reply Reply Quote 0
          • L
            lawren-w last edited by

            python艾特全员
            from graia.application.message.elements.internal import AtAll
            await app.sendGroupMessage(群号, MessageChain.create([
            AtAll()
            ]))

            1 Reply Last reply Reply Quote 0
            • T
              Tomcccc @lawren-w last edited by

              @lawren-w 请问你怎么艾特人的,我可以艾特全员,但是艾特群成员就会报错

              MrXiaoM 1 Reply Last reply Reply Quote 0
              • MrXiaoM
                MrXiaoM 童心未泯 @Tomcccc last edited by

                @tomcccc 我认为你应该把报错的日志贴上来

                T 1 Reply Last reply Reply Quote 0
                • T
                  Tomcccc @MrXiaoM last edited by

                  @mrxiaom 好的谢谢提醒 这是报错日志 aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('http://localhost:8080/sendGroupMessage')

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tomcccc last edited by

                    解决了 是版本问题 mirai-api-http-v1.12.0版本最好使用 mirai-console2.7以及以下的 用最新的2.8.0-M1容易出现这种问题

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact