mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2025-01-13 17:53:19 +00:00
modules: better shorten URLS[*]
This commit is contained in:
parent
969c7a9fbb
commit
1440d56f48
@ -1,4 +1,5 @@
|
||||
data-bot-bash/*
|
||||
webhook-fifo
|
||||
JSON.awk
|
||||
bashbot.rc
|
||||
mycommands.sh
|
||||
|
@ -4,7 +4,7 @@
|
||||
# File: processUpdates.sh
|
||||
# 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}"
|
||||
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]})"\
|
||||
"${MESSAGE:0:30}${CAPTION:0:30}${URLS[*]:0:30}" >>"${UPDATELOG}"
|
||||
"${MESSAGE:0:30}${CAPTION:0:30}$(: "${URL[*]/bot*:}"; printf "%s" "${_//[A-Z-]}")" >>"${UPDATELOG}"
|
||||
fi
|
||||
#####
|
||||
# process inline and message events
|
||||
|
Loading…
Reference in New Issue
Block a user