Send Images and Files via #whatsapp Using #ruby
▻https://hackernoon.com/send-images-and-files-via-whatsapp-using-ruby-773f900764f0?source=rss---
With the #twilio API for WhatsApp we can send messages to WhatsApp numbers. Those messages can be plain text or include files like images, audio and even PDFs up to 5MB. Let’s see how to do so using Ruby.Things you’ll needIf you want to code along with this post, you’ll need a few things:A Twilio account (sign up for a free account now)Ruby and Bundler installedThe WhatsApp Sandbox Channel installed (learn how to activate your WhatsApp sandbox)Got all that? Let’s get coding then!Create a new directory for your project and use Bundler to initialise a new Gemfile:mkdir whatsapp-messagescd whatsapp-messagesbundle initOpen up the new Gemfile and add the twilio-ruby gem:# frozen_string_literal: truesource "▻https://rubygems.org"gem "twilio-ruby"Install the gem by running bundle (...)