File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ import botpy
42
42
43
43
> 原机器人的老版本` qq-bot ` 仍然可以使用,但新接口的支持上会逐渐暂停,此次升级不会影响线上使用的机器人
44
44
45
+ ## 版本更新说明
46
+ ### v1.1.4
47
+ 1 . 更新鉴权方式。 新版本通过AppID + AppSecret进行鉴权,需要使用者进行适配。AppSecret见[ QQ机器人开发设置页] ( https://q.qq.com/qqbot/#/developer/developer-setting ) 中的AppSecret字段。具体适配方式见示例 [ 鉴权配置示例] ( ./examples/config.example.yaml ) [ 鉴权传参接口变更示例] ( ./examples/demo_at_reply.py )
48
+ 2 . 增加群和好友内发消息能力。可参考[ 群内发消息示例] ( ./examples/demo_group_reply_text.py ) [ 好友内发消息示例] ( ./examples/demo_c2c_reply_text.py )
49
+ 3 . 增加群和好友内发送富媒体消息能力,目前支持图片、视频、语音类型。可参考 [ 群内发富媒体消息示例] ( ./examples/demo_group_reply_file.py ) [ 好友内发富媒体消息示例] ( ./examples/demo_c2c_reply_file.py )
50
+
45
51
## 使用方式
46
52
47
53
### 快速入门
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ async def on_ready(self):
16
16
_log .info (f"robot 「{ self .robot .name } 」 on_ready!" )
17
17
18
18
async def on_c2c_message_create (self , message : C2CMessage ):
19
- file_url = "https://image.superqqshow.qq.com/qq/nearby/nearby_pro_guide_pic_1.png " # 这里需要填写上传的资源Url
19
+ file_url = "" # 这里需要填写上传的资源Url
20
20
uploadMedia = await message ._api .post_c2c_file (
21
21
openid = message .author .user_openid ,
22
22
file_type = 1 , # 文件类型要对应上,具体支持的类型见方法说明
You can’t perform that action at this time.
0 commit comments