deleteWebhook

suspend fun TelegramBotApiClient.deleteWebhook(requestBody: DeleteWebhookRequest): TelegramResponse<Boolean>

Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success.

suspend fun TelegramBotApiClient.deleteWebhook(dropPendingUpdates: Boolean = false): TelegramResponse<Boolean>

Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success.

Parameters

dropPendingUpdates

Pass True to drop all pending updates