diff --git a/doc/api.md b/doc/api.md index fb78579..b863fb7 100644 --- a/doc/api.md +++ b/doc/api.md @@ -782,6 +782,40 @@ Returns the revoked invite link as ChatInviteLink object. | chatId | Number \| String | Unique identifier for the target chat or username of the target supergroup | | [options] | Object | Additional Telegram query options | + + +### telegramBot.approveChatJoinRequest(chatId, userId, [options]) ⇒ Boolean +Use this method to approve a chat join request. +The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. +Returns True on success. + +**Kind**: instance method of [TelegramBot](#TelegramBot) +**Returns**: Boolean - True on success +**See**: https://core.telegram.org/bots/api#approvechatjoinrequest + +| Param | Type | Description | +| --- | --- | --- | +| chatId | Number \| String | Unique identifier for the target chat or username of the target supergroup | +| userId | Number | Unique identifier of the target user | +| [options] | Object | Additional Telegram query options | + + + +### telegramBot.declineChatJoinRequest(chatId, userId, [options]) ⇒ Boolean +Use this method to decline a chat join request. +The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. +Returns True on success. + +**Kind**: instance method of [TelegramBot](#TelegramBot) +**Returns**: Boolean - True on success +**See**: https://core.telegram.org/bots/api#declinechatjoinrequest + +| Param | Type | Description | +| --- | --- | --- | +| chatId | Number \| String | Unique identifier for the target chat or username of the target supergroup | +| userId | Number | Unique identifier of the target user | +| [options] | Object | Additional Telegram query options | + ### telegramBot.setChatPhoto(chatId, photo, [options], [fileOptions]) ⇒ Promise