1

我试图在对话流中找到用户访问令牌,因为我试图将它与 botman.io 相关联,但它不起作用这是代码:

$botman = app('botman');
        
$dialogflow = Dialogflow::create('token')->listenForAction();

$botman->middleware->received($dialogflow);

$botman->hears('weathersearch', function (BotMan $bot) {
    $extras = $bot->getMessage()->getExtras();

    $bot->reply('I'm working');
})->middleware($dialogflow);

我怎样才能找到我的令牌?

4

1 回答 1

0

你可以试试这个: https ://github.com/genkovich/DialogFlowBotManMiddleware

我试着写详细的说明:)

于 2021-03-26T19:21:29.967 回答