要发送内存文件,你可以先保存文件到内存中,然后将文件发送给对方。以下是一个简单的示例代码:

```python
import io
from wechaty_puppet import FileBox
# 将文件保存到内存中
file_content = b'File content here'
file_in_memory = io.BytesIO(file_content)
# 创建一个 FileBox 对象
file_box = FileBox.from_stream(file_in_memory, 'file.txt')
# 将 FileBox 发送给对方
await contact.say(file_box)
```
在这个示例中,我们将文件内容保存到内存中,并使用 `FileBox.from_stream` 方法创建一个 FileBox 对象,然后将其发送给对方。通过这种方式,你可以发送内存文件给微信好友。