Skip to main content

Overview

The Collection API (NTQQCollectionApi) provides methods for creating and managing QQ collections. Collections allow users to save messages, images, and other content for later reference.
This API requires Node.js 18.0.0 or higher.

API Reference

createCollection

Create a new collection with specified content.
string
required
Author’s UIN (QQ number)
string
required
Author’s UID (unique identifier)
string
required
Author’s display name
string
required
Brief description of the collection
string
required
Raw data/content to be collected (JSON string)
object
Result of collection creation
Example:

getAllCollection

Retrieve all collections for the current user.
number
required
Collection category filter
  • 0 - All categories
  • 1 - Messages
  • 2 - Images
  • 3 - Videos
number
required
Maximum number of collections to retrieve
array
Array of collection objects
Example:

Use Cases

Save Important Messages

Collections are useful for saving important messages that you want to reference later:

Organize Saved Content

Retrieve and organize saved collections by category:

Complete Example

Message API

Send and receive messages

System API

System utilities and operations