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.
- Host: GitHub
- URL: https://github.com/osamaesmail/uobot
- Owner: osamaesmail
- License: mit
- Created: 2018-07-21T10:56:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-27T20:20:40.000Z (almost 7 years ago)
- Last Synced: 2025-01-23T01:14:04.241Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.


## [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