Files
new-phone-who-dis/resources/utils/messages.ts
T

14 lines
311 B
TypeScript

import apps from './apps';
function sendMessage(app: string, method: string, data: any) {
return SendNuiMessage(JSON.stringify({
app,
method,
data,
}))
}
export function sendTwitterMessage(method: string, data: any = {}) {
return sendMessage(apps.TWITTER, method, data);
}