deleteChat
Xóa đoạn chat
api.deleteChat(catalogId)
Parameters
lastMessage
DeleteChatLastMessage
threadId
string
type
ThreadType?
mặc định
ThreadType.User
Return
Promise<DeleteChatResponse>
Types
export type DeleteChatResponse = {
status: number;
};
export type DeleteChatLastMessage = {
/**
* Last message owner ID to delete backwards
*/
ownerId: string;
/**
* Last message client ID to delete backwards
*/
cliMsgId: string;
/**
* Last message global ID to delete backwards
*/
globalMsgId: string;
};
Examples
import { ThreadType } from "zca-js";
const threadId = "00000000000000";
api
.deleteChat(
{
ownerId: "00000000000000",
cliMsgId: "00000000000000",
globalMsgId: "00000000000000"
},
threadId,
ThreadType.Group
)
.then(console.log).catch(console.error);
Last updated