ChatID field is not visible in the Telegram Bot thing

  • Platform information:
    *Hardware: RPi4
    *OS: Raspbian GNU/Linux 10 (buster)
    *openHAB version: 3.0.0.M2-docker

Hi Gurus,
I am trying to add Telegram Bot thing into my new OH3 instalation (docker) and I have no clue where to add chat id(s). Am I blind?
I was able to add Bot Token, but field for chat id(s) is not visible.


Thanks in advance for help.

1 Like

And I thought yesterday I was blind :sunglasses:

Add it through the code page. Works fine for me.

Should that look like this:

UID: telegram:telegramBot:85c520892f
label: OpenHABbot
thingTypeUID: telegram:telegramBot
configuration:
  proxyType: SOCKS5
  longPollingTime: 25
  chatchatIds: 1491525262
  parseMode: ""
  botToken: 1________3:A________________KQ
location: Internet

Its not working for me:

chatIds with only one time chat and try the number inside hyphen ““

  chatIds: “xxxxxx”
1 Like

I must have been blind now it works :+1: THANK YOU!

UID: telegram:telegramBot:85c520892f
label: OpenHABbot
thingTypeUID: telegram:telegramBot
configuration:
  proxyType: SOCKS5
  longPollingTime: 25
  parseMode: ""
  chatIds:
    - "1491525262"
  botToken: 1__________3:A__________________KQ
location: Internet

Thanks for this!

How to find info which entries are available/possible to use in code YAML?

Of course!
I have no clue what was in my mind, when I was asking the question :wink:

Thanks!

Can I use this to ask another question?
How do I send a message, I tried these variants:

configuration:
      config: telegram:telegramBot:85c520892f
    type: telegramAction.sendTelegram(1491525262L,"Hallo Meister")
or:
    type: telegramAction.sendTelegram(1491525262,"Hallo Meister")
or:
    type: telegram.sendTelegram("Hallo Meister")
or:
    type: telegram.sendTelegram(1491525262L, "Hallo Meister")

but there is always an error in the rule:

INVALID_RULE
Validation of rule 47d21bb8cf has failed! Action Type “telegram.sendTelegram(1491525262L, “Hallo Meister”)” does not exist!

I use only rule dsl sorry

1 Like

Okay as a script it works, Thank’s a lot:

val telegramAction = getActions("telegram","telegram:telegramBot:85c520892f")
telegramAction.sendTelegram("Hallo Hofi!")
1 Like

Thx for this one!