sendLink
Gửi liên kết
api.sendLink(options, threadId[, type])
Parameters
options
SendLinkOptionsthreadId
stringtype
ThreadType?mặc định
ThreadType.User
Return
Promise<SendLinkResponse>
Types
export type SendLinkOptions = {
msg?: string;
link: string;
ttl?: number;
};
export type SendLinkResponse = {
msgId: string;
};Examples
const options = {
link: "https://example.com",
};
const threadId = "0000000000000000"
api.sendLink(
options,
threadId,
ThreadType.Group
)
.then(console.log)
.catch(console.error);Related
Last updated