Overview
The Online File API (NTQQOnlineApi) provides methods for sending and receiving online files and folders. Unlike flash transfers, online files are delivered directly through QQ’s messaging system.
Online files are sent as special message types and can be received, refused, or canceled by recipients.
API Reference
sendOnlineFile
Send an online file to a user or group.Peer
required
Target peer (user or group)
string
required
Local path to the file
string
required
Display name for the file
object
Upload result
sendOnlineFolder
Send an entire folder as an online transfer.Peer
required
Target peer
string
required
Local path to the folder
string
required
Display name for the folder
object
Upload result with message and element IDs
getOnlineFileMsg
Retrieve online file messages for a peer.Peer
required
Target peer
array
Array of online file messages
cancelMyOnlineFileMsg
Cancel a sent online file transfer.Peer
required
Target peer
string
required
Message identifier
refuseOnlineFileMsg
Refuse an incoming online file transfer.Peer
required
Source peer
string
required
Message identifier
string
required
File element identifier
receiveOnlineFileOrFolder
Accept and receive an online file or folder.Peer
required
Source peer
string
required
Message identifier
string
required
File element identifier
string
Local path where file was saved
switchFileToOffline
Switch an online file to offline mode (group files).Peer
required
Group peer
string
required
Message identifier
Complete Example
Use Cases
Direct File Sharing
Send files directly to users without using group storage:Automated File Distribution
Automatically distribute files to team members:File Reception Management
Manage incoming file transfers:Related APIs
File API
General file operations
Flash Transfer API
Temporary flash transfers
Group API
Group file management
