mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-22 15:35:09 +00:00
bin/ use printf
This commit is contained in:
parent
1bd1727ea0
commit
2e878fd864
@ -22,7 +22,7 @@
|
||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||
# CREATED: 23.12.2020 16:52
|
||||
#
|
||||
#### $$VERSION$$ v1.20-0-g2ab00a2
|
||||
#### $$VERSION$$ v1.20-4-g1bd1727
|
||||
#===============================================================================
|
||||
|
||||
####
|
||||
@ -42,10 +42,10 @@ case "$1" in
|
||||
shift
|
||||
;;
|
||||
'')
|
||||
echo "missing arguments"
|
||||
printf "missing arguments\n"
|
||||
;&
|
||||
"-h"*)
|
||||
echo 'usage: send_edit_message [-h|--help] [format] "CHAT[ID]" "MESSAGE[ID]" "message ..." [debug]'
|
||||
printf 'usage: send_edit_message [-h|--help] [format] "CHAT[ID]" "MESSAGE[ID]" "message ..." [debug]\n'
|
||||
exit 1
|
||||
;;
|
||||
'--h'*)
|
||||
|
@ -21,19 +21,18 @@
|
||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||
# CREATED: 25.12.2020 20:24
|
||||
#
|
||||
#### $$VERSION$$ v1.20-0-g2ab00a2
|
||||
#### $$VERSION$$ v1.20-4-g1bd1727
|
||||
#===============================================================================
|
||||
|
||||
|
||||
####
|
||||
# parse args
|
||||
SEND="upload_file"
|
||||
case "$1" in
|
||||
'')
|
||||
echo "missing arguments"
|
||||
printf "missing arguments\n"
|
||||
;&
|
||||
"-h"*)
|
||||
echo 'usage: send_file [-h|--help] "CHAT[ID]" "file" "caption ...." [debug]'
|
||||
printf 'usage: send_file [-h|--help] "CHAT[ID]" "file" "caption ...." [debug]\n'
|
||||
exit 1
|
||||
;;
|
||||
'--h'*)
|
||||
|
@ -21,10 +21,9 @@
|
||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||
# CREATED: 16.12.2020 11:34
|
||||
#
|
||||
#### $$VERSION$$ v1.20-0-g2ab00a2
|
||||
#### $$VERSION$$ v1.20-4-g1bd1727
|
||||
#===============================================================================
|
||||
|
||||
|
||||
####
|
||||
# parse args
|
||||
SEND="send_message"
|
||||
@ -42,10 +41,10 @@ case "$1" in
|
||||
shift
|
||||
;;
|
||||
'')
|
||||
echo "missing arguments"
|
||||
printf "missing arguments\n"
|
||||
;&
|
||||
"-h"*)
|
||||
echo 'usage: send_message [-h|--help] [format] "CHAT[ID]" "message ...." [debug]'
|
||||
printf 'usage: send_message [-h|--help] [format] "CHAT[ID]" "message ...." [debug]\n'
|
||||
exit 1
|
||||
;;
|
||||
'--h'*)
|
||||
|
Loading…
Reference in New Issue
Block a user