How to Send and Receive WhatsApp Messages with Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 เม.ย. 2024
  • WhatsApp is a messaging service used by people all over the world. With Twilio's Messaging API (www.twilio.com/docs/whatsapp/...) you can programmatically send WhatsApp messages. Let's walk through how to use Python to send and receive messages over WhatsApp using the Twilio Console’s sandbox feature.
    Learn more in the docs at: www.twilio.com/docs/whatsapp/...
    To learn more about creating tunnels to test your application with ngrok (and other tools), check out the following blog post: www.twilio.com/en-us/blog/exp...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 8

  • @eightrice
    @eightrice หลายเดือนก่อน +3

    so does this allow programmatic chat between your own number (not a twilio assigned number) and someone else?

  • @mzafarr
    @mzafarr 3 หลายเดือนก่อน +1

    How to sent voice messages (in form of mp3 or any audio file) in whatsapp using twilio?

    • @TwilioDevs
      @TwilioDevs  3 หลายเดือนก่อน

      Check out the media_url property on the message: www.twilio.com/docs/whatsapp/tutorial/send-and-receive-media-messages-whatsapp-python#send-a-media-message-with-whatsapp

    • @mzafarr
      @mzafarr 3 หลายเดือนก่อน

      @@TwilioDevs Thanks for the response, I want to send audio in .mp3 format not a url, what should be done in that case?

  • @reinaldosotillo4890
    @reinaldosotillo4890 3 หลายเดือนก่อน +1

    When I enter the `sandbox setting`, a link appears that ends with demo-reply, can I use that? If so, how do I use it?

    • @TwilioDevs
      @TwilioDevs  3 หลายเดือนก่อน +1

      Thank you for reaching out.
      We might need to get a little bit more information to fully verify if this can be used.
      I'd suggest opening a ticket directly within your Dashboard so we can further reivew.
      In the mean time, this link does have a live demo video on how to go about utilizing the Whatsapp Sandbox.
      www.twilio.com/docs/whatsapp/quickstart/go

  • @alvarocastillo6365
    @alvarocastillo6365 2 หลายเดือนก่อน

    2:54 This I believe is not correct, the order is from -> body -> to . Was not giving me any error but my phone was not receiving the message, once i saw how it was ordered in the sandbox defaul code and set it up like it, i did received the code.

    • @TwilioDevs
      @TwilioDevs  2 หลายเดือนก่อน

      Thanks for watching. The code in this video is directly from our documentation and works as shown. It's possible you weren't receiving it due to something else.