Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
ieew committed Feb 2, 2022
1 parent b25fe8b commit 6ff15dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nonebot/adapters/mirai2/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def image(cls,
* ``url: Optional[str]``: 图片的URL,发送时可作网络图片的链接
* ``path: Optional[str]``: 图片的路径,发送本地图片
"""
return cls(type=MessageType.IMAGE, imageId=image_id, url=url, path=path)
return cls(type=MessageType.IMAGE, imageId=image_id, url=url, path=path, base64=base64)

@classmethod
def flash_image(cls,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot_adapter_mirai2"
version = "0.0.2"
version = "0.0.3"
description = "兼容 MiraiApiHttp2.x 的 nonebot2_adapter"
authors = ["ieew <i@ieew.cc>"]
license = "AGPL-3.0"
Expand Down

0 comments on commit 6ff15dc

Please sign in to comment.