Skip to content

Commit

Permalink
changed some ux
Browse files Browse the repository at this point in the history
  • Loading branch information
theofandrich committed Sep 27, 2023
1 parent 56c96d8 commit 242621e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/modules/text-to-speech/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class TextToSpeechBot implements PayableBot {
throw new Error('Internal error')
}

const progressMessage = await ctx.reply('Waite a moment...')
const progressMessage = await ctx.reply('Generating...')

const voiceResult = await gcTextToSpeedClient.textToSpeech(message)

Expand All @@ -67,6 +67,6 @@ export class TextToSpeechBot implements PayableBot {
const inputFile = new InputFile(voiceResult)

await ctx.api.deleteMessage(ctx.chat.id, progressMessage.message_id)
await ctx.replyWithVoice(inputFile, { reply_to_message_id: ctx.message.message_id })
await ctx.replyWithVoice(inputFile)
}
}
2 changes: 1 addition & 1 deletion src/modules/voice-translate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class VoiceTranslateBot implements PayableBot {
return
}

const progressMessage = await ctx.reply('Waite a moment...')
const progressMessage = await ctx.reply('Generating...')

if (!ctx.chat?.id) {
throw Error('chat id is undefined')
Expand Down

0 comments on commit 242621e

Please sign in to comment.