2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-31 06:16:07 +00:00

doc: Fix documented types for params chatId, userId

References:

  * BR: https://github.com/yagop/node-telegram-bot-api/issues/300
This commit is contained in:
GochoMugo
2017-11-27 05:25:53 +03:00
parent 633bd83a0a
commit 1f61b82aa8
2 changed files with 18 additions and 18 deletions

View File

@@ -443,7 +443,7 @@ Returns True on success.
| Param | Type | Description |
| --- | --- | --- |
| chatId | <code>Number</code> &#124; <code>String</code> | Unique identifier for the target group or username of the target supergroup |
| userId | <code>String</code> | Unique identifier of the target user |
| userId | <code>Number</code> | Unique identifier of the target user |
<a name="TelegramBot+unbanChatMember"></a>
@@ -459,7 +459,7 @@ the group for this to work. Returns True on success.
| Param | Type | Description |
| --- | --- | --- |
| chatId | <code>Number</code> &#124; <code>String</code> | Unique identifier for the target group or username of the target supergroup |
| userId | <code>String</code> | Unique identifier of the target user |
| userId | <code>Number</code> | Unique identifier of the target user |
<a name="TelegramBot+restrictChatMember"></a>
@@ -475,7 +475,7 @@ to lift restrictions from a user. Returns True on success.
| Param | Type | Description |
| --- | --- | --- |
| chatId | <code>Number</code> &#124; <code>String</code> | Unique identifier for the target chat or username of the target supergroup |
| userId | <code>String</code> | Unique identifier of the target user |
| userId | <code>Number</code> | Unique identifier of the target user |
| [options] | <code>Object</code> | Additional Telegram query options |
<a name="TelegramBot+promoteChatMember"></a>
@@ -492,7 +492,7 @@ Returns True on success.
| Param | Type | Description |
| --- | --- | --- |
| chatId | <code>Number</code> &#124; <code>String</code> | Unique identifier for the target chat or username of the target supergroup |
| userId | <code>String</code> | |
| userId | <code>Number</code> | |
| [options] | <code>Object</code> | Additional Telegram query options |
<a name="TelegramBot+exportChatInviteLink"></a>
@@ -683,7 +683,7 @@ that is being deprecated.
| Param | Type | Description |
| --- | --- | --- |
| userId | <code>Number</code> &#124; <code>String</code> | Unique identifier of the target user |
| userId | <code>Number</code> | Unique identifier of the target user |
| [options] | <code>Object</code> | Additional Telegram query options |
<a name="TelegramBot+sendLocation"></a>
@@ -885,7 +885,7 @@ Use this method to get information about a member of a chat.
| Param | Type | Description |
| --- | --- | --- |
| chatId | <code>Number</code> &#124; <code>String</code> | Unique identifier for the target group or username of the target supergroup |
| userId | <code>String</code> | Unique identifier of the target user |
| userId | <code>Number</code> | Unique identifier of the target user |
<a name="TelegramBot+leaveChat"></a>
@@ -923,7 +923,7 @@ Use this method to set the score of the specified user in a game.
| Param | Type | Description |
| --- | --- | --- |
| userId | <code>String</code> | Unique identifier of the target user |
| userId | <code>Number</code> | Unique identifier of the target user |
| score | <code>Number</code> | New score value. |
| [options] | <code>Object</code> | Additional Telegram query options |
@@ -937,7 +937,7 @@ Use this method to get data for high score table.
| Param | Type | Description |
| --- | --- | --- |
| userId | <code>String</code> | Unique identifier of the target user |
| userId | <code>Number</code> | Unique identifier of the target user |
| [options] | <code>Object</code> | Additional Telegram query options |
<a name="TelegramBot+deleteMessage"></a>
@@ -950,7 +950,7 @@ Use this method to delete a message.
| Param | Type | Description |
| --- | --- | --- |
| chatId | <code>String</code> | Unique identifier of the target chat |
| chatId | <code>Number</code> &#124; <code>String</code> | Unique identifier of the target chat |
| messageId | <code>String</code> | Unique identifier of the target message |
| [options] | <code>Object</code> | Additional Telegram query options |