@@ 168-170 (lines=3) @@ | ||
165 | $data['reply_markup'] = $reply_keyboard_markup; |
|
166 | ||
167 | $data['text'] = 'Would you insert caption?'; |
|
168 | if ($this->conversation->notes['last_message_id'] != $message->getMessageId() && !($text == 'Yes' || $text == 'No')) { |
|
169 | $data['text'] = 'Would you insert a caption?' . "\n" . 'Type Yes or No'; |
|
170 | } |
|
171 | $result = Request::sendMessage($data); |
|
172 | break; |
|
173 | } |
|
@@ 209-211 (lines=3) @@ | ||
206 | $result = $this->sendBack(new Message($this->conversation->notes['message'], 'thisbot'), $data); |
|
207 | ||
208 | $data['text'] = 'Would you post it?'; |
|
209 | if ($this->conversation->notes['last_message_id'] != $message->getMessageId() && !($text == 'Yes' || $text == 'No')) { |
|
210 | $data['text'] = 'Would you post it?' . "\n" . 'Press Yes or No'; |
|
211 | } |
|
212 | $keyboard = [['Yes', 'No']]; |
|
213 | $reply_keyboard_markup = new ReplyKeyboardMarkup( |
|
214 | [ |