deleteWebhook
Returns boolean ↗
Use this method to remove webhook integration if you decide to switch back to getUpdates.
Optional: 1 parameters
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("delete_webhook")Parameters
drop_pending_updates boolean
Pass True to drop all pending updates.
Related methods
deleteBusinessMessages · deleteChatPhoto · deleteChatStickerSet · deleteForumTopic · deleteMessage · deleteMessages · deleteMyCommands · deleteStickerFromSet · deleteStickerSet · deleteStory