Fixed chat actioin

This commit is contained in:
2022-02-04 11:47:53 +03:00
parent 9b525a5c5c
commit 22e7905791

View File

@@ -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,
});