| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 65 | public function deleteWebhook(array $data = []): Response |
||
| 66 | { |
||
| 67 | $result = Request::deleteWebhook($data); |
||
| 68 | |||
| 69 | if (!$result->isOk()) { |
||
| 70 | throw new TelegramException(sprintf( |
||
| 71 | 'Webhook was not deleted! Error: %s %s', |
||
| 72 | $result->getErrorCode(), |
||
| 73 | $result->getDescription() |
||
| 74 | )); |
||
| 75 | } |
||
| 76 | |||
| 77 | return $result; |
||
| 78 | } |
||
| 80 | } |