This topic describes how to obtain the webhook URLs of chatbots for DingTalk, Lark, and Telegram groups.
DingTalk bot
Open DingTalk on your desktop, and open the target group chat that you want to send the alert notifications to.
Click the settings icon in the upper-right corner, then click Bot > Add Robot.
Select Custom.

Complete the settings for the bot. For Security Setting, select Custom Keywords and enter
OB,OceanBase,OBCloud, andtestto receive notifications from OceanBase Cloud.
Click Finished.
Save the bot's webhook URL for the alert contact configuration.
Notice
Please keep your webhook URL in a secure place. Do not disclose it on websites that can be publicly accessed to avoid malicious invocation of the URL.

Lark bot
Open Lark on your desktop, and open the target group chat that you want to send the alert notifications to.
Select ... > Settings in the upper-right corner, then click Bots.

Click Add Bot, and then select Custom Bot.

Complete the basic information of the bot, and click Add.
For Security settings, select Set keywords and enter OB and OceanBase to receive notifications from OceanBase Cloud.

Save the bot's webhook URL for the alert contact configuration, and click Finish.
Notice
Please keep your webhook URL in a secure place. Do not disclose it on websites that can be publicly accessed to avoid malicious invocation of the URL.
Telegram bot
Create a Telegram alert bot.
In the Telegram search bar, search for @BotFather and open a chat with it.

Enter
/newbotto create a new bot, then follow the prompts to enter the bot's display name and username.
Save the bot's username and the API token displayed in orange after the bot is created.
Obtain the chat ID.
After creating the group chat, add the bot to the group by using its username.
Since Telegram does not allow you to retrieve the group chat ID directly through the client, you will need to use a specific request via a browser for security reasons.
After adding the bot to the group, enter the following URL in your browser’s address bar to view the latest information received by the bot:
Use this URL format:
https://api.telegram.org/bot<token>/getUpdates, replacing<token>with the API token obtained when creating the bot.Example URL:
https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1********/getUpdates.Note
If the group only includes the group owner and the bot, you may not receive any information. We recommend having at least three members in the group, or you can adjust the group's administrator settings to ensure the bot receives updates.
In the JSON response, search for the "chat" field to locate the chat ID.

As shown above, the "id" field contains the required chat ID.
Note
If the group chat undergoes changes, such as being upgraded to a supergroup, the chat ID may change. Ensure you retrieve the latest chat ID when needed.
Construct the webhook URL.
Use the following URL format, replacing
<token>with the bot’s API token and<chat id>with the group chat ID.https://api.telegram.org/bot<token>/sendMessage?chat_id=<chat id>Example:
https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1********/sendMessage?chat_id=-45********