Answer the question
In order to leave comments, you need to log in
How to display the animation "prints ..." (sends ...) in telegraf when the bot sends a message?
I am using the telegraf library in node.js to create a bot.
So how to display the animation "prints ..." (sends ...) when the bot sends a message or picture?
Answer the question
In order to leave comments, you need to log in
Call sendChatAction with the required action field
https://core.telegram.org/bots/api#sendchataction
action: Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_voice or upload_voice for voice notes, upload_document for general files, find_location for location data, record_video_note or upload_video_note for video notes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question