editReminder
Chỉnh sửa nhắc hẹn
api.editReminder(options, groupId)
Parameters
options
EditReminderOptions
groupId
string
type
ThreadType?
mặc định
ThreadType.User
Return
Promise<EditReminderResponse>
Types
export type EditReminderOptions = {
title: string;
topicId: string;
emoji?: string;
startTime?: number;
repeat?: ReminderRepeatMode;
};
export type EditReminderUser = ReminderUser;
export type EditReminderGroup = Omit<ReminderGroup, "responseMem">;
export type EditReminderResponse = EditReminderUser | EditReminderGroup;
Examples
import { ThreadType } from "zca-js";
const groupId = "0000000000000000000";
const topicId = "";
const newTitle = "Tiêu đề mới"
api
.editReminder(
{
topicId: topicId,
title: newTitle,
},
groupId,
ThreadType.Group
)
.then(console.log)
.catch(console.error);
Related
Last updated