Giter Site home page Giter Site logo

创建群组出错 about wxpy HOT 4 CLOSED

youfou avatar youfou commented on April 28, 2024
创建群组出错

from wxpy.

Comments (4)

youfou avatar youfou commented on April 28, 2024

这个情况是因为请求“创建群聊”接口后,微信服务端返回内容中的错误码为0 (正常情况下表示操作成功),但返回内容并没有提供新创建群聊的关键字段,比如 UserName。

wxpy 把这种情况认为是创建失败,原因未知。

可能是触发了微信服务端的某种限制,可以重试看看。

from wxpy.

youfou avatar youfou commented on April 28, 2024

Hello, 今天又看了下你的代码,发现是因为你在创建群组时,users 参数填写了微信ID。
最近微信好像有调整,无论是发消息还是加好友,都不能再使用微信ID了,所以请使用wxpy的用户对象,或类似 '@1234567890abcdef...' 的 user_name。

from wxpy.

yeyuguo avatar yeyuguo commented on April 28, 2024

我使用了 <Friend: xxx > wxpy 的对象list 作为参数,一样的报错:

users = [<Friend: xxx1 >, <Friend: xxx2 >]
bot.create_group(users,topic='weiyi')
# 报错信息如下
ResponseError: err_code: -1000; err_msg: 返回值不带BaseResponse

from wxpy.

Victer-python avatar Victer-python commented on April 28, 2024
In [7]: users = ['糟糕,***','橘****','D***']

In [8]: bot.create_group(users, topic='test_group')

# 报错信息如下
ResponseError: err_code: -1000; err_msg: 返回值不带BaseResponse

from wxpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.