send chat action readme

experimental
Ilias Ismanalijev 11 years ago
parent 82631f57c3
commit a45b35453b
  1. 16
      README.md
  2. 8
      src/telegram.js

@ -135,3 +135,19 @@ See: https://core.telegram.org/bots/api#sendaudio
### Return:
* **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**

@ -296,12 +296,14 @@ TelegramBot.prototype.sendAudio = function (chatId, audio, options) {
};
/**
* Send chat action
* @param {Number|String} chatId Unique identifier for the message recipient
* @param {String} action Type of action to broadcast. `typing` for text messages,
* Send chat action.
* `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.
*
* @param {Number|String} chatId Unique identifier for the message recipient
* @param {String} action Type of action to broadcast.
* @return {Promise}
* @see https://core.telegram.org/bots/api#sendchataction
*/

Loading…
Cancel
Save