木子

Results 3 comments of 木子

这是我的部分代码: # 读取本地图片文件并进行base64编码 with open(answer_2, "rb") as image_file: encoded_string = base64.b64encode(image_file.read()).decode('utf-8') image_response = requests.post( url=f"https://api.sgroup.qq.com/v2/groups/{group_openid}/files", json={"file_type": 1,"file_data": encoded_string,"group_openid": group_openid}, headers={"Authorization": "QQBot " + get_access_token()} ) print(image_response.json()) file_info = image_response.json().get("file_info") image_response1...

文件名字不要有“_”,真的很奇怪啊!

我觉得botpy的log其实不错😌我们参考一下(੭˙ᗜ˙)੭