@@ -69,7 +69,7 @@ public function execute()
69
69
// getConfig has not been configured asking for channel to administer
70
70
if ($ type != 'Message ' || empty ($ text )) {
71
71
$ this ->conversation ->notes ['state ' ] = -1 ;
72
- // $this->conversation->update();
72
+ $ this ->conversation ->update ();
73
73
74
74
$ data ['text ' ] = 'Insert the channel name: (@yourchannel) ' ;
75
75
$ data ['reply_markup ' ] = new ReplyKeyBoardHide (['selective ' => true ]);
@@ -88,7 +88,7 @@ public function execute()
88
88
// getConfig has been configured choose channel
89
89
if ($ type != 'Message ' || !in_array ($ text , $ channels )) {
90
90
$ this ->conversation ->notes ['state ' ] = 0 ;
91
- // $this->conversation->update();
91
+ $ this ->conversation ->update ();
92
92
93
93
$ keyboard = [];
94
94
foreach ($ channels as $ channel ) {
@@ -118,7 +118,7 @@ public function execute()
118
118
insert:
119
119
if ($ this ->conversation ->notes ['last_message_id ' ] == $ message ->getMessageId () || ($ type == 'Message ' && empty ($ text ))) {
120
120
$ this ->conversation ->notes ['state ' ] = 1 ;
121
- // $this->conversation->update();
121
+ $ this ->conversation ->update ();
122
122
123
123
$ data ['reply_markup ' ] = new ReplyKeyBoardHide (['selective ' => true ]);
124
124
$ data ['text ' ] = 'Insert the content you want to share: text, photo, audio... ' ;
@@ -133,7 +133,7 @@ public function execute()
133
133
case 2 :
134
134
if ($ this ->conversation ->notes ['last_message_id ' ] == $ message ->getMessageId () || !($ text == 'Yes ' || $ text == 'No ' )) {
135
135
$ this ->conversation ->notes ['state ' ] = 2 ;
136
- // $this->conversation->update();
136
+ $ this ->conversation ->update ();
137
137
138
138
// Execute this just with object that allow caption
139
139
if ($ this ->conversation ->notes ['message_type ' ] == 'Video ' || $ this ->conversation ->notes ['message_type ' ] == 'Photo ' ) {
@@ -165,7 +165,7 @@ public function execute()
165
165
case 3 :
166
166
if (($ this ->conversation ->notes ['last_message_id ' ] == $ message ->getMessageId () || $ type != 'Message ' ) && $ this ->conversation ->notes ['set_caption ' ]) {
167
167
$ this ->conversation ->notes ['state ' ] = 3 ;
168
- // $this->conversation->update();
168
+ $ this ->conversation ->update ();
169
169
170
170
$ data ['text ' ] = 'Insert caption: ' ;
171
171
$ data ['reply_markup ' ] = new ReplyKeyBoardHide (['selective ' => true ]);
@@ -178,7 +178,7 @@ public function execute()
178
178
case 4 :
179
179
if ($ this ->conversation ->notes ['last_message_id ' ] == $ message ->getMessageId () || !($ text == 'Yes ' || $ text == 'No ' )) {
180
180
$ this ->conversation ->notes ['state ' ] = 4 ;
181
- // $this->conversation->update();
181
+ $ this ->conversation ->update ();
182
182
183
183
$ data ['text ' ] = 'Message will look like this: ' ;
184
184
$ result = Request::sendMessage ($ data );
0 commit comments