parent
d22848691c
commit
8ced57c175
|
@ -241,8 +241,6 @@ async function processGenerationJob(
|
|||
if (progressResponse.data.progress > state.progress) {
|
||||
state.progress = progressResponse.data.progress;
|
||||
await updateJob({ state: state });
|
||||
await bot.api.sendChatAction(state.chat.id, "upload_photo", { maxAttempts: 1 })
|
||||
.catch(() => undefined);
|
||||
await bot.api.editMessageText(
|
||||
state.replyMessage.chat.id,
|
||||
state.replyMessage.message_id,
|
||||
|
@ -298,6 +296,10 @@ async function processGenerationJob(
|
|||
{ maxAttempts: 1 },
|
||||
).catch(() => undefined);
|
||||
|
||||
// send upload photo action
|
||||
await bot.api.sendChatAction(state.chat.id, "upload_photo", { maxAttempts: 1 })
|
||||
.catch(() => undefined);
|
||||
|
||||
debug(`Generation finished for ${formatUserChat(state)}`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue