Skip to main content

Setting Risk Alert Notifications

This article describes how to set up alert notifications. The platform currently supports sending alert notifications via Telegram bots.

Setting Alert Notifications

  1. Log in to the PigCloud cloud desktop console.
  2. In the left navigation bar, select Operations Management > Risk Alerts.
  3. On the Risk Alerts page, select the Alert Notifications tab.
  4. Click to enable Telegram Alert Bot and select the bot to send messages.
  5. Fill in the content according to the bot type.
  6. Click "Save".

When end users trigger risk alert rules, the specified bot will send alert notification messages to the designated group.

Selecting the System Default Bot

When selected, alert notifications will be sent via the system default bot. You need to fill in the alert group ID.

  1. Search for the Telegram ID: XXXX_Bot and add it to your group.
  2. Contact PigCloud customer service (@XXXX) and provide your group name to query the corresponding group ID.
  3. Configure the alert group ID above and save.
  4. Try performing operations such as website access or file transfer to confirm that alerts are being sent.

Selecting a Custom Bot

When selected, alert notifications will be sent via a custom bot. You need to fill in the bot Token and alert group ID.

  1. Find BotFather and enter: /start
  2. Create a new bot by entering: /newbot
  3. Enter the bot name, which must end with _bot (e.g., pig_v1_bot)
  4. Obtain and save the bot Token (example: 5240:A:G**********8)
  5. Add the bot to your group and enter in the group: hello @kiwi_v1_bot
  6. Obtain the group chat_id by visiting this link in your browser (replace ********* with your Token): https://api.telegram.org/bot*********/getUpdates
  7. Find the chat_id (e.g., -465512321) in the returned data. This is the group ID to which subsequent alerts will be sent.