close

Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched. Returns True on success. Requires no parameters. This method support both normal and static use

Arguments
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 : bool | BPT\types\responseError

Static or normal : Static

Examples :

telegram::close(token: String | null, forgot: Boolean | null, answer: Boolean | null);
telegram::close(['token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);
telegram::close();
$this->close(token: String | null, forgot: Boolean | null, answer: Boolean | null);
$this->close(['token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);
$this->close();