Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
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( |
||
71 | 'Webhook was not deleted! Error: ' . $result->getErrorCode() . ' ' . $result->getDescription() |
||
72 | ); |
||
73 | } |
||
74 | |||
75 | return $result; |
||
76 | } |
||
78 | } |