python - 如何在 python 中使用 Telethon 发送带有标题的图像?
问题描述
我知道我可以使用这个
client.send_file(receiver, '/path/to/photo.jpg')
发送图像,但如何为图像附加标题?
解决方案
根据文档,只需使用类似这样的关键字参数传递标题的值client.send_file(chat, '/my/photos/me.jpg', caption="It's me!")
。您可以在此处阅读文档
推荐阅读
- html - 显示正方形的离子自定义图标
- javascript - React Native - 从库项目中,如何导入和使用包的模块
- node-red - 节点红色。每 1 秒读取一次节点状态
- ruby-on-rails - 使用 Rails 和 Devise 未定义的局部变量或方法
- java - 从 java 发送的 Soap 请求
- java - java常量循环性能优化
- mod-rewrite - 强制 HTTPS 到 HTTP
- scala - 如何透明地将输入元素与输出元素相关联
- ruby - 如何使用 Selenium Webdriver 在页面上找到仅可见的元素?
- javascript - HighCharts:获取 Y 和 X 值