eladrave / WhatsappOAIAssistant

0 stars 0 forks source link

Limit the phone numbers that can send #1

Closed eladrave closed 1 month ago

eladrave commented 1 month ago

add an env variable like this: allowedSenders="+19253858017;+972546266782;...."

and then, once a message is received, if the "From" number is not in the list, then stop and ignore.

(This will make sure no one can use the whatsapp except those allowed)

TalalZoabi commented 1 month ago

Only numbers present in teh users table can send (all other numbers are ignored)