Closed jonashaag closed 3 years ago
if you send a message you get the result in BOTSENT ... hm looks like I did not docment this.
MessageID can be found in ${BOTSENT[ID]}
, e.g. see https://github.com/topkecleon/telegram-bot-bash/blob/6dc8f1b267e8604651e34f3621f3f7605cf8d3f1/mycommands.sh#L154
Good to know, thanks!
Feel free to close this issue if you like.
thanks for the edit Message example implementation. I'll move it into the new file, modules/editMessage.sh
, so all edit Message variants will be togther in one file later on.
ich dachte schon Jonas Haag heist doch ein Sohn vom Weingut Haag, Karlsruhe ist aber ein Stück weg. Gruß aus Worms
First try of an edit_xxx_message
implementation https://github.com/topkecleon/telegram-bot-bash/blob/a25f876a06701dca837b2268e4b06f740511c2ff/modules/sendMessage.sh#L54-L114
thanks for your example implemenatation ...
I use
editMessage
to maintain a "self-updating" message with server stats. I added this:The script I use (see below for the definition of
$msg
):You have to get the message id (24 in my example) from somewhere. Not sure where you're supposed to get it from; I got it from
MESSAGE.log
with debug mode.Just posting this here in case someone finds it useful.
Code for
$msg
: