mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2025-01-16 02:42:19 +00:00
add /edited_message example to mycommands.sh
This commit is contained in:
parent
18f0ace928
commit
91ced1fa35
@ -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.96-0-g3871ca9
|
#### $$VERSION$$ v0.98-dev-33-g18f0ace
|
||||||
#
|
#
|
||||||
|
|
||||||
# uncomment the following lines to overwrite info and help messages
|
# uncomment the following lines to overwrite info and help messages
|
||||||
@ -99,6 +99,12 @@ else
|
|||||||
send_markdown_message "${CHAT[ID]}" "*${NOTBOTADMIN}*"; return 1
|
send_markdown_message "${CHAT[ID]}" "*${NOTBOTADMIN}*"; return 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
# will we process edited messages also?
|
||||||
|
'/edited_message'*)
|
||||||
|
return 1 # no
|
||||||
|
# but if we do, remove /edited_message
|
||||||
|
MESSAGE="${MESSAGE#/* }"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "${MESSAGE}" in
|
case "${MESSAGE}" in
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# files: mycommands.sh.clean
|
# files: mycommands.sh.clean
|
||||||
# copy to mycommands.sh and add all your commands and functions here ...
|
# copy to mycommands.sh and add all your commands and functions here ...
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v0.96-0-g3871ca9
|
#### $$VERSION$$ v0.98-dev-33-g18f0ace
|
||||||
#
|
#
|
||||||
|
|
||||||
##########
|
##########
|
||||||
@ -72,7 +72,6 @@ else
|
|||||||
# a service Message was received
|
# a service Message was received
|
||||||
# add your own stuff here
|
# add your own stuff here
|
||||||
if [ -n "${SERVICE}" ]; then
|
if [ -n "${SERVICE}" ]; then
|
||||||
|
|
||||||
# example: delete every service message
|
# example: delete every service message
|
||||||
if [ "${SILENCER}" = "yes" ]; then
|
if [ "${SILENCER}" = "yes" ]; then
|
||||||
delete_message "${CHAT[ID]}" "${MESSAGE[ID]}"
|
delete_message "${CHAT[ID]}" "${MESSAGE[ID]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user