An open API service indexing awesome lists of open source software.

https://github.com/osamaesmail/uobot

uobot is a library for php to develop messenger chatbot using oop.
https://github.com/osamaesmail/uobot

Last synced: 3 months ago
JSON representation

uobot is a library for php to develop messenger chatbot using oop.

Awesome Lists containing this project

README

        

# uobot

uobot is a library for php to develop messenger chatbot using oop, and send all types of templates, attachments and quickreplies, and setup page profile (greeting text, getstarted button, persistent menu), and listen to many types of messages.

![UOBot Image 1](https://messenger.fb.com/wp-content/uploads/2018/02/gieofglobe_tableau.png?w=516&h=474,%20https://messenger.fb.com/wp-content/uploads/2018/02/gieofglobe_tableau.png?w=1032&h=948%202x)

![UOBot Image 1](https://messenger.fb.com/wp-content/uploads/2018/01/3_enabletransactions11.png?w=510&h=662,%20https://messenger.fb.com/wp-content/uploads/2018/01/3_enabletransactions11.png?w=1020&h=1324%202x)

## [Our demo](http://m.me/uobot123)

You can test our [demo](http://m.me/uobot123) at facebook to see the types of messeges and how it will be like.

## Installing

* Require the plugin using composer

```console
composer require uo/uobot
```

## Get Started

* Setup and verify webhook

```php
Webhook::verify('VERIFY_TOKEN');
```

* Set your facebook page token

```php
Config::setToken('YOUR_PAGE_TOKEN');
```

* Send your first message

this code listen to message hi and send reply hello.

```php
UOBot::onMessage('hi',function ($uoBot){
$uoBot->send('hello');
});
```

## Table of Contents
* [Get Started](https://github.com/osamaesmail/uobot/wiki/Home)
* [UOBot functions](https://github.com/osamaesmail/uobot/wiki/UOBot-Functions)
* [Send Quick Replies](https://github.com/osamaesmail/uobot/wiki/Send-Quick-Replies)
* [Send Generic Template](https://github.com/osamaesmail/uobot/wiki/Send-generic-template)
* [Send List Template](https://github.com/osamaesmail/uobot/wiki/Send-List-template)
* [Send Button Template](https://github.com/osamaesmail/uobot/wiki/Send-Button-template)
* [Send OpenGraph Template](https://github.com/osamaesmail/uobot/wiki/Send-OpenGraph-template)
* [Send Receipt Template](https://github.com/osamaesmail/uobot/wiki/Send-Receipt-template)
* [Send Attachments](https://github.com/osamaesmail/uobot/wiki/Send-Attcahments-template)
* [Button Types](https://github.com/osamaesmail/uobot/wiki/Button-Types)
* [Set Get Started Button](https://github.com/osamaesmail/uobot/wiki/Set-Get-Started-Button)
* [Set Get Greeting Text](https://github.com/osamaesmail/uobot/wiki/Set-Greeting-Text)
* [Set Get Persistent Menu](https://github.com/osamaesmail/uobot/wiki/Set-Persistent-Menu)

## Authors

* **Osama Esmail** - *Initial work* - [osamaesmail](https://github.com/osamaesmail)

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details