yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.35k stars 1.52k forks source link

How can I enable bot status sending a photo #1067

Closed 4mlsx closed 4 months ago

4mlsx commented 1 year ago

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

danielperez9430 commented 1 year ago

You need to use the method "sendChatAction"

bot.sendChatAction(chatId, "upload_photo")

4mlsx commented 1 year ago

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

danielperez9430 commented 1 year ago

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