GithubHelp home page GithubHelp logo

botmaster-telegram's People

Contributors

jdwuarin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

botmaster-telegram's Issues

Internal routing issue

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.