mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2025-01-14 10:06:41 +00:00
modules: better shorten URLS[*]
This commit is contained in:
parent
969c7a9fbb
commit
1440d56f48
@ -1,4 +1,5 @@
|
|||||||
data-bot-bash/*
|
data-bot-bash/*
|
||||||
|
webhook-fifo
|
||||||
JSON.awk
|
JSON.awk
|
||||||
bashbot.rc
|
bashbot.rc
|
||||||
mycommands.sh
|
mycommands.sh
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# File: processUpdates.sh
|
# File: processUpdates.sh
|
||||||
# Note: DO NOT EDIT! this file will be overwritten on update
|
# Note: DO NOT EDIT! this file will be overwritten on update
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.40-dev-28-g91a143a
|
#### $$VERSION$$ v1.40-dev-33-g969c7a9
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
##############
|
##############
|
||||||
@ -82,7 +82,7 @@ process_update() {
|
|||||||
process_message "${num}" "${debug}"
|
process_message "${num}" "${debug}"
|
||||||
printf "%(%c)T: update received FROM=%s CHAT=%s CMD=%s\n" -1 "${USER[USERNAME]:0:20} (${USER[ID]})"\
|
printf "%(%c)T: update received FROM=%s CHAT=%s CMD=%s\n" -1 "${USER[USERNAME]:0:20} (${USER[ID]})"\
|
||||||
"${CHAT[USERNAME]:0:20}${CHAT[TITLE]:0:30} (${CHAT[ID]})"\
|
"${CHAT[USERNAME]:0:20}${CHAT[TITLE]:0:30} (${CHAT[ID]})"\
|
||||||
"${MESSAGE:0:30}${CAPTION:0:30}${URLS[*]:0:30}" >>"${UPDATELOG}"
|
"${MESSAGE:0:30}${CAPTION:0:30}$(: "${URL[*]/bot*:}"; printf "%s" "${_//[A-Z-]}")" >>"${UPDATELOG}"
|
||||||
fi
|
fi
|
||||||
#####
|
#####
|
||||||
# process inline and message events
|
# process inline and message events
|
||||||
|
Loading…
Reference in New Issue
Block a user