-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[提问]私聊消息无法正常到达 #828
Labels
question
这啥呀这是,我不到啊
Comments
有一种可能是你的消息包含敏感词。 |
不会 就回复你好都没用 手动发正常 |
bilibili-api/bilibili_api/session.py Lines 355 to 417 in a312432
尝试修改你本地的库里的这部分代码,再试试问题是否再次出现。 async def send_msg(
credential: Credential,
receiver_id: int,
msg_type: EventType,
content: Union[str, Picture],
) -> dict:
...
data = {
...
}
+ query = {
+ "w_sender_uid": sender_uid,
+ "w_receiver_id": receiver_id,
+ }
- return await Api(**api, credential=credential).update_data(**data).result
+ return await Api(**api, credential=credential, wbi=True).update_data(**data).update_params(**query).result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
**Python 版本:3.13
**模块版本:16.3.0
**运行环境: MacOS
发送消息请求是正常的 再本地浏览器上也可以看到消息发出去了 但是别人收不到 看了相关文档
先调用fetch_session_msgs 还是无法正常让别人收到消息
浏览器手动发送别人可以正常收到
The text was updated successfully, but these errors were encountered: