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