Telegram 通过电报发送带有说明的文件

Telegram 通过电报发送带有说明的文件,telegram,telegram-bot,Telegram,Telegram Bot,我正在尝试使用电报机器人用户将一个pdf文档和一个关于它的小说明从我的服务器发送到一个电报组。我可以使用/sendDocument方法自行发送文档。然而,这并不是我想要的。我想知道这可能吗 curl -F chat_id="-xxxxxxxxxx" -F document=@"/home/telegram/someFile.pdf" -F text="Text Message with attachment" https://api.telegram.org/bot<token>/s

我正在尝试使用电报机器人用户将一个pdf文档和一个关于它的小说明从我的服务器发送到一个电报组。我可以使用/sendDocument方法自行发送文档。然而,这并不是我想要的。我想知道这可能吗

curl -F chat_id="-xxxxxxxxxx" -F document=@"/home/telegram/someFile.pdf" -F text="Text Message with attachment" https://api.telegram.org/bot<token>/sendMessage
curl-F chat_id=“-xxxxxxxxx”-F document=@”/home/telegrame/someFile.pdf“-F text=“带附件的短信”https://api.telegram.org/bot/sendMessage
该方法有一个键
标题
。你需要把描述放在那里

curl -F chat_id="-xxxxxxxxxx" -F document=@"/home/telegram/someFile.pdf" -F caption="Text Message with attachment" https://api.telegram.org/bot<token>/sendDocument
curl-F chat_id=“-xxxxxxxxx”-F document=@”/home/telegrame/someFile.pdf“-F caption=“带附件的短信”https://api.telegram.org/bot/sendDocument
该方法有一个键
标题
。你需要把描述放在那里

curl -F chat_id="-xxxxxxxxxx" -F document=@"/home/telegram/someFile.pdf" -F caption="Text Message with attachment" https://api.telegram.org/bot<token>/sendDocument
curl-F chat_id=“-xxxxxxxxx”-F document=@”/home/telegrame/someFile.pdf“-F caption=“带附件的短信”https://api.telegram.org/bot/sendDocument