diff --git a/src/TgBotLib/Bot.php b/src/TgBotLib/Bot.php index 887596e..d9eb610 100644 --- a/src/TgBotLib/Bot.php +++ b/src/TgBotLib/Bot.php @@ -179,7 +179,9 @@ */ public function setWebhook(string $url, array $options=[]): bool { - $this->sendRequest('setWebhook', $options); + $this->sendRequest('setWebhook', array_merge($options, [ + 'url' => $url + ])); return true; } } \ No newline at end of file