2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-29 21:37:58 +00:00

send chat action readme

This commit is contained in:
Ilias Ismanalijev 2015-07-06 01:40:54 +02:00
parent 82631f57c3
commit a45b35453b
2 changed files with 21 additions and 3 deletions

View File

@ -135,3 +135,19 @@ See: https://core.telegram.org/bots/api#sendaudio
### Return: ### Return:
* **Promise** * **Promise**
## sendChatAction(chatId, action)
Send chat action. Type of `action` to broadcast. `typing` for text messages, `upload_photo` for photos, `record_video` or `upload_video` for videos, `record_audio` or `upload_audio` for audio files, `upload_document` for general files, `find_location` for location data.
See: https://core.telegram.org/bots/api#sendchataction
### Params:
* **Number|String** *chatId* Unique identifier for the message recipient
* **String|stream.Stream** *action* Type of action to broadcast.
### Return:
* **Promise**

View File

@ -296,12 +296,14 @@ TelegramBot.prototype.sendAudio = function (chatId, audio, options) {
}; };
/** /**
* Send chat action * Send chat action.
* @param {Number|String} chatId Unique identifier for the message recipient * `typing` for text messages,
* @param {String} action Type of action to broadcast. `typing` for text messages,
* `upload_photo` for photos, `record_video` or `upload_video` for videos, * `upload_photo` for photos, `record_video` or `upload_video` for videos,
* `record_audio` or `upload_audio` for audio files, `upload_document` for general files, * `record_audio` or `upload_audio` for audio files, `upload_document` for general files,
* `find_location` for location data. * `find_location` for location data.
*
* @param {Number|String} chatId Unique identifier for the message recipient
* @param {String} action Type of action to broadcast.
* @return {Promise} * @return {Promise}
* @see https://core.telegram.org/bots/api#sendchataction * @see https://core.telegram.org/bots/api#sendchataction
*/ */