Skip to content

Commit 0c27ad8

Browse files
authored
Update README.md (#158)
* Update README.md
1 parent 60fffb7 commit 0c27ad8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ import botpy
4242

4343
> 原机器人的老版本`qq-bot`仍然可以使用,但新接口的支持上会逐渐暂停,此次升级不会影响线上使用的机器人
4444
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+
4551
## 使用方式
4652

4753
### 快速入门

examples/demo_c2c_reply_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async def on_ready(self):
1616
_log.info(f"robot 「{self.robot.name}」 on_ready!")
1717

1818
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
2020
uploadMedia = await message._api.post_c2c_file(
2121
openid=message.author.user_openid,
2222
file_type=1, # 文件类型要对应上,具体支持的类型见方法说明

0 commit comments

Comments
 (0)