0.0
No release in over 3 years
There's a lot of open issues
Framework-agnostic SDK for sending/receiving messages across chat platforms. Supports WhatsApp Cloud API, Telegram Bot API, and more.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 5.0
~> 13.0
~> 3.0
 Project Readme

connector-ruby

Unified channel messaging SDK for Ruby. Send and receive messages across WhatsApp and Telegram with a consistent API.

Installation

gem "connector-ruby"

Usage

require "connector_ruby"

# WhatsApp
wa = ConnectorRuby::Channels::WhatsApp.new(
  access_token: ENV["WHATSAPP_TOKEN"],
  phone_number_id: ENV["WHATSAPP_PHONE_ID"]
)
wa.send_text(to: "+1234567890", text: "Hello!")

# Telegram
tg = ConnectorRuby::Channels::Telegram.new(bot_token: ENV["TELEGRAM_TOKEN"])
tg.send_text(to: "chat_id", text: "Hello!")

# Webhook verification
verifier = ConnectorRuby::WebhookVerifier.new(secret_token: "secret")
verifier.verify!(request_body, signature_header)

Features

  • WhatsApp Business API (text, buttons, images)
  • Telegram Bot API (text, callbacks)
  • HMAC-SHA256 webhook verification
  • HTTP retry with exponential backoff for 429/5xx
  • Input validation and error handling
  • Logging hooks (on_request, on_response, on_error)

License

MIT