luna-alimtalk
Version:
lunasoft alimtalk
22 lines (21 loc) • 657 B
TypeScript
interface ButtonUrl {
url_pc: string;
url_mobile: string;
}
declare type SendFunc = (contacts: string | string[], template_id: string, message: string, params?: {
[key: string]: any;
}, urls?: ButtonUrl | ButtonUrl[]) => Promise<any>;
declare const getMessageWithParams: (message: string, params: {
[key: string]: any;
} | undefined, options?: {
opening: string;
closing: string;
}) => string;
declare const Luna: (userid: string, api_key: string) => {
getMessageWithParams: (message: string, params: {
[key: string]: any;
}) => string;
sendWithAppUserId: SendFunc;
sendWithPhone: SendFunc;
};
export = Luna;