# Get PiGi messages on Telegram

PiGi's own Telegram bot messages your team — operations alerts such as "WhatsApp disconnected", staff notifications, and announcements to your team groups. There is no bot or API key to set up; each person links their own Telegram, and admins link groups.

Source: https://help.pigi.io/guides/integrations/communication/telegram

## Quick answers

**Do I need to create a Telegram bot or get an API key?**
No. PiGi runs one shared Telegram bot for every school. You only link people and groups
to it, on Company → Settings → Notifications in the **Telegram** section.

**How do my staff get PiGi messages on Telegram?**
Copy the **Team link** message from the Telegram section and post it in your team's
chat. Each person taps the link, presses **Start**, then taps **Share my number**. PiGi
matches the number to their PiGi profile and replies "You're linked".

**Why does the bot say it couldn't find my number?**
The number they shared in Telegram isn't the mobile number on their PiGi profile at your
school. Update the profile's mobile number, then they tap the team link again.

**How do I add PiGi to our pilots' or office group chat?**
Click **Link a group** in the Telegram section. Telegram opens and asks which group to
add the bot to. Choose the group; it then appears in PiGi with a **Group** badge.

**What gets posted to a Telegram group?**
Only what you tick under **Group messages**: **Trip announcements** and **Low code
stock**. A linked group with nothing ticked receives operations alerts, such as
"WhatsApp disconnected", instead.

**Which alerts does PiGi send on Telegram?**
WhatsApp connection alerts (disconnected, reconnected, stopped by an admin) go to admins'
linked chats and unrouted groups. Staff notifications you have written Telegram
templates for — flight sign-off requests, compliance forms to verify, exams to mark,
course completions — go to that staff member's own linked chat.

**Can customers get booking messages on Telegram?**
No. Telegram only reaches people who have linked their own Telegram to your school in
PiGi, which customers can't do. Use WhatsApp, SMS or email for customers.

**How do I stop someone getting Telegram messages?**
Click **Disconnect** on their row in the Telegram section and confirm. If someone blocks
the bot or removes it from a group, PiGi stops sending there by itself.

## What this does

PiGi's bot gives your team a second line for alerts that matter when other channels are
down — most of all, a warning when your WhatsApp connection drops. It also carries staff
notifications and posts trip announcements and low-code-stock warnings into the team
groups you choose. Telegram is free; there is nothing to buy.

## Before you start

- The **admin** role in PiGi.
- Each staff member needs Telegram on their phone and their mobile number on their PiGi
  profile at your school.
- For groups, you must be able to add members to the Telegram group.

## Set up Telegram

1. Install Telegram and sign in on the phone or computer you'll use.
2. Create the team group in Telegram if you don't have one: start a new group, name it,
   and add your staff.
3. Nothing else is needed on Telegram's side — PiGi supplies the bot.

## Connect it to PiGi

1. Open **Company → Settings → Notifications** and scroll to the **Telegram** section.
2. **Link yourself:** click **Connect Telegram**. Telegram opens; press **Start**. PiGi
   shows "Waiting for you to verify in Telegram", then "Linked · PiGi will now message
   you on Telegram."
3. **Link your staff:** under **Team link**, click **Copy message** and paste it into the
   team group. Each person taps it, presses **Start** and taps **Share my number**.
4. **Link a group:** click **Link a group**, choose the group in Telegram, and wait for
   "Group linked · choose below which messages go there."
5. Under **Group messages**, tick the group(s) for **Trip announcements** and **Low code
   stock**.
6. To send staff notifications by Telegram, go to the **Methods** section on the same
   page, click **Set up** on the **Telegram** card and pick **Telegram**. If no Telegram
   provider is listed, open Company → Settings → Integrations, click **Telegram** and
   **Connect Telegram** first. Then add Telegram templates for the staff events you want.

## Test it

Click **Send a test** at the top of the Telegram section. PiGi reports "Test sent · …
delivered, … failed." and each linked admin and unrouted group receives "PIGI test
alert".

## Troubleshooting

| What you see | What to do |
|---|---|
| "Telegram isn't available right now" | PiGi's bot is temporarily unavailable. Nothing to fix on your side; linked accounts resume when it's back. |
| "The link expired before it was verified. Try again." | Click **Connect Telegram** or **Link a group** again and finish in Telegram within ten minutes. |
| "That link has expired. Tap your team's PiGi link again." | The staff member took too long after tapping the team link. Tap it again. |
| "Please use the "Share my number" button — it shares your own number." | They sent a contact card instead. Use the button the bot shows. |
| "Nobody is linked yet — connect Telegram first." | Link at least one person or group before sending a test. |
| A person or group vanished from the list | The bot was blocked, removed from the group, or the chat was deleted. Link it again. |
| A staff member gets no notifications | Check they have linked their **own** chat (a group doesn't count) and that the event has a live Telegram template. |

## Known limitations

- **Customers can't receive Telegram.** It is for your team only.
- **Everyone taps Start once.** Telegram doesn't let a bot message anyone who hasn't
  started it, so each person has to link themselves.
- **Operations alerts reach admins only** among personal chats; pilots linked through the
  team link get their own notifications, not WhatsApp alerts.
- **Two group announcements** are available: trip announcements and low code stock.

## Sources

- [Telegram Bot Features — deep linking](https://core.telegram.org/bots/features)
