Action.Submit不触发服务器中的事件/动作

时间:2019-05-20 13:25:15

标签: microsoft-teams

我有一个问题,当在私人频道上创建消息时,Action.Submit按钮不会在服务器上触发事件,无论消息是否为私人消息,只要它运行正常,都是如此。

this.onBegin(async (session, args, next) => {
  await this.onDialogBegin(session, args, next)
});

this.onDefault(async (session) => {
  await this.onMessageReceived(session);
});

Chatbot专用屏幕。确定按钮不会触发操作

enter image description here

'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'
                        ]
                    ]
                ]
            ]

0 个答案:

没有答案