我有一个问题,当在私人频道上创建消息时,Action.Submit按钮不会在服务器上触发事件,无论消息是否为私人消息,只要它运行正常,都是如此。
this.onBegin(async (session, args, next) => {
await this.onDialogBegin(session, args, next)
});
this.onDefault(async (session) => {
await this.onMessageReceived(session);
});
Chatbot专用屏幕。确定按钮不会触发操作
'type' => 'Action.ShowCard',
'title' => 'Update ticket',
'card' => [
'type' => 'AdaptiveCard',
'body' => [
[
'type' => 'Input.Text',
'id' => 'summary',
'value' => $this->connectWiseTicket->summary,
'placeholder' => 'Summary'
],
],
'actions' => [
[
'type' => 'Action.Submit',
'title' => 'OK',
'data' => [
'action' => 'update_ticket',
'ticketID' => $ticket->id,
'type' => 'form_submit'
]
]
]
]