[SOLVED] Telegram Bot issue

Good morning community,

I am currently integrating the Telegram Chat Action into my openHAB system.

But if I want to call the telegram JSON to get my chat ID, I get an empty array back.

I know at this point it des nothing to do with openHAB.

Many greetings and Merry Christmas already,
Mark

I had to try again and again and again and eventually I got the chat id…
Only advice so far

1 Like

ok you also did it with web browser or curl?

web browser

1 Like

Maybe i’m wrong, but i think you have to add the bot to a chat, and write one message (or write a Message in the private Chat with the bot)

Afterwards you will See the chat with the id there.

2 Likes

If you are on OpenHAB 2.5, I suggest to use the telegram binding.

no you are not wrong :smiley: now i have the chatid
thx

Please tick the solution, thanks

1 Like

Nice one, I set mine up years ago and all I remembered was trying again and again until the chat id came up.

1 Like

I had the same Problem some years ago :laughing:

But this is even documanted in the old v1 binding description…

  1. Create the destination chat
  • Open a chat with your new Bot and send any message to it. The next step will not work unless you send a message to your bot first.
1 Like

ok thx @Vradatta now it works

See the (now updated) binding docs.

1 Like

Just fix it yourself (see link at the bottom).