mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 14:03:17 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
6393dc1ea5
commit
d5fb7b6754
5 changed files with 28 additions and 13 deletions
|
@ -13,6 +13,6 @@ function sendMessage(message) {
|
|||
|
||||
function sendPhoto(path) {
|
||||
var url = 'https://api.telegram.org/bot' + telegramToken + '/sendPhoto';
|
||||
var cmd = 'curl -s -X POST "' + url + '" -F chat_id=' + telegramChatId + ' -F photo="@' + path + '"';
|
||||
var cmd = 'curl -s -X POST "' + url + '" -F chat_id=' + telegramChatId + ' -F photo="@' + path + '" > /dev/null';
|
||||
run("!"+cmd);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue