Skip to content

Commit

Permalink
✨ add get file api
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed May 5, 2024
1 parent a29c88f commit 07980c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nonebot/adapters/feishu/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,13 @@ async def send_msg(
},
)

async def get_file(self, file_key: str):
response = await self.call_api(
f"im/v1/files/{file_key}", method="GET", _return_response=True
)

return response.content

@override
async def send(
self,
Expand Down

0 comments on commit 07980c2

Please sign in to comment.