We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent beaf616 commit ce632c6Copy full SHA for ce632c6
src/NovaGram/Bot.php
@@ -276,7 +276,11 @@ public function idle(){
276
$this->started = true;
277
if($this->settings->mode === self::CLI){
278
$this->logger->debug('Idling...');
279
- $this->deleteWebhook();
+ $webhook_info = $this->getWebhookInfo();
280
+ if($webhook_info->url !== ""){ // there is a webhook set
281
+ $this->deleteWebhook();
282
+ $this->logger->warning("There was a set webhook. It has been deleted. (URL: {$webhook_info->url})");
283
+ }
284
$this->running = true;
285
self::showLicense();
286
while ($this->running) {
0 commit comments