Skip to content

allowed_updates doesn't work in webhook #1259

@Agmund2002

Description

@Agmund2002

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;
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions