I'm trying to send multiple messages such as two text files to Telegram via Curl. It works fine if it would be only one Txt file, but if I'd like to send two Txt files it'll be don't work. I also tried that thing, but not work:
curl -X POST -F "chat_id=-CHAT_ID" \
-F "document=@/tmp/test/1.txt" \
-F "document=@/tmp/test/2.txt" \
https://api.telegram.org/API_TOKEN/sendDocument
The command works fine without any error, But only the first Txt file is sent. There's no second Txt file. Any idea? Thanks for your helps.