mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-29 05:02:46 +00:00
modules: sendMessage: send_sticker
This commit is contained in:
parent
daeffb30e8
commit
87f618fadb
@ -6,7 +6,7 @@
|
|||||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||||
#
|
#
|
||||||
# shellcheck disable=SC1117
|
# shellcheck disable=SC1117
|
||||||
#### $$VERSION$$ v1.30-dev-2-gcc299a5
|
#### $$VERSION$$ v1.30-dev-5-gdaeffb3
|
||||||
|
|
||||||
# will be automatically sourced from bashbot
|
# will be automatically sourced from bashbot
|
||||||
|
|
||||||
@ -143,6 +143,11 @@ send_button() {
|
|||||||
send_inline_keyboard "$1" "$2" '[ {"text":"'"$(JsonEscape "$3")"'", "url":"'"$4"'"}]'
|
send_inline_keyboard "$1" "$2" '[ {"text":"'"$(JsonEscape "$3")"'", "url":"'"$4"'"}]'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# $1 chat, $2 file_id on telegram server
|
||||||
|
send_sticker() {
|
||||||
|
sendJson "$1" '"sticker": "'"$2"'"' "${URL}/setChatDescription"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if [ -z "${BASHBOT_WGET}" ] && _exists curl ; then
|
if [ -z "${BASHBOT_WGET}" ] && _exists curl ; then
|
||||||
# there are no checks if URL or ID exists
|
# there are no checks if URL or ID exists
|
||||||
|
Loading…
Reference in New Issue
Block a user