method ApiMethods.deleteWebhook
ApiMethods.deleteWebhook(args?: { drop_pending_updates?: boolean; }): true

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

Parameters

optional
args: { drop_pending_updates?: boolean; }

Return Type

true

Usage

import { type ApiMethods } from "types";