fix: make apiProxy injection optional
Resolves the optional apiProxy injection, keeps HTML as the compatibility default, synchronizes generated entrypoints, and adds a regression test.
This commit is contained in:
+2
-1
@@ -61,7 +61,8 @@ export class TelegramBridge {
|
||||
});
|
||||
this.sleep = options.sleep ?? defaultSleep;
|
||||
this.maxMessageLength = options.maxMessageLength ?? 4096;
|
||||
this.renderingMode = options.rendering === 'html' ? 'html' : 'rich';
|
||||
// HTML is the compatibility default; opt into Rich Messages explicitly.
|
||||
this.renderingMode = options.rendering === 'rich' ? 'rich' : 'html';
|
||||
}
|
||||
start() {
|
||||
this.disposeSessionListener?.();
|
||||
|
||||
Reference in New Issue
Block a user