markymark
(Mark Baumann)
1
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
vzorglub
(Vincent Regaud)
2
I had to try again and again and again and eventually I got the chat id…
Only advice so far
1 Like
markymark
(Mark Baumann)
3
ok you also did it with web browser or curl?
Vradatta
(Eric Zenz-Matzl)
5
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
HaKuNa
(Remo M)
6
If you are on OpenHAB 2.5, I suggest to use the telegram binding.
markymark
(Mark Baumann)
7
no you are not wrong now i have the chatid
thx
vzorglub
(Vincent Regaud)
8
Please tick the solution, thanks
1 Like
vzorglub
(Vincent Regaud)
9
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
Vradatta
(Eric Zenz-Matzl)
10
I had the same Problem some years ago
But this is even documanted in the old v1 binding description…
- 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
markymark
(Mark Baumann)
11
ok thx @Vradatta now it works
mstormi
(Markus Storm)
12
See the (now updated) binding docs.
1 Like
mstormi
(Markus Storm)
14
Just fix it yourself (see link at the bottom).