Spaces:
Paused
Paused
File size: 465 Bytes
8de10f9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import config from '../../config.cjs';
const Callupdate = async (json, sock) => {
for (const id of json) {
if (id.status === 'offer' && config.REJECT_CALL ) {
let msg = await sock.sendMessage(id.from, {
text: `*_📞 Auto Reject Call Mode Activated_* \n*_📵 No Calls Allowed_*`,
mentions: [id.from],
});
await sock.rejectCall(id.id, id.from);
}
}
};
export default Callupdate;
|