N
N
Nikolai2020-12-15 16:25:25
Telegram
Nikolai, 2020-12-15 16:25:25

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

1 answer(s)
S
soremix, 2020-12-15
Demidovets @Nik_o_lay

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.

https://telegraf.js.org/#/?id=sendchataction

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question