From 5a11cce18d071414267e0169f190356084a73232 Mon Sep 17 00:00:00 2001 From: GochoMugo Date: Mon, 10 Oct 2016 14:47:52 +0300 Subject: [PATCH] Accompanying doc-updates for PR #186 --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index b4439df..326f504 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,7 @@ TelegramBot * [.getChatAdministrators(chatId)](#TelegramBot+getChatAdministrators) ⇒ Promise * [.getChatMembersCount(chatId)](#TelegramBot+getChatMembersCount) ⇒ Promise * [.getChatMember(chatId, userId)](#TelegramBot+getChatMember) ⇒ Promise + * [.leaveChat(chatId)](#TelegramBot+leaveChat) ⇒ Promise @@ -572,4 +573,16 @@ Use this method to get information about a member of a chat. | chatId | Number | String | Unique identifier for the target group or username of the target supergroup | | userId | String | Unique identifier of the target user | + + +### telegramBot.leaveChat(chatId) ⇒ Promise +Leave a group, supergroup or channel. + +**Kind**: instance method of [TelegramBot](#TelegramBot) +**See**: https://core.telegram.org/bots/api#leavechat + +| Param | Type | Description | +| --- | --- | --- | +| chatId | Number | String | Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername) | + * * *