Total Complexity | 6 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | trait WebhookTrait |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Set Webhook for bot |
||
22 | * |
||
23 | * @param string $url |
||
24 | * @param array $data Optional parameters. |
||
25 | * @return Response |
||
26 | * @throws TelegramException |
||
27 | */ |
||
28 | public function setWebhook(string $url, array $data = []): Response |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * Delete any assigned webhook |
||
60 | * |
||
61 | * @param array $data |
||
62 | * @return Response |
||
63 | * @throws TelegramException |
||
64 | */ |
||
65 | public function deleteWebhook(array $data = []): Response |
||
78 | } |