Skip to main content
This guide takes you from account to first send. Pick bot for production, or personal account only when a bot does not fit.

In brief

  • Bot: @BotFather token, instance ACTIVE immediately, the user must have sent /start first
  • Personal account: create the instance, scan the QR (or share the link) until status is ACTIVE
  • Both modes use the same send API; only the connection differs
Not sure which to pick? See Connection modes.

Before you start

  • An API key (sk_live_... or sk_test_... for sandbox)
  • Instance and send scopes on the key, Scopes
  • Replace sk_live_xxxxx and https://api.notifique.dev in examples
Just getting started? Use sk_test_... and check Sandbox.

On Telegram, the user must talk to the bot first (/start). Without that, sends often fail, Bot API policy.

1. Connect the bot

Three paths, pick what fits your integration:

1A, Via dashboard

  1. Telegram → New instance → Bot
  2. Paste the @BotFather token
  3. When status is active, note the instance id and @botUsername

1B, Via API with token

Expected response: 200 with ACTIVE status:
Invalid token → TELEGRAM_BOT_TOKEN_INVALID. Save the id.
webhookUrl is informational. Notifique already registers this endpoint with Telegram’s Bot API, you do not need to host or configure anything with that URL. It is for audit and debugging (where Telegram delivers updates).

2. Ask the user to start the bot

Share https://t.me/YOUR_BOT and ask them to tap Start (/start).List users who already started:
Use chatId or @username from the response in to.

3. Send a text message

to is an array (up to 100 recipients). You can use @username if the chat already exists.Expected response: 202:

Send with template

See template-api.

After your first send

  • List sent: GET /v1/telegram/messages
  • Cancel in queue: POST /v1/telegram/messages/:id/cancel (telegram.cancelled webhook)
  • Inbound: GET /v1/telegram/messages/inbound, configure in Settings → Received messages
  • Webhooks: telegram.sent, telegram.received, telegram.failed, do not use message.* (WhatsApp). Guide: Webhook events

All send types

In the API reference (Telegram tab), open Send Telegram message and pick an example in the playground: Text, Image, Video, Audio, Document, Location, Template, Scheduled.

Next steps