Hi,
Thanks for adding the multi-recipient option …,
but it is not entirely what I wanted. This will send the message to all recipients simultaneously. For this I could have used the group-id as well (if I have a group).
What I meant is to send the message to the users I want. I have different events. Two alarm events to be send to every user and a couple depending on the user like:
send telegram recipient1 recipient2 recipient3 "motion detected when nobody home"
and/orsend telegram recipient1 "some message"
and/orsend telegram recipient2 "some other message"
My python script simply parses the command line. The first is the script itself of course. The last is the message. “every string (space separated) in between” is 1 or more users.
So option 1 could also be your current option: No recipients mentioned => send to all.
Or combined: A send telegram x y z "message"
would mean in this case:
“if” parameters provided before the last message parameter (#parameters > 1)
“then” send to provided recipients (#parameters 1 - (n-1) )
“else” send to all recipients
Is this possible for you to implement?