Implementation
Configure the integration
This guide uses the following iQs CVE feature: Bot API sendMessage. Keep every credential server-side and test with a narrowly scoped alert before enabling production delivery.
Prerequisites
- A Telegram bot token from BotFather stored as a secret.
- The destination user, group, or channel chat ID, with the bot allowed to post.
- 1
Step 1
Create or select a bot with BotFather and store its token securely.
- 2
Step 2
Add the bot to the destination, grant posting rights if it is a channel, and determine the chat ID.
- 3
Step 3
Enter the token and chat ID in iQs CVE, choose alert filters, and save.
Configurationjson
{"botToken":"<TELEGRAM_BOT_TOKEN>","chatId":"-100<CHANNEL_ID>"}Verify the connection
Send one confirmed test alert and verify the destination shows the alert's title, severity, CVEs, confirmation reason, and iQs Cyber Alerts link exactly once.
Troubleshooting
- • No message: verify the destination is enabled, the credentials are current, and outbound HTTPS is permitted.
- • HTTP 401/403: rotate or re-authorize the destination credential and confirm the bot or webhook can post to the selected conversation.
- • HTTP 429: respect the destination retry interval and reduce alert volume with iQs CVE severity or event filters.
- • Chat not found: include the leading minus sign for group/channel IDs and confirm the bot has joined the destination.