mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-22 07:25:10 +00:00
_is_function process_inline is always true
This commit is contained in:
parent
afc669c915
commit
6651cf4f0a
@ -11,7 +11,7 @@
|
||||
# This file is public domain in the USA and all free countries.
|
||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||
#
|
||||
#### $$VERSION$$ v0.90-dev2-13-gcb3f3e3
|
||||
#### $$VERSION$$ v0.90-dev2-14-gafc669c
|
||||
#
|
||||
# Exit Codes:
|
||||
# - 0 sucess (hopefully)
|
||||
@ -349,7 +349,7 @@ process_client() {
|
||||
process_message "${num}" "${debug}"
|
||||
else
|
||||
[[ "${debug}" = *"debug"* ]] && cat <<< "$UPDATE" >>"INLINE.log"
|
||||
[ "$INLINE" != "0" ] && _exec_if_function process_inline "${num}" "${debug}"
|
||||
process_inline "${num}" "${debug}"
|
||||
fi
|
||||
#####
|
||||
# process inline and message events
|
||||
@ -361,7 +361,7 @@ process_client() {
|
||||
if [ "${iQUERY[ID]}" = "" ]; then
|
||||
event_message "${debug}"
|
||||
else
|
||||
_is_function process_inline && event_inline "${debug}"
|
||||
event_inline "${debug}"
|
||||
fi
|
||||
|
||||
# last count users
|
||||
|
@ -5,7 +5,7 @@
|
||||
# This file is public domain in the USA and all free countries.
|
||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||
#
|
||||
#### $$VERSION$$ v0.90-dev2-6-g3c6b2d3
|
||||
#### $$VERSION$$ v0.90-dev2-14-gafc669c
|
||||
#
|
||||
|
||||
# adjust your language setting here, e.g.when run from other user or cron.
|
||||
@ -59,10 +59,8 @@ if [ "${1}" != "source" ];then
|
||||
# detect inline commands....
|
||||
# no default commands, all processing is done in myinlines()
|
||||
if [ "$INLINE" != "0" ] && [ "${iQUERY[ID]}" != "" ]; then
|
||||
if _is_function process_inline; then
|
||||
# forward iinline query to optional dispatcher
|
||||
_exec_if_function myinlines
|
||||
fi
|
||||
|
||||
# regular (gobal) commands ...
|
||||
# your commands are in mycommands()
|
||||
|
Loading…
Reference in New Issue
Block a user