# trigger.telegram

Starts a run for each update the bot receives

# trigger.telegram

```
trigger.telegram --credential TEXT [--event message|edited_message|channel_post|edited_channel_post|business_connection|business_message|edited_business_message|deleted_business_messages|message_reaction|message_reaction_count|inline_query|chosen_inline_result|callback_query|shipping_query|pre_checkout_query|purchased_paid_media|poll|poll_answer|my_chat_member|chat_member|chat_join_request|chat_boost|removed_chat_boost…] → telegram
```

Starts a run for each update the bot receives. Answers `telegram`: the update, flattened — `{ update_id, type, chat_id, message_id, from_id, text, … }`, `type` being message, edited_message, callback_query (with `data`), inline_query (with `query`) or unknown (with `raw`). Activating the pipeline registers the webhook with Telegram, deactivating it removes it.

## Flags

- `--credential` (required): The telegram_bot credential: the bot whose updates start the pipeline.
- `--event`: An update type to receive — repeat for several. Omitted: Telegram's default, every type but chat_member, message_reaction and message_reaction_count.
