Telegram · Get chat — A chat's title, type and member count — reads what Telegram knows about a chat your bot is in. Use it to put a group's name in a message, or to check how many people a channel reaches before posting.

Who can do this

Workspace Admins and Editors, on every plan. Viewers see the step's settings but cannot change them.

Before you start

A Telegram connection in this workspace, and the bot in the chat — see Connect Telegram.

Steps

  1. Select + where the chat should be read. In the step picker, open Apps, select Telegram, then Get chat.
  2. In Connection, choose your Telegram connection.
  3. In Chat, choose the chat — Chats the bot has seen. Or use a value — a chat id from the trigger. Or select Use a value and type a chat id or a public channel's username, such as @consulace_updates.
  4. Select Run this step to read it.

Output

Field What it is
id The chat's id.
title The group's or channel's title, or the person's username or first name.
type private (a person), group, supergroup or channel.
members How many members it has. Empty for a chat with one person.
description The group's or channel's description, if it has one.

Good to know

  • Runs once per item.
  • It reads; it changes nothing in the chat.

If something goes wrong

What you see Why What to do
Telegram refused: Bad Request: chat not found The id is wrong, or the bot is not in that chat. Choose the chat from the list, or add the bot to it.
Chat is empty when the step ran — an earlier step may not have given the value it names. The value came out empty. Check the value it reads.
Telegram refused: Unauthorized Check the connection's details on Connections. The bot's token was changed with /revoke. Revoke the connection and reconnect it with the new token.