@agentprojectcontext/apx 1.30.1 → 1.30.2
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/package.json
CHANGED
|
@@ -510,6 +510,10 @@ class ChannelPoller {
|
|
|
510
510
|
const token = resolveBotToken(this.channel);
|
|
511
511
|
const mediaDir = path.join(APX_HOME, "media");
|
|
512
512
|
fs.mkdirSync(mediaDir, { recursive: true });
|
|
513
|
+
// Show "typing…" right away — download + transcription is the slow part of
|
|
514
|
+
// a voice message, and the reply-path typing (below) only starts after it,
|
|
515
|
+
// so without this the chat sits silent for seconds with no feedback.
|
|
516
|
+
const stopVoiceTyping = this._startTyping(chat_id);
|
|
513
517
|
let localPath = null;
|
|
514
518
|
let transcript = "";
|
|
515
519
|
let transcribeError = null;
|
|
@@ -531,6 +535,7 @@ class ChannelPoller {
|
|
|
531
535
|
this.log(`telegram[${this.channel.name}] audio transcription failed: ${e.message}`);
|
|
532
536
|
}
|
|
533
537
|
}
|
|
538
|
+
stopVoiceTyping(); // reply-path typing takes over from here
|
|
534
539
|
const audioBody = transcript
|
|
535
540
|
? `[audio] ${transcript}`
|
|
536
541
|
: `[audio] (transcription unavailable${transcribeError ? ": " + transcribeError : ""})`;
|