chat object.
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
client.on('chat.created', (data) => {
console.log(data);
});
Webhooks
chat.created
The chat.created webhook is triggered when a new group or individual chat is created on whatsapp.
Refer Chat object to find more details about
Was this page helpful?