BotMan driver to connect LINE with BotMan
Please see CONTRIBUTING for details.
BotMan is free software distributed under the terms of the MIT license.
BotMan LINE Driver
License: MIT License
BotMan driver to connect LINE with BotMan
Please see CONTRIBUTING for details.
BotMan is free software distributed under the terms of the MIT license.
What did I do wrong?
Did not reply and yes I did install the driver and add token. @gundamew maybe can help?
<?php
use App\Http\Controllers\BotManController;
use App\Conversations\TelegramConversation;
use BotMan\BotMan\Middleware\Dialogflow;
use BotMan\Drivers\Telegram\TelegramDriver;
use BotMan\Drivers\Line\LineDriver;
use BotMan\Drivers\Web\WebDriver;
$botman = resolve('botman');
//Checkout incoming messages from Telegram and Web Driver
$botman->group(['driver' => [TelegramDriver::class, WebDriver::class, LineDriver::class]], function($bot) {
$dialogflow = Dialogflow::create(getenv('DIALOGFLOW_TOKEN'), 'id')->listenForAction();
$bot->middleware->received($dialogflow);
$bot->hears('input.welcome', function ($bot) {
$bot->reply('Halo, saya Hana, Asisten Virtual dari Halosis.');
$bot->startConversation(new TelegramConversation());
})->middleware($dialogflow);
});
無法用 Composer 安裝,在 Packagist 上找不到這個套件,請問什麼時候會上架?
Is there a documentation with explanation to install it?
Would love to test it too.
Hi.
Great work so far.
It works pretty well. There's one problem. Currently the getUser()
function returns an empty user.
If I want to work in Line with Groups where I can have a group-admin (who actually "controls" the bot) it would be great to get the UserId in a better way.
Currently I use (within a $bot->hears):
$payload = collect($bot->getMessage()->getPayload());
$events = current($payload->get('events'));
$userId = $events['source']['userId'];
$eventType = $events['source']['type'];
I've not seen a better solution for now...?
Hi bro, I tried to use your driver. But I got error Class 'BotMan\Drivers\Line\LineVideoDriver'' not found when I install the Driver
I'm trying to create button which usually work across the board.. but how do I create buttons? or Horizontal Carousel? Help?
Hi bro, can this function push message or multi reply text?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.