Added \TgBotLib > Bot > deleteWebhook()
This commit is contained in:
parent
998b7825d1
commit
5064aed99f
1 changed files with 17 additions and 0 deletions
|
@ -184,4 +184,21 @@
|
||||||
]));
|
]));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use this method to remove webhook integration if you decide to switch back to getUpdates.
|
||||||
|
* Returns True on success.
|
||||||
|
*
|
||||||
|
* @param bool $drop_pending_updates
|
||||||
|
* @return bool
|
||||||
|
* @throws TelegramException
|
||||||
|
*/
|
||||||
|
public function deleteWebhook(bool $drop_pending_updates=false): bool
|
||||||
|
{
|
||||||
|
$this->sendRequest('deleteWebhook', [
|
||||||
|
'drop_pending_updates' => $drop_pending_updates
|
||||||
|
]);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue