Nonebot-adapter-satori

Latest version: v0.12.6

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 8

0.5.0

新增
- `image`, `audio`, `video`, `file` 支持传入 file 或者 raw data
- `file`: 可以传入 str 或者 Path 类型
- `raw` 需要传入 `{"data": bytes, "mime": str}" 样式的字典
- `data`: bytes 或者 BytesIO
- `mime`: 数据的 MIME 类型

**Full Changelog**: https://github.com/nonebot/adapter-satori/compare/v0.4.0...v0.5.0

0.4.0

破坏性改动
- 拆分 `MessageSegment.entity` 为具体的元素
- 删除意义不明的 `Message.extract_content`

新增
- `MessageSegment` 新增 `.bold()`, `.underline()` 等方法

改进
- `Text`, `Linkl`, `Br`, `Paragraph`, `Bold` 等元素的 `is_text` 为真
- 为 `Br` 设置 `text` 数据

修复
- 修复 `event.to_me` 处理

**Full Changelog**: https://github.com/nonebot/adapter-satori/compare/v0.3.0...v0.4.0

0.3.0

新增
- `reaction` 相关的 api

改进
- api 返回值500的时候会抛出 `ApiNotImpletmentException` 错误

修复
- 修复部分 `XXX-list` 的返回值格式错误问题

**Full Changelog**: https://github.com/nonebot/adapter-satori/compare/v0.2.0...v0.3.0

0.2.0

新增
- `bot.internal` 方法,对应 https://satori.js.org/zh-CN/protocol/internal.html#%E5%86%85%E9%83%A8-api

改进
- 鉴权时现在会验证 `login.self_id` 和 `login.status`

**Full Changelog**: https://github.com/nonebot/adapter-satori/compare/v0.1.3...v0.2.0

0.1.3

- `Channel.name` 现在是可选字段

**Full Changelog**: https://github.com/nonebot/adapter-satori/compare/v0.1.2...v0.1.3

0.1.2

What's Changed
* 进一步更新 `extra.allow`
* :memo: update readme by mobyw in https://github.com/nonebot/adapter-satori/pull/1

New Contributors
* mobyw made their first contribution in https://github.com/nonebot/adapter-satori/pull/1

**Full Changelog**: https://github.com/nonebot/adapter-satori/compare/v0.1.1...v0.1.2

Page 7 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.