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.

UOBot Image 1

UOBot Image 1

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

Authors

License

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