@@ 141-149 (lines=9) @@ | ||
138 | // no break |
|
139 | case 1: |
|
140 | insert: |
|
141 | if (($type === 'message' && $text === '') || $notes['last_message_id'] === $message->getMessageId()) { |
|
142 | $notes['state'] = 1; |
|
143 | $this->conversation->update(); |
|
144 | ||
145 | $data['reply_markup'] = Keyboard::remove(['selective' => true]); |
|
146 | $data['text'] = 'Insert the content you want to share: text, photo, audio...'; |
|
147 | $result = Request::sendMessage($data); |
|
148 | break; |
|
149 | } |
|
150 | $notes['last_message_id'] = $message->getMessageId(); |
|
151 | $notes['message'] = $message->getRawData(); |
|
152 | $notes['message_type'] = $type; |
|
@@ 182-190 (lines=9) @@ | ||
179 | $notes['last_message_id'] = $message->getMessageId(); |
|
180 | // no break |
|
181 | case 3: |
|
182 | if ($notes['set_caption'] && ($notes['last_message_id'] === $message->getMessageId() || $type !== 'message')) { |
|
183 | $notes['state'] = 3; |
|
184 | $this->conversation->update(); |
|
185 | ||
186 | $data['text'] = 'Insert caption:'; |
|
187 | $data['reply_markup'] = Keyboard::remove(['selective' => true]); |
|
188 | $result = Request::sendMessage($data); |
|
189 | break; |
|
190 | } |
|
191 | $notes['last_message_id'] = $message->getMessageId(); |
|
192 | $notes['caption'] = $text; |
|
193 | // no break |