2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-29 13:27:44 +00:00

docs: Update api.md

This commit is contained in:
Daniel Pérez Fernández 2021-11-07 16:07:21 +01:00
parent b60f065a83
commit 15c878ea89
2 changed files with 6 additions and 2 deletions

View File

@ -54,6 +54,8 @@ TelegramBot
* [.createChatInviteLink(chatId, [options])](#TelegramBot+createChatInviteLink) ⇒ <code>Object</code> * [.createChatInviteLink(chatId, [options])](#TelegramBot+createChatInviteLink) ⇒ <code>Object</code>
* [.editChatInviteLink(chatId, inviteLink, [options])](#TelegramBot+editChatInviteLink) ⇒ <code>Object</code> * [.editChatInviteLink(chatId, inviteLink, [options])](#TelegramBot+editChatInviteLink) ⇒ <code>Object</code>
* [.revokeChatInviteLink(chatId, [options])](#TelegramBot+revokeChatInviteLink) ⇒ <code>Object</code> * [.revokeChatInviteLink(chatId, [options])](#TelegramBot+revokeChatInviteLink) ⇒ <code>Object</code>
* [.approveChatJoinRequest(chatId, userId, [options])](#TelegramBot+approveChatJoinRequest) ⇒ <code>Boolean</code>
* [.declineChatJoinRequest(chatId, userId, [options])](#TelegramBot+declineChatJoinRequest) ⇒ <code>Boolean</code>
* [.setChatPhoto(chatId, photo, [options], [fileOptions])](#TelegramBot+setChatPhoto) ⇒ <code>Promise</code> * [.setChatPhoto(chatId, photo, [options], [fileOptions])](#TelegramBot+setChatPhoto) ⇒ <code>Promise</code>
* [.deleteChatPhoto(chatId, [options])](#TelegramBot+deleteChatPhoto) ⇒ <code>Promise</code> * [.deleteChatPhoto(chatId, [options])](#TelegramBot+deleteChatPhoto) ⇒ <code>Promise</code>
* [.setChatTitle(chatId, title, [options])](#TelegramBot+setChatTitle) ⇒ <code>Promise</code> * [.setChatTitle(chatId, title, [options])](#TelegramBot+setChatTitle) ⇒ <code>Promise</code>
@ -584,7 +586,8 @@ Send chat action.
`typing` for text messages, `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_voice` or `upload_voice` for audio files, `upload_document` for general files, `record_voice` or `upload_voice` for audio files, `upload_document` for general files,
`find_location` for location data. `choose_sticker` for stickers, `find_location` for location data,
`record_video_note` or `upload_video_note` for video notes.
**Kind**: instance method of [<code>TelegramBot</code>](#TelegramBot) **Kind**: instance method of [<code>TelegramBot</code>](#TelegramBot)
**See**: https://core.telegram.org/bots/api#sendchataction **See**: https://core.telegram.org/bots/api#sendchataction

View File

@ -1017,7 +1017,8 @@ class TelegramBot extends EventEmitter {
* `typing` for text messages, * `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_voice` or `upload_voice` for audio files, `upload_document` for general files, * `record_voice` or `upload_voice` for audio files, `upload_document` for general files,
* `find_location` for location data. * `choose_sticker` for stickers, `find_location` for location data,
* `record_video_note` or `upload_video_note` for video notes.
* *
* @param {Number|String} chatId Unique identifier for the message recipient * @param {Number|String} chatId Unique identifier for the message recipient
* @param {String} action Type of action to broadcast. * @param {String} action Type of action to broadcast.