[Yandex Cloud documentation](../../../index.md) > [Yandex Serverless Containers](../../index.md) > [Concepts](../index.md) > [Trigger](index.md) > Telegram Trigger

# Trigger for Telegram that invokes a Serverless Containers container

A Telegram [trigger](index.md) runs a Serverless Containers [container](../container.md) whenever the Telegram bot receives a new update: message, command, button callback, and other events. To receive updates, the trigger uses the Telegram bot's token.

A Telegram trigger needs a [service account](../../../iam/concepts/users/service-accounts.md) to invoke a container.

For more information about creating a trigger for Telegram, see [Creating a Telegram Trigger that invokes a container from Serverless Containers](../../operations/telegram-trigger-create.md).

## Roles required for the proper operation of a trigger for Telegram {#roles}

* 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](../../../iam/concepts/access-control/roles.md#sa-user) and [editor](../../../iam/concepts/access-control/roles.md#editor) roles or higher.
* For the trigger to work, the service account needs the `serverless-containers.containerInvoker` role for the container that invokes the trigger.

## Telegram trigger message format {#format}

After the trigger fires, it will send an [Update](https://core.telegram.org/bots/api#update) object from the Telegram Bot API to the container.

## Useful links {#see-also}

* [Telegram trigger that invokes a function from Cloud Functions](../../../functions/concepts/trigger/telegram-trigger.md)
* [Trigger for Telegram that sends messages to WebSocket connections](../../../api-gateway/concepts/trigger/telegram-trigger.md)