diff --git a/doc/api.md b/doc/api.md
index ca3444e..c8b9395 100644
--- a/doc/api.md
+++ b/doc/api.md
@@ -654,7 +654,7 @@ Returns True on success.
| Param | Type | Description |
| --- | --- | --- |
| chatId | Number
\| String
| Unique identifier for the message recipient |
-| messageId | String
| Identifier of a message to pin |
+| messageId | Number
| Identifier of a message to pin |
| [options] | Object
| Additional Telegram query options |
@@ -1118,7 +1118,7 @@ Use this method to delete a message.
| Param | Type | Description |
| --- | --- | --- |
| chatId | Number
\| String
| Unique identifier of the target chat |
-| messageId | String
| Unique identifier of the target message |
+| messageId | Number
| Unique identifier of the target message |
| [options] | Object
| Additional Telegram query options |
diff --git a/src/telegram.js b/src/telegram.js
index fdde396..d95a4de 100644
--- a/src/telegram.js
+++ b/src/telegram.js
@@ -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