Skip to content

Commit

Permalink
with_download_info 兼容 mah 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Wybxc committed Aug 9, 2021
1 parent c76c2b2 commit 2be36d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mirai/models/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ class FileList(ApiGet):
"""文件夹 id,空串为根目录。"""
target: int
"""群号或好友 QQ 号。"""
with_download_info: bool = False
with_download_info: Optional[bool] = None
"""是否携带下载信息。"""
class Info(ApiGet.Info):
name = "file/list"
Expand All @@ -642,7 +642,7 @@ class FileInfo(ApiGet):
"""文件 id。"""
target: int
"""群号或好友 QQ 号。"""
with_download_info: bool = False
with_download_info: Optional[bool] = None
"""是否携带下载信息。"""
class Info(ApiGet.Info):
name = "file/info"
Expand Down

0 comments on commit 2be36d1

Please sign in to comment.