Higher Engagement with Our Feature-rich Chat
- Social Features
- Offline Message Push
Higher Engagement with Our Feature-rich Chat
Various Message Types
Support multiple message types, such as text, images, audio, and video messages.
Notifications
Timely notify users of app messages and drive higher conversion rates.
Group Management
Create groups, manage group members, and customize profiles.
Conversation Management
View information about unread messages, recent, pinned, or deleted chats.
UIKit
Build a fully-featured chat app in just one day using UIKit components.
Server APIs
Manage your apps with powerful server APIs.
Webhooks
Enhance your app's operation capabilities with webhooks.
Statistics
Quickly obtain statistics and analyze message activity from the Chat console.
1 Billion+
Monthly active users
550 Billion+
Daily peak messages
100,000 +
Customers worldwide
99.99%+
Message success rate
Use In-app Chat Features to Drive Higher Engagement
Social & Communities
Build real-time community interactions in your app using a simple chat SDK. ✓Enrich message types ✓Post announcement ✓Manage users, groups and channels
On-demand Service
Metaverse
Gaming
Marketplace
Education
A Few Lines of Code, Say Goodbye to Busy Works
Web
Android
iOS/Mac
Flutter
RN
Unity
Electron
C
// create an instance of the chat SDK
let chat = TencentCloudChat.create({
SDKAppID: 0
});
// login
chat.login({userID: 'your userID', userSig: 'your userSig'});
// This event is triggered when the SDK receives a newly pushed one-to-one message, group message, group notification, or group system message
let onMessageReceived = function(event) {
// event.data - An array that stores the Message objects - [Message]
};
chat.on(TencentCloudChat.EVENT.MESSAGE_RECEIVED, onMessageReceived);
// create a text message
let message = chat.createTextMessage({
to: 'user1',
conversationType: TencentCloudChat.TYPES.CONV_C2C,
payload: {
text: 'Hello world!'
}
});
// send message
let promise = chat.sendMessage(message);
promise.then(function(imResponse) {
console.log(imResponse);
}).catch(function(imError) {
console.warn('sendMessage error:', imError);
});
// logout
chat.logout();