diff --git a/.env.example b/.env.example index 3fab9eb..c769621 100644 --- a/.env.example +++ b/.env.example @@ -21,10 +21,19 @@ export VECTARA_API_KEY="" # Authentication token for Vectara API export template_dir="." # Directory path for templates # Related to WhatsApp Business and Meta (leave empty if you're not planning to use WhatsApp) +# Note 1: regarding the WA biz phone num., if you register it, and see it "Pending", +# then follow "source 4" to change the status to "Connected" by generating an access token in "API Setup" page with that biz num. +# Note 2: after finishing ensuring the num. is "Connected", you have 2 options: +# * Option 1: send a test message via "API Setup" page (will require setting up a payment method) +# * Option 2: receive a message from an end user +# * To do this, paste this into your mobile browser to open the whatsapp app directly to the chat page of the biz num.: +# https://wa.me/YOUR_WA_BIZ_PHONE_NUM_WITHOUT_SPECIAL_CHARACTERS +# * Why do all of this? Because if you save the biz num. on your contacts, +# you'll see WA wrongfully stating that this num. doesn't have a WA account # Source 1: https://www.youtube.com/watch?v=KP6_BUw3i0U # Source 2: https://glitch.com/edit/#!/insidious-tartan-alvarezsaurus # Source 3: https://developers.facebook.com/blog/post/2022/10/24/sending-messages-with-whatsapp-in-your-python-applications/#u_0_39_8q -export WHATSAPP_RECIPIENT_WAID="<>" +# Source 4: https://www.youtube.com/watch?v=62NfZaoZV-g export WHATSAPP_API_VERSION="<>" export WHATSAPP_BUSINESS_PHONE_NUMBER_ID="<>" export WHATSAPP_ACCESS_TOKEN_FROM_SYS_USER="<" diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 2386c6b..fb308ae 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -23,8 +23,6 @@ jobs: MAWSUAH_VECTARA_CORPUS_KEY: ${{ secrets.MAWSUAH_VECTARA_CORPUS_KEY }} TAFSIR_VECTARA_CORPUS_KEY: ${{ secrets.TAFSIR_VECTARA_CORPUS_KEY }} QURAN_DOT_COM_API_KEY: ${{ secrets.QURAN_DOT_COM_API_KEY }} - WHATSAPP_RECIPIENT_WAID: ${{ secrets.WHATSAPP_RECIPIENT_WAID }} - WHATSAPP_API_VERSION: ${{ secrets.WHATSAPP_API_VERSION }} WHATSAPP_BUSINESS_PHONE_NUMBER_ID: ${{ secrets.WHATSAPP_BUSINESS_PHONE_NUMBER_ID }} WHATSAPP_ACCESS_TOKEN_FROM_SYS_USER: ${{ secrets.WHATSAPP_ACCESS_TOKEN_FROM_SYS_USER }} WHATSAPP_VERIFY_TOKEN_FOR_WEBHOOK: ${{ secrets.WHATSAPP_VERIFY_TOKEN_FOR_WEBHOOK }}