Higher Engagement with Feature-rich Chat
- Social Features
- Offline Message Push
Higher Engagement with Feature-rich Chat
Various Message Types
Enable multiple message types, including text, image, audio, and video messages.
Notifications
Quickly 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 features and 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
Enable real-time community interactions in your app with easy-to-use Chat SDKs ✓Enrich message types ✓Post announcements ✓Manage users, groups, and channels
On-demand Service
Metaverse
Gaming
Marketplace
Education
A Few Lines of Code, No Tedious Development
JavaScript
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();