ethix-md-user-4 / src /event /call-handler.js
arabdullah's picture
sjwwehfiuwia
290c0c4 verified
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;