Skip to content

Commit d414c21

Browse files
committed
Add webhookinfo action to get the result of getWebhookInfo.
1 parent 06b936e commit d414c21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/BotManager.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ public function run(): self
139139
$this->handleRequest();
140140
} elseif ($this->action->isAction('cron')) {
141141
$this->handleCron();
142+
} elseif ($this->action->isAction('webhookinfo')) {
143+
$webhookinfo = Request::getWebhookInfo();
144+
print_r($webhookinfo->getResult() ?: $webhookinfo->printError());
142145
}
143146

144147
return $this;

0 commit comments

Comments
 (0)