DuliDuli Open Platform
EN
简体中文
繁體中文
English
Quick Start APIs DuliDuli Official Website
模板

Group Bot


How to Use the Group Bot

The bot currently supports joining group chats and can be used to push app notifications.

• After adding a bot to a group in the terminal, the creator can see the bot's unique webhook URL on the bot details page. Developers can send an HTTP POST request to this address as described below to send messages to the group. Here's a simple example. Suppose the webhook is:https://xxx../app/appWebhookMsgReceive?accessToken=LOHcr%2Bt9qR4NajdqYrx9JBw%2FrlsxITtgclmWFFmidZ6O8SITNXzVagTglXgG3Qi9Xkko7PW6wSSDBFeaPSWLuQzQ77pZqtCUYyH%2B9O8pMtjzrOXMnFJDpcbhctGALoNf


Important Note: Be sure to protect the bot's webhook URL and avoid leaking it! Do not share it on GitHub, blogs, or other publicly accessible places, otherwise malicious users could use your bot to send spam messages.

Creating a Bot Application

  1. Log in to the Duli management backend, go to "Workbench - Application Management", and click to add a "webhook application".


  1. Add a webhook application and set the basic application information.

Adding to a Group Chat

  1. Go to the bot settings and bind the bot to a group.



2.Obtain the webhook URL.

Sending Bot Messages

      The current custom bot supports message types such as text, markdown, and template card. For more details, please refer to Message Push.