Noti: Telegram Bad Request: chat not found

Created on 18 Dec 2019  ·  2Comments  ·  Source: variadico/noti

I set up Telegram access as described in the guide. Every time I run noti -g I get the following output:

$ noti -g
2019/12/18 16:07:19 Bad Request: chat not found

Most helpful comment

Might be helpful to someone:

  1. Create bot at BotFather as described in the docs.
  2. Write to your bot (at t.me/<USERNAME_BOT>) a message.
  3. Go to https://api.telegram.org/bot<TOKEN>/getUpdates?offset=0 and copy the numerical chat id of the message (123456789 or something).
  4. Set token and chatId at the config (but without the @ sign).

All 2 comments

Solved my own issue. The "Chat ID" is separate from your username, and is a Telegram API construct that must be identified separately.

Might be helpful to someone:

  1. Create bot at BotFather as described in the docs.
  2. Write to your bot (at t.me/<USERNAME_BOT>) a message.
  3. Go to https://api.telegram.org/bot<TOKEN>/getUpdates?offset=0 and copy the numerical chat id of the message (123456789 or something).
  4. Set token and chatId at the config (but without the @ sign).
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ilovezfs picture ilovezfs  ·  7Comments

subvillion picture subvillion  ·  6Comments

ventz picture ventz  ·  5Comments

pascalandy picture pascalandy  ·  6Comments

tkcranny picture tkcranny  ·  6Comments