DeBox Developer FAQ / Troubleshooting
This page covers high-frequency integration issues and practical diagnosis paths.
For a new integration, start with the primary document that matches your path in FAQ 1.
1. Which document should I start with?
Choose by integration path:
- Creating and configuring a bot, credentials, privacy, permissions, and receiving modes: Bot Development Overview.
- Field definitions, enums, success/error samples: OpenAPI.
- Long polling with Go: Go SDK.
- Node.js development: Node.js SDK.
- Python development: Python SDK.
- Webhook development with Go: Go SDK Webhook.
2. Why does getUpdates return no messages?
Most likely a webhook is already configured in BotMother.
If BotMother still has a Webhook URL, getUpdates is not an active receiving path. If you intend
to use Long Polling, clear the Webhook settings first. See the
receiving-mode setup for the complete rule and configuration flow.
3. Why does a message reach the wrong target or fail routing validation?
If a message reaches the wrong target or routing validation fails, check that chat_id matches
chat_type, then compare both values with the OpenAPI routing rules.
4. Why does an image or other media message fail to send?
The complete parse_mode and content contract is in the
OpenAPI message fields.
If text messages work but an image does not send, check in this order:
parse_modeis exactlyimage.contentis a publicly accessible image URL.- Use
getMeto checkresult.level, then compare the destination with the requirements and administrator exception in Bot level and image sending. - Check any remaining API, permission, privacy, or platform restrictions for the target chat.
5. Why does webhook authentication fail?
Compare the incoming X-API-KEY with the bot's current Webhook Key. If the key was changed in
BotMother, update the value used by the backend validator at the same time. See the
Webhook request and validation contract for the complete requirements.
6. How to diagnose send failures?
The OpenAPI message fields define the allowed values and limits. Recommended check order:
X-API-KEYheader exists and is valid.chat_type/chat_idmapping is correct.contentis not empty and within limits.parse_modematches content format.- For signed endpoints (such as
dao_member), verifynonce/timestamp/signature.
7. Common errors and fixes
message can't be empty: missingcontent.message must be less than 5000 characters: text-mode payload too long.message must be less than 2000 bytes: fan-broadcast payload too large.permission denied: caller has no required group admin permission.Param error: missing/invalid parameters (often malformed addresses).
8. Why can't I find the target group's gid?
Open the target group in app and copy its share link. The id query value is gid.
9. Why does authentication fail after I copy the bot credentials?
- When the bot service calls OpenAPI,
X-API-KEYmust use the bot'sApp Key(API Key). Signed endpoints also require the matchingApp Secret(API Secret) from the same bot. - When DeBox calls the bot service through Webhook, validate the incoming
X-API-KEYwith the separateWebhook Key.
If authentication fails, first check the request direction and make sure these values were not mixed. Keep all three values in a trusted backend or environment variables. Do not put them in H5 pages, browser code, public repositories, logs, or screenshots. See DeBox Bot Development Overview for the complete credential mapping and setup flow.
10. Why does a BotMother command appear in the menu but do nothing?
BotMother command settings only control the command names and descriptions shown in the bot's command menu. The bot service must still implement the message handling and business behavior for each command. See DeBox Bot Development Overview for the complete setup flow.
11. Why does the bot not receive private or group messages?
Use the privacy and permission settings in DeBox Bot Development Overview as the primary reference, then check these layers:
- In the bot privacy settings, make sure the direct-message and group-invitation scopes include the account used for testing.
- Complete the initial message flow in a private chat first.
- Before group-message permission is approved, explicitly
@Botin the group; messages that mention the bot are delivered. - Receiving ordinary group messages without an
@mention requires the Listen to Group Messages permission and platform approval. - If the application is not approved, request feedback in the OpenBOX Bot Release Review group in the DeBox App.
If neither private messages nor group mentions arrive, also check the Webhook and Long Polling conflict.
12. Why does DeBox show a third-party website warning, and why are HTTP links blocked?
The DeBox in-app browser supports only https:// URLs. It blocks http:// URLs.
| URL | Result in DeBox |
|---|---|
http:// URL | Blocked and cannot be opened in the in-app browser. |
Third-party https:// URL | Can be opened, but shows a third-party website security notice by default. |
The warning depends on the destination, not on who sent the link or how it appears in the chat. The same rule applies to links in bot text messages, bot buttons and other message formats, links sent by ordinary users, developer-built DApps/H5 pages, and other external websites. Changing a text link to a button does not remove the warning.
To request an assessment for opening a specific website or domain without the warning, contact DeBox official support. Whether the warning can be removed is subject to platform review.
13. Support channels
- Technical discussion group: Join the DeBox technical discussion group