From 393f6de8b1181f960bdbcda88631b7c8909b8873 Mon Sep 17 00:00:00 2001 From: Pin Lin Date: Mon, 7 May 2018 23:37:11 +0800 Subject: [PATCH] add more argument to do more --- bot.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.sh b/bot.sh index 9aaca69..d000f90 100755 --- a/bot.sh +++ b/bot.sh @@ -5,17 +5,17 @@ user=$2 # 傳送訊息 function sendMessage { - curl "https://api.telegram.org/bot$token/sendMessage?chat_id=$user&text=$1" + curl "https://api.telegram.org/bot$token/sendMessage?chat_id=$user&text=$1$2" } # 傳送照片 function sendPhoto { - curl "https://api.telegram.org/bot$token/sendPhoto?chat_id=$user&photo=$1&caption=$2" + curl "https://api.telegram.org/bot$token/sendPhoto?chat_id=$user&photo=$1&caption=$2$3" } # 傳送貼圖 function sendSticker { - curl "https://api.telegram.org/bot$token/sendSticker?chat_id=$user&sticker=$1" + curl "https://api.telegram.org/bot$token/sendSticker?chat_id=$user&sticker=$1$2" } # 主程式