From 998b7825d1744d4d84661df6da91060eb1c67000 Mon Sep 17 00:00:00 2001 From: Netkas Date: Tue, 14 Feb 2023 21:03:13 -0500 Subject: [PATCH] Updated \TgBotLib > Bot > setWebhook() --- src/TgBotLib/Bot.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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