Telegram

type: telegram — sends a message via the Telegram Bot API.

Fields

FieldTypeRequiredNotes
typetelegramyes
botTokenstringyestoken from @BotFather (use env:)
chatIdstringyesnumeric chat ID (negative for groups)

Plus the common fields.

Example

notifiers:
  - type: telegram
    name: oncall
    botToken: env:TG_BOT_TOKEN
    chatId: '-1001234567890'
    onFailure: true

Tips

  • To find a chat ID, message the bot then call getUpdates once.
  • The bot must be a member of the target group/channel before it can post.