Use this method to get current webhook status. Requires no parameters. On success, returns a WebhookInfo object. If the bot is using getUpdates, will return an object with the url field empty.
| Name | Type | Description | Required |
|---|---|---|---|
| token | string | null | array | You can use this method on another bot with specify this parameter | no |
| forgot | bool | null | You can set to not receive request result, dont set it or pass null for turn it off | no |
| answer | bool | null | You can set to answer to webhook, dont set it or pass null for turn it off | no |
Output : BPT\types\webhookInfo | BPT\types\responseError | bool
Static or normal : Static
request::getWebhookInfo();request::getWebhookInfo();