Hi,
Until now I had only one device, for tessting the messaging system. Everything works fine.
My wife installed telegram and managed to finde our house bots. I do have a admin bot where I get more informations pushed and one house bot where very importanat and user relevant push are beeing pushed.
So I wanted to add the chat id of my wifes account to the telegram.cfg but I don’t know how to add an aditionanal chat ID in the same bot.
That is the chatId. Note that if using a Telegram group chat, the group chatIds are prefixed with a dash that must be included in the config file. (e.g. bot1.chatId: -22334455)
In definition of telegram binding ( Telegram - Bindings | openHAB ) either group chats or comma separated list of chat ids can be used.
I didn’t know about the binding I used action.
So now I deleted the telegram action and installed the telegram binding.
I don’t know where I do have to configure my chatid and my token.
In the manual they don’t talk about PaperUI and configuration there. So I assume that I have to Install the Binding and then do all configuration in Visual Studio Code and create a new file called telegram.things.
I do have a question about the rule action “telegramAction”
Can I use a couple of rules with the same “telegramAction” name or do I have to chage the valu name for each new rule?
Hope this is clear enough.
Instead of having the line
val telegramActiont = getActions(“telegram”,“telegram:telegramBot:xxyyzz”)
in each rule separatly, like this
[
val telegramAction = getActions(“telegram”,“telegram:telegramBot:xxyyzz”)
telegramAction.sendTelegram(“Blablabla”)
]
I placed it at the top of the rule file and then on each rule I have only one line
[
telegramAction.sendTelegram(“Blablabla”)
]
But I think this is wrong.
What is the diference to have it in the rule code and to have it at the top of the file once?
In the maual it is on each rule. But I wanted to save time by using only one “val telegramAction =”