Firebase Extensions will shut down on March 31, 2027. You will not be able to install or edit your existing extensions after this date. We recommend moving to self-managed function kits using our user migration guide.Learn more

Send Message to Telegram

Made by Mark

Sends a message to your telegram bot once a new user is created.

60+
installs
Works with
Authentication
Version
0.0.5 | Source code
Tags
messaging
License
Apache-2.0
Publisher
Mark
Report
Bug
Abuse

No publisher authored function kit replacement for this extension is available. If you want to be able to update this extension after the shutdown on March 31st we recommend you follow our guide for forking the extension and maintaining it yourself as a function kit.

How this extension works

Use this extension to send a message to a telegram bot once a new user is created.

This extension is triggered when a new user is successfully created.

When you configure this extension, you’ll need to supply your Telegram token and Chat ID.

How to get your Telegram bot token and chat ID

1. Create a bot with BotFather

  1. Open Telegram and search for @BotFather.
  2. Start a chat and send /newbot.
  3. Follow the prompts to choose a display name and a username (the username must end in bot).
  4. BotFather will reply with your bot token. It looks like:
    123456789:ABCdefGHIjklMNOpqrsTUVwxyz

Save this token — you’ll use it as TELEGRAM_BOT_TOKEN when configuring the extension.

2. Get your chat ID with getUpdates

  1. Open a chat with your new bot and send it any message (for example: hello).
  2. In a browser, open:
    https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates
    Replace <YOUR_BOT_TOKEN> with the token from BotFather.

In the JSON response, find "chat":{"id": ... }. That number is your chat ID.

Use that id value as TELEGRAM_CHAT_ID when configuring the extension.

If result is empty ([]), send another message to the bot and refresh the URL.

Billing

This extension uses other Firebase or Google Cloud Platform services which may have associated charges:

  • Cloud Functions

When you use Firebase Extensions, you’re only charged for the underlying resources that you use. A paid-tier billing plan is only required if the extension uses a service that requires a paid-tier plan, for example calling to a Google Cloud Platform API or making outbound network requests to non-Google services. All Firebase services offer a free tier of usage. Learn more about Firebase billing.