uo / uobot
uobot is a library for php to develop messenger chatbot using oop, classes.
1.0.0
2018-07-27 17:42 UTC
This package is not auto-updated.
Last update: 2025-07-06 09:57:21 UTC
README
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
You can test our demo at facebook to see the types of messeges and how it will be like.
Installing
- Require the plugin using composer
composer require uo/uobot
Get Started
- Setup and verify webhook
Webhook::verify('VERIFY_TOKEN');
- Set your facebook page token
Config::setToken('YOUR_PAGE_TOKEN');
- Send your first message
this code listen to message hi and send reply hello.
UOBot::onMessage('hi',function ($uoBot){ $uoBot->send('hello'); });
Table of Contents
- Get Started
- UOBot functions
- Send Quick Replies
- Send Generic Template
- Send List Template
- Send Button Template
- Send OpenGraph Template
- Send Receipt Template
- Send Attachments
- Button Types
- Set Get Started Button
- Set Get Greeting Text
- Set Get Persistent Menu
Authors
- Osama Esmail - Initial work - osamaesmail
License
This project is licensed under the MIT License - see the LICENSE.md file for details