updateAutoDeleteChat

Thiết lập tự động xóa tin nhắn

api.updateAutoDeleteChat(ttl, threadId[, type])

Parameters

  • ttl ChatTTL

  • threadId string

  • type ThreadType?

    • mặc định ThreadType.User

Return

Promise<UpdateAutoDeleteChatResponse>

Types

export enum ChatTTL {
    NO_DELETE = 0,
    ONE_DAY = 86400000,
    SEVEN_DAYS = 604800000,
    FOURTEEN_DAYS = 1209600000,
}

export type UpdateAutoDeleteChatResponse = "";

Examples

Last updated