mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fix sendFile exception capture
This commit is contained in:
@@ -62,9 +62,10 @@ export async function sendFile(ctx: Context, state: BotState) {
|
|||||||
sendSendingAction();
|
sendSendingAction();
|
||||||
return await _sendFile(ctx, state, chatId, parseInt(id), format);
|
return await _sendFile(ctx, state, chatId, parseInt(id), format);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return await ctx.reply("Ошибка! Попробуйте позже :(", {
|
await ctx.reply("Ошибка! Попробуйте позже :(", {
|
||||||
reply_to_message_id: ctx.message.message_id,
|
reply_to_message_id: ctx.message.message_id,
|
||||||
});
|
});
|
||||||
|
throw e;
|
||||||
} finally {
|
} finally {
|
||||||
clearInterval(action);
|
clearInterval(action);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user