| | |
| | | url = f"{self.base_url}/exceltalk/download/excel" |
| | | return await self.download_from_url(url, params={'excel_name': file_id}) |
| | | |
| | | async def excel_talk_upload(self, chat_id: str, filename: str, file_content: bytes): |
| | | async def excel_talk_upload(self, chat_id: str, files): |
| | | url = f"{self.base_url}/exceltalk/upload/files" |
| | | params = {'chat_id': chat_id, 'is_col': '0'} |
| | | |
| | | # 创建 FormData 对象 |
| | | files = [('files', (filename, file_content, 'application/octet-stream'))] |
| | | |
| | | |
| | | async with httpx.AsyncClient() as client: |
| | | response = await client.post( |