Telegram Bot "Chat Not Found" (400)? 5 Causes and the 4-Step Chat ID Check

By · Published 2026-11-23 · Last verified 2026-11-23

What does "Bad Request: chat not found" mean in a Telegram bot?

It means the Bot API could not match the chat_id you sent to a chat that this bot can reach. The usual reasons are that the user never started the bot, the ID is wrong or truncated, a group became a supergroup with a new ID, or the bot isn't a member or admin of the channel. Telegram's bot overview states the root rule plainly: "Bots can't start conversations with users. A user must either add them to a group or send them a message first." The Auto X team builds Auto X, a Telegram bot that schedules posts to X, and this guide was checked against the Telegram Bot API docs on 2026-11-23.

Grid of the 4-step Chat ID Check: confirm the token with getMe, read the ID's shape, prove membership with getChat, and store the ID from the update as a 64-bit integer, since bots can't start conversations
The 4-step Chat ID Check.

The 5 causes, and how to tell them apart

Short answer: check the ID type first, then whether the bot is actually in that chat. Each cause leaves a different clue.

CauseTypical clueFix
User never pressed StartPositive user ID, the user exists, but this bot has no private chat with themAsk them to open the bot's t.me link and press Start, then store the chat ID from that update
Wrong or mangled IDID copied by hand, stored as a 32-bit int, or parsed as a float stringStore chat IDs as signed 64-bit integers and copy them from updates, not from screenshots
Group migrated to a supergroupA negative ID that used to work stopped working after the group changedRead migrate_to_chat_id and save the new ID
Bot not in the channel or groupChannel ID that starts with -100, or an @username, and the bot was never added or was removedAdd the bot; for channels, make it an admin that can post messages
Different bot tokenThe ID came from bot A's updates, but bot B is sendingUse the token of the bot that received the update

The 4-step Chat ID Check

Run these four steps in order. Most "chat not found" errors are solved by step 2 or step 3.

  1. Confirm the token. Call getMe; the Bot API describes it as a simple method for testing your bot's authentication token. Make sure the username it returns is the bot that received the original update.
  2. Read the ID's shape. Telegram's Bot API dialog ID page says user IDs are positive, basic group IDs are negative, and supergroup and channel IDs are converted by adding 1000000000000 and making the result negative, which is why they start with -100. A positive ID means a private chat with a user; a -100 ID means a channel or supergroup.
  3. Prove the bot is in the chat. Call getChat with the same chat_id. If it fails the same way, the bot can't see that chat. Have the user press Start, or add the bot to the group or channel.
  4. Store the ID from the update, as a 64-bit integer. Save message.chat.id from the update the bot received. The Bot API says these IDs can have more than 32 significant bits but at most 52, so a signed 64-bit integer or a double is safe, and a 32-bit int isn't.
Two columns on reading a Telegram chat ID: users have positive IDs and must press Start, basic groups are negative and can migrate, while supergroups and channels start with -100 and need the bot as a member or posting admin
How to read a chat ID.

Private chats: the user must start the bot first

Short answer: a bot can't message someone who has never opened it. Telegram's bot overview says people find a bot by searching its username or through its unique t.me/bot_username link, and a user must message the bot or add it to a group before the bot can reach them.

This catches many first launches. A developer copies their own numeric user ID, sends a test message from a new bot, and gets "chat not found" because they never pressed Start in that bot. The fix is the same for real users: put a clear Start link in your onboarding, and save the chat ID from the first /start update. If you pass a start parameter in that link, see the 64-character limit on Telegram start parameters.

A user who started the bot and later blocked it is a different case with a different error, 403 Forbidden. Our guide to the "bot was blocked by the user" 403 error explains how to detect that from my_chat_member updates and stop sending.

Groups that became supergroups

Short answer: the group's ID changed, so your stored ID now points nowhere. The Bot API's Message object has migrate_to_chat_id, "the group has been migrated to a supergroup with the specified identifier", and the error response can carry the same field in ResponseParameters.

Handle it in one place: when a send fails and the response includes parameters.migrate_to_chat_id, replace the stored ID, then resend once. Also listen for the service message in the group itself, so the switch happens before the next scheduled post. If the bot stops seeing ordinary group messages after the change, check its privacy mode as described in why a bot doesn't receive group messages.

Four-step flow of a group that became a supergroup: the old negative ID stops working, the error carries migrate_to_chat_id, you save the new -100 ID and resend once
When a group becomes a supergroup.

Channels: add the bot as an admin that can post

Short answer: a bot can only post in a channel where it is an administrator with permission to post. The Bot API lists can_post_messages as the admin right that lets an administrator "post messages in the channel", for channels only.

You can address a public channel by username, since sendMessage accepts "unique identifier for the target chat or username of the target bot, supergroup, or channel in the format @username." A private channel has no username, so use its numeric -100 ID, which you can read from an update the bot receives there, such as a channel_post. A typo in the username gives the same error as a missing bot, so check both.

Auto X's own setup follows these rules: you start the Auto X scheduling bot on Telegram before it can message you, and posts you schedule go to X, not to a Telegram channel. The Auto X homepage explains the full flow, and Telegram rate limits and retry_after covers the other error a scheduler meets most.

FAQ

Why does chat not found happen with my own user ID?

Because the bot has never had a private chat with you. Telegram says bots can't start conversations; open the bot, press Start, and send again using the chat ID from that update.

Should a channel ID start with -100?

Yes, in the Bot API. Telegram's dialog ID page says supergroup and channel IDs are converted by adding 1000000000000 and making the result negative, so they appear as -100 followed by digits.

Can I use the @username instead of the numeric ID?

For a public channel or supergroup, yes; sendMessage accepts the @username format. Private chats with users and private channels need the numeric ID.

Why did a working group ID suddenly stop working?

The group was probably converted to a supergroup, which gets a new identifier. Read migrate_to_chat_id from the service message or the error parameters and update your stored ID.

Sources

Vertical Pinterest graphic with five causes of the Telegram bot chat not found error
Pinterest pin: Telegram bot chat not found.