From 8225bbe5466f8ad7314490ac4dcdb03847b44d21 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 14 Aug 2025 13:47:09 +0300 Subject: [PATCH] Add chat action responses for video and image uploads in Telegram bot; enhance user experience during media processing. --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index ee41ea5..66b8215 100644 --- a/src/index.ts +++ b/src/index.ts @@ -38,10 +38,12 @@ bot.on('message:text', async (ctx) => { } if (result?.type === 'video' && videoUrl) { + await ctx.replyWithChatAction('upload_video'); return ctx.replyWithVideo(new InputFile({ url: videoUrl })); } if (result?.type === 'image' && imagesUrls) { + await ctx.replyWithChatAction('upload_photo'); return ctx.replyWithMediaGroup(imagesUrls.map((image) => ({ media: image, type: 'photo' }))); } } catch (error) {