|
@@ 158-167 (lines=10) @@
|
| 155 |
|
// no break |
| 156 |
|
case 1: |
| 157 |
|
insert: |
| 158 |
|
if (($type === 'message' && $text === '') || $notes['last_message_id'] === $message->getMessageId()) { |
| 159 |
|
$notes['state'] = 1; |
| 160 |
|
$this->conversation->update(); |
| 161 |
|
|
| 162 |
|
$result = $this->replyToChat( |
| 163 |
|
'Insert the content you want to share: text, photo, audio...', |
| 164 |
|
['reply_markup' => Keyboard::remove(['selective' => true])] |
| 165 |
|
); |
| 166 |
|
break; |
| 167 |
|
} |
| 168 |
|
$notes['last_message_id'] = $message->getMessageId(); |
| 169 |
|
$notes['message'] = $message->getRawData(); |
| 170 |
|
$notes['message_type'] = $type; |
|
@@ 198-207 (lines=10) @@
|
| 195 |
|
$notes['last_message_id'] = $message->getMessageId(); |
| 196 |
|
// no break |
| 197 |
|
case 3: |
| 198 |
|
if ($notes['set_caption'] && ($notes['last_message_id'] === $message->getMessageId() || $type !== 'message')) { |
| 199 |
|
$notes['state'] = 3; |
| 200 |
|
$this->conversation->update(); |
| 201 |
|
|
| 202 |
|
$result = $this->replyToChat( |
| 203 |
|
'Insert caption:', |
| 204 |
|
['reply_markup' => Keyboard::remove(['selective' => true])] |
| 205 |
|
); |
| 206 |
|
break; |
| 207 |
|
} |
| 208 |
|
$notes['last_message_id'] = $message->getMessageId(); |
| 209 |
|
if (isset($notes['caption'])) { |
| 210 |
|
// If caption has already been send with the file, no need to ask for it. |