Installation
Prerequisites
- PHP version 8.1 or higher.
- Laravel version 9 or higher.
Library Installation
Install the library via Composer:
sh
$ composer require sequentsoft/threadflow
Driver Installation
Also install the driver for the messaging platform you want to use. All drivers are listed on the ThreadFlow Drivers page.
For example, to use the Telegram driver:
sh
$ composer require sequentsoft/threadflow-telegram
NOTE
When you are using the Telegram driver, you must create a Telegram bot and get the API token
. You can find more information about this in the Telegram driver documentation.
The corresponding parameters for the driver must be configured in the .env
file.
TELEGRAM_API_TOKEN="your-token-here"
More information about the parameters can be found in the documentation for the driver.
Create index page
Create a new page for the bot to handle. For example, create a new page called IndexPage
:
sh
$ php artisan threadflow:page IndexPage