Language: English | Русский | Español | Português | Türkçe | Deutsch | Français | Bahasa Indonesia | العربية | فارسی | Oʻzbek | हिन्दी | 中文 | اردو | Tagalog | አማርኛ

← Home

Telegram update JSON: how to inspect /dump output

@print_id_bot’s /dump command shows a full breakdown of the Telegram update plus the raw JSON. Use it to debug Bot API integrations and understand the update structure.

How to use /dump

  1. Open @print_id_bot in private chat.
  2. Send /dump (with or without a message).
  3. The bot replies with:
    • A structured breakdown (Update ID, message, sender, chat, etc.)
    • The raw JSON of the update

/dump works only in private chat. In groups, use /id or /help; /dump in a group returns the group chat_id, not the full update.

What you see in the output

/json vs /dump

Use /json for quick message inspection; use /dump for full update debugging.

Language and formatting

The bot uses your Telegram language_code for labels (User ID, Chat ID, etc.). Unsupported codes fall back to English. The raw JSON is unchanged.

FAQ

Why doesn’t /dump work in a group?

/dump is available only in private chat to avoid long replies in groups. In groups, use /id for chat_id or /json if the bot replies.

Is the raw JSON exactly what the API sends?

Yes. It is the same structure your webhook or polling handler receives.

Can I use /dump for channel_post?

/dump shows the update you send. For channel_post, your bot must be added to the channel and receive those updates. @print_id_bot focuses on message updates; for channel structure, forward a channel post and use /dump on the forwarded message.

What if the output is truncated?

Telegram limits message length. Very long updates may be cut with “(truncated)”. The important fields (chat.id, from.id) are usually at the start.

How do I find chat_id in the dump?

Look at message.chat.id or channel_post.chat.id. The bot’s structured output also labels it as “ChatID” or “ChannelID”.


Use /dump in @print_id_bot to inspect update structure.

Open @print_id_bot


Related pages