Skip to content

Commit 2af1366

Browse files
committed
Fix set Webhook method
1 parent 07781e9 commit 2af1366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Telegram.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ public function setWebhook($url, $certificate = "")
13021302
$requestBody = array('url' => $url, 'certificate' => "@$certificate");
13031303
}
13041304

1305-
return $this->endpoint("setWebhook", $requestBody, !empty($certificate));
1305+
return $this->endpoint("setWebhook", $requestBody, true);
13061306
}
13071307

13081308
/// Delete the WebHook for the bot

0 commit comments

Comments
 (0)