mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fixed chat actioin
This commit is contained in:
@@ -50,15 +50,12 @@ export async function sendFile(ctx: Context, state: BotState) {
|
||||
const sendSendingAction = async () => {
|
||||
await ctx.telegram.sendChatAction(chatId, "upload_document");
|
||||
}
|
||||
|
||||
sendSendingAction();
|
||||
const action = setInterval(() => sendSendingAction(), 1000);
|
||||
const action = setInterval(() => sendSendingAction(), 5000);
|
||||
|
||||
try {
|
||||
sendSendingAction();
|
||||
return await _sendFile(ctx, state, chatId, parseInt(id), format);
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
|
||||
return await ctx.reply("Ошибка! Попробуйте позже :(", {
|
||||
reply_to_message_id: ctx.message.message_id,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user