|
@@ 183-185 (lines=3) @@
|
| 180 |
|
$text = 'No'; |
| 181 |
|
} elseif (in_array($notes['message_type'], ['video', 'photo'], true)) { |
| 182 |
|
$text = 'Would you like to insert a caption?'; |
| 183 |
|
if (!$text_yes_or_no && $notes['last_message_id'] !== $message->getMessageId()) { |
| 184 |
|
$text .= PHP_EOL . 'Type Yes or No'; |
| 185 |
|
} |
| 186 |
|
|
| 187 |
|
$result = $this->replyToChat( |
| 188 |
|
$text, |
|
@@ 232-234 (lines=3) @@
|
| 229 |
|
$data['reply_markup'] = $yes_no_keyboard; |
| 230 |
|
|
| 231 |
|
$data['text'] = 'Would you like to post it?'; |
| 232 |
|
if (!$text_yes_or_no && $notes['last_message_id'] !== $message->getMessageId()) { |
| 233 |
|
$data['text'] .= PHP_EOL . 'Type Yes or No'; |
| 234 |
|
} |
| 235 |
|
$result = Request::sendMessage($data); |
| 236 |
|
} |
| 237 |
|
break; |