问题描述
我知道我可以使用这个
client.send_file(receiver,'/path/to/photo.jpg')
要发送图像,但如何在图像上附加说明?
解决方法
根据文档,只需像 client.send_file(chat,'/my/photos/me.jpg',caption="It's me!")
这样的关键字参数传递标题的值。您可以阅读文档 here
我知道我可以使用这个
client.send_file(receiver,'/path/to/photo.jpg')
要发送图像,但如何在图像上附加说明?
根据文档,只需像 client.send_file(chat,'/my/photos/me.jpg',caption="It's me!")
这样的关键字参数传递标题的值。您可以阅读文档 here