tencent cloud

Chat

News and Announcements
Release Notes
Announcements
Product Introduction
Overview
Basic Concepts
Scenarios
Features
Account System
User Profile and Relationship Chain
Message Management
Group Related
Official Account
Audio/Video Call
Use Limits
Purchase Guide
Billing Overview
Pricing
Purchase Instructions
Renewal Guide
Service Suspension Explanation
Refund Policy
Development Guidelines
Demo Zone
Activate Service
Free Demos
Quick Run
Download
SDK and Demo Source Code
Update Log
Chat Interaction (UI Included)
TUIKit Introduction
Getting Started
Full-feature Integration
Single-function Integration
Build with AI
Build Basic Interfaces
More Features
Customizing Appearance
Internationalization
Push Service
Overview
Noun explanation
Activate the Service
Quick Start
Manufacturer Channel
Statistics
Troubleshooting Tool
Client APIs
REST API
Push Callback
Advanced Features
Release Notes
Error Codes
FAQS
Desk
Overview
Quick Start
Integration Guide
Admin Operation Manual
Agent Manual
More Practices
Live Streaming Setup Guide
AI Chatbot
Super Large Entertainment and Collaboration Community
Discord Implementation Guide
How to Integrate Chat into Games
WhatsApp Channel-style Official Account Integration Solution
Send Red Packet
Firewall Restrictions
No UI Integration
Quick Start
SDK Integration
Initialization
Login and Logout
Message
Conversation
Group
Community Topic
User Profile and Relationship Chain
Offline Push
Cloud Search
Local Search
Official Channel Management
Client APIs
JavaScript
Android
iOS & macOS
Swift
Flutter
Electron
Unity
React Native
C APIs
C++
Server APIs
Secure authentication with UserSig
RESTful APIs
Webhooks
Console Guide
New Console Introduction
Creating and Upgrading an Application
Basic Configuration
Feature Configuration
Account Management
Group Management
Official Channel Management
Webhook Configuration
Usage
Viewing Guide for Resource Packages
Real-Time Monitor
Auxiliary Development Tools
Access Management
Advanced Features
FAQs
uni-app FAQs
Purchase
SDK
Account Authentication
User Profile and Relationship Chain
Message
Group
Audio-Video Group
Nickname and Profile Photo
Security Compliance Certification
Service Level Agreement
Security Compliance Certification
Chat Policies
Privacy Policy
Data Privacy and Security Agreement
Migration
Migration Solutions
Migration Solutions Lite
Error Codes
Contact Us

Electron

PDF
Focus Mode
Font Size
Last updated: 2024-05-20 15:43:47

Event Callback APIs

API
Description
Adds the callback for receiving new messages.
Deletes the callback for receiving new messages.
Sets the callback for message read receipts.
Sets the callback for message recalls.
Sets the callback for the upload progress of message element files.
Sets the callback for group system messages.
Sets the callback for conversation events.
Sets the callback for network connection status.
Sets the callback for notifications of forced logout.
Sets the callback for user ticket expiration.
Sets the callback for adding friends.
Sets the callback for deleting friends.
Sets the callback for updating friends' profiles.
Sets the callback for friend requests.
Sets the callback for logs.
Sets the callback for message update notifications returned after messages are modified in the cloud.

Chat SDK Initialization APIs

API
Description
TIMInit
Initializes the Chat SDK.
TIMUninit
Uninstalls the Chat SDK.
Gets Chat SDK version number.
Sets extra user configurations.

Login and Logout APIs

API
Description
TIMLogin
Logs in.
TIMLogout
Logs out.

Conversation APIs

API
Description
Creates a conversation.
Deletes a conversation.
Gets the conversation list of recent contacts.
Sets the draft of a conversation.
Deletes the draft of a conversation.
Gets a conversation list.
Gets the total unread message count of all conversations.
Pins a conversation to the top.

Message APIs

API
Description
Sends a message to multiple users at a time, but not to groups.
Cancels a message being sent based on messageID.
Clears the messages of a conversation.
Deletes the messages of a conversation.
Deletes message extensions.
Downloads message elements to a path.
Downloads a combined message.
Locates a message of a conversation by using the message locator.
Queries local messages by messageID.
Queries the one-to-one message receiving option of a user.
Gets message extensions.
Gets the message list of a specified conversation.
Imports a message list to a conversation.
Deletes the local and roaming messages of a conversation.
Modifies a message.
Marks a message as read.
Recalls a message.
Saves a custom message.
Searches for local messages.
Sends a new message.
Sends a new message. (V2)
Sets the one-to-one message receiving option of a user.
Sets the group message receiving option.
Sets message extensions.
Translates text message.
Converts voice message to text message.

Group APIs

API
Description
Creates a group.
Disbands a group.
Deletes group attributes.
Deletes a group member.
Gets specified group attributes.
Gets group information.
Gets the list of groups that a user has joined.
Gets group member information.
Gets the number of online members of a group.
Gets the list of pending group requests.
Handles pending group requests.
Initializes group attributes.
Invites someone to join a group.
Requests to join a group.
Modifies group information.
Modifies group member information.
Leaves a group.
Reports that a pending group request is read.
Searches for group members.
Searches for groups.
Sets group attributes.
Gets the list of members who have or have not read the group message.
Gets message read receipts.
Sends message read receipts.

User Profile APIs

API
Description
Gets the profiles of specified users.
Modifies one's own profile.

Relationship Chain APIs

API
Description
Adds friends.
Adds a user to the blocklist.
Checks the friend type (one-way or two-way).
Creates a friend list.
Deletes friends.
Deletes a friend list.
Removes a user from the blocklist.
Deletes a pending friend request.
Gets the blocklist.
Gets the information of a friend list.
Gets friend lists.
Gets friend information.
Gets the pending friend request list.
Handles a friend request.
Modifies a friend list.
Updates friends' profiles (such as remarks).
Reports that a pending friend request is read.
Searches for friends.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback