| @@ 119-127 (lines=9) @@ | ||
| 116 | ||
| 117 | // no break |
|
| 118 | case 1: |
|
| 119 | if ($text === '') { |
|
| 120 | $notes['state'] = 1; |
|
| 121 | $this->conversation->update(); |
|
| 122 | ||
| 123 | $data['text'] = 'Type your surname:'; |
|
| 124 | ||
| 125 | $result = Request::sendMessage($data); |
|
| 126 | break; |
|
| 127 | } |
|
| 128 | ||
| 129 | $notes['surname'] = $text; |
|
| 130 | $text = ''; |
|
| @@ 196-204 (lines=9) @@ | ||
| 193 | ||
| 194 | // no break |
|
| 195 | case 5: |
|
| 196 | if ($message->getPhoto() === null) { |
|
| 197 | $notes['state'] = 5; |
|
| 198 | $this->conversation->update(); |
|
| 199 | ||
| 200 | $data['text'] = 'Insert your picture:'; |
|
| 201 | ||
| 202 | $result = Request::sendMessage($data); |
|
| 203 | break; |
|
| 204 | } |
|
| 205 | ||
| 206 | /** @var PhotoSize $photo */ |
|
| 207 | $photo = $message->getPhoto()[0]; |
|