telegram 中,如何正确的发送一个文件 #1320
Unanswered
Ice-Hazymoon
asked this question in
Q&A
Replies: 1 comment 2 replies
-
直接发送 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我现在是这样发送的,但是 sendDocument 里的
SendDocumentPayload
参数类型不是 formdata,所以会类型报错其他的话还可以用
bot.http('/sendDocument')
这样,不会报错,但感觉应该还有更好的方法还有的话就是用
session.send(elements)
,但是如何增加一些自定义字段,例如设置protect_content = true
Beta Was this translation helpful? Give feedback.
All reactions