如何使用 ktor 客户端将文件作为多部分/表单数据发布?我想将它用于电报机器人 API“发送文档”。我需要获得与curl命令相同的结果
curl -F document=@"path/to/some.file" https://api.telegram.org/bot<token>/sendDocument?chat_id=<chat_id>
kotlin telegram ktor
kotlin ×1
ktor ×1
telegram ×1