mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-02 22:17:39 +00:00
24 lines
547 B
TypeScript
24 lines
547 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);
|
|
}
|
|
|
|
export function sendMessageEvent(method: string, data: any = {}) {
|
|
return sendMessage(apps.MESSAGES, method, data);
|
|
}
|
|
|
|
export function sendNotesEvent(method: string, data: any = {}) {
|
|
return sendMessage(apps.NOTES, method, data);
|
|
}
|