Skip to content

Commit e2ace74

Browse files
authored
Update BotManager.php
#58 (comment)
1 parent 35ca6cf commit e2ace74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BotManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@ public function validateAndSetWebhook(): self
236236
}
237237
return !empty($v);
238238
}, ARRAY_FILTER_USE_BOTH);
239-
239+
$webhook['url'] .= ( isset(parse_url($webhook['url'])['query'])) ? '&' : '?' ;
240240
$this->handleOutput(
241241
$this->telegram->setWebhook(
242-
$webhook['url'] . '?a=handle&s=' . $this->params->getBotParam('secret'),
242+
$webhook['url'] . 'a=handle&s=' . $this->params->getBotParam('secret'),
243243
$webhook_params
244244
)->getDescription() . PHP_EOL
245245
);

0 commit comments

Comments
 (0)