|
@@ 66-68 (lines=3) @@
|
| 63 |
|
|
| 64 |
|
public function formatMessageText(array $data) : string |
| 65 |
|
{ |
| 66 |
|
if ($this->isMessageChanged($data) && isset($data['message']['text'])) { |
| 67 |
|
return $this->formatText($data['message']['text']); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
if (isset($data['text'])) { |
| 71 |
|
return $this->formatText($data['text']); |
|
@@ 168-170 (lines=3) @@
|
| 165 |
|
|
| 166 |
|
protected function getUserId(array $data) |
| 167 |
|
{ |
| 168 |
|
if ($this->isMessageChanged($data) && isset($data['message']['user'])) { |
| 169 |
|
return $data['message']['user']; |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
if (isset($data['user'])) { |
| 173 |
|
return $data['user']; |