Telegram¶
Output detections and audit (only) to a Telegram chat, group, or channel.
bot_token: the Telegram Bot API token obtained from @BotFather.chat_id: the target chat, group, or channel ID to send messages to.parse_mode: (optional) message formatting mode:Markdown,MarkdownV2, orHTML.message: (optional) a template string for custom message formatting.
Example:
Provisioning¶
To use this Output, you need to create a Telegram Bot:
- Open Telegram and message @BotFather
- Send
/newbotand follow the prompts to name your bot - Copy the bot token provided — this is the
bot_tokenyou need in LimaCharlie - Add the bot to the chat, group, or channel where you want to receive messages
- For channels, add the bot as an administrator with "Post Messages" permission
- Get the
chat_idfor your target:- For private chats: message the bot, then visit
https://api.telegram.org/bot<TOKEN>/getUpdatesto find your chat ID - For groups: add the bot to the group, send a message, then check
getUpdatesfor the group's chat ID (a negative number) - For public channels: use
@channelusernameas the chat ID
- For private chats: message the bot, then visit