Last active
August 31, 2020 08:37
-
-
Save v1dhun/afc70dd11f93d0c6393fa3c5573ee669 to your computer and use it in GitHub Desktop.
Revisions
-
v1dhun created this gist
Aug 31, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ #!/bin/bash chat_id="$1" token="$2" SendFile(){ curl -s -F chat_id="$chat_id" -F document=@"$1" -F caption="$2" https://api.telegram.org/bot$token/sendDocument &>/dev/null } SendFile "$3" "$4"