Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function processEvents({ body }, res) {
- if (body.type === 'confirmation') {
- res.send(config.group_secret);
- return console.log('Server sended confirmation');
- }
- res.send('ok');
- /* Stop action for other events */
- if (body.type !== 'message_new') {
- return;
- }
- /* ... my code */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement