@@ -44,7 +44,7 @@ def setUp(self):
4444 title = 'Menu' , text = 'Please select' ,
4545 actions = [
4646 PostbackAction (
47- label = 'postback' , text = 'postback text' ,
47+ label = 'postback' , display_text = 'postback text' ,
4848 data = 'action=buy&itemid=1'
4949 ),
5050 MessageAction (
@@ -70,7 +70,7 @@ def setUp(self):
7070 {
7171 "type" : "postback" ,
7272 "label" : "postback" ,
73- "text " : "postback text" ,
73+ "displayText " : "postback text" ,
7474 "data" : "action=buy&itemid=1"
7575 },
7676 {
@@ -93,7 +93,7 @@ def setUp(self):
9393 text = 'Are you sure?' ,
9494 actions = [
9595 PostbackAction (
96- label = 'postback' , text = 'postback text' ,
96+ label = 'postback' , display_text = 'postback text' ,
9797 data = 'action=buy&itemid=1'
9898 ),
9999 MessageAction (
@@ -113,7 +113,7 @@ def setUp(self):
113113 {
114114 "type" : "postback" ,
115115 "label" : "postback" ,
116- "text " : "postback text" ,
116+ "displayText " : "postback text" ,
117117 "data" : "action=buy&itemid=1"
118118 },
119119 {
@@ -135,7 +135,7 @@ def setUp(self):
135135 title = 'this is menu1' , text = 'description1' ,
136136 actions = [
137137 PostbackAction (
138- label = 'postback1' , text = 'postback text1' ,
138+ label = 'postback1' , display_text = 'postback text1' ,
139139 data = 'action=buy&itemid=1'
140140 ),
141141 MessageAction (
@@ -154,7 +154,7 @@ def setUp(self):
154154 title = 'this is menu2' , text = 'description2' ,
155155 actions = [
156156 PostbackAction (
157- label = 'postback2' , text = 'postback text2' ,
157+ label = 'postback2' , display_text = 'postback text2' ,
158158 data = 'action=buy&itemid=2'
159159 ),
160160 MessageAction (
@@ -216,7 +216,7 @@ def setUp(self):
216216 {
217217 "type" : "postback" ,
218218 "label" : "postback1" ,
219- "text " : "postback text1" ,
219+ "displayText " : "postback text1" ,
220220 "data" : "action=buy&itemid=1"
221221 },
222222 {
@@ -241,7 +241,7 @@ def setUp(self):
241241 {
242242 "type" : "postback" ,
243243 "label" : "postback2" ,
244- "text " : "postback text2" ,
244+ "displayText " : "postback text2" ,
245245 "data" : "action=buy&itemid=2"
246246 },
247247 {
0 commit comments