add chat_member_count

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2021-01-27 19:30:03 +01:00
parent 279a9e7ca3
commit 41e2d09067

View File

@ -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.35-dev-9-g5ceddde #### $$VERSION$$ v1.40-dev-0-g279a9e7
# will be automatically sourced from bashbot # will be automatically sourced from bashbot
@ -56,6 +56,12 @@ delete_chat_stickers() {
} }
# manage chat member functions ------- # manage chat member functions -------
# $1 chat
chat_member_count() {
sendJson "$1" "" "${URL}/getChatMembersCount"
[ "${BOTSENT[OK]}" = "true" ] && printf "%s\n" "${BOTSENT[RESULT]}"
}
kick_chat_member() { kick_chat_member() {
sendJson "$1" 'user_id: '"$2"'' "${URL}/kickChatMember" sendJson "$1" 'user_id: '"$2"'' "${URL}/kickChatMember"
} }