M
M
Maxim2018-12-22 14:32:53
API
Maxim, 2018-12-22 14:32:53

How to properly pass custompayload to DialogFlow?

just the text is transferred well, and if I also want to transfer the buttons, then nothing works here is an example

$menu = [
    "type"=> "text",
   		"text"=> "This text is being sent via Custom Payload",
   		"keyboard" => [
   			"DefaultHeight"=> true,
   			"Buttons" => [
   				[
     				"Rows" => "2",
     				"Text" => "Написать водителю",
     				"ActionType" => "reply",
     				"Columns" => "2",
     				"ActionBody" => "write_to_driver",
     				"TextSize" => "regular"
   				],
   				[
     				"Rows" => "2",
     				"Text" => "Написать водителю",
     				"ActionType" => "reply",
     				"Columns" => "2",
     				"ActionBody" => "write_to_driver",
     				"TextSize" => "regular"
   				]
   			]
   		]
    
    ];

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question