#!/usr/bin/env python3
"""Remove the Telegram webhook before switching back to polling/Termux."""
import asyncio
import config
from telegram import Bot

async def main():
    bot = Bot(token=config.BOT_TOKEN.strip())
    await bot.initialize()
    try:
        print("Webhook removed:", await bot.delete_webhook(drop_pending_updates=False))
    finally:
        await bot.shutdown()

if __name__ == "__main__":
    asyncio.run(main())
