From 15c878ea8937fb6869b82c3f2bece568b9e97697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=C3=A9rez=20Fern=C3=A1ndez?= Date: Sun, 7 Nov 2021 16:07:21 +0100 Subject: [PATCH] docs: Update api.md --- doc/api.md | 5 ++++- src/telegram.js | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/api.md b/doc/api.md index b863fb7..1da6c16 100644 --- a/doc/api.md +++ b/doc/api.md @@ -54,6 +54,8 @@ TelegramBot * [.createChatInviteLink(chatId, [options])](#TelegramBot+createChatInviteLink) ⇒ Object * [.editChatInviteLink(chatId, inviteLink, [options])](#TelegramBot+editChatInviteLink) ⇒ Object * [.revokeChatInviteLink(chatId, [options])](#TelegramBot+revokeChatInviteLink) ⇒ Object + * [.approveChatJoinRequest(chatId, userId, [options])](#TelegramBot+approveChatJoinRequest) ⇒ Boolean + * [.declineChatJoinRequest(chatId, userId, [options])](#TelegramBot+declineChatJoinRequest) ⇒ Boolean * [.setChatPhoto(chatId, photo, [options], [fileOptions])](#TelegramBot+setChatPhoto) ⇒ Promise * [.deleteChatPhoto(chatId, [options])](#TelegramBot+deleteChatPhoto) ⇒ Promise * [.setChatTitle(chatId, title, [options])](#TelegramBot+setChatTitle) ⇒ Promise @@ -584,7 +586,8 @@ Send chat action. `typing` for text messages, `upload_photo` for photos, `record_video` or `upload_video` for videos, `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 [TelegramBot](#TelegramBot) **See**: https://core.telegram.org/bots/api#sendchataction diff --git a/src/telegram.js b/src/telegram.js index 330b67f..e4b7b2c 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -1017,7 +1017,8 @@ class TelegramBot extends EventEmitter { * `typing` for text messages, * `upload_photo` for photos, `record_video` or `upload_video` for videos, * `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 {String} action Type of action to broadcast.