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