Skip to content
AstrBot
Main Navigation HomeBlogRoadmapHTTP API

English

简体中文

English

简体中文

Toggle dark mode

Intro & DeployMessaging PlatformsAI IntegrationUsageDevelopment
Sidebar Navigation

Introduction

What is AstrBot

Community

FAQ

Deployment

Package Manager

One-click Launcher

Docker

Kubernetes

BT Panel

1Panel

Manual

Other Deployments

CasaOS

Compshare GPU

Community-provided Deployment

Support Us

Messaging Platforms

Quick Start

QQ Official Bot

Webhook Method

Websockets Method

WeCom Application

WeCom AI Bot

WeChat Official Account

Lark

DingTalk

Telegram

LINE

Slack

Misskey

Discord

OneBot v11

NapCat

Lagrange

Other Clients

Satori

Using LLOneBot

Using server-satori

Community-provided

Matrix

KOOK

VoceChat

AI Integration

✨ Model Providers

NewAPI

AIHubMix

PPIO Cloud

SiliconFlow

TokenPony

302.AI

Ollama

LMStudio

⚙️ Agent Runners

Built-in Agent Runner

Dify

Coze

Alibaba Bailian

Usage

WebUI

Plugins

Built-in Commands

Tool Use

Anthropic Skills

SubAgent Orchestration

Proactive Tasks

MCP

Web Search

Knowledge Base

Custom Rules

Agent Runner

Unified Webhook Mode

Auto Context Compression

Agent Sandbox

Development

Plugin Development

🌠 Getting Started

Minimal Example

Listen to Message Events

Send Messages

Plugin Configuration

AI

Storage

HTML to Image

Session Control

Publish Plugin

Platform Adapter Integration

AstrBot HTTP API

AstrBot Configuration File

Others

Self-hosted HTML to Image

Open Source Summer

OSPP 2025

On this page

Connect QQ via QQ Official Bot (Websockets) ​

Supported Basic Message Types ​

Version v4.15.0.

Message TypeReceiveSendNotes
TextYesYes
ImageYesYes
VoiceNoNo
VideoNoNo
FileNoNo

Proactive message push: Not supported.

Apply for a Bot ​

WARNING

  1. QQ Official Bot currently requires an IP whitelist.
  2. It supports group chat, private chat, channel chat, and channel private chat.
  3. Tencent is phasing out Websockets access, so this method is no longer recommended. Please use Webhook instead.

Open QQ Official Bot and sign in.

Create a bot, fill in name/description/avatar, then submit for review. After security verification passes, creation is complete.

Open the created bot to enter its management page:

image

Allow Bot in Channel / Group / Private Chat ​

Open Sandbox Configuration to set a sandbox channel / QQ group / QQ private chat (up to 20 members).

Then configure QQ groups, private chat QQ accounts, and QQ channels as needed.

image

Get appid and secret ​

After adding the bot where you need it, open Development -> Development Settings, then copy appid and secret.

Add IP Whitelist ​

Open Development -> Development Settings, find IP whitelist, and add your server IP.

image

TIP

If you do not know your server IP, run curl ifconfig.me or check ip138.com.

In NAT environments without a public IP, the observed IP may change depending on your carrier. Use proxy/tunnel if needed.

Configure in AstrBot ​

  1. Open AstrBot Dashboard.
  2. Click Bots in the left sidebar.
  3. Click + Create Bot.
  4. Select qq_official.

Fill in:

  • ID (id): any unique identifier.
  • Enable (enable): checked.
  • appid: from QQ Official Bot platform.
  • secret: from QQ Official Bot platform.

Click Save.

Done ​

AstrBot should now be connected. Send /help to the bot in QQ private chat to verify.

Edit this page on GitHub

Last updated:

Pager
PreviousWebhook Method
NextWeCom Application

Deployed on Rainyun Logo