mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-29 10:43:53 +00:00
Separated markdown sendmessage
This commit is contained in:
parent
76e96c05a1
commit
4d2a6a6de2
@ -60,11 +60,15 @@ send_message() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$sent" != "y" ];then
|
if [ "$sent" != "y" ];then
|
||||||
res=$(curl -s "$MSG_URL" -F "chat_id=$chat" -F "text=$text" -F "parse_mode=markdown")
|
res=$(curl -s "$MSG_URL" -F "chat_id=$chat" -F "text=$text")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
send_markdown_message() {
|
||||||
|
res=$(curl -s "$MSG_URL" -F "chat_id=$1" -F "text=$2" -F "parse_mode=markdown")
|
||||||
|
}
|
||||||
|
|
||||||
send_keyboard() {
|
send_keyboard() {
|
||||||
local chat="$1"
|
local chat="$1"
|
||||||
local text="$2"
|
local text="$2"
|
||||||
|
Loading…
Reference in New Issue
Block a user