mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-29 13:27:44 +00:00
send chat action readme
This commit is contained in:
parent
82631f57c3
commit
a45b35453b
16
README.md
16
README.md
@ -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**
|
||||||
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user