Whatsapp Tags
# 🤝help
f
Hello! Can someone help me with this? What are the "tags" for WhatsApp that I can request from the bot to see its content? For example: event.tags.conversation['whatsapp:userPhone'] // It returns the phone number, What would be the tag for the "name" or ID? My idea is to obtain the number and the ID (or name) and if it is within an authorized table, the conversation continues; otherwise, it ends with a message "Unauthorized person."
Maybe I'm approaching it incorrectly. What I want to do is have a table with authorized numbers. If someone talks to the chat, the chat should check if the number is in the table. If it is, then it should use the "name" column from the same table and address the user in question as "hello {name}". If the number is not found in the table, then the conversation ends with a message. My idea is to have the Telegram and WhatsApp channels active (these two implementations are already working correctly). The only thing I need is to figure out how to allow only authorized users to speak in both channels.
4 Views