2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-22 09:57:10 +00:00

doc: Fixed type annotations for message id parameter (#491)

References:

  * BR: https://github.com/yagop/node-telegram-bot-api/issues/490
This commit is contained in:
Oleksandr Tryshchenko 2018-01-11 10:21:14 +01:00 committed by Gocho Mugo
parent 119d892c34
commit 435f06319e
2 changed files with 4 additions and 4 deletions

View File

@ -654,7 +654,7 @@ Returns True on success.
| Param | Type | Description |
| --- | --- | --- |
| chatId | <code>Number</code> \| <code>String</code> | Unique identifier for the message recipient |
| messageId | <code>String</code> | Identifier of a message to pin |
| messageId | <code>Number</code> | Identifier of a message to pin |
| [options] | <code>Object</code> | Additional Telegram query options |
<a name="TelegramBot+unpinChatMessage"></a>
@ -1118,7 +1118,7 @@ Use this method to delete a message.
| Param | Type | Description |
| --- | --- | --- |
| chatId | <code>Number</code> \| <code>String</code> | Unique identifier of the target chat |
| messageId | <code>String</code> | Unique identifier of the target message |
| messageId | <code>Number</code> | Unique identifier of the target message |
| [options] | <code>Object</code> | Additional Telegram query options |
<a name="TelegramBot+sendInvoice"></a>

View File

@ -1080,7 +1080,7 @@ class TelegramBot extends EventEmitter {
* Returns True on success.
*
* @param {Number|String} chatId Unique identifier for the message recipient
* @param {String} messageId Identifier of a message to pin
* @param {Number} messageId Identifier of a message to pin
* @param {Object} [options] Additional Telegram query options
* @return {Promise}
* @see https://core.telegram.org/bots/api#pinchatmessage
@ -1614,7 +1614,7 @@ class TelegramBot extends EventEmitter {
/**
* Use this method to delete a message.
* @param {Number|String} chatId Unique identifier of the target chat
* @param {String} messageId Unique identifier of the target message
* @param {Number} messageId Unique identifier of the target message
* @param {Object} [options] Additional Telegram query options
* @return {Promise}
* @see https://core.telegram.org/bots/api#deletemessage