Telegram trigger that invokes a function from Cloud Functions
Written by
Updated at September 30, 2026
A Telegram trigger invokes a function from Cloud Functions when your Telegram bot receives a new update, such as a message, command, button callback, or other event. To receive updates, the trigger uses the Telegram bot's token.
A Telegram trigger needs a service account to invoke functions.
For more information about creating a Telegram trigger, see this guide.
Roles required for the proper operation of a trigger for Telegram
- To create a trigger, you need a permission for the service account under which the trigger runs the operation. This permission comes with the iam.serviceAccounts.user and editor roles or higher.
- For the trigger to fire, the service account requires the
functions.functionInvokerrole for the function invoked by the trigger.
Telegram trigger message format
After the trigger fires, it will send an Update