mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2025-02-06 04:08:25 +00:00
modules: chatMember: fix getChatMember URL
This commit is contained in:
parent
d269f9816d
commit
a545bf1d8e
@ -5,7 +5,7 @@
|
|||||||
#
|
#
|
||||||
# tested on: ubuntu, opensuse, debian
|
# tested on: ubuntu, opensuse, debian
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.25-dev-51-gb2eecc5
|
#### $$VERSION$$ v1.30-dev-28-gd269f98
|
||||||
# shellcheck disable=SC2009
|
# shellcheck disable=SC2009
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ case "$1" in
|
|||||||
'status')
|
'status')
|
||||||
ps -f -u "${runas}" | grep "${name}" | grep -qF "bashbot.sh startbot"
|
ps -f -u "${runas}" | grep "${name}" | grep -qF "bashbot.sh startbot"
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
printf "bashbot (%s) is runningi\n" "${name}"
|
printf "bashbot (%s) is running\n" "${name}"
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
else
|
else
|
||||||
printf "bashbot (%s) is stopped\n" "${name}"
|
printf "bashbot (%s) is stopped\n" "${name}"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# This file is public domain in the USA and all free countries.
|
# This file is public domain in the USA and all free countries.
|
||||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.30-dev-13-g29fa5cf
|
#### $$VERSION$$ v1.30-dev-28-gd269f98
|
||||||
|
|
||||||
# will be automatically sourced from bashbot
|
# will be automatically sourced from bashbot
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ leave_chat() {
|
|||||||
# usage: status="$(get_chat_member_status "chat" "user")"
|
# usage: status="$(get_chat_member_status "chat" "user")"
|
||||||
# $1 chat # $2 user
|
# $1 chat # $2 user
|
||||||
get_chat_member_status() {
|
get_chat_member_status() {
|
||||||
sendJson "$1" '"user_id":'"$2"'' "${URL}/kickChatMember"
|
sendJson "$1" '"user_id":'"$2"'' "${URL}/getChatMember"
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
JsonGetString '"result","status"' <<< "${res}"
|
JsonGetString '"result","status"' <<< "${res}"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user