diff --git a/docs/API_docs/methods/index.md b/docs/API_docs/methods/index.md
index 7ebe270e..b95cb489 100644
--- a/docs/API_docs/methods/index.md
+++ b/docs/API_docs/methods/index.md
@@ -234,7 +234,7 @@ $MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pend
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)
@@ -242,7 +242,7 @@ $MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -250,17 +250,17 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
+$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md)
$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
+$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -290,7 +290,7 @@ $MadelineProto->[messages->getDocumentByHash](messages_getDocumentByHash.md)(\['
$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md)
@@ -330,7 +330,7 @@ $MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['ha
$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md)
-$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
@@ -396,7 +396,7 @@ $MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputP
$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md)
diff --git a/docs/API_docs/methods/messages_addChatUser.md b/docs/API_docs/methods/messages_addChatUser.md
index df2cb1a5..6b652bea 100644
--- a/docs/API_docs/methods/messages_addChatUser.md
+++ b/docs/API_docs/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/docs/API_docs/methods/messages_deleteChatUser.md b/docs/API_docs/methods/messages_deleteChatUser.md
index 6895649f..4afb209f 100644
--- a/docs/API_docs/methods/messages_deleteChatUser.md
+++ b/docs/API_docs/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/docs/API_docs/methods/messages_editChatAdmin.md b/docs/API_docs/methods/messages_editChatAdmin.md
index 74f5a39f..67b6702f 100644
--- a/docs/API_docs/methods/messages_editChatAdmin.md
+++ b/docs/API_docs/methods/messages_editChatAdmin.md
@@ -10,7 +10,7 @@ description: messages.editChatAdmin parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|is\_admin|[Bool](../types/Bool.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => int, 'user_id' => InputUser, 'is_admin' => Bool, ]);
+$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]);
```
Or, if you're into Lua:
```
-Bool = messages.editChatAdmin({chat_id=int, user_id=InputUser, is_admin=Bool, })
+Bool = messages.editChatAdmin({chat_id=InputPeer, user_id=InputUser, is_admin=Bool, })
```
diff --git a/docs/API_docs/methods/messages_editChatPhoto.md b/docs/API_docs/methods/messages_editChatPhoto.md
index 0396c74b..fa3b32db 100644
--- a/docs/API_docs/methods/messages_editChatPhoto.md
+++ b/docs/API_docs/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/docs/API_docs/methods/messages_editChatTitle.md b/docs/API_docs/methods/messages_editChatTitle.md
index fabe9c87..8825380e 100644
--- a/docs/API_docs/methods/messages_editChatTitle.md
+++ b/docs/API_docs/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=int, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/docs/API_docs/methods/messages_exportChatInvite.md b/docs/API_docs/methods/messages_exportChatInvite.md
index b96e7498..2e3afe8d 100644
--- a/docs/API_docs/methods/messages_exportChatInvite.md
+++ b/docs/API_docs/methods/messages_exportChatInvite.md
@@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => int, ]);
+$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ExportedChatInvite = messages.exportChatInvite({chat_id=int, })
+ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
```
diff --git a/docs/API_docs/methods/messages_getFullChat.md b/docs/API_docs/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/docs/API_docs/methods/messages_getFullChat.md
+++ b/docs/API_docs/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/docs/API_docs/methods/messages_migrateChat.md b/docs/API_docs/methods/messages_migrateChat.md
index 731dc904..b97e2a77 100644
--- a/docs/API_docs/methods/messages_migrateChat.md
+++ b/docs/API_docs/methods/messages_migrateChat.md
@@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [Updates](../types/Updates.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->migrateChat(['chat_id' => int, ]);
+$Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Updates = messages.migrateChat({chat_id=int, })
+Updates = messages.migrateChat({chat_id=InputPeer, })
```
diff --git a/docs/API_docs/methods/messages_toggleChatAdmins.md b/docs/API_docs/methods/messages_toggleChatAdmins.md
index 05d74e5a..dfacb2dc 100644
--- a/docs/API_docs/methods/messages_toggleChatAdmins.md
+++ b/docs/API_docs/methods/messages_toggleChatAdmins.md
@@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|enabled|[Bool](../types/Bool.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => int, 'enabled' => Bool, ]);
+$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]);
```
Or, if you're into Lua:
```
-Updates = messages.toggleChatAdmins({chat_id=int, enabled=Bool, })
+Updates = messages.toggleChatAdmins({chat_id=InputPeer, enabled=Bool, })
```
diff --git a/docs/TD_docs/methods/addChatMember.md b/docs/TD_docs/methods/addChatMember.md
index b65bec3e..a42d0362 100644
--- a/docs/TD_docs/methods/addChatMember.md
+++ b/docs/TD_docs/methods/addChatMember.md
@@ -12,7 +12,7 @@ Adds new member to chat. Members can't be added to private or secret chats. Memb
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|user\_id|[int](../types/int.md) | Yes|Identifier of the user to add|
|forward\_limit|[int](../types/int.md) | Yes|Number of previous messages from chat to forward to new member, ignored for channel chats|
@@ -37,12 +37,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->addChatMember(['chat_id' => long, 'user_id' => int, 'forward_limit' => int, ]);
+$Ok = $MadelineProto->addChatMember(['chat_id' => InputPeer, 'user_id' => int, 'forward_limit' => int, ]);
```
Or, if you're into Lua:
```
-Ok = addChatMember({chat_id=long, user_id=int, forward_limit=int, })
+Ok = addChatMember({chat_id=InputPeer, user_id=int, forward_limit=int, })
```
diff --git a/docs/TD_docs/methods/addChatMembers.md b/docs/TD_docs/methods/addChatMembers.md
index 462cf8e3..8bbd0823 100644
--- a/docs/TD_docs/methods/addChatMembers.md
+++ b/docs/TD_docs/methods/addChatMembers.md
@@ -12,7 +12,7 @@ Adds many new members to the chat. Currently, available only for channels. Can't
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|user\_ids|Array of [int](../types/int.md) | Yes|Identifiers of the users to add|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->addChatMembers(['chat_id' => long, 'user_ids' => [int], ]);
+$Ok = $MadelineProto->addChatMembers(['chat_id' => InputPeer, 'user_ids' => [int], ]);
```
Or, if you're into Lua:
```
-Ok = addChatMembers({chat_id=long, user_ids={int}, })
+Ok = addChatMembers({chat_id=InputPeer, user_ids={int}, })
```
diff --git a/docs/TD_docs/methods/addRecentlyFoundChat.md b/docs/TD_docs/methods/addRecentlyFoundChat.md
index b2a06b8b..16378eaf 100644
--- a/docs/TD_docs/methods/addRecentlyFoundChat.md
+++ b/docs/TD_docs/methods/addRecentlyFoundChat.md
@@ -12,7 +12,7 @@ Adds chat to the list of recently found chats. The chat is added to the beginnin
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Identifier of the chat to add|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Identifier of the chat to add|
### Return type: [Ok](../types/Ok.md)
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->addRecentlyFoundChat(['chat_id' => long, ]);
+$Ok = $MadelineProto->addRecentlyFoundChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Ok = addRecentlyFoundChat({chat_id=long, })
+Ok = addRecentlyFoundChat({chat_id=InputPeer, })
```
diff --git a/docs/TD_docs/methods/changeChatDraftMessage.md b/docs/TD_docs/methods/changeChatDraftMessage.md
index 1dc550fb..9187929f 100644
--- a/docs/TD_docs/methods/changeChatDraftMessage.md
+++ b/docs/TD_docs/methods/changeChatDraftMessage.md
@@ -12,7 +12,7 @@ Changes chat draft message
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|draft\_message|[draftMessage](../types/draftMessage.md) | Yes|New draft message, nullable|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->changeChatDraftMessage(['chat_id' => long, 'draft_message' => draftMessage, ]);
+$Ok = $MadelineProto->changeChatDraftMessage(['chat_id' => InputPeer, 'draft_message' => draftMessage, ]);
```
Or, if you're into Lua:
```
-Ok = changeChatDraftMessage({chat_id=long, draft_message=draftMessage, })
+Ok = changeChatDraftMessage({chat_id=InputPeer, draft_message=draftMessage, })
```
diff --git a/docs/TD_docs/methods/changeChatMemberStatus.md b/docs/TD_docs/methods/changeChatMemberStatus.md
index 620f3119..6407ebba 100644
--- a/docs/TD_docs/methods/changeChatMemberStatus.md
+++ b/docs/TD_docs/methods/changeChatMemberStatus.md
@@ -12,7 +12,7 @@ Changes status of the chat member, need appropriate privileges. In channel chats
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|user\_id|[int](../types/int.md) | Yes|Identifier of the user to edit status, bots can be editors in the channel chats|
|status|[ChatMemberStatus](../types/ChatMemberStatus.md) | Yes|New status of the member in the chat|
@@ -37,12 +37,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->changeChatMemberStatus(['chat_id' => long, 'user_id' => int, 'status' => ChatMemberStatus, ]);
+$Ok = $MadelineProto->changeChatMemberStatus(['chat_id' => InputPeer, 'user_id' => int, 'status' => ChatMemberStatus, ]);
```
Or, if you're into Lua:
```
-Ok = changeChatMemberStatus({chat_id=long, user_id=int, status=ChatMemberStatus, })
+Ok = changeChatMemberStatus({chat_id=InputPeer, user_id=int, status=ChatMemberStatus, })
```
diff --git a/docs/TD_docs/methods/changeChatPhoto.md b/docs/TD_docs/methods/changeChatPhoto.md
index 026e0d53..7c7696e2 100644
--- a/docs/TD_docs/methods/changeChatPhoto.md
+++ b/docs/TD_docs/methods/changeChatPhoto.md
@@ -12,7 +12,7 @@ Changes chat photo. Photo can't be changed for private chats. Photo will not cha
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|photo|[InputFile](../types/InputFile.md) | Yes|New chat photo. You can use zero InputFileId to delete photo. Files accessible only by HTTP URL are not acceptable|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->changeChatPhoto(['chat_id' => long, 'photo' => InputFile, ]);
+$Ok = $MadelineProto->changeChatPhoto(['chat_id' => InputPeer, 'photo' => InputFile, ]);
```
Or, if you're into Lua:
```
-Ok = changeChatPhoto({chat_id=long, photo=InputFile, })
+Ok = changeChatPhoto({chat_id=InputPeer, photo=InputFile, })
```
diff --git a/docs/TD_docs/methods/changeChatReportSpamState.md b/docs/TD_docs/methods/changeChatReportSpamState.md
index 7c0edf88..ced3e6d9 100644
--- a/docs/TD_docs/methods/changeChatReportSpamState.md
+++ b/docs/TD_docs/methods/changeChatReportSpamState.md
@@ -12,7 +12,7 @@ Reports chat as a spam chat or as not a spam chat. Can be used only if ChatRepor
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|is\_spam\_chat|[Bool](../types/Bool.md) | Yes|If true, chat will be reported as a spam chat, otherwise it will be marked as not a spam chat|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->changeChatReportSpamState(['chat_id' => long, 'is_spam_chat' => Bool, ]);
+$Ok = $MadelineProto->changeChatReportSpamState(['chat_id' => InputPeer, 'is_spam_chat' => Bool, ]);
```
Or, if you're into Lua:
```
-Ok = changeChatReportSpamState({chat_id=long, is_spam_chat=Bool, })
+Ok = changeChatReportSpamState({chat_id=InputPeer, is_spam_chat=Bool, })
```
diff --git a/docs/TD_docs/methods/changeChatTitle.md b/docs/TD_docs/methods/changeChatTitle.md
index b8324a31..2a936649 100644
--- a/docs/TD_docs/methods/changeChatTitle.md
+++ b/docs/TD_docs/methods/changeChatTitle.md
@@ -12,7 +12,7 @@ Changes chat title. Title can't be changed for private chats. Title will not cha
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|title|[string](../types/string.md) | Yes|New title of a chat, 0-255 characters|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->changeChatTitle(['chat_id' => long, 'title' => string, ]);
+$Ok = $MadelineProto->changeChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Ok = changeChatTitle({chat_id=long, title=string, })
+Ok = changeChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/docs/TD_docs/methods/closeChat.md b/docs/TD_docs/methods/closeChat.md
index 7d870b3d..27d1feaf 100644
--- a/docs/TD_docs/methods/closeChat.md
+++ b/docs/TD_docs/methods/closeChat.md
@@ -12,7 +12,7 @@ Chat is closed by the user. Many useful activities depends on chat being opened
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
### Return type: [Ok](../types/Ok.md)
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->closeChat(['chat_id' => long, ]);
+$Ok = $MadelineProto->closeChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Ok = closeChat({chat_id=long, })
+Ok = closeChat({chat_id=InputPeer, })
```
diff --git a/docs/TD_docs/methods/deleteChatHistory.md b/docs/TD_docs/methods/deleteChatHistory.md
index 51a5e3d7..4747b171 100644
--- a/docs/TD_docs/methods/deleteChatHistory.md
+++ b/docs/TD_docs/methods/deleteChatHistory.md
@@ -12,7 +12,7 @@ Deletes all messages in the chat. Can't be used for channel chats
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|remove\_from\_chat\_list|[Bool](../types/Bool.md) | Yes|Pass true, if chat should be removed from the chat list|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->deleteChatHistory(['chat_id' => long, 'remove_from_chat_list' => Bool, ]);
+$Ok = $MadelineProto->deleteChatHistory(['chat_id' => InputPeer, 'remove_from_chat_list' => Bool, ]);
```
Or, if you're into Lua:
```
-Ok = deleteChatHistory({chat_id=long, remove_from_chat_list=Bool, })
+Ok = deleteChatHistory({chat_id=InputPeer, remove_from_chat_list=Bool, })
```
diff --git a/docs/TD_docs/methods/deleteChatReplyMarkup.md b/docs/TD_docs/methods/deleteChatReplyMarkup.md
index 16584bdf..5c5ce42f 100644
--- a/docs/TD_docs/methods/deleteChatReplyMarkup.md
+++ b/docs/TD_docs/methods/deleteChatReplyMarkup.md
@@ -12,7 +12,7 @@ Deletes default reply markup from chat. This method needs to be called after one
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|message\_id|[long](../types/long.md) | Yes|Message identifier of used keyboard|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->deleteChatReplyMarkup(['chat_id' => long, 'message_id' => long, ]);
+$Ok = $MadelineProto->deleteChatReplyMarkup(['chat_id' => InputPeer, 'message_id' => long, ]);
```
Or, if you're into Lua:
```
-Ok = deleteChatReplyMarkup({chat_id=long, message_id=long, })
+Ok = deleteChatReplyMarkup({chat_id=InputPeer, message_id=long, })
```
diff --git a/docs/TD_docs/methods/deleteMessages.md b/docs/TD_docs/methods/deleteMessages.md
index f1c652df..868ca25b 100644
--- a/docs/TD_docs/methods/deleteMessages.md
+++ b/docs/TD_docs/methods/deleteMessages.md
@@ -12,7 +12,7 @@ Deletes messages. UpdateDeleteMessages will not be sent for messages deleted thr
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|message\_ids|Array of [long](../types/long.md) | Yes|Identifiers of messages to delete|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->deleteMessages(['chat_id' => long, 'message_ids' => [long], ]);
+$Ok = $MadelineProto->deleteMessages(['chat_id' => InputPeer, 'message_ids' => [long], ]);
```
Or, if you're into Lua:
```
-Ok = deleteMessages({chat_id=long, message_ids={long}, })
+Ok = deleteMessages({chat_id=InputPeer, message_ids={long}, })
```
diff --git a/docs/TD_docs/methods/deleteMessagesFromUser.md b/docs/TD_docs/methods/deleteMessagesFromUser.md
index 4488b15a..ef811520 100644
--- a/docs/TD_docs/methods/deleteMessagesFromUser.md
+++ b/docs/TD_docs/methods/deleteMessagesFromUser.md
@@ -12,7 +12,7 @@ Deletes all messages in the chat sent by the specified user. Works only in super
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|user\_id|[int](../types/int.md) | Yes|User identifier|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->deleteMessagesFromUser(['chat_id' => long, 'user_id' => int, ]);
+$Ok = $MadelineProto->deleteMessagesFromUser(['chat_id' => InputPeer, 'user_id' => int, ]);
```
Or, if you're into Lua:
```
-Ok = deleteMessagesFromUser({chat_id=long, user_id=int, })
+Ok = deleteMessagesFromUser({chat_id=InputPeer, user_id=int, })
```
diff --git a/docs/TD_docs/methods/deleteRecentlyFoundChat.md b/docs/TD_docs/methods/deleteRecentlyFoundChat.md
index 136f036b..ea1f923a 100644
--- a/docs/TD_docs/methods/deleteRecentlyFoundChat.md
+++ b/docs/TD_docs/methods/deleteRecentlyFoundChat.md
@@ -12,7 +12,7 @@ Deletes chat from the list of recently found chats
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Identifier of the chat to delete|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Identifier of the chat to delete|
### Return type: [Ok](../types/Ok.md)
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->deleteRecentlyFoundChat(['chat_id' => long, ]);
+$Ok = $MadelineProto->deleteRecentlyFoundChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Ok = deleteRecentlyFoundChat({chat_id=long, })
+Ok = deleteRecentlyFoundChat({chat_id=InputPeer, })
```
diff --git a/docs/TD_docs/methods/editMessageCaption.md b/docs/TD_docs/methods/editMessageCaption.md
index da5c035d..85dca953 100644
--- a/docs/TD_docs/methods/editMessageCaption.md
+++ b/docs/TD_docs/methods/editMessageCaption.md
@@ -12,7 +12,7 @@ Edits message content caption. Non-bots can edit message in a limited period of
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat the message belongs to|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat the message belongs to|
|message\_id|[long](../types/long.md) | Yes|Identifier of the message|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Yes|Bots only. New message reply markup|
|caption|[string](../types/string.md) | Yes|New message content caption, 0-200 characters|
@@ -38,13 +38,13 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Message = $MadelineProto->editMessageCaption(['chat_id' => long, 'message_id' => long, 'reply_markup' => ReplyMarkup, 'caption' => string, ]);
+$Message = $MadelineProto->editMessageCaption(['chat_id' => InputPeer, 'message_id' => long, 'reply_markup' => ReplyMarkup, 'caption' => string, ]);
```
Or, if you're into Lua:
```
-Message = editMessageCaption({chat_id=long, message_id=long, reply_markup=ReplyMarkup, caption=string, })
+Message = editMessageCaption({chat_id=InputPeer, message_id=long, reply_markup=ReplyMarkup, caption=string, })
```
diff --git a/docs/TD_docs/methods/editMessageReplyMarkup.md b/docs/TD_docs/methods/editMessageReplyMarkup.md
index 95bbb483..2474ff6a 100644
--- a/docs/TD_docs/methods/editMessageReplyMarkup.md
+++ b/docs/TD_docs/methods/editMessageReplyMarkup.md
@@ -12,7 +12,7 @@ Bots only. Edits message reply markup. Returns edited message after edit is comp
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat the message belongs to|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat the message belongs to|
|message\_id|[long](../types/long.md) | Yes|Identifier of the message|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Yes|New message reply markup|
@@ -37,13 +37,13 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Message = $MadelineProto->editMessageReplyMarkup(['chat_id' => long, 'message_id' => long, 'reply_markup' => ReplyMarkup, ]);
+$Message = $MadelineProto->editMessageReplyMarkup(['chat_id' => InputPeer, 'message_id' => long, 'reply_markup' => ReplyMarkup, ]);
```
Or, if you're into Lua:
```
-Message = editMessageReplyMarkup({chat_id=long, message_id=long, reply_markup=ReplyMarkup, })
+Message = editMessageReplyMarkup({chat_id=InputPeer, message_id=long, reply_markup=ReplyMarkup, })
```
diff --git a/docs/TD_docs/methods/editMessageText.md b/docs/TD_docs/methods/editMessageText.md
index 3b9805ca..d8593ac6 100644
--- a/docs/TD_docs/methods/editMessageText.md
+++ b/docs/TD_docs/methods/editMessageText.md
@@ -12,7 +12,7 @@ Edits text of text or game message. Non-bots can edit message in a limited perio
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat the message belongs to|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat the message belongs to|
|message\_id|[long](../types/long.md) | Yes|Identifier of the message|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Yes|Bots only. New message reply markup|
|input\_message\_content|[InputMessageContent](../types/InputMessageContent.md) | Yes|New text content of the message. Should be of type InputMessageText|
@@ -38,13 +38,13 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Message = $MadelineProto->editMessageText(['chat_id' => long, 'message_id' => long, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ]);
+$Message = $MadelineProto->editMessageText(['chat_id' => InputPeer, 'message_id' => long, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ]);
```
Or, if you're into Lua:
```
-Message = editMessageText({chat_id=long, message_id=long, reply_markup=ReplyMarkup, input_message_content=InputMessageContent, })
+Message = editMessageText({chat_id=InputPeer, message_id=long, reply_markup=ReplyMarkup, input_message_content=InputMessageContent, })
```
diff --git a/docs/TD_docs/methods/exportChatInviteLink.md b/docs/TD_docs/methods/exportChatInviteLink.md
index 2f5a104c..3b05b9cc 100644
--- a/docs/TD_docs/methods/exportChatInviteLink.md
+++ b/docs/TD_docs/methods/exportChatInviteLink.md
@@ -12,7 +12,7 @@ Generates new chat invite link, previously generated link is revoked. Available
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
### Return type: [ChatInviteLink](../types/ChatInviteLink.md)
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ChatInviteLink = $MadelineProto->exportChatInviteLink(['chat_id' => long, ]);
+$ChatInviteLink = $MadelineProto->exportChatInviteLink(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ChatInviteLink = exportChatInviteLink({chat_id=long, })
+ChatInviteLink = exportChatInviteLink({chat_id=InputPeer, })
```
diff --git a/docs/TD_docs/methods/forwardMessages.md b/docs/TD_docs/methods/forwardMessages.md
index fd217f71..a115b94a 100644
--- a/docs/TD_docs/methods/forwardMessages.md
+++ b/docs/TD_docs/methods/forwardMessages.md
@@ -12,7 +12,7 @@ Forwards previously sent messages. Returns forwarded messages in the same order
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Identifier of a chat to forward messages|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Identifier of a chat to forward messages|
|from\_chat\_id|[long](../types/long.md) | Yes|Identifier of a chat to forward from|
|message\_ids|Array of [long](../types/long.md) | Yes|Identifiers of messages to forward|
|disable\_notification|[Bool](../types/Bool.md) | Yes|Pass true, to disable notification about the message, doesn't works if messages are forwarded to secret chat|
@@ -39,12 +39,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Messages = $MadelineProto->forwardMessages(['chat_id' => long, 'from_chat_id' => long, 'message_ids' => [long], 'disable_notification' => Bool, 'from_background' => Bool, ]);
+$Messages = $MadelineProto->forwardMessages(['chat_id' => InputPeer, 'from_chat_id' => long, 'message_ids' => [long], 'disable_notification' => Bool, 'from_background' => Bool, ]);
```
Or, if you're into Lua:
```
-Messages = forwardMessages({chat_id=long, from_chat_id=long, message_ids={long}, disable_notification=Bool, from_background=Bool, })
+Messages = forwardMessages({chat_id=InputPeer, from_chat_id=long, message_ids={long}, disable_notification=Bool, from_background=Bool, })
```
diff --git a/docs/TD_docs/methods/getCallbackQueryAnswer.md b/docs/TD_docs/methods/getCallbackQueryAnswer.md
index 491f62ac..e65224b6 100644
--- a/docs/TD_docs/methods/getCallbackQueryAnswer.md
+++ b/docs/TD_docs/methods/getCallbackQueryAnswer.md
@@ -12,7 +12,7 @@ Sends callback query to a bot and returns answer to it. Unavailable for bots
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Identifier of the chat with a message|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Identifier of the chat with a message|
|message\_id|[long](../types/long.md) | Yes|Identifier of the message, from which the query is originated|
|payload|[CallbackQueryPayload](../types/CallbackQueryPayload.md) | Yes|Query payload|
@@ -37,12 +37,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$CallbackQueryAnswer = $MadelineProto->getCallbackQueryAnswer(['chat_id' => long, 'message_id' => long, 'payload' => CallbackQueryPayload, ]);
+$CallbackQueryAnswer = $MadelineProto->getCallbackQueryAnswer(['chat_id' => InputPeer, 'message_id' => long, 'payload' => CallbackQueryPayload, ]);
```
Or, if you're into Lua:
```
-CallbackQueryAnswer = getCallbackQueryAnswer({chat_id=long, message_id=long, payload=CallbackQueryPayload, })
+CallbackQueryAnswer = getCallbackQueryAnswer({chat_id=InputPeer, message_id=long, payload=CallbackQueryPayload, })
```
diff --git a/docs/TD_docs/methods/getChat.md b/docs/TD_docs/methods/getChat.md
index 11ee8c1e..8176e0fa 100644
--- a/docs/TD_docs/methods/getChat.md
+++ b/docs/TD_docs/methods/getChat.md
@@ -12,7 +12,7 @@ Returns information about a chat by its identifier, offline request if current u
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
### Return type: [Chat](../types/Chat.md)
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Chat = $MadelineProto->getChat(['chat_id' => long, ]);
+$Chat = $MadelineProto->getChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Chat = getChat({chat_id=long, })
+Chat = getChat({chat_id=InputPeer, })
```
diff --git a/docs/TD_docs/methods/getChatHistory.md b/docs/TD_docs/methods/getChatHistory.md
index b445852e..6f080211 100644
--- a/docs/TD_docs/methods/getChatHistory.md
+++ b/docs/TD_docs/methods/getChatHistory.md
@@ -12,7 +12,7 @@ Returns messages in a chat. Automatically calls openChat. Returns result in reve
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|from\_message\_id|[long](../types/long.md) | Yes|Identifier of the message near which we need a history, you can use 0 to get results from the beginning, i.e. from oldest to newest|
|offset|[int](../types/int.md) | Yes|Specify 0 to get results exactly from from_message_id or negative offset to get specified message and some newer messages|
|limit|[int](../types/int.md) | Yes|Maximum number of messages to be returned, should be positive and can't be greater than 100. If offset is negative, limit must be greater than -offset. There may be less than limit messages returned even the end of the history is not reached|
@@ -38,12 +38,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Messages = $MadelineProto->getChatHistory(['chat_id' => long, 'from_message_id' => long, 'offset' => int, 'limit' => int, ]);
+$Messages = $MadelineProto->getChatHistory(['chat_id' => InputPeer, 'from_message_id' => long, 'offset' => int, 'limit' => int, ]);
```
Or, if you're into Lua:
```
-Messages = getChatHistory({chat_id=long, from_message_id=long, offset=int, limit=int, })
+Messages = getChatHistory({chat_id=InputPeer, from_message_id=long, offset=int, limit=int, })
```
diff --git a/docs/TD_docs/methods/getChatMember.md b/docs/TD_docs/methods/getChatMember.md
index 0dd9d1b5..2032d9a7 100644
--- a/docs/TD_docs/methods/getChatMember.md
+++ b/docs/TD_docs/methods/getChatMember.md
@@ -12,7 +12,7 @@ Returns information about one participant of the chat
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|user\_id|[int](../types/int.md) | Yes|User identifier|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ChatMember = $MadelineProto->getChatMember(['chat_id' => long, 'user_id' => int, ]);
+$ChatMember = $MadelineProto->getChatMember(['chat_id' => InputPeer, 'user_id' => int, ]);
```
Or, if you're into Lua:
```
-ChatMember = getChatMember({chat_id=long, user_id=int, })
+ChatMember = getChatMember({chat_id=InputPeer, user_id=int, })
```
diff --git a/docs/TD_docs/methods/getChatReportSpamState.md b/docs/TD_docs/methods/getChatReportSpamState.md
index a62d9902..adac642f 100644
--- a/docs/TD_docs/methods/getChatReportSpamState.md
+++ b/docs/TD_docs/methods/getChatReportSpamState.md
@@ -12,7 +12,7 @@ Returns current chat report spam state
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
### Return type: [ChatReportSpamState](../types/ChatReportSpamState.md)
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ChatReportSpamState = $MadelineProto->getChatReportSpamState(['chat_id' => long, ]);
+$ChatReportSpamState = $MadelineProto->getChatReportSpamState(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ChatReportSpamState = getChatReportSpamState({chat_id=long, })
+ChatReportSpamState = getChatReportSpamState({chat_id=InputPeer, })
```
diff --git a/docs/TD_docs/methods/getGameHighScores.md b/docs/TD_docs/methods/getGameHighScores.md
index 629a1a99..b10b82fe 100644
--- a/docs/TD_docs/methods/getGameHighScores.md
+++ b/docs/TD_docs/methods/getGameHighScores.md
@@ -12,7 +12,7 @@ Bots only. Returns game high scores and some part of the score table around of t
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat a message with the game belongs to|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat a message with the game belongs to|
|message\_id|[long](../types/long.md) | Yes|Identifier of the message|
|user\_id|[int](../types/int.md) | Yes|User identifie|
@@ -37,12 +37,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$GameHighScores = $MadelineProto->getGameHighScores(['chat_id' => long, 'message_id' => long, 'user_id' => int, ]);
+$GameHighScores = $MadelineProto->getGameHighScores(['chat_id' => InputPeer, 'message_id' => long, 'user_id' => int, ]);
```
Or, if you're into Lua:
```
-GameHighScores = getGameHighScores({chat_id=long, message_id=long, user_id=int, })
+GameHighScores = getGameHighScores({chat_id=InputPeer, message_id=long, user_id=int, })
```
diff --git a/docs/TD_docs/methods/getInlineQueryResults.md b/docs/TD_docs/methods/getInlineQueryResults.md
index cd061570..69d0bf77 100644
--- a/docs/TD_docs/methods/getInlineQueryResults.md
+++ b/docs/TD_docs/methods/getInlineQueryResults.md
@@ -13,7 +13,7 @@ Sends inline query to a bot and returns its results. Unavailable for bots
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|bot\_user\_id|[int](../types/int.md) | Yes|Identifier of the bot send query to|
-|chat\_id|[long](../types/long.md) | Yes|Identifier of the chat, where the query is sent|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Identifier of the chat, where the query is sent|
|user\_location|[location](../types/location.md) | Yes|User location, only if needed|
|query|[string](../types/string.md) | Yes|Text of the query|
|offset|[string](../types/string.md) | Yes|Offset of the first entry to return|
@@ -39,12 +39,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$InlineQueryResults = $MadelineProto->getInlineQueryResults(['bot_user_id' => int, 'chat_id' => long, 'user_location' => location, 'query' => string, 'offset' => string, ]);
+$InlineQueryResults = $MadelineProto->getInlineQueryResults(['bot_user_id' => int, 'chat_id' => InputPeer, 'user_location' => location, 'query' => string, 'offset' => string, ]);
```
Or, if you're into Lua:
```
-InlineQueryResults = getInlineQueryResults({bot_user_id=int, chat_id=long, user_location=location, query=string, offset=string, })
+InlineQueryResults = getInlineQueryResults({bot_user_id=int, chat_id=InputPeer, user_location=location, query=string, offset=string, })
```
diff --git a/docs/TD_docs/methods/getMessage.md b/docs/TD_docs/methods/getMessage.md
index c23eb3d6..303a1665 100644
--- a/docs/TD_docs/methods/getMessage.md
+++ b/docs/TD_docs/methods/getMessage.md
@@ -12,7 +12,7 @@ Returns information about a message
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Identifier of the chat, message belongs to|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Identifier of the chat, message belongs to|
|message\_id|[long](../types/long.md) | Yes|Identifier of the message to get|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Message = $MadelineProto->getMessage(['chat_id' => long, 'message_id' => long, ]);
+$Message = $MadelineProto->getMessage(['chat_id' => InputPeer, 'message_id' => long, ]);
```
Or, if you're into Lua:
```
-Message = getMessage({chat_id=long, message_id=long, })
+Message = getMessage({chat_id=InputPeer, message_id=long, })
```
diff --git a/docs/TD_docs/methods/getMessages.md b/docs/TD_docs/methods/getMessages.md
index daf3c61a..32913194 100644
--- a/docs/TD_docs/methods/getMessages.md
+++ b/docs/TD_docs/methods/getMessages.md
@@ -12,7 +12,7 @@ Returns information about messages. If message is not found, returns null on the
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Identifier of the chat, messages belongs to|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Identifier of the chat, messages belongs to|
|message\_ids|Array of [long](../types/long.md) | Yes|Identifiers of the messages to get|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Messages = $MadelineProto->getMessages(['chat_id' => long, 'message_ids' => [long], ]);
+$Messages = $MadelineProto->getMessages(['chat_id' => InputPeer, 'message_ids' => [long], ]);
```
Or, if you're into Lua:
```
-Messages = getMessages({chat_id=long, message_ids={long}, })
+Messages = getMessages({chat_id=InputPeer, message_ids={long}, })
```
diff --git a/docs/TD_docs/methods/index.md b/docs/TD_docs/methods/index.md
index 8c4e8ca2..e49e9914 100644
--- a/docs/TD_docs/methods/index.md
+++ b/docs/TD_docs/methods/index.md
@@ -8,16 +8,16 @@ description: List of methods
***
-
$MadelineProto->[addChatMember](addChatMember.md)(\['chat_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), 'forward_limit' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[addChatMember](addChatMember.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [int](../types/int.md), 'forward_limit' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[addChatMembers](addChatMembers.md)(\['chat_id' => [long](../types/long.md), 'user_ids' => \[[int](../constructors/int.md)\], \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[addChatMembers](addChatMembers.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_ids' => \[[int](../constructors/int.md)\], \]) === [$Ok](../types/Ok.md)
***
$MadelineProto->[addRecentSticker](addRecentSticker.md)(\['is_attached' => [Bool](../types/Bool.md), 'sticker' => [InputFile](../types/InputFile.md), \]) === [$Stickers](../types/Stickers.md)
***
-
$MadelineProto->[addRecentlyFoundChat](addRecentlyFoundChat.md)(\['chat_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[addRecentlyFoundChat](addRecentlyFoundChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md)
***
$MadelineProto->[addSavedAnimation](addSavedAnimation.md)(\['animation' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md)
@@ -47,19 +47,19 @@ description: List of methods
$MadelineProto->[changeChannelUsername](changeChannelUsername.md)(\['channel_id' => [int](../types/int.md), 'username' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[changeChatDraftMessage](changeChatDraftMessage.md)(\['chat_id' => [long](../types/long.md), 'draft_message' => [draftMessage](../types/draftMessage.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[changeChatDraftMessage](changeChatDraftMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'draft_message' => [draftMessage](../types/draftMessage.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[changeChatMemberStatus](changeChatMemberStatus.md)(\['chat_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), 'status' => [ChatMemberStatus](../types/ChatMemberStatus.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[changeChatMemberStatus](changeChatMemberStatus.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [int](../types/int.md), 'status' => [ChatMemberStatus](../types/ChatMemberStatus.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[changeChatPhoto](changeChatPhoto.md)(\['chat_id' => [long](../types/long.md), 'photo' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[changeChatPhoto](changeChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[changeChatReportSpamState](changeChatReportSpamState.md)(\['chat_id' => [long](../types/long.md), 'is_spam_chat' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[changeChatReportSpamState](changeChatReportSpamState.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'is_spam_chat' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[changeChatTitle](changeChatTitle.md)(\['chat_id' => [long](../types/long.md), 'title' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[changeChatTitle](changeChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md)
***
$MadelineProto->[changeName](changeName.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md)
@@ -89,7 +89,7 @@ description: List of methods
$MadelineProto->[clearRecentStickers](clearRecentStickers.md)(\['is_attached' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[closeChat](closeChat.md)(\['chat_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[closeChat](closeChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md)
***
$MadelineProto->[closeSecretChat](closeSecretChat.md)(\['secret_chat_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)
@@ -122,19 +122,19 @@ description: List of methods
$MadelineProto->[deleteChannel](deleteChannel.md)(\['channel_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[deleteChatHistory](deleteChatHistory.md)(\['chat_id' => [long](../types/long.md), 'remove_from_chat_list' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[deleteChatHistory](deleteChatHistory.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'remove_from_chat_list' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[deleteChatReplyMarkup](deleteChatReplyMarkup.md)(\['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[deleteChatReplyMarkup](deleteChatReplyMarkup.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)
***
$MadelineProto->[deleteContacts](deleteContacts.md)(\['user_ids' => \[[int](../constructors/int.md)\], \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[deleteMessages](deleteMessages.md)(\['chat_id' => [long](../types/long.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[deleteMessages](deleteMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[deleteMessagesFromUser](deleteMessagesFromUser.md)(\['chat_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[deleteMessagesFromUser](deleteMessagesFromUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)
***
$MadelineProto->[deleteProfilePhoto](deleteProfilePhoto.md)(\['profile_photo_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)
@@ -143,7 +143,7 @@ description: List of methods
$MadelineProto->[deleteRecentSticker](deleteRecentSticker.md)(\['is_attached' => [Bool](../types/Bool.md), 'sticker' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[deleteRecentlyFoundChat](deleteRecentlyFoundChat.md)(\['chat_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[deleteRecentlyFoundChat](deleteRecentlyFoundChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md)
***
$MadelineProto->[deleteRecentlyFoundChats](deleteRecentlyFoundChats.md)(\[\]) === [$Ok](../types/Ok.md)
@@ -164,22 +164,22 @@ description: List of methods
$MadelineProto->[editInlineMessageText](editInlineMessageText.md)(\['inline_message_id' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[editMessageCaption](editMessageCaption.md)(\['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'caption' => [string](../types/string.md), \]) === [$Message](../types/Message.md)
+
$MadelineProto->[editMessageCaption](editMessageCaption.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'caption' => [string](../types/string.md), \]) === [$Message](../types/Message.md)
***
-
$MadelineProto->[editMessageReplyMarkup](editMessageReplyMarkup.md)(\['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Message](../types/Message.md)
+
$MadelineProto->[editMessageReplyMarkup](editMessageReplyMarkup.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Message](../types/Message.md)
***
-
$MadelineProto->[editMessageText](editMessageText.md)(\['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Message](../types/Message.md)
+
$MadelineProto->[editMessageText](editMessageText.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Message](../types/Message.md)
***
-
$MadelineProto->[exportChatInviteLink](exportChatInviteLink.md)(\['chat_id' => [long](../types/long.md), \]) === [$ChatInviteLink](../types/ChatInviteLink.md)
+
$MadelineProto->[exportChatInviteLink](exportChatInviteLink.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ChatInviteLink](../types/ChatInviteLink.md)
***
$MadelineProto->[finishFileGeneration](finishFileGeneration.md)(\['generation_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[forwardMessages](forwardMessages.md)(\['chat_id' => [long](../types/long.md), 'from_chat_id' => [long](../types/long.md), 'message_ids' => \[[long](../constructors/long.md)\], 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), \]) === [$Messages](../types/Messages.md)
+
$MadelineProto->[forwardMessages](forwardMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'from_chat_id' => [long](../types/long.md), 'message_ids' => \[[long](../constructors/long.md)\], 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), \]) === [$Messages](../types/Messages.md)
***
$MadelineProto->[getAccountTtl](getAccountTtl.md)(\[\]) === [$AccountTtl](../types/AccountTtl.md)
@@ -200,7 +200,7 @@ description: List of methods
$MadelineProto->[getBlockedUsers](getBlockedUsers.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$Users](../types/Users.md)
***
-
$MadelineProto->[getCallbackQueryAnswer](getCallbackQueryAnswer.md)(\['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), 'payload' => [CallbackQueryPayload](../types/CallbackQueryPayload.md), \]) === [$CallbackQueryAnswer](../types/CallbackQueryAnswer.md)
+
$MadelineProto->[getCallbackQueryAnswer](getCallbackQueryAnswer.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), 'payload' => [CallbackQueryPayload](../types/CallbackQueryPayload.md), \]) === [$CallbackQueryAnswer](../types/CallbackQueryAnswer.md)
***
$MadelineProto->[getChannel](getChannel.md)(\['channel_id' => [int](../types/int.md), \]) === [$Channel](../types/Channel.md)
@@ -212,16 +212,16 @@ description: List of methods
$MadelineProto->[getChannelMembers](getChannelMembers.md)(\['channel_id' => [int](../types/int.md), 'filter' => [ChannelMembersFilter](../types/ChannelMembersFilter.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$ChatMembers](../types/ChatMembers.md)
***
-
$MadelineProto->[getChat](getChat.md)(\['chat_id' => [long](../types/long.md), \]) === [$Chat](../types/Chat.md)
+
$MadelineProto->[getChat](getChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Chat](../types/Chat.md)
***
-
$MadelineProto->[getChatHistory](getChatHistory.md)(\['chat_id' => [long](../types/long.md), 'from_message_id' => [long](../types/long.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$Messages](../types/Messages.md)
+
$MadelineProto->[getChatHistory](getChatHistory.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'from_message_id' => [long](../types/long.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$Messages](../types/Messages.md)
***
-
$MadelineProto->[getChatMember](getChatMember.md)(\['chat_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), \]) === [$ChatMember](../types/ChatMember.md)
+
$MadelineProto->[getChatMember](getChatMember.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [int](../types/int.md), \]) === [$ChatMember](../types/ChatMember.md)
***
-
$MadelineProto->[getChatReportSpamState](getChatReportSpamState.md)(\['chat_id' => [long](../types/long.md), \]) === [$ChatReportSpamState](../types/ChatReportSpamState.md)
+
$MadelineProto->[getChatReportSpamState](getChatReportSpamState.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ChatReportSpamState](../types/ChatReportSpamState.md)
***
$MadelineProto->[getChats](getChats.md)(\['offset_order' => [long](../types/long.md), 'offset_chat_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md)
@@ -242,7 +242,7 @@ description: List of methods
$MadelineProto->[getFilePersistent](getFilePersistent.md)(\['persistent_file_id' => [string](../types/string.md), \]) === [$File](../types/File.md)
***
-
$MadelineProto->[getGameHighScores](getGameHighScores.md)(\['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), \]) === [$GameHighScores](../types/GameHighScores.md)
+
$MadelineProto->[getGameHighScores](getGameHighScores.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), \]) === [$GameHighScores](../types/GameHighScores.md)
***
$MadelineProto->[getGroup](getGroup.md)(\['group_id' => [int](../types/int.md), \]) === [$Group](../types/Group.md)
@@ -254,16 +254,16 @@ description: List of methods
$MadelineProto->[getInlineGameHighScores](getInlineGameHighScores.md)(\['inline_message_id' => [string](../types/string.md), 'user_id' => [int](../types/int.md), \]) === [$GameHighScores](../types/GameHighScores.md)
***
-
$MadelineProto->[getInlineQueryResults](getInlineQueryResults.md)(\['bot_user_id' => [int](../types/int.md), 'chat_id' => [long](../types/long.md), 'user_location' => [location](../types/location.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]) === [$InlineQueryResults](../types/InlineQueryResults.md)
+
$MadelineProto->[getInlineQueryResults](getInlineQueryResults.md)(\['bot_user_id' => [int](../types/int.md), 'chat_id' => [InputPeer](../types/InputPeer.md), 'user_location' => [location](../types/location.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]) === [$InlineQueryResults](../types/InlineQueryResults.md)
***
$MadelineProto->[getMe](getMe.md)(\[\]) === [$User](../types/User.md)
***
-
$MadelineProto->[getMessage](getMessage.md)(\['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), \]) === [$Message](../types/Message.md)
+
$MadelineProto->[getMessage](getMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), \]) === [$Message](../types/Message.md)
***
-
$MadelineProto->[getMessages](getMessages.md)(\['chat_id' => [long](../types/long.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Messages](../types/Messages.md)
+
$MadelineProto->[getMessages](getMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Messages](../types/Messages.md)
***
$MadelineProto->[getNotificationSettings](getNotificationSettings.md)(\['scope' => [NotificationSettingsScope](../types/NotificationSettingsScope.md), \]) === [$NotificationSettings](../types/NotificationSettings.md)
@@ -332,13 +332,13 @@ description: List of methods
$MadelineProto->[importContacts](importContacts.md)(\['contacts' => \[[contact](../constructors/contact.md)\], \]) === [$Users](../types/Users.md)
***
-
$MadelineProto->[migrateGroupChatToChannelChat](migrateGroupChatToChannelChat.md)(\['chat_id' => [long](../types/long.md), \]) === [$Chat](../types/Chat.md)
+
$MadelineProto->[migrateGroupChatToChannelChat](migrateGroupChatToChannelChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Chat](../types/Chat.md)
***
-
$MadelineProto->[openChat](openChat.md)(\['chat_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[openChat](openChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[openMessageContent](openMessageContent.md)(\['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[openMessageContent](openMessageContent.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)
***
$MadelineProto->[pinChannelMessage](pinChannelMessage.md)(\['channel_id' => [int](../types/int.md), 'message_id' => [long](../types/long.md), 'disable_notification' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)
@@ -377,7 +377,7 @@ description: List of methods
$MadelineProto->[resetAuth](resetAuth.md)(\['force' => [Bool](../types/Bool.md), \]) === [$AuthState](../types/AuthState.md)
***
-
$MadelineProto->[searchChatMessages](searchChatMessages.md)(\['chat_id' => [long](../types/long.md), 'query' => [string](../types/string.md), 'from_message_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), 'filter' => [SearchMessagesFilter](../types/SearchMessagesFilter.md), \]) === [$Messages](../types/Messages.md)
+
$MadelineProto->[searchChatMessages](searchChatMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'query' => [string](../types/string.md), 'from_message_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), 'filter' => [SearchMessagesFilter](../types/SearchMessagesFilter.md), \]) === [$Messages](../types/Messages.md)
***
$MadelineProto->[searchChats](searchChats.md)(\['query' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md)
@@ -398,22 +398,22 @@ description: List of methods
$MadelineProto->[searchStickerSet](searchStickerSet.md)(\['name' => [string](../types/string.md), \]) === [$StickerSet](../types/StickerSet.md)
***
-
$MadelineProto->[sendBotStartMessage](sendBotStartMessage.md)(\['bot_user_id' => [int](../types/int.md), 'chat_id' => [long](../types/long.md), 'parameter' => [string](../types/string.md), \]) === [$Message](../types/Message.md)
+
$MadelineProto->[sendBotStartMessage](sendBotStartMessage.md)(\['bot_user_id' => [int](../types/int.md), 'chat_id' => [InputPeer](../types/InputPeer.md), 'parameter' => [string](../types/string.md), \]) === [$Message](../types/Message.md)
***
-
$MadelineProto->[sendChatAction](sendChatAction.md)(\['chat_id' => [long](../types/long.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[sendChatAction](sendChatAction.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[sendChatScreenshotTakenNotification](sendChatScreenshotTakenNotification.md)(\['chat_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[sendChatScreenshotTakenNotification](sendChatScreenshotTakenNotification.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[sendChatSetTtlMessage](sendChatSetTtlMessage.md)(\['chat_id' => [long](../types/long.md), 'ttl' => [int](../types/int.md), \]) === [$Message](../types/Message.md)
+
$MadelineProto->[sendChatSetTtlMessage](sendChatSetTtlMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'ttl' => [int](../types/int.md), \]) === [$Message](../types/Message.md)
***
-
$MadelineProto->[sendInlineQueryResultMessage](sendInlineQueryResultMessage.md)(\['chat_id' => [long](../types/long.md), 'reply_to_message_id' => [long](../types/long.md), 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'result_id' => [string](../types/string.md), \]) === [$Message](../types/Message.md)
+
$MadelineProto->[sendInlineQueryResultMessage](sendInlineQueryResultMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'reply_to_message_id' => [long](../types/long.md), 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'result_id' => [string](../types/string.md), \]) === [$Message](../types/Message.md)
***
-
$MadelineProto->[sendMessage](sendMessage.md)(\['chat_id' => [long](../types/long.md), 'reply_to_message_id' => [long](../types/long.md), 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Message](../types/Message.md)
+
$MadelineProto->[sendMessage](sendMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'reply_to_message_id' => [long](../types/long.md), 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Message](../types/Message.md)
***
$MadelineProto->[setAlarm](setAlarm.md)(\['seconds' => [double](../types/double.md), \]) === [$Ok](../types/Ok.md)
@@ -428,7 +428,7 @@ description: List of methods
$MadelineProto->[setFileGenerationProgress](setFileGenerationProgress.md)(\['generation_id' => [long](../types/long.md), 'ready' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[setGameScore](setGameScore.md)(\['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), 'edit_message' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), 'force' => [Bool](../types/Bool.md), \]) === [$Message](../types/Message.md)
+
$MadelineProto->[setGameScore](setGameScore.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), 'edit_message' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), 'force' => [Bool](../types/Bool.md), \]) === [$Message](../types/Message.md)
***
$MadelineProto->[setInlineGameScore](setInlineGameScore.md)(\['inline_message_id' => [string](../types/string.md), 'edit_message' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), 'force' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)
@@ -497,7 +497,7 @@ $MadelineProto->[test->testNet](test_testNet.md)(\[\]) === [$test\_Empty](../typ
$MadelineProto->[updateStickerSet](updateStickerSet.md)(\['set_id' => [long](../types/long.md), 'is_installed' => [Bool](../types/Bool.md), 'is_archived' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)
***
-
$MadelineProto->[viewMessages](viewMessages.md)(\['chat_id' => [long](../types/long.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)
+
$MadelineProto->[viewMessages](viewMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)
***
$MadelineProto->[viewTrendingStickerSets](viewTrendingStickerSets.md)(\['sticker_set_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)
diff --git a/docs/TD_docs/methods/migrateGroupChatToChannelChat.md b/docs/TD_docs/methods/migrateGroupChatToChannelChat.md
index cf65de52..bbf222eb 100644
--- a/docs/TD_docs/methods/migrateGroupChatToChannelChat.md
+++ b/docs/TD_docs/methods/migrateGroupChatToChannelChat.md
@@ -12,7 +12,7 @@ Creates new channel supergroup chat from existing group chat and send correspond
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Group chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Group chat identifier|
### Return type: [Chat](../types/Chat.md)
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Chat = $MadelineProto->migrateGroupChatToChannelChat(['chat_id' => long, ]);
+$Chat = $MadelineProto->migrateGroupChatToChannelChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Chat = migrateGroupChatToChannelChat({chat_id=long, })
+Chat = migrateGroupChatToChannelChat({chat_id=InputPeer, })
```
diff --git a/docs/TD_docs/methods/openChat.md b/docs/TD_docs/methods/openChat.md
index 0e32b0c0..b91ec562 100644
--- a/docs/TD_docs/methods/openChat.md
+++ b/docs/TD_docs/methods/openChat.md
@@ -12,7 +12,7 @@ Chat is opened by the user. Many useful activities depends on chat being opened
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
### Return type: [Ok](../types/Ok.md)
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->openChat(['chat_id' => long, ]);
+$Ok = $MadelineProto->openChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Ok = openChat({chat_id=long, })
+Ok = openChat({chat_id=InputPeer, })
```
diff --git a/docs/TD_docs/methods/openMessageContent.md b/docs/TD_docs/methods/openMessageContent.md
index 2cba01c3..25976228 100644
--- a/docs/TD_docs/methods/openMessageContent.md
+++ b/docs/TD_docs/methods/openMessageContent.md
@@ -12,7 +12,7 @@ Message content is opened, for example the user has opened a photo, a video, a d
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier of the message|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier of the message|
|message\_id|[long](../types/long.md) | Yes|Identifier of the message with opened content|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->openMessageContent(['chat_id' => long, 'message_id' => long, ]);
+$Ok = $MadelineProto->openMessageContent(['chat_id' => InputPeer, 'message_id' => long, ]);
```
Or, if you're into Lua:
```
-Ok = openMessageContent({chat_id=long, message_id=long, })
+Ok = openMessageContent({chat_id=InputPeer, message_id=long, })
```
diff --git a/docs/TD_docs/methods/searchChatMessages.md b/docs/TD_docs/methods/searchChatMessages.md
index 8820af76..459e78a5 100644
--- a/docs/TD_docs/methods/searchChatMessages.md
+++ b/docs/TD_docs/methods/searchChatMessages.md
@@ -12,7 +12,7 @@ Searches for messages with given words in the chat. Returns result in reverse ch
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier to search in|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier to search in|
|query|[string](../types/string.md) | Yes|Query to search for|
|from\_message\_id|[long](../types/long.md) | Yes|Identifier of the message from which we need a history, you can use 0 to get results from beginning|
|limit|[int](../types/int.md) | Yes|Maximum number of messages to be returned, can't be greater than 100|
@@ -39,12 +39,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Messages = $MadelineProto->searchChatMessages(['chat_id' => long, 'query' => string, 'from_message_id' => long, 'limit' => int, 'filter' => SearchMessagesFilter, ]);
+$Messages = $MadelineProto->searchChatMessages(['chat_id' => InputPeer, 'query' => string, 'from_message_id' => long, 'limit' => int, 'filter' => SearchMessagesFilter, ]);
```
Or, if you're into Lua:
```
-Messages = searchChatMessages({chat_id=long, query=string, from_message_id=long, limit=int, filter=SearchMessagesFilter, })
+Messages = searchChatMessages({chat_id=InputPeer, query=string, from_message_id=long, limit=int, filter=SearchMessagesFilter, })
```
diff --git a/docs/TD_docs/methods/sendBotStartMessage.md b/docs/TD_docs/methods/sendBotStartMessage.md
index 10cfad69..1e5098d8 100644
--- a/docs/TD_docs/methods/sendBotStartMessage.md
+++ b/docs/TD_docs/methods/sendBotStartMessage.md
@@ -13,7 +13,7 @@ Invites bot to a chat (if it is not in the chat) and send /start to it. Bot can'
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|bot\_user\_id|[int](../types/int.md) | Yes|Identifier of the bot|
-|chat\_id|[long](../types/long.md) | Yes|Identifier of the chat|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Identifier of the chat|
|parameter|[string](../types/string.md) | Yes|Hidden parameter sent to bot for deep linking (https: api.telegram.org/bots#deep-linking)|
@@ -37,12 +37,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Message = $MadelineProto->sendBotStartMessage(['bot_user_id' => int, 'chat_id' => long, 'parameter' => string, ]);
+$Message = $MadelineProto->sendBotStartMessage(['bot_user_id' => int, 'chat_id' => InputPeer, 'parameter' => string, ]);
```
Or, if you're into Lua:
```
-Message = sendBotStartMessage({bot_user_id=int, chat_id=long, parameter=string, })
+Message = sendBotStartMessage({bot_user_id=int, chat_id=InputPeer, parameter=string, })
```
diff --git a/docs/TD_docs/methods/sendChatAction.md b/docs/TD_docs/methods/sendChatAction.md
index b008ca54..4f5917ab 100644
--- a/docs/TD_docs/methods/sendChatAction.md
+++ b/docs/TD_docs/methods/sendChatAction.md
@@ -12,7 +12,7 @@ Sends notification about user activity in a chat
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|action|[SendMessageAction](../types/SendMessageAction.md) | Yes|Action description|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->sendChatAction(['chat_id' => long, 'action' => SendMessageAction, ]);
+$Ok = $MadelineProto->sendChatAction(['chat_id' => InputPeer, 'action' => SendMessageAction, ]);
```
Or, if you're into Lua:
```
-Ok = sendChatAction({chat_id=long, action=SendMessageAction, })
+Ok = sendChatAction({chat_id=InputPeer, action=SendMessageAction, })
```
diff --git a/docs/TD_docs/methods/sendChatScreenshotTakenNotification.md b/docs/TD_docs/methods/sendChatScreenshotTakenNotification.md
index 6d2f5ea2..90dbeb45 100644
--- a/docs/TD_docs/methods/sendChatScreenshotTakenNotification.md
+++ b/docs/TD_docs/methods/sendChatScreenshotTakenNotification.md
@@ -12,7 +12,7 @@ Sends notification about screenshot taken in a chat. Works only in secret chats
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
### Return type: [Ok](../types/Ok.md)
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->sendChatScreenshotTakenNotification(['chat_id' => long, ]);
+$Ok = $MadelineProto->sendChatScreenshotTakenNotification(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Ok = sendChatScreenshotTakenNotification({chat_id=long, })
+Ok = sendChatScreenshotTakenNotification({chat_id=InputPeer, })
```
diff --git a/docs/TD_docs/methods/sendChatSetTtlMessage.md b/docs/TD_docs/methods/sendChatSetTtlMessage.md
index 11c83b26..a7590064 100644
--- a/docs/TD_docs/methods/sendChatSetTtlMessage.md
+++ b/docs/TD_docs/methods/sendChatSetTtlMessage.md
@@ -12,7 +12,7 @@ Changes current ttl setting in a secret chat and sends corresponding message
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|ttl|[int](../types/int.md) | Yes|New value of ttl in seconds|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Message = $MadelineProto->sendChatSetTtlMessage(['chat_id' => long, 'ttl' => int, ]);
+$Message = $MadelineProto->sendChatSetTtlMessage(['chat_id' => InputPeer, 'ttl' => int, ]);
```
Or, if you're into Lua:
```
-Message = sendChatSetTtlMessage({chat_id=long, ttl=int, })
+Message = sendChatSetTtlMessage({chat_id=InputPeer, ttl=int, })
```
diff --git a/docs/TD_docs/methods/sendInlineQueryResultMessage.md b/docs/TD_docs/methods/sendInlineQueryResultMessage.md
index 7ba89e89..a2c2c1d7 100644
--- a/docs/TD_docs/methods/sendInlineQueryResultMessage.md
+++ b/docs/TD_docs/methods/sendInlineQueryResultMessage.md
@@ -12,7 +12,7 @@ Sends result of the inline query as a message. Returns sent message. UpdateChatT
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat to send message|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat to send message|
|reply\_to\_message\_id|[long](../types/long.md) | Yes|Identifier of a message to reply to or 0|
|disable\_notification|[Bool](../types/Bool.md) | Yes|Pass true, to disable notification about the message, doesn't works in secret chats|
|from\_background|[Bool](../types/Bool.md) | Yes|Pass true, if the message is sent from background|
@@ -40,12 +40,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Message = $MadelineProto->sendInlineQueryResultMessage(['chat_id' => long, 'reply_to_message_id' => long, 'disable_notification' => Bool, 'from_background' => Bool, 'query_id' => long, 'result_id' => string, ]);
+$Message = $MadelineProto->sendInlineQueryResultMessage(['chat_id' => InputPeer, 'reply_to_message_id' => long, 'disable_notification' => Bool, 'from_background' => Bool, 'query_id' => long, 'result_id' => string, ]);
```
Or, if you're into Lua:
```
-Message = sendInlineQueryResultMessage({chat_id=long, reply_to_message_id=long, disable_notification=Bool, from_background=Bool, query_id=long, result_id=string, })
+Message = sendInlineQueryResultMessage({chat_id=InputPeer, reply_to_message_id=long, disable_notification=Bool, from_background=Bool, query_id=long, result_id=string, })
```
diff --git a/docs/TD_docs/methods/sendMessage.md b/docs/TD_docs/methods/sendMessage.md
index 7b3fd4f4..4b651a72 100644
--- a/docs/TD_docs/methods/sendMessage.md
+++ b/docs/TD_docs/methods/sendMessage.md
@@ -12,7 +12,7 @@ Sends a message. Returns sent message. UpdateChatTopMessage will not be sent, so
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat to send message|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat to send message|
|reply\_to\_message\_id|[long](../types/long.md) | Yes|Identifier of a message to reply to or 0|
|disable\_notification|[Bool](../types/Bool.md) | Yes|Pass true, to disable notification about the message, doesn't works in secret chats|
|from\_background|[Bool](../types/Bool.md) | Yes|Pass true, if the message is sent from background|
@@ -40,13 +40,13 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Message = $MadelineProto->sendMessage(['chat_id' => long, 'reply_to_message_id' => long, 'disable_notification' => Bool, 'from_background' => Bool, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ]);
+$Message = $MadelineProto->sendMessage(['chat_id' => InputPeer, 'reply_to_message_id' => long, 'disable_notification' => Bool, 'from_background' => Bool, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ]);
```
Or, if you're into Lua:
```
-Message = sendMessage({chat_id=long, reply_to_message_id=long, disable_notification=Bool, from_background=Bool, reply_markup=ReplyMarkup, input_message_content=InputMessageContent, })
+Message = sendMessage({chat_id=InputPeer, reply_to_message_id=long, disable_notification=Bool, from_background=Bool, reply_markup=ReplyMarkup, input_message_content=InputMessageContent, })
```
diff --git a/docs/TD_docs/methods/setGameScore.md b/docs/TD_docs/methods/setGameScore.md
index 4ecbf4ec..4b9c84c8 100644
--- a/docs/TD_docs/methods/setGameScore.md
+++ b/docs/TD_docs/methods/setGameScore.md
@@ -12,7 +12,7 @@ Bots only. Updates game score of the specified user in the game
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat a message with the game belongs to|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat a message with the game belongs to|
|message\_id|[long](../types/long.md) | Yes|Identifier of the message|
|edit\_message|[Bool](../types/Bool.md) | Yes|True, if message should be edited|
|user\_id|[int](../types/int.md) | Yes|User identifier|
@@ -40,12 +40,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Message = $MadelineProto->setGameScore(['chat_id' => long, 'message_id' => long, 'edit_message' => Bool, 'user_id' => int, 'score' => int, 'force' => Bool, ]);
+$Message = $MadelineProto->setGameScore(['chat_id' => InputPeer, 'message_id' => long, 'edit_message' => Bool, 'user_id' => int, 'score' => int, 'force' => Bool, ]);
```
Or, if you're into Lua:
```
-Message = setGameScore({chat_id=long, message_id=long, edit_message=Bool, user_id=int, score=int, force=Bool, })
+Message = setGameScore({chat_id=InputPeer, message_id=long, edit_message=Bool, user_id=int, score=int, force=Bool, })
```
diff --git a/docs/TD_docs/methods/viewMessages.md b/docs/TD_docs/methods/viewMessages.md
index 6de00660..a1fbf0d3 100644
--- a/docs/TD_docs/methods/viewMessages.md
+++ b/docs/TD_docs/methods/viewMessages.md
@@ -12,7 +12,7 @@ Messages are viewed by the user. Many useful activities depends on message being
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
-|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|message\_ids|Array of [long](../types/long.md) | Yes|Identifiers of viewed messages|
@@ -36,12 +36,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Ok = $MadelineProto->viewMessages(['chat_id' => long, 'message_ids' => [long], ]);
+$Ok = $MadelineProto->viewMessages(['chat_id' => InputPeer, 'message_ids' => [long], ]);
```
Or, if you're into Lua:
```
-Ok = viewMessages({chat_id=long, message_ids={long}, })
+Ok = viewMessages({chat_id=InputPeer, message_ids={long}, })
```
diff --git a/old_docs/API_docs_v18/methods/README.md b/old_docs/API_docs_v18/methods/README.md
index 1392b18e..c6f3a1ba 100644
--- a/old_docs/API_docs_v18/methods/README.md
+++ b/old_docs/API_docs_v18/methods/README.md
@@ -106,11 +106,11 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -118,9 +118,9 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
@@ -132,7 +132,7 @@ $MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' =>
$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
diff --git a/old_docs/API_docs_v18/methods/messages_addChatUser.md b/old_docs/API_docs_v18/methods/messages_addChatUser.md
index f4c10701..08a6a211 100644
--- a/old_docs/API_docs_v18/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v18/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_StatedMessage = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$messages_StatedMessage = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-messages_StatedMessage = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+messages_StatedMessage = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v18/methods/messages_deleteChatUser.md b/old_docs/API_docs_v18/methods/messages_deleteChatUser.md
index 2537f0f3..8bec908f 100644
--- a/old_docs/API_docs_v18/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v18/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_StatedMessage = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$messages_StatedMessage = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-messages_StatedMessage = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+messages_StatedMessage = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v18/methods/messages_editChatPhoto.md b/old_docs/API_docs_v18/methods/messages_editChatPhoto.md
index a8a7d5d9..d4f432b3 100644
--- a/old_docs/API_docs_v18/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v18/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_StatedMessage = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$messages_StatedMessage = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-messages_StatedMessage = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+messages_StatedMessage = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v18/methods/messages_editChatTitle.md b/old_docs/API_docs_v18/methods/messages_editChatTitle.md
index ed46c15c..1a0c87a0 100644
--- a/old_docs/API_docs_v18/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v18/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_StatedMessage = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$messages_StatedMessage = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-messages_StatedMessage = messages.editChatTitle({chat_id=int, title=string, })
+messages_StatedMessage = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v18/methods/messages_getFullChat.md b/old_docs/API_docs_v18/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v18/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v18/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v23/methods/README.md b/old_docs/API_docs_v23/methods/README.md
index 341e4a25..8f6758c1 100644
--- a/old_docs/API_docs_v23/methods/README.md
+++ b/old_docs/API_docs_v23/methods/README.md
@@ -126,11 +126,11 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -138,9 +138,9 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
@@ -154,7 +154,7 @@ $MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' =>
$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
diff --git a/old_docs/API_docs_v23/methods/messages_addChatUser.md b/old_docs/API_docs_v23/methods/messages_addChatUser.md
index f4c10701..08a6a211 100644
--- a/old_docs/API_docs_v23/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v23/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_StatedMessage = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$messages_StatedMessage = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-messages_StatedMessage = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+messages_StatedMessage = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v23/methods/messages_deleteChatUser.md b/old_docs/API_docs_v23/methods/messages_deleteChatUser.md
index 2537f0f3..8bec908f 100644
--- a/old_docs/API_docs_v23/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v23/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_StatedMessage = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$messages_StatedMessage = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-messages_StatedMessage = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+messages_StatedMessage = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v23/methods/messages_editChatPhoto.md b/old_docs/API_docs_v23/methods/messages_editChatPhoto.md
index a8a7d5d9..d4f432b3 100644
--- a/old_docs/API_docs_v23/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v23/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_StatedMessage = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$messages_StatedMessage = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-messages_StatedMessage = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+messages_StatedMessage = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v23/methods/messages_editChatTitle.md b/old_docs/API_docs_v23/methods/messages_editChatTitle.md
index ed46c15c..1a0c87a0 100644
--- a/old_docs/API_docs_v23/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v23/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_StatedMessage = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$messages_StatedMessage = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-messages_StatedMessage = messages.editChatTitle({chat_id=int, title=string, })
+messages_StatedMessage = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v23/methods/messages_getFullChat.md b/old_docs/API_docs_v23/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v23/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v23/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v25/methods/README.md b/old_docs/API_docs_v25/methods/README.md
index 7346d448..1d79b9c8 100644
--- a/old_docs/API_docs_v25/methods/README.md
+++ b/old_docs/API_docs_v25/methods/README.md
@@ -155,11 +155,11 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -167,9 +167,9 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)
@@ -183,7 +183,7 @@ $MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' =>
$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
diff --git a/old_docs/API_docs_v25/methods/messages_addChatUser.md b/old_docs/API_docs_v25/methods/messages_addChatUser.md
index f4c10701..08a6a211 100644
--- a/old_docs/API_docs_v25/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v25/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_StatedMessage = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$messages_StatedMessage = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-messages_StatedMessage = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+messages_StatedMessage = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v25/methods/messages_deleteChatUser.md b/old_docs/API_docs_v25/methods/messages_deleteChatUser.md
index 2537f0f3..8bec908f 100644
--- a/old_docs/API_docs_v25/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v25/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_StatedMessage = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$messages_StatedMessage = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-messages_StatedMessage = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+messages_StatedMessage = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v25/methods/messages_editChatPhoto.md b/old_docs/API_docs_v25/methods/messages_editChatPhoto.md
index a8a7d5d9..d4f432b3 100644
--- a/old_docs/API_docs_v25/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v25/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_StatedMessage = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$messages_StatedMessage = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-messages_StatedMessage = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+messages_StatedMessage = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v25/methods/messages_editChatTitle.md b/old_docs/API_docs_v25/methods/messages_editChatTitle.md
index ed46c15c..1a0c87a0 100644
--- a/old_docs/API_docs_v25/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v25/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_StatedMessage = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$messages_StatedMessage = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-messages_StatedMessage = messages.editChatTitle({chat_id=int, title=string, })
+messages_StatedMessage = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v25/methods/messages_getFullChat.md b/old_docs/API_docs_v25/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v25/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v25/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v27/methods/README.md b/old_docs/API_docs_v27/methods/README.md
index 8e69849b..ffea2192 100644
--- a/old_docs/API_docs_v27/methods/README.md
+++ b/old_docs/API_docs_v27/methods/README.md
@@ -165,11 +165,11 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -177,9 +177,9 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -193,7 +193,7 @@ $MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' =>
$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
diff --git a/old_docs/API_docs_v27/methods/messages_addChatUser.md b/old_docs/API_docs_v27/methods/messages_addChatUser.md
index df2cb1a5..6b652bea 100644
--- a/old_docs/API_docs_v27/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v27/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v27/methods/messages_deleteChatUser.md b/old_docs/API_docs_v27/methods/messages_deleteChatUser.md
index 6895649f..4afb209f 100644
--- a/old_docs/API_docs_v27/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v27/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v27/methods/messages_editChatPhoto.md b/old_docs/API_docs_v27/methods/messages_editChatPhoto.md
index 0396c74b..fa3b32db 100644
--- a/old_docs/API_docs_v27/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v27/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v27/methods/messages_editChatTitle.md b/old_docs/API_docs_v27/methods/messages_editChatTitle.md
index fabe9c87..8825380e 100644
--- a/old_docs/API_docs_v27/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v27/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=int, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v27/methods/messages_getFullChat.md b/old_docs/API_docs_v27/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v27/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v27/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v33/methods/README.md b/old_docs/API_docs_v33/methods/README.md
index 6a75b556..f44d5891 100644
--- a/old_docs/API_docs_v33/methods/README.md
+++ b/old_docs/API_docs_v33/methods/README.md
@@ -172,13 +172,13 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -186,11 +186,11 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
+$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -204,7 +204,7 @@ $MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' =>
$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
@@ -250,7 +250,7 @@ $MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\
$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'chat_id' => [int](../types/int.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'chat_id' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)
diff --git a/old_docs/API_docs_v33/methods/messages_addChatUser.md b/old_docs/API_docs_v33/methods/messages_addChatUser.md
index df2cb1a5..6b652bea 100644
--- a/old_docs/API_docs_v33/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v33/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v33/methods/messages_deleteChatUser.md b/old_docs/API_docs_v33/methods/messages_deleteChatUser.md
index 6895649f..4afb209f 100644
--- a/old_docs/API_docs_v33/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v33/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v33/methods/messages_editChatPhoto.md b/old_docs/API_docs_v33/methods/messages_editChatPhoto.md
index 0396c74b..fa3b32db 100644
--- a/old_docs/API_docs_v33/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v33/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v33/methods/messages_editChatTitle.md b/old_docs/API_docs_v33/methods/messages_editChatTitle.md
index fabe9c87..8825380e 100644
--- a/old_docs/API_docs_v33/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v33/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=int, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v33/methods/messages_exportChatInvite.md b/old_docs/API_docs_v33/methods/messages_exportChatInvite.md
index b96e7498..2e3afe8d 100644
--- a/old_docs/API_docs_v33/methods/messages_exportChatInvite.md
+++ b/old_docs/API_docs_v33/methods/messages_exportChatInvite.md
@@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => int, ]);
+$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ExportedChatInvite = messages.exportChatInvite({chat_id=int, })
+ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v33/methods/messages_getFullChat.md b/old_docs/API_docs_v33/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v33/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v33/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v33/methods/messages_startBot.md b/old_docs/API_docs_v33/methods/messages_startBot.md
index 6419b20c..c6c8e1f9 100644
--- a/old_docs/API_docs_v33/methods/messages_startBot.md
+++ b/old_docs/API_docs_v33/methods/messages_startBot.md
@@ -11,7 +11,7 @@ description: messages.startBot parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
|bot|[InputUser](../types/InputUser.md) | Yes|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|start\_param|[string](../types/string.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'chat_id' => int, 'start_param' => string, ]);
+$Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'chat_id' => InputPeer, 'start_param' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.startBot({bot=InputUser, chat_id=int, start_param=string, })
+Updates = messages.startBot({bot=InputUser, chat_id=InputPeer, start_param=string, })
```
diff --git a/old_docs/API_docs_v38/methods/README.md b/old_docs/API_docs_v38/methods/README.md
index d63d29ea..0e2f3bc7 100644
--- a/old_docs/API_docs_v38/methods/README.md
+++ b/old_docs/API_docs_v38/methods/README.md
@@ -198,13 +198,13 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -212,11 +212,11 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
+$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -230,7 +230,7 @@ $MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' =>
$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
@@ -280,7 +280,7 @@ $MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\
$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'chat_id' => [int](../types/int.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'chat_id' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)
diff --git a/old_docs/API_docs_v38/methods/messages_addChatUser.md b/old_docs/API_docs_v38/methods/messages_addChatUser.md
index df2cb1a5..6b652bea 100644
--- a/old_docs/API_docs_v38/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v38/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v38/methods/messages_deleteChatUser.md b/old_docs/API_docs_v38/methods/messages_deleteChatUser.md
index 6895649f..4afb209f 100644
--- a/old_docs/API_docs_v38/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v38/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v38/methods/messages_editChatPhoto.md b/old_docs/API_docs_v38/methods/messages_editChatPhoto.md
index 0396c74b..fa3b32db 100644
--- a/old_docs/API_docs_v38/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v38/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v38/methods/messages_editChatTitle.md b/old_docs/API_docs_v38/methods/messages_editChatTitle.md
index fabe9c87..8825380e 100644
--- a/old_docs/API_docs_v38/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v38/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=int, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v38/methods/messages_exportChatInvite.md b/old_docs/API_docs_v38/methods/messages_exportChatInvite.md
index b96e7498..2e3afe8d 100644
--- a/old_docs/API_docs_v38/methods/messages_exportChatInvite.md
+++ b/old_docs/API_docs_v38/methods/messages_exportChatInvite.md
@@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => int, ]);
+$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ExportedChatInvite = messages.exportChatInvite({chat_id=int, })
+ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v38/methods/messages_getFullChat.md b/old_docs/API_docs_v38/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v38/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v38/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v38/methods/messages_startBot.md b/old_docs/API_docs_v38/methods/messages_startBot.md
index 6419b20c..c6c8e1f9 100644
--- a/old_docs/API_docs_v38/methods/messages_startBot.md
+++ b/old_docs/API_docs_v38/methods/messages_startBot.md
@@ -11,7 +11,7 @@ description: messages.startBot parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
|bot|[InputUser](../types/InputUser.md) | Yes|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|start\_param|[string](../types/string.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'chat_id' => int, 'start_param' => string, ]);
+$Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'chat_id' => InputPeer, 'start_param' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.startBot({bot=InputUser, chat_id=int, start_param=string, })
+Updates = messages.startBot({bot=InputUser, chat_id=InputPeer, start_param=string, })
```
diff --git a/old_docs/API_docs_v40/methods/README.md b/old_docs/API_docs_v40/methods/README.md
index e9f1b923..b87cc799 100644
--- a/old_docs/API_docs_v40/methods/README.md
+++ b/old_docs/API_docs_v40/methods/README.md
@@ -147,7 +147,7 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputChat](../types/InputChat.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)
@@ -157,7 +157,7 @@ $MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[I
$MadelineProto->[messages->deleteChannelMessages](messages_deleteChannelMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputChat](../types/InputChat.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -165,11 +165,11 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputChat](../types/InputChat.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputChat](../types/InputChat.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputChat](../types/InputChat.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
+$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -185,7 +185,7 @@ $MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' =>
$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputChat](../types/InputChat.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
@@ -235,7 +235,7 @@ $MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\
$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'chat_id' => [InputChat](../types/InputChat.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'chat_id' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)
diff --git a/old_docs/API_docs_v40/methods/messages_addChatUser.md b/old_docs/API_docs_v40/methods/messages_addChatUser.md
index 56634999..6b652bea 100644
--- a/old_docs/API_docs_v40/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v40/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[InputChat](../types/InputChat.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputChat, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=InputChat, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v40/methods/messages_deleteChatUser.md b/old_docs/API_docs_v40/methods/messages_deleteChatUser.md
index d578cfe9..4afb209f 100644
--- a/old_docs/API_docs_v40/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v40/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[InputChat](../types/InputChat.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputChat, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=InputChat, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v40/methods/messages_editChatPhoto.md b/old_docs/API_docs_v40/methods/messages_editChatPhoto.md
index b2adf3ab..fa3b32db 100644
--- a/old_docs/API_docs_v40/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v40/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[InputChat](../types/InputChat.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputChat, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=InputChat, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v40/methods/messages_editChatTitle.md b/old_docs/API_docs_v40/methods/messages_editChatTitle.md
index 6a1accce..8825380e 100644
--- a/old_docs/API_docs_v40/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v40/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[InputChat](../types/InputChat.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputChat, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=InputChat, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v40/methods/messages_exportChatInvite.md b/old_docs/API_docs_v40/methods/messages_exportChatInvite.md
index c2f21cc6..2e3afe8d 100644
--- a/old_docs/API_docs_v40/methods/messages_exportChatInvite.md
+++ b/old_docs/API_docs_v40/methods/messages_exportChatInvite.md
@@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[InputChat](../types/InputChat.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputChat, ]);
+$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ExportedChatInvite = messages.exportChatInvite({chat_id=InputChat, })
+ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v40/methods/messages_getFullChat.md b/old_docs/API_docs_v40/methods/messages_getFullChat.md
index 1ca2d078..3de40295 100644
--- a/old_docs/API_docs_v40/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v40/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[InputChat](../types/InputChat.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputChat, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=InputChat, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v40/methods/messages_startBot.md b/old_docs/API_docs_v40/methods/messages_startBot.md
index 1aaf7c5c..c6c8e1f9 100644
--- a/old_docs/API_docs_v40/methods/messages_startBot.md
+++ b/old_docs/API_docs_v40/methods/messages_startBot.md
@@ -11,7 +11,7 @@ description: messages.startBot parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
|bot|[InputUser](../types/InputUser.md) | Yes|
-|chat\_id|[InputChat](../types/InputChat.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|start\_param|[string](../types/string.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'chat_id' => InputChat, 'start_param' => string, ]);
+$Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'chat_id' => InputPeer, 'start_param' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.startBot({bot=InputUser, chat_id=InputChat, start_param=string, })
+Updates = messages.startBot({bot=InputUser, chat_id=InputPeer, start_param=string, })
```
diff --git a/old_docs/API_docs_v41/methods/README.md b/old_docs/API_docs_v41/methods/README.md
index 44b49ad0..6fd745b1 100644
--- a/old_docs/API_docs_v41/methods/README.md
+++ b/old_docs/API_docs_v41/methods/README.md
@@ -198,15 +198,15 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deactivateChat](messages_deactivateChat.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deactivateChat](messages_deactivateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -214,13 +214,13 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
+$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
+$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -234,7 +234,7 @@ $MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' =>
$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
@@ -252,7 +252,7 @@ $MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['ha
$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
@@ -290,7 +290,7 @@ $MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputP
$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)
diff --git a/old_docs/API_docs_v41/methods/messages_addChatUser.md b/old_docs/API_docs_v41/methods/messages_addChatUser.md
index df2cb1a5..6b652bea 100644
--- a/old_docs/API_docs_v41/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v41/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v41/methods/messages_deactivateChat.md b/old_docs/API_docs_v41/methods/messages_deactivateChat.md
index 3b7e9bf7..f828f728 100644
--- a/old_docs/API_docs_v41/methods/messages_deactivateChat.md
+++ b/old_docs/API_docs_v41/methods/messages_deactivateChat.md
@@ -10,7 +10,7 @@ description: messages.deactivateChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|enabled|[Bool](../types/Bool.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deactivateChat(['chat_id' => int, 'enabled' => Bool, ]);
+$Updates = $MadelineProto->messages->deactivateChat(['chat_id' => InputPeer, 'enabled' => Bool, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deactivateChat({chat_id=int, enabled=Bool, })
+Updates = messages.deactivateChat({chat_id=InputPeer, enabled=Bool, })
```
diff --git a/old_docs/API_docs_v41/methods/messages_deleteChatUser.md b/old_docs/API_docs_v41/methods/messages_deleteChatUser.md
index 6895649f..4afb209f 100644
--- a/old_docs/API_docs_v41/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v41/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v41/methods/messages_editChatAdmin.md b/old_docs/API_docs_v41/methods/messages_editChatAdmin.md
index 74f5a39f..67b6702f 100644
--- a/old_docs/API_docs_v41/methods/messages_editChatAdmin.md
+++ b/old_docs/API_docs_v41/methods/messages_editChatAdmin.md
@@ -10,7 +10,7 @@ description: messages.editChatAdmin parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|is\_admin|[Bool](../types/Bool.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => int, 'user_id' => InputUser, 'is_admin' => Bool, ]);
+$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]);
```
Or, if you're into Lua:
```
-Bool = messages.editChatAdmin({chat_id=int, user_id=InputUser, is_admin=Bool, })
+Bool = messages.editChatAdmin({chat_id=InputPeer, user_id=InputUser, is_admin=Bool, })
```
diff --git a/old_docs/API_docs_v41/methods/messages_editChatPhoto.md b/old_docs/API_docs_v41/methods/messages_editChatPhoto.md
index 0396c74b..fa3b32db 100644
--- a/old_docs/API_docs_v41/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v41/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v41/methods/messages_editChatTitle.md b/old_docs/API_docs_v41/methods/messages_editChatTitle.md
index fabe9c87..8825380e 100644
--- a/old_docs/API_docs_v41/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v41/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=int, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v41/methods/messages_exportChatInvite.md b/old_docs/API_docs_v41/methods/messages_exportChatInvite.md
index b96e7498..2e3afe8d 100644
--- a/old_docs/API_docs_v41/methods/messages_exportChatInvite.md
+++ b/old_docs/API_docs_v41/methods/messages_exportChatInvite.md
@@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => int, ]);
+$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ExportedChatInvite = messages.exportChatInvite({chat_id=int, })
+ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v41/methods/messages_getFullChat.md b/old_docs/API_docs_v41/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v41/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v41/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v41/methods/messages_migrateChat.md b/old_docs/API_docs_v41/methods/messages_migrateChat.md
index 731dc904..b97e2a77 100644
--- a/old_docs/API_docs_v41/methods/messages_migrateChat.md
+++ b/old_docs/API_docs_v41/methods/messages_migrateChat.md
@@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [Updates](../types/Updates.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->migrateChat(['chat_id' => int, ]);
+$Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Updates = messages.migrateChat({chat_id=int, })
+Updates = messages.migrateChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md
index 05d74e5a..dfacb2dc 100644
--- a/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md
+++ b/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md
@@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|enabled|[Bool](../types/Bool.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => int, 'enabled' => Bool, ]);
+$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]);
```
Or, if you're into Lua:
```
-Updates = messages.toggleChatAdmins({chat_id=int, enabled=Bool, })
+Updates = messages.toggleChatAdmins({chat_id=InputPeer, enabled=Bool, })
```
diff --git a/old_docs/API_docs_v42/methods/README.md b/old_docs/API_docs_v42/methods/README.md
index dc7be15c..b4c080e2 100644
--- a/old_docs/API_docs_v42/methods/README.md
+++ b/old_docs/API_docs_v42/methods/README.md
@@ -198,13 +198,13 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -212,13 +212,13 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
+$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
+$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -232,7 +232,7 @@ $MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' =>
$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset_date' => [int](../types/int.md), 'offset_id' => [int](../types/int.md), 'offset_peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
@@ -250,7 +250,7 @@ $MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['ha
$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
@@ -288,7 +288,7 @@ $MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputP
$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)
diff --git a/old_docs/API_docs_v42/methods/messages_addChatUser.md b/old_docs/API_docs_v42/methods/messages_addChatUser.md
index df2cb1a5..6b652bea 100644
--- a/old_docs/API_docs_v42/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v42/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v42/methods/messages_deleteChatUser.md b/old_docs/API_docs_v42/methods/messages_deleteChatUser.md
index 6895649f..4afb209f 100644
--- a/old_docs/API_docs_v42/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v42/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v42/methods/messages_editChatAdmin.md b/old_docs/API_docs_v42/methods/messages_editChatAdmin.md
index 74f5a39f..67b6702f 100644
--- a/old_docs/API_docs_v42/methods/messages_editChatAdmin.md
+++ b/old_docs/API_docs_v42/methods/messages_editChatAdmin.md
@@ -10,7 +10,7 @@ description: messages.editChatAdmin parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|is\_admin|[Bool](../types/Bool.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => int, 'user_id' => InputUser, 'is_admin' => Bool, ]);
+$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]);
```
Or, if you're into Lua:
```
-Bool = messages.editChatAdmin({chat_id=int, user_id=InputUser, is_admin=Bool, })
+Bool = messages.editChatAdmin({chat_id=InputPeer, user_id=InputUser, is_admin=Bool, })
```
diff --git a/old_docs/API_docs_v42/methods/messages_editChatPhoto.md b/old_docs/API_docs_v42/methods/messages_editChatPhoto.md
index 0396c74b..fa3b32db 100644
--- a/old_docs/API_docs_v42/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v42/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v42/methods/messages_editChatTitle.md b/old_docs/API_docs_v42/methods/messages_editChatTitle.md
index fabe9c87..8825380e 100644
--- a/old_docs/API_docs_v42/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v42/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=int, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v42/methods/messages_exportChatInvite.md b/old_docs/API_docs_v42/methods/messages_exportChatInvite.md
index b96e7498..2e3afe8d 100644
--- a/old_docs/API_docs_v42/methods/messages_exportChatInvite.md
+++ b/old_docs/API_docs_v42/methods/messages_exportChatInvite.md
@@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => int, ]);
+$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ExportedChatInvite = messages.exportChatInvite({chat_id=int, })
+ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v42/methods/messages_getFullChat.md b/old_docs/API_docs_v42/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v42/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v42/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v42/methods/messages_migrateChat.md b/old_docs/API_docs_v42/methods/messages_migrateChat.md
index 731dc904..b97e2a77 100644
--- a/old_docs/API_docs_v42/methods/messages_migrateChat.md
+++ b/old_docs/API_docs_v42/methods/messages_migrateChat.md
@@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [Updates](../types/Updates.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->migrateChat(['chat_id' => int, ]);
+$Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Updates = messages.migrateChat({chat_id=int, })
+Updates = messages.migrateChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md
index 05d74e5a..dfacb2dc 100644
--- a/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md
+++ b/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md
@@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|enabled|[Bool](../types/Bool.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => int, 'enabled' => Bool, ]);
+$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]);
```
Or, if you're into Lua:
```
-Updates = messages.toggleChatAdmins({chat_id=int, enabled=Bool, })
+Updates = messages.toggleChatAdmins({chat_id=InputPeer, enabled=Bool, })
```
diff --git a/old_docs/API_docs_v44/methods/README.md b/old_docs/API_docs_v44/methods/README.md
index 91963f7d..884fafb8 100644
--- a/old_docs/API_docs_v44/methods/README.md
+++ b/old_docs/API_docs_v44/methods/README.md
@@ -202,13 +202,13 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -216,13 +216,13 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
+$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
+$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -238,7 +238,7 @@ $MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset_date' =
$MadelineProto->[messages->getDocumentByHash](messages_getDocumentByHash.md)(\['sha256' => [bytes](../types/bytes.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), \]) === [$Document](../types/Document.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
@@ -256,7 +256,7 @@ $MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['ha
$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
@@ -298,7 +298,7 @@ $MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputP
$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)
diff --git a/old_docs/API_docs_v44/methods/messages_addChatUser.md b/old_docs/API_docs_v44/methods/messages_addChatUser.md
index df2cb1a5..6b652bea 100644
--- a/old_docs/API_docs_v44/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v44/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v44/methods/messages_deleteChatUser.md b/old_docs/API_docs_v44/methods/messages_deleteChatUser.md
index 6895649f..4afb209f 100644
--- a/old_docs/API_docs_v44/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v44/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v44/methods/messages_editChatAdmin.md b/old_docs/API_docs_v44/methods/messages_editChatAdmin.md
index 74f5a39f..67b6702f 100644
--- a/old_docs/API_docs_v44/methods/messages_editChatAdmin.md
+++ b/old_docs/API_docs_v44/methods/messages_editChatAdmin.md
@@ -10,7 +10,7 @@ description: messages.editChatAdmin parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|is\_admin|[Bool](../types/Bool.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => int, 'user_id' => InputUser, 'is_admin' => Bool, ]);
+$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]);
```
Or, if you're into Lua:
```
-Bool = messages.editChatAdmin({chat_id=int, user_id=InputUser, is_admin=Bool, })
+Bool = messages.editChatAdmin({chat_id=InputPeer, user_id=InputUser, is_admin=Bool, })
```
diff --git a/old_docs/API_docs_v44/methods/messages_editChatPhoto.md b/old_docs/API_docs_v44/methods/messages_editChatPhoto.md
index 0396c74b..fa3b32db 100644
--- a/old_docs/API_docs_v44/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v44/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v44/methods/messages_editChatTitle.md b/old_docs/API_docs_v44/methods/messages_editChatTitle.md
index fabe9c87..8825380e 100644
--- a/old_docs/API_docs_v44/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v44/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=int, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v44/methods/messages_exportChatInvite.md b/old_docs/API_docs_v44/methods/messages_exportChatInvite.md
index b96e7498..2e3afe8d 100644
--- a/old_docs/API_docs_v44/methods/messages_exportChatInvite.md
+++ b/old_docs/API_docs_v44/methods/messages_exportChatInvite.md
@@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => int, ]);
+$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ExportedChatInvite = messages.exportChatInvite({chat_id=int, })
+ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v44/methods/messages_getFullChat.md b/old_docs/API_docs_v44/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v44/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v44/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v44/methods/messages_migrateChat.md b/old_docs/API_docs_v44/methods/messages_migrateChat.md
index 731dc904..b97e2a77 100644
--- a/old_docs/API_docs_v44/methods/messages_migrateChat.md
+++ b/old_docs/API_docs_v44/methods/messages_migrateChat.md
@@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [Updates](../types/Updates.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->migrateChat(['chat_id' => int, ]);
+$Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Updates = messages.migrateChat({chat_id=int, })
+Updates = messages.migrateChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md
index 05d74e5a..dfacb2dc 100644
--- a/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md
+++ b/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md
@@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|enabled|[Bool](../types/Bool.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => int, 'enabled' => Bool, ]);
+$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]);
```
Or, if you're into Lua:
```
-Updates = messages.toggleChatAdmins({chat_id=int, enabled=Bool, })
+Updates = messages.toggleChatAdmins({chat_id=InputPeer, enabled=Bool, })
```
diff --git a/old_docs/API_docs_v45/methods/README.md b/old_docs/API_docs_v45/methods/README.md
index 19efd4e2..c8994b19 100644
--- a/old_docs/API_docs_v45/methods/README.md
+++ b/old_docs/API_docs_v45/methods/README.md
@@ -202,13 +202,13 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -216,13 +216,13 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
+$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
+$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -238,7 +238,7 @@ $MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset_date' =
$MadelineProto->[messages->getDocumentByHash](messages_getDocumentByHash.md)(\['sha256' => [bytes](../types/bytes.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), \]) === [$Document](../types/Document.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
@@ -260,7 +260,7 @@ $MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['ha
$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
@@ -308,7 +308,7 @@ $MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputP
$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)
diff --git a/old_docs/API_docs_v45/methods/messages_addChatUser.md b/old_docs/API_docs_v45/methods/messages_addChatUser.md
index df2cb1a5..6b652bea 100644
--- a/old_docs/API_docs_v45/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v45/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v45/methods/messages_deleteChatUser.md b/old_docs/API_docs_v45/methods/messages_deleteChatUser.md
index 6895649f..4afb209f 100644
--- a/old_docs/API_docs_v45/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v45/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v45/methods/messages_editChatAdmin.md b/old_docs/API_docs_v45/methods/messages_editChatAdmin.md
index 74f5a39f..67b6702f 100644
--- a/old_docs/API_docs_v45/methods/messages_editChatAdmin.md
+++ b/old_docs/API_docs_v45/methods/messages_editChatAdmin.md
@@ -10,7 +10,7 @@ description: messages.editChatAdmin parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|is\_admin|[Bool](../types/Bool.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => int, 'user_id' => InputUser, 'is_admin' => Bool, ]);
+$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]);
```
Or, if you're into Lua:
```
-Bool = messages.editChatAdmin({chat_id=int, user_id=InputUser, is_admin=Bool, })
+Bool = messages.editChatAdmin({chat_id=InputPeer, user_id=InputUser, is_admin=Bool, })
```
diff --git a/old_docs/API_docs_v45/methods/messages_editChatPhoto.md b/old_docs/API_docs_v45/methods/messages_editChatPhoto.md
index 0396c74b..fa3b32db 100644
--- a/old_docs/API_docs_v45/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v45/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v45/methods/messages_editChatTitle.md b/old_docs/API_docs_v45/methods/messages_editChatTitle.md
index fabe9c87..8825380e 100644
--- a/old_docs/API_docs_v45/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v45/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=int, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v45/methods/messages_exportChatInvite.md b/old_docs/API_docs_v45/methods/messages_exportChatInvite.md
index b96e7498..2e3afe8d 100644
--- a/old_docs/API_docs_v45/methods/messages_exportChatInvite.md
+++ b/old_docs/API_docs_v45/methods/messages_exportChatInvite.md
@@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => int, ]);
+$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ExportedChatInvite = messages.exportChatInvite({chat_id=int, })
+ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v45/methods/messages_getFullChat.md b/old_docs/API_docs_v45/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v45/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v45/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v45/methods/messages_migrateChat.md b/old_docs/API_docs_v45/methods/messages_migrateChat.md
index 731dc904..b97e2a77 100644
--- a/old_docs/API_docs_v45/methods/messages_migrateChat.md
+++ b/old_docs/API_docs_v45/methods/messages_migrateChat.md
@@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [Updates](../types/Updates.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->migrateChat(['chat_id' => int, ]);
+$Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Updates = messages.migrateChat({chat_id=int, })
+Updates = messages.migrateChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md
index 05d74e5a..dfacb2dc 100644
--- a/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md
+++ b/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md
@@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|enabled|[Bool](../types/Bool.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => int, 'enabled' => Bool, ]);
+$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]);
```
Or, if you're into Lua:
```
-Updates = messages.toggleChatAdmins({chat_id=int, enabled=Bool, })
+Updates = messages.toggleChatAdmins({chat_id=InputPeer, enabled=Bool, })
```
diff --git a/old_docs/API_docs_v46/methods/README.md b/old_docs/API_docs_v46/methods/README.md
index 19efd4e2..c8994b19 100644
--- a/old_docs/API_docs_v46/methods/README.md
+++ b/old_docs/API_docs_v46/methods/README.md
@@ -202,13 +202,13 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -216,13 +216,13 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
+$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
+$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -238,7 +238,7 @@ $MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset_date' =
$MadelineProto->[messages->getDocumentByHash](messages_getDocumentByHash.md)(\['sha256' => [bytes](../types/bytes.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), \]) === [$Document](../types/Document.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
@@ -260,7 +260,7 @@ $MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['ha
$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
@@ -308,7 +308,7 @@ $MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputP
$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)
diff --git a/old_docs/API_docs_v46/methods/messages_addChatUser.md b/old_docs/API_docs_v46/methods/messages_addChatUser.md
index df2cb1a5..6b652bea 100644
--- a/old_docs/API_docs_v46/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v46/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v46/methods/messages_deleteChatUser.md b/old_docs/API_docs_v46/methods/messages_deleteChatUser.md
index 6895649f..4afb209f 100644
--- a/old_docs/API_docs_v46/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v46/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v46/methods/messages_editChatAdmin.md b/old_docs/API_docs_v46/methods/messages_editChatAdmin.md
index 74f5a39f..67b6702f 100644
--- a/old_docs/API_docs_v46/methods/messages_editChatAdmin.md
+++ b/old_docs/API_docs_v46/methods/messages_editChatAdmin.md
@@ -10,7 +10,7 @@ description: messages.editChatAdmin parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|is\_admin|[Bool](../types/Bool.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => int, 'user_id' => InputUser, 'is_admin' => Bool, ]);
+$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]);
```
Or, if you're into Lua:
```
-Bool = messages.editChatAdmin({chat_id=int, user_id=InputUser, is_admin=Bool, })
+Bool = messages.editChatAdmin({chat_id=InputPeer, user_id=InputUser, is_admin=Bool, })
```
diff --git a/old_docs/API_docs_v46/methods/messages_editChatPhoto.md b/old_docs/API_docs_v46/methods/messages_editChatPhoto.md
index 0396c74b..fa3b32db 100644
--- a/old_docs/API_docs_v46/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v46/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v46/methods/messages_editChatTitle.md b/old_docs/API_docs_v46/methods/messages_editChatTitle.md
index fabe9c87..8825380e 100644
--- a/old_docs/API_docs_v46/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v46/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=int, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v46/methods/messages_exportChatInvite.md b/old_docs/API_docs_v46/methods/messages_exportChatInvite.md
index b96e7498..2e3afe8d 100644
--- a/old_docs/API_docs_v46/methods/messages_exportChatInvite.md
+++ b/old_docs/API_docs_v46/methods/messages_exportChatInvite.md
@@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => int, ]);
+$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ExportedChatInvite = messages.exportChatInvite({chat_id=int, })
+ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v46/methods/messages_getFullChat.md b/old_docs/API_docs_v46/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v46/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v46/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v46/methods/messages_migrateChat.md b/old_docs/API_docs_v46/methods/messages_migrateChat.md
index 731dc904..b97e2a77 100644
--- a/old_docs/API_docs_v46/methods/messages_migrateChat.md
+++ b/old_docs/API_docs_v46/methods/messages_migrateChat.md
@@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [Updates](../types/Updates.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->migrateChat(['chat_id' => int, ]);
+$Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Updates = messages.migrateChat({chat_id=int, })
+Updates = messages.migrateChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md
index 05d74e5a..dfacb2dc 100644
--- a/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md
+++ b/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md
@@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|enabled|[Bool](../types/Bool.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => int, 'enabled' => Bool, ]);
+$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]);
```
Or, if you're into Lua:
```
-Updates = messages.toggleChatAdmins({chat_id=int, enabled=Bool, })
+Updates = messages.toggleChatAdmins({chat_id=InputPeer, enabled=Bool, })
```
diff --git a/old_docs/API_docs_v51/methods/README.md b/old_docs/API_docs_v51/methods/README.md
index 372db1c7..5919d163 100644
--- a/old_docs/API_docs_v51/methods/README.md
+++ b/old_docs/API_docs_v51/methods/README.md
@@ -208,13 +208,13 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -222,17 +222,17 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
+$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md)
$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
+$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -250,7 +250,7 @@ $MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset_date' =
$MadelineProto->[messages->getDocumentByHash](messages_getDocumentByHash.md)(\['sha256' => [bytes](../types/bytes.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), \]) === [$Document](../types/Document.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'offset_date' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
@@ -278,7 +278,7 @@ $MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['ha
$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
@@ -328,7 +328,7 @@ $MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputP
$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)
diff --git a/old_docs/API_docs_v51/methods/messages_addChatUser.md b/old_docs/API_docs_v51/methods/messages_addChatUser.md
index df2cb1a5..6b652bea 100644
--- a/old_docs/API_docs_v51/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v51/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v51/methods/messages_deleteChatUser.md b/old_docs/API_docs_v51/methods/messages_deleteChatUser.md
index 6895649f..4afb209f 100644
--- a/old_docs/API_docs_v51/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v51/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v51/methods/messages_editChatAdmin.md b/old_docs/API_docs_v51/methods/messages_editChatAdmin.md
index 74f5a39f..67b6702f 100644
--- a/old_docs/API_docs_v51/methods/messages_editChatAdmin.md
+++ b/old_docs/API_docs_v51/methods/messages_editChatAdmin.md
@@ -10,7 +10,7 @@ description: messages.editChatAdmin parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|is\_admin|[Bool](../types/Bool.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => int, 'user_id' => InputUser, 'is_admin' => Bool, ]);
+$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]);
```
Or, if you're into Lua:
```
-Bool = messages.editChatAdmin({chat_id=int, user_id=InputUser, is_admin=Bool, })
+Bool = messages.editChatAdmin({chat_id=InputPeer, user_id=InputUser, is_admin=Bool, })
```
diff --git a/old_docs/API_docs_v51/methods/messages_editChatPhoto.md b/old_docs/API_docs_v51/methods/messages_editChatPhoto.md
index 0396c74b..fa3b32db 100644
--- a/old_docs/API_docs_v51/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v51/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v51/methods/messages_editChatTitle.md b/old_docs/API_docs_v51/methods/messages_editChatTitle.md
index fabe9c87..8825380e 100644
--- a/old_docs/API_docs_v51/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v51/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=int, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v51/methods/messages_exportChatInvite.md b/old_docs/API_docs_v51/methods/messages_exportChatInvite.md
index b96e7498..2e3afe8d 100644
--- a/old_docs/API_docs_v51/methods/messages_exportChatInvite.md
+++ b/old_docs/API_docs_v51/methods/messages_exportChatInvite.md
@@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => int, ]);
+$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ExportedChatInvite = messages.exportChatInvite({chat_id=int, })
+ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v51/methods/messages_getFullChat.md b/old_docs/API_docs_v51/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v51/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v51/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v51/methods/messages_migrateChat.md b/old_docs/API_docs_v51/methods/messages_migrateChat.md
index 731dc904..b97e2a77 100644
--- a/old_docs/API_docs_v51/methods/messages_migrateChat.md
+++ b/old_docs/API_docs_v51/methods/messages_migrateChat.md
@@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [Updates](../types/Updates.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->migrateChat(['chat_id' => int, ]);
+$Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Updates = messages.migrateChat({chat_id=int, })
+Updates = messages.migrateChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md
index 05d74e5a..dfacb2dc 100644
--- a/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md
+++ b/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md
@@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|enabled|[Bool](../types/Bool.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => int, 'enabled' => Bool, ]);
+$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]);
```
Or, if you're into Lua:
```
-Updates = messages.toggleChatAdmins({chat_id=int, enabled=Bool, })
+Updates = messages.toggleChatAdmins({chat_id=InputPeer, enabled=Bool, })
```
diff --git a/old_docs/API_docs_v53/methods/README.md b/old_docs/API_docs_v53/methods/README.md
index d4e2c4b1..df6a20e6 100644
--- a/old_docs/API_docs_v53/methods/README.md
+++ b/old_docs/API_docs_v53/methods/README.md
@@ -206,13 +206,13 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -220,17 +220,17 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
+$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md)
$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
+$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -250,7 +250,7 @@ $MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset_date' =
$MadelineProto->[messages->getDocumentByHash](messages_getDocumentByHash.md)(\['sha256' => [bytes](../types/bytes.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), \]) === [$Document](../types/Document.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'offset_date' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
@@ -280,7 +280,7 @@ $MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['ha
$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
@@ -332,7 +332,7 @@ $MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputP
$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)
diff --git a/old_docs/API_docs_v53/methods/messages_addChatUser.md b/old_docs/API_docs_v53/methods/messages_addChatUser.md
index df2cb1a5..6b652bea 100644
--- a/old_docs/API_docs_v53/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v53/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v53/methods/messages_deleteChatUser.md b/old_docs/API_docs_v53/methods/messages_deleteChatUser.md
index 6895649f..4afb209f 100644
--- a/old_docs/API_docs_v53/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v53/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v53/methods/messages_editChatAdmin.md b/old_docs/API_docs_v53/methods/messages_editChatAdmin.md
index 74f5a39f..67b6702f 100644
--- a/old_docs/API_docs_v53/methods/messages_editChatAdmin.md
+++ b/old_docs/API_docs_v53/methods/messages_editChatAdmin.md
@@ -10,7 +10,7 @@ description: messages.editChatAdmin parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|is\_admin|[Bool](../types/Bool.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => int, 'user_id' => InputUser, 'is_admin' => Bool, ]);
+$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]);
```
Or, if you're into Lua:
```
-Bool = messages.editChatAdmin({chat_id=int, user_id=InputUser, is_admin=Bool, })
+Bool = messages.editChatAdmin({chat_id=InputPeer, user_id=InputUser, is_admin=Bool, })
```
diff --git a/old_docs/API_docs_v53/methods/messages_editChatPhoto.md b/old_docs/API_docs_v53/methods/messages_editChatPhoto.md
index 0396c74b..fa3b32db 100644
--- a/old_docs/API_docs_v53/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v53/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v53/methods/messages_editChatTitle.md b/old_docs/API_docs_v53/methods/messages_editChatTitle.md
index fabe9c87..8825380e 100644
--- a/old_docs/API_docs_v53/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v53/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=int, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v53/methods/messages_exportChatInvite.md b/old_docs/API_docs_v53/methods/messages_exportChatInvite.md
index b96e7498..2e3afe8d 100644
--- a/old_docs/API_docs_v53/methods/messages_exportChatInvite.md
+++ b/old_docs/API_docs_v53/methods/messages_exportChatInvite.md
@@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => int, ]);
+$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ExportedChatInvite = messages.exportChatInvite({chat_id=int, })
+ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v53/methods/messages_getFullChat.md b/old_docs/API_docs_v53/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v53/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v53/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v53/methods/messages_migrateChat.md b/old_docs/API_docs_v53/methods/messages_migrateChat.md
index 731dc904..b97e2a77 100644
--- a/old_docs/API_docs_v53/methods/messages_migrateChat.md
+++ b/old_docs/API_docs_v53/methods/messages_migrateChat.md
@@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [Updates](../types/Updates.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->migrateChat(['chat_id' => int, ]);
+$Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Updates = messages.migrateChat({chat_id=int, })
+Updates = messages.migrateChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md
index 05d74e5a..dfacb2dc 100644
--- a/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md
+++ b/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md
@@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|enabled|[Bool](../types/Bool.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => int, 'enabled' => Bool, ]);
+$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]);
```
Or, if you're into Lua:
```
-Updates = messages.toggleChatAdmins({chat_id=int, enabled=Bool, })
+Updates = messages.toggleChatAdmins({chat_id=InputPeer, enabled=Bool, })
```
diff --git a/old_docs/API_docs_v55/methods/README.md b/old_docs/API_docs_v55/methods/README.md
index ccab7efe..238d115e 100644
--- a/old_docs/API_docs_v55/methods/README.md
+++ b/old_docs/API_docs_v55/methods/README.md
@@ -210,7 +210,7 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)
@@ -218,7 +218,7 @@ $MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -226,17 +226,17 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
+$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md)
$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
+$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -260,7 +260,7 @@ $MadelineProto->[messages->getDocumentByHash](messages_getDocumentByHash.md)(\['
$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'offset_date' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)
@@ -294,7 +294,7 @@ $MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['ha
$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md)
-$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
@@ -350,7 +350,7 @@ $MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputP
$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)
diff --git a/old_docs/API_docs_v55/methods/messages_addChatUser.md b/old_docs/API_docs_v55/methods/messages_addChatUser.md
index df2cb1a5..6b652bea 100644
--- a/old_docs/API_docs_v55/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v55/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v55/methods/messages_deleteChatUser.md b/old_docs/API_docs_v55/methods/messages_deleteChatUser.md
index 6895649f..4afb209f 100644
--- a/old_docs/API_docs_v55/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v55/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v55/methods/messages_editChatAdmin.md b/old_docs/API_docs_v55/methods/messages_editChatAdmin.md
index 74f5a39f..67b6702f 100644
--- a/old_docs/API_docs_v55/methods/messages_editChatAdmin.md
+++ b/old_docs/API_docs_v55/methods/messages_editChatAdmin.md
@@ -10,7 +10,7 @@ description: messages.editChatAdmin parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|is\_admin|[Bool](../types/Bool.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => int, 'user_id' => InputUser, 'is_admin' => Bool, ]);
+$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]);
```
Or, if you're into Lua:
```
-Bool = messages.editChatAdmin({chat_id=int, user_id=InputUser, is_admin=Bool, })
+Bool = messages.editChatAdmin({chat_id=InputPeer, user_id=InputUser, is_admin=Bool, })
```
diff --git a/old_docs/API_docs_v55/methods/messages_editChatPhoto.md b/old_docs/API_docs_v55/methods/messages_editChatPhoto.md
index 0396c74b..fa3b32db 100644
--- a/old_docs/API_docs_v55/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v55/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v55/methods/messages_editChatTitle.md b/old_docs/API_docs_v55/methods/messages_editChatTitle.md
index fabe9c87..8825380e 100644
--- a/old_docs/API_docs_v55/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v55/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=int, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v55/methods/messages_exportChatInvite.md b/old_docs/API_docs_v55/methods/messages_exportChatInvite.md
index b96e7498..2e3afe8d 100644
--- a/old_docs/API_docs_v55/methods/messages_exportChatInvite.md
+++ b/old_docs/API_docs_v55/methods/messages_exportChatInvite.md
@@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => int, ]);
+$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ExportedChatInvite = messages.exportChatInvite({chat_id=int, })
+ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v55/methods/messages_getFullChat.md b/old_docs/API_docs_v55/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v55/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v55/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v55/methods/messages_migrateChat.md b/old_docs/API_docs_v55/methods/messages_migrateChat.md
index 731dc904..b97e2a77 100644
--- a/old_docs/API_docs_v55/methods/messages_migrateChat.md
+++ b/old_docs/API_docs_v55/methods/messages_migrateChat.md
@@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [Updates](../types/Updates.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->migrateChat(['chat_id' => int, ]);
+$Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Updates = messages.migrateChat({chat_id=int, })
+Updates = messages.migrateChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md
index 05d74e5a..dfacb2dc 100644
--- a/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md
+++ b/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md
@@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|enabled|[Bool](../types/Bool.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => int, 'enabled' => Bool, ]);
+$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]);
```
Or, if you're into Lua:
```
-Updates = messages.toggleChatAdmins({chat_id=int, enabled=Bool, })
+Updates = messages.toggleChatAdmins({chat_id=InputPeer, enabled=Bool, })
```
diff --git a/old_docs/API_docs_v57/methods/README.md b/old_docs/API_docs_v57/methods/README.md
index b7c303da..99d44223 100644
--- a/old_docs/API_docs_v57/methods/README.md
+++ b/old_docs/API_docs_v57/methods/README.md
@@ -214,7 +214,7 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)
@@ -222,7 +222,7 @@ $MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -230,17 +230,17 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' =>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
+$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md)
$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
+$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -266,7 +266,7 @@ $MadelineProto->[messages->getDocumentByHash](messages_getDocumentByHash.md)(\['
$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md)
@@ -302,7 +302,7 @@ $MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['ha
$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md)
-$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
@@ -360,7 +360,7 @@ $MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputP
$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)
diff --git a/old_docs/API_docs_v57/methods/messages_addChatUser.md b/old_docs/API_docs_v57/methods/messages_addChatUser.md
index df2cb1a5..6b652bea 100644
--- a/old_docs/API_docs_v57/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v57/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v57/methods/messages_deleteChatUser.md b/old_docs/API_docs_v57/methods/messages_deleteChatUser.md
index 6895649f..4afb209f 100644
--- a/old_docs/API_docs_v57/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v57/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v57/methods/messages_editChatAdmin.md b/old_docs/API_docs_v57/methods/messages_editChatAdmin.md
index 74f5a39f..67b6702f 100644
--- a/old_docs/API_docs_v57/methods/messages_editChatAdmin.md
+++ b/old_docs/API_docs_v57/methods/messages_editChatAdmin.md
@@ -10,7 +10,7 @@ description: messages.editChatAdmin parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|is\_admin|[Bool](../types/Bool.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => int, 'user_id' => InputUser, 'is_admin' => Bool, ]);
+$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]);
```
Or, if you're into Lua:
```
-Bool = messages.editChatAdmin({chat_id=int, user_id=InputUser, is_admin=Bool, })
+Bool = messages.editChatAdmin({chat_id=InputPeer, user_id=InputUser, is_admin=Bool, })
```
diff --git a/old_docs/API_docs_v57/methods/messages_editChatPhoto.md b/old_docs/API_docs_v57/methods/messages_editChatPhoto.md
index 0396c74b..fa3b32db 100644
--- a/old_docs/API_docs_v57/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v57/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v57/methods/messages_editChatTitle.md b/old_docs/API_docs_v57/methods/messages_editChatTitle.md
index fabe9c87..8825380e 100644
--- a/old_docs/API_docs_v57/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v57/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=int, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v57/methods/messages_exportChatInvite.md b/old_docs/API_docs_v57/methods/messages_exportChatInvite.md
index b96e7498..2e3afe8d 100644
--- a/old_docs/API_docs_v57/methods/messages_exportChatInvite.md
+++ b/old_docs/API_docs_v57/methods/messages_exportChatInvite.md
@@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => int, ]);
+$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ExportedChatInvite = messages.exportChatInvite({chat_id=int, })
+ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v57/methods/messages_getFullChat.md b/old_docs/API_docs_v57/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v57/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v57/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v57/methods/messages_migrateChat.md b/old_docs/API_docs_v57/methods/messages_migrateChat.md
index 731dc904..b97e2a77 100644
--- a/old_docs/API_docs_v57/methods/messages_migrateChat.md
+++ b/old_docs/API_docs_v57/methods/messages_migrateChat.md
@@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [Updates](../types/Updates.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->migrateChat(['chat_id' => int, ]);
+$Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Updates = messages.migrateChat({chat_id=int, })
+Updates = messages.migrateChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md
index 05d74e5a..dfacb2dc 100644
--- a/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md
+++ b/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md
@@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|enabled|[Bool](../types/Bool.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => int, 'enabled' => Bool, ]);
+$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]);
```
Or, if you're into Lua:
```
-Updates = messages.toggleChatAdmins({chat_id=int, enabled=Bool, })
+Updates = messages.toggleChatAdmins({chat_id=InputPeer, enabled=Bool, })
```
diff --git a/old_docs/API_docs_v62/methods/README.md b/old_docs/API_docs_v62/methods/README.md
index e2eda9f7..1c4ef1fa 100644
--- a/old_docs/API_docs_v62/methods/README.md
+++ b/old_docs/API_docs_v62/methods/README.md
@@ -219,7 +219,7 @@ $MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pend
***
$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)
-$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)
@@ -227,7 +227,7 @@ $MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)
@@ -235,17 +235,17 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
+$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)
-$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md)
$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
+$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
@@ -275,7 +275,7 @@ $MadelineProto->[messages->getDocumentByHash](messages_getDocumentByHash.md)(\['
$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md)
-$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
+$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)
$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md)
@@ -315,7 +315,7 @@ $MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['ha
$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md)
-$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)
@@ -377,7 +377,7 @@ $MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputP
$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)
-$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
+$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)
$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md)
diff --git a/old_docs/API_docs_v62/methods/messages_addChatUser.md b/old_docs/API_docs_v62/methods/messages_addChatUser.md
index df2cb1a5..6b652bea 100644
--- a/old_docs/API_docs_v62/methods/messages_addChatUser.md
+++ b/old_docs/API_docs_v62/methods/messages_addChatUser.md
@@ -10,7 +10,7 @@ description: messages.addChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|fwd\_limit|[int](../types/int.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->addChatUser(['chat_id' => int, 'user_id' => InputUser, 'fwd_limit' => int, ]);
+$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]);
```
Or, if you're into Lua:
```
-Updates = messages.addChatUser({chat_id=int, user_id=InputUser, fwd_limit=int, })
+Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, })
```
diff --git a/old_docs/API_docs_v62/methods/messages_deleteChatUser.md b/old_docs/API_docs_v62/methods/messages_deleteChatUser.md
index 6895649f..4afb209f 100644
--- a/old_docs/API_docs_v62/methods/messages_deleteChatUser.md
+++ b/old_docs/API_docs_v62/methods/messages_deleteChatUser.md
@@ -10,7 +10,7 @@ description: messages.deleteChatUser parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => int, 'user_id' => InputUser, ]);
+$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]);
```
Or, if you're into Lua:
```
-Updates = messages.deleteChatUser({chat_id=int, user_id=InputUser, })
+Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, })
```
diff --git a/old_docs/API_docs_v62/methods/messages_editChatAdmin.md b/old_docs/API_docs_v62/methods/messages_editChatAdmin.md
index 74f5a39f..67b6702f 100644
--- a/old_docs/API_docs_v62/methods/messages_editChatAdmin.md
+++ b/old_docs/API_docs_v62/methods/messages_editChatAdmin.md
@@ -10,7 +10,7 @@ description: messages.editChatAdmin parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|is\_admin|[Bool](../types/Bool.md) | Yes|
@@ -35,12 +35,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => int, 'user_id' => InputUser, 'is_admin' => Bool, ]);
+$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]);
```
Or, if you're into Lua:
```
-Bool = messages.editChatAdmin({chat_id=int, user_id=InputUser, is_admin=Bool, })
+Bool = messages.editChatAdmin({chat_id=InputPeer, user_id=InputUser, is_admin=Bool, })
```
diff --git a/old_docs/API_docs_v62/methods/messages_editChatPhoto.md b/old_docs/API_docs_v62/methods/messages_editChatPhoto.md
index 0396c74b..fa3b32db 100644
--- a/old_docs/API_docs_v62/methods/messages_editChatPhoto.md
+++ b/old_docs/API_docs_v62/methods/messages_editChatPhoto.md
@@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => int, 'photo' => InputChatPhoto, ]);
+$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatPhoto({chat_id=int, photo=InputChatPhoto, })
+Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, })
```
diff --git a/old_docs/API_docs_v62/methods/messages_editChatTitle.md b/old_docs/API_docs_v62/methods/messages_editChatTitle.md
index fabe9c87..8825380e 100644
--- a/old_docs/API_docs_v62/methods/messages_editChatTitle.md
+++ b/old_docs/API_docs_v62/methods/messages_editChatTitle.md
@@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|title|[string](../types/string.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => int, 'title' => string, ]);
+$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => string, ]);
```
Or, if you're into Lua:
```
-Updates = messages.editChatTitle({chat_id=int, title=string, })
+Updates = messages.editChatTitle({chat_id=InputPeer, title=string, })
```
diff --git a/old_docs/API_docs_v62/methods/messages_exportChatInvite.md b/old_docs/API_docs_v62/methods/messages_exportChatInvite.md
index b96e7498..2e3afe8d 100644
--- a/old_docs/API_docs_v62/methods/messages_exportChatInvite.md
+++ b/old_docs/API_docs_v62/methods/messages_exportChatInvite.md
@@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => int, ]);
+$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-ExportedChatInvite = messages.exportChatInvite({chat_id=int, })
+ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v62/methods/messages_getFullChat.md b/old_docs/API_docs_v62/methods/messages_getFullChat.md
index 10d938ae..3de40295 100644
--- a/old_docs/API_docs_v62/methods/messages_getFullChat.md
+++ b/old_docs/API_docs_v62/methods/messages_getFullChat.md
@@ -10,7 +10,7 @@ description: messages.getFullChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => int, ]);
+$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-messages_ChatFull = messages.getFullChat({chat_id=int, })
+messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v62/methods/messages_migrateChat.md b/old_docs/API_docs_v62/methods/messages_migrateChat.md
index 731dc904..b97e2a77 100644
--- a/old_docs/API_docs_v62/methods/messages_migrateChat.md
+++ b/old_docs/API_docs_v62/methods/messages_migrateChat.md
@@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [Updates](../types/Updates.md)
@@ -33,12 +33,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->migrateChat(['chat_id' => int, ]);
+$Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]);
```
Or, if you're into Lua:
```
-Updates = messages.migrateChat({chat_id=int, })
+Updates = messages.migrateChat({chat_id=InputPeer, })
```
diff --git a/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md
index 05d74e5a..dfacb2dc 100644
--- a/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md
+++ b/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md
@@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example
| Name | Type | Required |
|----------|:-------------:|---------:|
-|chat\_id|[int](../types/int.md) | Yes|
+|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
|enabled|[Bool](../types/Bool.md) | Yes|
@@ -34,12 +34,12 @@ if (isset($number)) { // Login as a user
$MadelineProto->complete_phone_login($code);
}
-$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => int, 'enabled' => Bool, ]);
+$Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]);
```
Or, if you're into Lua:
```
-Updates = messages.toggleChatAdmins({chat_id=int, enabled=Bool, })
+Updates = messages.toggleChatAdmins({chat_id=InputPeer, enabled=Bool, })
```
diff --git a/src/danog/MadelineProto/DocsBuilder.php b/src/danog/MadelineProto/DocsBuilder.php
index ac543459..1621d77c 100755
--- a/src/danog/MadelineProto/DocsBuilder.php
+++ b/src/danog/MadelineProto/DocsBuilder.php
@@ -92,6 +92,9 @@ description: '.$this->settings['description'].'
$param['name'] = 'message';
$param['type'] = 'DecryptedMessage';
}
+ if ($param['name'] === 'chat_id' && $rmethod !== 'messages.discardEncryption') {
+ $param['type'] = 'InputPeer';
+ }
$stype = 'type';
$link_type = 'types';
if (isset($param['subtype'])) {
@@ -145,6 +148,9 @@ description: '.$this->settings['description'].'
$param['name'] = 'message';
$param['type'] = 'DecryptedMessage';
}
+ if ($param['name'] === 'chat_id' && $rmethod !== 'messages.discardEncryption') {
+ $param['type'] = 'InputPeer';
+ }
$ptype = str_replace('.', '_', $param[isset($param['subtype']) ? 'subtype' : 'type']);
switch ($ptype) {
diff --git a/src/danog/MadelineProto/MTProtoTools/CallHandler.php b/src/danog/MadelineProto/MTProtoTools/CallHandler.php
index 9e5eb602..c57b269a 100644
--- a/src/danog/MadelineProto/MTProtoTools/CallHandler.php
+++ b/src/danog/MadelineProto/MTProtoTools/CallHandler.php
@@ -32,6 +32,11 @@ trait CallHandler
if (isset($args['ping_id']) && is_int($args['ping_id'])) {
$args['ping_id'] = \danog\PHP\Struct::pack('get_info($args['chat_id']);
+ if ($res['type'] !== 'chat') throw new \danog\MadelineProto\Exception('chat_id is not a chat id!');
+ $args['chat_id'] = $res['chat_id'];
+ }
$serialized = $this->serialize_method($method, $args);
$content_related = $this->content_related($method);
$type = $this->methods->find_by_method($method)['type'];