Skip to content

Commit e7dd42c

Browse files
authored
fix: getChatMember #1200 (#1201)
1 parent 7e9ee42 commit e7dd42c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ TelegramBot
104104
* [.unhideGeneralForumTopic(chatId, [options])](#TelegramBot+unhideGeneralForumTopic) ⇒ <code>Promise</code>
105105
* [.unpinAllGeneralForumTopicMessages(chatId, [options])](#TelegramBot+unpinAllGeneralForumTopicMessages) ⇒ <code>Promise</code>
106106
* [.answerCallbackQuery(callbackQueryId, [options])](#TelegramBot+answerCallbackQuery) ⇒ <code>Promise</code>
107-
* [.getUserChatBoosts(chatId, user_id, [options])](#TelegramBot+getUserChatBoosts) ⇒ <code>Promise</code>
107+
* [.getUserChatBoosts(chatId, userId, [options])](#TelegramBot+getUserChatBoosts) ⇒ <code>Promise</code>
108108
* [.getBusinessConnection(businessConnectionId, [options])](#TelegramBot+getBusinessConnection) ⇒ <code>Promise</code>
109109
* [.setMyCommands(commands, [options])](#TelegramBot+setMyCommands) ⇒ <code>Promise</code>
110110
* [.deleteMyCommands([options])](#TelegramBot+deleteMyCommands) ⇒ <code>Promise</code>
@@ -1680,7 +1680,7 @@ that are being deprecated.
16801680

16811681
<a name="TelegramBot+getUserChatBoosts"></a>
16821682

1683-
### telegramBot.getUserChatBoosts(chatId, user_id, [options]) ⇒ <code>Promise</code>
1683+
### telegramBot.getUserChatBoosts(chatId, userId, [options]) ⇒ <code>Promise</code>
16841684
Use this method to get the list of boosts added to a chat by a use.
16851685
Requires administrator rights in the chat
16861686

@@ -1691,7 +1691,7 @@ Requires administrator rights in the chat
16911691
| Param | Type | Description |
16921692
| --- | --- | --- |
16931693
| chatId | <code>Number</code> \| <code>String</code> | Unique identifier for the group/channel |
1694-
| user_id | <code>Number</code> | Unique identifier of the target user |
1694+
| userId | <code>Number</code> | Unique identifier of the target user |
16951695
| [options] | <code>Object</code> | Additional Telegram query options |
16961696

16971697
<a name="TelegramBot+getBusinessConnection"></a>

src/telegram.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2248,7 +2248,7 @@ class TelegramBot extends EventEmitter {
22482248
* Requires administrator rights in the chat
22492249
*
22502250
* @param {Number|String} chatId Unique identifier for the group/channel
2251-
* @param {Number} user_id Unique identifier of the target user
2251+
* @param {Number} userId Unique identifier of the target user
22522252
* @param {Object} [options] Additional Telegram query options
22532253
* @return {Promise} On success, returns a [UserChatBoosts](https://core.telegram.org/bots/api#userchatboosts) object
22542254
* @see https://core.telegram.org/bots/api#getuserchatboosts

0 commit comments

Comments
 (0)