Skip to content

sendTypingEvent

api.sendTypingEvent(threadId, type, destType)

Parameters

  • threadId string
  • type ThreadType
    • mặc định ThreadType.User?
  • destType DestType?
    • Chỉ yêu cầu khi typeThreadType.User

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);