We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35ca6cf commit e2ace74Copy full SHA for e2ace74
src/BotManager.php
@@ -236,10 +236,10 @@ public function validateAndSetWebhook(): self
236
}
237
return !empty($v);
238
}, ARRAY_FILTER_USE_BOTH);
239
-
+ $webhook['url'] .= ( isset(parse_url($webhook['url'])['query'])) ? '&' : '?' ;
240
$this->handleOutput(
241
$this->telegram->setWebhook(
242
- $webhook['url'] . '?a=handle&s=' . $this->params->getBotParam('secret'),
+ $webhook['url'] . 'a=handle&s=' . $this->params->getBotParam('secret'),
243
$webhook_params
244
)->getDescription() . PHP_EOL
245
);
0 commit comments