# Send File

> Send File is an Agent Skill for apps & automation published in the CoderWanFeng/python-office repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

通过微信向指定联系人发送文件。当用户提到微信发文件、微信传文件、微信机器人传文件时使用。

- Skill name: `send_file`
- Category: [Apps & Automation](https://www.openparable.com/skill/apps-automation/1)
- Source: https://github.com/CoderWanFeng/python-office/blob/HEAD/skills/wechat/send_file/SKILL.md
- Repository: CoderWanFeng/python-office (1,326 GitHub stars when collected)

## SKILL.md

# send_file Skill

> 发送文件给指定联系人

## 功能描述

通过微信自动化，向指定联系人发送一个文件。

## 所属分类

`office/skills/wechat/send_file/`

## 调用方式

```python
from office.skills.wechat import send_file

send_file(who='文件传输助手', file='./test.txt')
```

## 参数说明

| 参数 | 类型 | 必填 | 默认值 | 说明 |
|------|------|------|--------|------|
| `who` | str | 是 | - | 接收文件的联系人名称 |
| `file` | str | 是 | - | 要发送的文件路径 |

## 返回值

`None`

## 使用示例

```python
from office.skills.wechat import send_file
send_file(who='文件传输助手', file='./report.pdf')
```

## 原始函数

`office.api.wechat.send_file`

---

Source: https://www.openparable.com/skill/apps-automation/send-file (OpenParable). Cite the canonical URL above.
