mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-22 07:25:10 +00:00
bin: finally symlink send_edit_message.sh
This commit is contained in:
parent
3378c1a5d1
commit
28328013c7
@ -2,7 +2,7 @@
|
|||||||
# shellcheck disable=SC1090,SC2034
|
# shellcheck disable=SC1090,SC2034
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
#
|
#
|
||||||
# FILE: bin/send_message.sh
|
# FILE: bin/edit_message.sh
|
||||||
#
|
#
|
||||||
USAGE='send_edit_message.sh [-h|--help] [format|caption] "CHAT[ID]" "MESSAGE[ID]" "message ...." [debug]'
|
USAGE='send_edit_message.sh [-h|--help] [format|caption] "CHAT[ID]" "MESSAGE[ID]" "message ...." [debug]'
|
||||||
#
|
#
|
||||||
@ -23,7 +23,7 @@ USAGE='send_edit_message.sh [-h|--help] [format|caption] "CHAT[ID]" "MESSAGE[ID]
|
|||||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||||
# CREATED: 23.12.2020 16:52
|
# CREATED: 23.12.2020 16:52
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.31-dev-14-g749eee7
|
#### $$VERSION$$ v1.32-dev-5-g3378c1a
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
|
||||||
####
|
####
|
||||||
|
@ -1,53 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# shellcheck disable=SC1090,SC2034
|
|
||||||
#===============================================================================
|
|
||||||
#
|
|
||||||
# FILE: bin/edit_buttons.sh
|
|
||||||
#
|
|
||||||
USAGE='send_message.sh [-h|--help] "CHAT[ID]" "MESSAGE[ID]" "text|url" ...'
|
|
||||||
#
|
|
||||||
# DESCRIPTION: send a send buttons in a row to the given user/group
|
|
||||||
#
|
|
||||||
# OPTIONS: CHAT[ID] - ID number of CHAT or BOTADMIN to send to yourself
|
|
||||||
# MESSAGE[ID] - ID of MESSAGE with buttons to edit
|
|
||||||
# text|url - buttons to send, each button as "text|url" pair or
|
|
||||||
# "url" only to show url as text also, "" starts new row
|
|
||||||
#
|
|
||||||
# -h - display short help
|
|
||||||
# --help - this help
|
|
||||||
#
|
|
||||||
# EXAMPLE: 2 buttons on 2 rows, first shows Amazon, second the url as text
|
|
||||||
# send_buttons.sh "Amazon|https://www.amazon.com" "" "https://mydealz.de" ...
|
|
||||||
#
|
|
||||||
# Set BASHBOT_HOME to your installation directory
|
|
||||||
#
|
|
||||||
# LICENSE: WTFPLv2 http://www.wtfpl.net/txt/copying/
|
|
||||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
|
||||||
# CREATED: 21.01.2021 08:10
|
|
||||||
#
|
|
||||||
#### $$VERSION$$ v1.32-dev-4-g407194b
|
|
||||||
#===============================================================================
|
|
||||||
|
|
||||||
####
|
|
||||||
# parse args
|
|
||||||
SEND="edit_inline_keyboard"
|
|
||||||
|
|
||||||
# set bashbot environment
|
|
||||||
source "${0%/*}/bashbot_env.inc.sh" "debug"
|
|
||||||
print_help
|
|
||||||
|
|
||||||
####
|
|
||||||
# ready, do stuff here -----
|
|
||||||
if [ "$1" == "BOTADMIN" ]; then
|
|
||||||
CHAT="${BOT_ADMIN}"
|
|
||||||
else
|
|
||||||
CHAT="$1"
|
|
||||||
fi
|
|
||||||
MESSAGE_ID="$2"
|
|
||||||
shift 2
|
|
||||||
|
|
||||||
# send message in selected format
|
|
||||||
"${SEND}" "${CHAT}" "${MESSAGE_ID}" "$(_button_row "$@")"
|
|
||||||
|
|
||||||
# output send message result
|
|
||||||
print_result
|
|
1
bin/send_edit_message.sh
Symbolic link
1
bin/send_edit_message.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
edit_message.sh
|
Loading…
Reference in New Issue
Block a user