Skip to content

Internal routing issue #3

Description

@abhishekchotaliya

Setup

Currently, I have configured two bots: bot1 and bot2, which have the webhooks webhook1 and webhook2 respectively. Both bots are working on the same botmaster server.

The problem

When a user visits bot1, it is working fine. but when the user visits bot2, bot1 is getting a message.

After inspecting the webhooks and ngrok, I got to know that the botmaster exposes two endpoints webhook1 and webhook2 properly, and for bot1, I am getting response from webhook1 and for bot2, I am getting response from webhook2 from telegram as expected.

The problem happens in the botmaster internally.
In the above case,
when a user visits bot1 the value of this.rawSettings.webhookEndpoint is webhook1,
But when the user visits bot2 after bot1, the value of this.rawSettings.webhookEndpoint for the bot2 is webhook1 instead of webhook2

Botmaster internally routes the message from webhook2 to webhook1, and that's why, while sending back the reply, it sends the message with webhook1, so, bot1 is getting the message instead of bot2.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions