botmasterai / botmaster-telegram Goto Github PK
View Code? Open in Web Editor NEWThe Telegram Botmaster integration
License: MIT License
The Telegram Botmaster integration
License: MIT License
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.