Skip to content

allowed_updates doesn't work in webhook #1259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Agmund2002 opened this issue Mar 6, 2025 · 0 comments
Open

allowed_updates doesn't work in webhook #1259

Agmund2002 opened this issue Mar 6, 2025 · 0 comments

Comments

@Agmund2002
Copy link

Agmund2002 commented Mar 6, 2025

The webhook is receiving 'message' events even though I'm not subscribed to them. I tested the bot with allowed_updates: ["message"], then deleted the webhook via the API and code, and even reissued the bot token (this helped someone else, but not me).

useFactory: async (config: ConfigService) => {
        const bot = new TelegramBot(config.get("BOT_TOKEN"));
        await bot.setWebHook(`${config.get("BASE_URL")}/api/v1/bot/webhook`, {
          allowed_updates: ["my_chat_member"],
          secret_token: config.get("WEBHOOK_SECRET_TOKEN")
        });
        return bot;
      }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant