mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
20 lines
431 B
TypeScript
20 lines
431 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);
|
|
}
|