node-telegram-bot-api icon indicating copy to clipboard operation
node-telegram-bot-api copied to clipboard

How can I enable bot status sending a photo

Open 4mlsx opened this issue 2 years ago • 3 comments

I have a bot I need to add bot status sending a photo

4mlsx avatar Mar 17 '23 16:03 4mlsx

You need to use the method "sendChatAction"

bot.sendChatAction(chatId, "upload_photo")

danielperez9430 avatar Mar 19 '23 00:03 danielperez9430

Ok I have the status but it doesn't show when the user generates another image

4mlsx avatar Mar 19 '23 03:03 4mlsx

You need to call the sendChatAction and wait some seconds before send the image. Or the status is not show to user. Becuase you send the chatAction + the file at the same time. So the chatAction is not display in the client because you send the media in the end

danielperez9430 avatar Mar 24 '23 10:03 danielperez9430