rmessenger

MIT License

A Rust Wrapper for the FaceBook Messenger Bot API

Facebook's Messenger Platform
Cargo

About

you can: - send text message - send generic message

Installation

Cargo.toml

rmessenger = "0.0.1"

Usage

Send text message

https://developers.facebook.com/docs/messenger-platform/send-api-reference/text-message

```rust extern crate rmessenger; use rmessenger::bot;

fn main() { let bot = bot::Bot::new("", ""); bot.sendtextmessage("", ""); } ````

Send generic message

```rust extern crate rmessenger; use rmessenger::bot;

fn main() { let bot = bot::Bot::new("", ""); bot.sendgenericmessage(">", "[{'title': 'example', 'imageurl': 'https://petersfancybrownhats.com/companyimage.png' }]"); } ````

elements param is &str

TODO