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.
- Open Telegram and search for @BotFather.
- Start a chat and send
/newbot. - Follow the prompts to choose a display name and a username (the username must end in
bot). - 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.
- Open a chat with your new bot and send it any message (for example:
hello). - In a browser, open:
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdatesReplace<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.
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.