Skip to content

Files

Latest commit

e859e19 · Apr 13, 2024

History

History
27 lines (22 loc) · 781 Bytes

telegram_webhook.md

File metadata and controls

27 lines (22 loc) · 781 Bytes

Telegram webhook action

Action to send a message to a Telegram chat using a webhook on event.

Configuration

  • id - action id, used for action identification.
  • type - action type, should be telegram_webhook.
  • chat_id_secret - secret configuration to provide chat id.
  • token_secret - secret configuration to provide bot token.
  • max_message_title_length - maximum message title length. Default is 100.
  • max_message_body_length - maximum message body length. Default is 500.

Example

id: telegram_webhook
type: telegram_webhook
chat_id_secret:
  type: env
  key: TELEGRAM_CHAT_ID
token_secret:
  type: env
  key: TELEGRAM_BOT_TOKEN
max_message_title_length: 50
max_message_body_length: 200