# \[SOLVED\] \[telegram\] 404 error

**URL:** <https://community.openhab.org/t/solved-telegram-404-error/55742>\
**Category:** Actions\
**Created:** [November 4, 2018, 6:18pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742 "2018-11-04T18:18:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Homer-Sim](https://community.openhab.org/user_avatar/community.openhab.org/homer-sim/32/18374_2.png) [@Homer-Sim](https://community.openhab.org/u/Homer-Sim)\
**Post date:** [November 4, 2018, 6:18pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/1 "2018-11-04T18:18:05Z")

</div>

Hi,

This is my config:

`# Read http://www.instructables.com/id/Telegram-Bots-for-beginners/`  
`# to see how to set up bots and find your chat ids`  
`# bots=bot1,bot2`  
`bots=heinz,kathleen`  
`# Handy Heinz S7 Active`  
`heinz.chatId=7XXXXXXX7`  
`heinz.token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX`  
`# Handy Kathleen iPhone`  
`kathleen.chatId=7XXXXXXX7`  
`kathleen.token=XXXXXXXXXXXXXXXX`

and this is my rule entry:

`sendTelegram("heinz", "Trockner ist fertig!")`  
`sendTelegram("kathleen", "Trockner ist fertig!")`

But I am receiving in openhab log this error:  
`[WARN] [ab.action.telegram.internal.Telegram] - Method failed: HTTP/1.1 404 Not Found`

Do you know where to look for a solution?

Thanks

---

<div class="post-metadata">

**Author:** ![H102](https://community.openhab.org/user_avatar/community.openhab.org/h102/32/25595_2.png) [@H102](https://community.openhab.org/u/H102)\
**Post date:** [November 4, 2018, 6:22pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/2 "2018-11-04T18:22:27Z")

</div>

Install the HTTP binding from PaperUI

---

<div class="post-metadata">

**Author:** ![Homer-Sim](https://community.openhab.org/user_avatar/community.openhab.org/homer-sim/32/18374_2.png) [@Homer-Sim](https://community.openhab.org/u/Homer-Sim)\
**Post date:** [November 4, 2018, 6:23pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/3 "2018-11-04T18:23:27Z")

</div>

![grafik](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/4/d/4d6c8bdb8e15e1f0ad195d3f03f18823b88d18b6.png)

it is already installed since ages …

---

<div class="post-metadata">

**Author:** ![vzorglub](https://community.openhab.org/user_avatar/community.openhab.org/vzorglub/32/17166_2.png) [@vzorglub](https://community.openhab.org/u/vzorglub)\
**Post date:** [November 4, 2018, 6:55pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/4 "2018-11-04T18:55:46Z")

</div>

Try adding a `-` in front of the chatId

```auto
# Read http://www.instructables.com/id/Telegram-Bots-for-beginners/
# to see how to set up bots and find your chat ids
# bots=bot1,bot2
bots=heinz,kathleen
# Handy Heinz S7 Active
heinz.chatId=-XXXXXXXX
heinz.token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Handy Kathleen iPhone
kathleen.chatId=-XXXXXXXX
kathleen.token=XXXXXXXXXXXXXXXX

```

@H102  
The 404 error comes from telegram responding that the binding asked for an address it couldn’t find.  
Nothing to do with the http binding

I assume that your tokens are correct.

---

<div class="post-metadata">

**Author:** ![Homer-Sim](https://community.openhab.org/user_avatar/community.openhab.org/homer-sim/32/18374_2.png) [@Homer-Sim](https://community.openhab.org/u/Homer-Sim)\
**Post date:** [November 4, 2018, 7:55pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/5 "2018-11-04T19:55:19Z")

</div>

I created and checked them according the action description

---

<div class="post-metadata">

**Author:** ![Homer-Sim](https://community.openhab.org/user_avatar/community.openhab.org/homer-sim/32/18374_2.png) [@Homer-Sim](https://community.openhab.org/u/Homer-Sim)\
**Post date:** [November 4, 2018, 8:05pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/6 "2018-11-04T20:05:54Z")

</div>

And I tried it right now again with success

---

<div class="post-metadata">

**Author:** ![vzorglub](https://community.openhab.org/user_avatar/community.openhab.org/vzorglub/32/17166_2.png) [@vzorglub](https://community.openhab.org/u/vzorglub)\
**Post date:** [November 4, 2018, 8:15pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/7 "2018-11-04T20:15:42Z")

</div>

Yeah!!  
Please mark the thread as solved.  
The telegram API is not always fully available and you can’t get 404 for that reason too.

---

<div class="post-metadata">

**Author:** ![Homer-Sim](https://community.openhab.org/user_avatar/community.openhab.org/homer-sim/32/18374_2.png) [@Homer-Sim](https://community.openhab.org/u/Homer-Sim)\
**Post date:** [November 4, 2018, 8:30pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/8 "2018-11-04T20:30:04Z")

</div>

Maybe I was not precise enough. The check of the `https://api.telegram.org/bot<token>/getUpdates` was successful  
But I still receive the 404 error message and no notification

---

<div class="post-metadata">

**Author:** ![vzorglub](https://community.openhab.org/user_avatar/community.openhab.org/vzorglub/32/17166_2.png) [@vzorglub](https://community.openhab.org/u/vzorglub)\
**Post date:** [November 4, 2018, 8:32pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/9 "2018-11-04T20:32:12Z")

</div>

Did you change the tokens with a `-` in front?

---

<div class="post-metadata">

**Author:** ![Homer-Sim](https://community.openhab.org/user_avatar/community.openhab.org/homer-sim/32/18374_2.png) [@Homer-Sim](https://community.openhab.org/u/Homer-Sim)\
**Post date:** [November 4, 2018, 8:33pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/10 "2018-11-04T20:33:47Z")

</div>

it is like this  
[https://api.telegram.org/bot7XXXXXXX7:AXXXXXXXXXXXXXXXXXXXXXXXXXX8/getUpdates](https://api.telegram.org/bot7XXXXXXX7:AXXXXXXXXXXXXXXXXXXXXXXXXXX8/getUpdates)

---

<div class="post-metadata">

**Author:** ![vzorglub](https://community.openhab.org/user_avatar/community.openhab.org/vzorglub/32/17166_2.png) [@vzorglub](https://community.openhab.org/u/vzorglub)\
**Post date:** [November 4, 2018, 8:34pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/11 "2018-11-04T20:34:53Z")

</div>

Did you change the tokens with a - in front if the telegram.cfg?

---

<div class="post-metadata">

**Author:** ![Homer-Sim](https://community.openhab.org/user_avatar/community.openhab.org/homer-sim/32/18374_2.png) [@Homer-Sim](https://community.openhab.org/u/Homer-Sim)\
**Post date:** [November 4, 2018, 8:37pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/12 "2018-11-04T20:37:19Z")

</div>

It is like shown in post 1 there is no -

---

<div class="post-metadata">

**Author:** ![vzorglub](https://community.openhab.org/user_avatar/community.openhab.org/vzorglub/32/17166_2.png) [@vzorglub](https://community.openhab.org/u/vzorglub)\
**Post date:** [November 4, 2018, 8:43pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/13 "2018-11-04T20:43:31Z")

</div>

Sorry, the chatIds

put a `-` in front:

```auto
# Read http://www.instructables.com/id/Telegram-Bots-for-beginners/
# to see how to set up bots and find your chat ids
# bots=bot1,bot2
bots=heinz,kathleen
# Handy Heinz S7 Active
heinz.chatId=-XXXXXXX
heinz.token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Handy Kathleen iPhone
kathleen.chatId=-XXXXXXXX
kathleen.token=XXXXXXXXXXXXXXXX

```

---

<div class="post-metadata">

**Author:** ![Homer-Sim](https://community.openhab.org/user_avatar/community.openhab.org/homer-sim/32/18374_2.png) [@Homer-Sim](https://community.openhab.org/u/Homer-Sim)\
**Post date:** [November 4, 2018, 8:47pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/14 "2018-11-04T20:47:43Z")

</div>

no effect

---

<div class="post-metadata">

**Author:** ![vzorglub](https://community.openhab.org/user_avatar/community.openhab.org/vzorglub/32/17166_2.png) [@vzorglub](https://community.openhab.org/u/vzorglub)\
**Post date:** [November 4, 2018, 8:51pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/15 "2018-11-04T20:51:29Z")

</div>

I don’t know buddy…  
Works here… Just tested

---

<div class="post-metadata">

**Author:** ![Homer-Sim](https://community.openhab.org/user_avatar/community.openhab.org/homer-sim/32/18374_2.png) [@Homer-Sim](https://community.openhab.org/u/Homer-Sim)\
**Post date:** [November 4, 2018, 8:52pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/16 "2018-11-04T20:52:02Z")

</div>

is there a log dedicated to telegram with more information?

---

<div class="post-metadata">

**Author:** ![vzorglub](https://community.openhab.org/user_avatar/community.openhab.org/vzorglub/32/17166_2.png) [@vzorglub](https://community.openhab.org/u/vzorglub)\
**Post date:** [November 4, 2018, 9:12pm UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/17 "2018-11-04T21:12:52Z")

</div>

Have you searched the forum?

---

<div class="post-metadata">

**Author:** ![namraccr](https://community.openhab.org/user_avatar/community.openhab.org/namraccr/32/36484_2.png) [@namraccr](https://community.openhab.org/u/namraccr)\
**Post date:** [November 5, 2018, 12:02am UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/18 "2018-11-05T00:02:40Z")

</div>

> [@Homer-Sim](#):
>
> is there a log dedicated to telegram with more information?

Logging for telegram works exactly the same as logging for all of the other actions/bindings.

---

<div class="post-metadata">

**Author:** ![gitMiguel](https://community.openhab.org/user_avatar/community.openhab.org/gitmiguel/32/12476_2.png) [@gitMiguel](https://community.openhab.org/u/gitMiguel)\
**Post date:** [November 5, 2018, 6:04am UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/19 "2018-11-05T06:04:35Z")

</div>

Try to configure only with one bot and see if that works. You can also test by sending the telegram to your group name ‘bots’.

---

<div class="post-metadata">

**Author:** ![Mihai\_Badea](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/9f8e36/32.png) [@Mihai\_Badea](https://community.openhab.org/u/Mihai_Badea)\
**Post date:** [November 5, 2018, 6:21am UTC](https://community.openhab.org/t/solved-telegram-404-error/55742/20 "2018-11-05T06:21:22Z")

</div>

The dash (`-`) in front of the `chatId` is a MUST for _group_ chats. For a regular chat, there is no dash.

You might want to look to the config of the telegram action. Maybe you tested more config’s and the action didn’t save properly the new one.  
Take a look here [HowTo: Manage OpenHab 2 configurations](https://community.openhab.org/t/howto-manage-openhab-2-configurations/15940), section **Some useful Karaf console commands**.  
Try and view the current `telegram` config in karaf console:

```auto
config:list "(service.pid=org.openhab.telegram)"

```

If the displayed config doesn’t match the one from `telegram.cfg` you should delete it and let the action re-load the config from file by restarting openHAB.

[Next page](https://community.openhab.org/t/solved-telegram-404-error/55742.md?page=2)
