Posting a file via curl to the telegram bot api
Hope this helps. Note that there is "bot" before <token>
.
curl -F document=@"path/to/some.file" https://api.telegram.org/bot<token>/sendDocument?chat_id=<chat_id>
Hope this helps. Note that there is "bot" before <token>
.
curl -F document=@"path/to/some.file" https://api.telegram.org/bot<token>/sendDocument?chat_id=<chat_id>