@mastra/telegram 0.2.2-alpha.0 → 0.2.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -24896,6 +24896,9 @@ var TelegramProvider = class {
|
|
|
24896
24896
|
#getBaseUrl() {
|
|
24897
24897
|
if (this.#config.baseUrl) return stripTrailingSlash(this.#config.baseUrl);
|
|
24898
24898
|
const server = this.#mastra?.getServer();
|
|
24899
|
+
const hasPublicOverride = server?.studioHost != null || server?.studioPort != null || server?.studioProtocol != null;
|
|
24900
|
+
const envUrl = process.env.MASTRA_SERVER_URL?.trim();
|
|
24901
|
+
if (!hasPublicOverride && envUrl) return stripTrailingSlash(envUrl);
|
|
24899
24902
|
if (!server) return void 0;
|
|
24900
24903
|
const protocol = server.studioProtocol ?? "http";
|
|
24901
24904
|
const host = server.studioHost ?? server.host ?? "localhost";
|