sendTypingEvent
api.sendTypingEvent(threadId, type, destType)
Parameters
- threadId
string - type
ThreadType- mặc định
ThreadType.User?
- mặc định
- destType
DestType?- Chỉ yêu cầu khi
typelàThreadType.User
- Chỉ yêu cầu khi
Return
Promise<SendTypingEventResponse>
Types
ts
export type SendTypingEventResponse = {
status: number;
};Examples
ts
import { ThreadType, DestType } from "zca-js";
api.sendTypingEvent(threadId, ThreadType.User, DestType.User)
.then(console.log)
.catch(console.error);