mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-28 12:50:44 +00:00
example report left chat member
This commit is contained in:
parent
80b94f4cb4
commit
4d5b79283c
@ -8,7 +8,7 @@
|
|||||||
# #### if you start to develop your own bot, use the clean version of this file:
|
# #### if you start to develop your own bot, use the clean version of this file:
|
||||||
# #### mycommands.clean
|
# #### mycommands.clean
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v0.99-dev2-3-gd181e9d
|
#### $$VERSION$$ v0.99-dev2-4-g80b94f4
|
||||||
#
|
#
|
||||||
|
|
||||||
# uncomment the following lines to overwrite info and help messages
|
# uncomment the following lines to overwrite info and help messages
|
||||||
@ -56,8 +56,9 @@ export SILENCER="no"
|
|||||||
# export WELCOME_NEWMEMBER="yes"
|
# export WELCOME_NEWMEMBER="yes"
|
||||||
WELCOME_MSG="Welcome"
|
WELCOME_MSG="Welcome"
|
||||||
|
|
||||||
# uncomment if you want to be informed about new chat members
|
# uncomment if you want to be informed about new/left chat members
|
||||||
# export REPORT_NEWMEMBER="yes"
|
# export REPORT_NEWMEMBER="yes"
|
||||||
|
# export REPORT_LEFTMEMBER="yes"
|
||||||
|
|
||||||
# messages for admin only commands
|
# messages for admin only commands
|
||||||
NOTADMIN="Sorry, this command is allowed for admin or owner only"
|
NOTADMIN="Sorry, this command is allowed for admin or owner only"
|
||||||
@ -143,6 +144,10 @@ else
|
|||||||
"New member: ${CHAT[TITLE]} (${CHAT[ID]}): ${NEWMEMBER[FIRST_NAME]} ${NEWMEMBER[LAST_NAME]} (@${NEWMEMBER[USERNAME]})"
|
"New member: ${CHAT[TITLE]} (${CHAT[ID]}): ${NEWMEMBER[FIRST_NAME]} ${NEWMEMBER[LAST_NAME]} (@${NEWMEMBER[USERNAME]})"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
'/_left_chat_member'*)
|
||||||
|
[ -n "${REPORT_LEFTMEMBER}" ] && send_normal_message "$(getConfigKey "botadmin")"\
|
||||||
|
"Left member: ${CHAT[TITLE]} (${CHAT[ID]}): ${NEWMEMBER[FIRST_NAME]} ${NEWMEMBER[LAST_NAME]} (@${NEWMEMBER[USERNAME]})"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "${MESSAGE}" in
|
case "${MESSAGE}" in
|
||||||
|
Loading…
Reference in New Issue
Block a user