chat_id can now be any peer object or a bot API id

This commit is contained in:
Daniil Gentili 2017-04-11 10:09:20 +02:00
parent 796d8ff14b
commit 23f2550568
202 changed files with 735 additions and 724 deletions

View File

@ -234,7 +234,7 @@ $MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pend
***
<br><br>$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)<a name="messages_acceptEncryption"></a>
$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)<a name="messages_addChatUser"></a>
$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)<a name="messages_addChatUser"></a>
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)<a name="messages_checkChatInvite"></a>
@ -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)<a name="messages_createChat"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)<a name="messages_deleteChatUser"></a>
$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)<a name="messages_deleteHistory"></a>
@ -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)<a name="messages_discardEncryption"></a>
$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)<a name="messages_editChatAdmin"></a>
$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)<a name="messages_editChatAdmin"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatTitle"></a>
$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)<a name="messages_editInlineBotMessage"></a>
$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)<a name="messages_editMessage"></a>
$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a>
$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a>
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_forwardMessage"></a>
@ -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)<a name="messages_getFeaturedStickers"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$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)<a name="messages_getGameHighScores"></a>
@ -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)<a name="messages_installStickerSet"></a>
$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_migrateChat"></a>
$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)<a name="messages_migrateChat"></a>
$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)<a name="messages_readEncryptedHistory"></a>
@ -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)<a name="messages_startBot"></a>
$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="messages_toggleChatAdmins"></a>
$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="messages_toggleChatAdmins"></a>
$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md)<a name="messages_toggleDialogPin"></a>

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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}, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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}, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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}, })
```

View File

@ -8,16 +8,16 @@ description: List of methods
***
<br><br>$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)<a name="addChatMember"></a>
<br><br>$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)<a name="addChatMember"></a>
***
<br><br>$MadelineProto->[addChatMembers](addChatMembers.md)(\['chat_id' => [long](../types/long.md), 'user_ids' => \[[int](../constructors/int.md)\], \]) === [$Ok](../types/Ok.md)<a name="addChatMembers"></a>
<br><br>$MadelineProto->[addChatMembers](addChatMembers.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_ids' => \[[int](../constructors/int.md)\], \]) === [$Ok](../types/Ok.md)<a name="addChatMembers"></a>
***
<br><br>$MadelineProto->[addRecentSticker](addRecentSticker.md)(\['is_attached' => [Bool](../types/Bool.md), 'sticker' => [InputFile](../types/InputFile.md), \]) === [$Stickers](../types/Stickers.md)<a name="addRecentSticker"></a>
***
<br><br>$MadelineProto->[addRecentlyFoundChat](addRecentlyFoundChat.md)(\['chat_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)<a name="addRecentlyFoundChat"></a>
<br><br>$MadelineProto->[addRecentlyFoundChat](addRecentlyFoundChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md)<a name="addRecentlyFoundChat"></a>
***
<br><br>$MadelineProto->[addSavedAnimation](addSavedAnimation.md)(\['animation' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md)<a name="addSavedAnimation"></a>
@ -47,19 +47,19 @@ description: List of methods
<br><br>$MadelineProto->[changeChannelUsername](changeChannelUsername.md)(\['channel_id' => [int](../types/int.md), 'username' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md)<a name="changeChannelUsername"></a>
***
<br><br>$MadelineProto->[changeChatDraftMessage](changeChatDraftMessage.md)(\['chat_id' => [long](../types/long.md), 'draft_message' => [draftMessage](../types/draftMessage.md), \]) === [$Ok](../types/Ok.md)<a name="changeChatDraftMessage"></a>
<br><br>$MadelineProto->[changeChatDraftMessage](changeChatDraftMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'draft_message' => [draftMessage](../types/draftMessage.md), \]) === [$Ok](../types/Ok.md)<a name="changeChatDraftMessage"></a>
***
<br><br>$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)<a name="changeChatMemberStatus"></a>
<br><br>$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)<a name="changeChatMemberStatus"></a>
***
<br><br>$MadelineProto->[changeChatPhoto](changeChatPhoto.md)(\['chat_id' => [long](../types/long.md), 'photo' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md)<a name="changeChatPhoto"></a>
<br><br>$MadelineProto->[changeChatPhoto](changeChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md)<a name="changeChatPhoto"></a>
***
<br><br>$MadelineProto->[changeChatReportSpamState](changeChatReportSpamState.md)(\['chat_id' => [long](../types/long.md), 'is_spam_chat' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)<a name="changeChatReportSpamState"></a>
<br><br>$MadelineProto->[changeChatReportSpamState](changeChatReportSpamState.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'is_spam_chat' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)<a name="changeChatReportSpamState"></a>
***
<br><br>$MadelineProto->[changeChatTitle](changeChatTitle.md)(\['chat_id' => [long](../types/long.md), 'title' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md)<a name="changeChatTitle"></a>
<br><br>$MadelineProto->[changeChatTitle](changeChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md)<a name="changeChatTitle"></a>
***
<br><br>$MadelineProto->[changeName](changeName.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md)<a name="changeName"></a>
@ -89,7 +89,7 @@ description: List of methods
<br><br>$MadelineProto->[clearRecentStickers](clearRecentStickers.md)(\['is_attached' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)<a name="clearRecentStickers"></a>
***
<br><br>$MadelineProto->[closeChat](closeChat.md)(\['chat_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)<a name="closeChat"></a>
<br><br>$MadelineProto->[closeChat](closeChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md)<a name="closeChat"></a>
***
<br><br>$MadelineProto->[closeSecretChat](closeSecretChat.md)(\['secret_chat_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)<a name="closeSecretChat"></a>
@ -122,19 +122,19 @@ description: List of methods
<br><br>$MadelineProto->[deleteChannel](deleteChannel.md)(\['channel_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)<a name="deleteChannel"></a>
***
<br><br>$MadelineProto->[deleteChatHistory](deleteChatHistory.md)(\['chat_id' => [long](../types/long.md), 'remove_from_chat_list' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)<a name="deleteChatHistory"></a>
<br><br>$MadelineProto->[deleteChatHistory](deleteChatHistory.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'remove_from_chat_list' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)<a name="deleteChatHistory"></a>
***
<br><br>$MadelineProto->[deleteChatReplyMarkup](deleteChatReplyMarkup.md)(\['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)<a name="deleteChatReplyMarkup"></a>
<br><br>$MadelineProto->[deleteChatReplyMarkup](deleteChatReplyMarkup.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)<a name="deleteChatReplyMarkup"></a>
***
<br><br>$MadelineProto->[deleteContacts](deleteContacts.md)(\['user_ids' => \[[int](../constructors/int.md)\], \]) === [$Ok](../types/Ok.md)<a name="deleteContacts"></a>
***
<br><br>$MadelineProto->[deleteMessages](deleteMessages.md)(\['chat_id' => [long](../types/long.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="deleteMessages"></a>
<br><br>$MadelineProto->[deleteMessages](deleteMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="deleteMessages"></a>
***
<br><br>$MadelineProto->[deleteMessagesFromUser](deleteMessagesFromUser.md)(\['chat_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)<a name="deleteMessagesFromUser"></a>
<br><br>$MadelineProto->[deleteMessagesFromUser](deleteMessagesFromUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)<a name="deleteMessagesFromUser"></a>
***
<br><br>$MadelineProto->[deleteProfilePhoto](deleteProfilePhoto.md)(\['profile_photo_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)<a name="deleteProfilePhoto"></a>
@ -143,7 +143,7 @@ description: List of methods
<br><br>$MadelineProto->[deleteRecentSticker](deleteRecentSticker.md)(\['is_attached' => [Bool](../types/Bool.md), 'sticker' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md)<a name="deleteRecentSticker"></a>
***
<br><br>$MadelineProto->[deleteRecentlyFoundChat](deleteRecentlyFoundChat.md)(\['chat_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)<a name="deleteRecentlyFoundChat"></a>
<br><br>$MadelineProto->[deleteRecentlyFoundChat](deleteRecentlyFoundChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md)<a name="deleteRecentlyFoundChat"></a>
***
<br><br>$MadelineProto->[deleteRecentlyFoundChats](deleteRecentlyFoundChats.md)(\[\]) === [$Ok](../types/Ok.md)<a name="deleteRecentlyFoundChats"></a>
@ -164,22 +164,22 @@ description: List of methods
<br><br>$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)<a name="editInlineMessageText"></a>
***
<br><br>$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)<a name="editMessageCaption"></a>
<br><br>$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)<a name="editMessageCaption"></a>
***
<br><br>$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)<a name="editMessageReplyMarkup"></a>
<br><br>$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)<a name="editMessageReplyMarkup"></a>
***
<br><br>$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)<a name="editMessageText"></a>
<br><br>$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)<a name="editMessageText"></a>
***
<br><br>$MadelineProto->[exportChatInviteLink](exportChatInviteLink.md)(\['chat_id' => [long](../types/long.md), \]) === [$ChatInviteLink](../types/ChatInviteLink.md)<a name="exportChatInviteLink"></a>
<br><br>$MadelineProto->[exportChatInviteLink](exportChatInviteLink.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ChatInviteLink](../types/ChatInviteLink.md)<a name="exportChatInviteLink"></a>
***
<br><br>$MadelineProto->[finishFileGeneration](finishFileGeneration.md)(\['generation_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)<a name="finishFileGeneration"></a>
***
<br><br>$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)<a name="forwardMessages"></a>
<br><br>$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)<a name="forwardMessages"></a>
***
<br><br>$MadelineProto->[getAccountTtl](getAccountTtl.md)(\[\]) === [$AccountTtl](../types/AccountTtl.md)<a name="getAccountTtl"></a>
@ -200,7 +200,7 @@ description: List of methods
<br><br>$MadelineProto->[getBlockedUsers](getBlockedUsers.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$Users](../types/Users.md)<a name="getBlockedUsers"></a>
***
<br><br>$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)<a name="getCallbackQueryAnswer"></a>
<br><br>$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)<a name="getCallbackQueryAnswer"></a>
***
<br><br>$MadelineProto->[getChannel](getChannel.md)(\['channel_id' => [int](../types/int.md), \]) === [$Channel](../types/Channel.md)<a name="getChannel"></a>
@ -212,16 +212,16 @@ description: List of methods
<br><br>$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)<a name="getChannelMembers"></a>
***
<br><br>$MadelineProto->[getChat](getChat.md)(\['chat_id' => [long](../types/long.md), \]) === [$Chat](../types/Chat.md)<a name="getChat"></a>
<br><br>$MadelineProto->[getChat](getChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Chat](../types/Chat.md)<a name="getChat"></a>
***
<br><br>$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)<a name="getChatHistory"></a>
<br><br>$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)<a name="getChatHistory"></a>
***
<br><br>$MadelineProto->[getChatMember](getChatMember.md)(\['chat_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), \]) === [$ChatMember](../types/ChatMember.md)<a name="getChatMember"></a>
<br><br>$MadelineProto->[getChatMember](getChatMember.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [int](../types/int.md), \]) === [$ChatMember](../types/ChatMember.md)<a name="getChatMember"></a>
***
<br><br>$MadelineProto->[getChatReportSpamState](getChatReportSpamState.md)(\['chat_id' => [long](../types/long.md), \]) === [$ChatReportSpamState](../types/ChatReportSpamState.md)<a name="getChatReportSpamState"></a>
<br><br>$MadelineProto->[getChatReportSpamState](getChatReportSpamState.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ChatReportSpamState](../types/ChatReportSpamState.md)<a name="getChatReportSpamState"></a>
***
<br><br>$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)<a name="getChats"></a>
@ -242,7 +242,7 @@ description: List of methods
<br><br>$MadelineProto->[getFilePersistent](getFilePersistent.md)(\['persistent_file_id' => [string](../types/string.md), \]) === [$File](../types/File.md)<a name="getFilePersistent"></a>
***
<br><br>$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)<a name="getGameHighScores"></a>
<br><br>$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)<a name="getGameHighScores"></a>
***
<br><br>$MadelineProto->[getGroup](getGroup.md)(\['group_id' => [int](../types/int.md), \]) === [$Group](../types/Group.md)<a name="getGroup"></a>
@ -254,16 +254,16 @@ description: List of methods
<br><br>$MadelineProto->[getInlineGameHighScores](getInlineGameHighScores.md)(\['inline_message_id' => [string](../types/string.md), 'user_id' => [int](../types/int.md), \]) === [$GameHighScores](../types/GameHighScores.md)<a name="getInlineGameHighScores"></a>
***
<br><br>$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)<a name="getInlineQueryResults"></a>
<br><br>$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)<a name="getInlineQueryResults"></a>
***
<br><br>$MadelineProto->[getMe](getMe.md)(\[\]) === [$User](../types/User.md)<a name="getMe"></a>
***
<br><br>$MadelineProto->[getMessage](getMessage.md)(\['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), \]) === [$Message](../types/Message.md)<a name="getMessage"></a>
<br><br>$MadelineProto->[getMessage](getMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), \]) === [$Message](../types/Message.md)<a name="getMessage"></a>
***
<br><br>$MadelineProto->[getMessages](getMessages.md)(\['chat_id' => [long](../types/long.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Messages](../types/Messages.md)<a name="getMessages"></a>
<br><br>$MadelineProto->[getMessages](getMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Messages](../types/Messages.md)<a name="getMessages"></a>
***
<br><br>$MadelineProto->[getNotificationSettings](getNotificationSettings.md)(\['scope' => [NotificationSettingsScope](../types/NotificationSettingsScope.md), \]) === [$NotificationSettings](../types/NotificationSettings.md)<a name="getNotificationSettings"></a>
@ -332,13 +332,13 @@ description: List of methods
<br><br>$MadelineProto->[importContacts](importContacts.md)(\['contacts' => \[[contact](../constructors/contact.md)\], \]) === [$Users](../types/Users.md)<a name="importContacts"></a>
***
<br><br>$MadelineProto->[migrateGroupChatToChannelChat](migrateGroupChatToChannelChat.md)(\['chat_id' => [long](../types/long.md), \]) === [$Chat](../types/Chat.md)<a name="migrateGroupChatToChannelChat"></a>
<br><br>$MadelineProto->[migrateGroupChatToChannelChat](migrateGroupChatToChannelChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Chat](../types/Chat.md)<a name="migrateGroupChatToChannelChat"></a>
***
<br><br>$MadelineProto->[openChat](openChat.md)(\['chat_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)<a name="openChat"></a>
<br><br>$MadelineProto->[openChat](openChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md)<a name="openChat"></a>
***
<br><br>$MadelineProto->[openMessageContent](openMessageContent.md)(\['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)<a name="openMessageContent"></a>
<br><br>$MadelineProto->[openMessageContent](openMessageContent.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)<a name="openMessageContent"></a>
***
<br><br>$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)<a name="pinChannelMessage"></a>
@ -377,7 +377,7 @@ description: List of methods
<br><br>$MadelineProto->[resetAuth](resetAuth.md)(\['force' => [Bool](../types/Bool.md), \]) === [$AuthState](../types/AuthState.md)<a name="resetAuth"></a>
***
<br><br>$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)<a name="searchChatMessages"></a>
<br><br>$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)<a name="searchChatMessages"></a>
***
<br><br>$MadelineProto->[searchChats](searchChats.md)(\['query' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md)<a name="searchChats"></a>
@ -398,22 +398,22 @@ description: List of methods
<br><br>$MadelineProto->[searchStickerSet](searchStickerSet.md)(\['name' => [string](../types/string.md), \]) === [$StickerSet](../types/StickerSet.md)<a name="searchStickerSet"></a>
***
<br><br>$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)<a name="sendBotStartMessage"></a>
<br><br>$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)<a name="sendBotStartMessage"></a>
***
<br><br>$MadelineProto->[sendChatAction](sendChatAction.md)(\['chat_id' => [long](../types/long.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Ok](../types/Ok.md)<a name="sendChatAction"></a>
<br><br>$MadelineProto->[sendChatAction](sendChatAction.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Ok](../types/Ok.md)<a name="sendChatAction"></a>
***
<br><br>$MadelineProto->[sendChatScreenshotTakenNotification](sendChatScreenshotTakenNotification.md)(\['chat_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)<a name="sendChatScreenshotTakenNotification"></a>
<br><br>$MadelineProto->[sendChatScreenshotTakenNotification](sendChatScreenshotTakenNotification.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md)<a name="sendChatScreenshotTakenNotification"></a>
***
<br><br>$MadelineProto->[sendChatSetTtlMessage](sendChatSetTtlMessage.md)(\['chat_id' => [long](../types/long.md), 'ttl' => [int](../types/int.md), \]) === [$Message](../types/Message.md)<a name="sendChatSetTtlMessage"></a>
<br><br>$MadelineProto->[sendChatSetTtlMessage](sendChatSetTtlMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'ttl' => [int](../types/int.md), \]) === [$Message](../types/Message.md)<a name="sendChatSetTtlMessage"></a>
***
<br><br>$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)<a name="sendInlineQueryResultMessage"></a>
<br><br>$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)<a name="sendInlineQueryResultMessage"></a>
***
<br><br>$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)<a name="sendMessage"></a>
<br><br>$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)<a name="sendMessage"></a>
***
<br><br>$MadelineProto->[setAlarm](setAlarm.md)(\['seconds' => [double](../types/double.md), \]) === [$Ok](../types/Ok.md)<a name="setAlarm"></a>
@ -428,7 +428,7 @@ description: List of methods
<br><br>$MadelineProto->[setFileGenerationProgress](setFileGenerationProgress.md)(\['generation_id' => [long](../types/long.md), 'ready' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)<a name="setFileGenerationProgress"></a>
***
<br><br>$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)<a name="setGameScore"></a>
<br><br>$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)<a name="setGameScore"></a>
***
<br><br>$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)<a name="setInlineGameScore"></a>
@ -497,7 +497,7 @@ $MadelineProto->[test->testNet](test_testNet.md)(\[\]) === [$test\_Empty](../typ
<br><br>$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)<a name="updateStickerSet"></a>
***
<br><br>$MadelineProto->[viewMessages](viewMessages.md)(\['chat_id' => [long](../types/long.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="viewMessages"></a>
<br><br>$MadelineProto->[viewMessages](viewMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="viewMessages"></a>
***
<br><br>$MadelineProto->[viewTrendingStickerSets](viewTrendingStickerSets.md)(\['sticker_set_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="viewTrendingStickerSets"></a>

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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}, })
```

View File

@ -106,11 +106,11 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
<br><br>$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)<a name="messages_acceptEncryption"></a>
$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)<a name="messages_addChatUser"></a>
$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)<a name="messages_addChatUser"></a>
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_createChat"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="messages_deleteHistory"></a>
@ -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)<a name="messages_discardEncryption"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_forwardMessage"></a>
@ -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)<a name="messages_getDialogs"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$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)<a name="messages_getHistory"></a>

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -126,11 +126,11 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
<br><br>$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)<a name="messages_acceptEncryption"></a>
$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)<a name="messages_addChatUser"></a>
$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)<a name="messages_addChatUser"></a>
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_createChat"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="messages_deleteHistory"></a>
@ -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)<a name="messages_discardEncryption"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_forwardMessage"></a>
@ -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)<a name="messages_getDialogs"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$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)<a name="messages_getHistory"></a>

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -155,11 +155,11 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
<br><br>$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)<a name="messages_acceptEncryption"></a>
$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)<a name="messages_addChatUser"></a>
$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)<a name="messages_addChatUser"></a>
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_createChat"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="messages_deleteHistory"></a>
@ -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)<a name="messages_discardEncryption"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_forwardMessage"></a>
@ -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)<a name="messages_getDialogs"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$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)<a name="messages_getHistory"></a>

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -165,11 +165,11 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
<br><br>$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)<a name="messages_acceptEncryption"></a>
$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)<a name="messages_addChatUser"></a>
$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)<a name="messages_addChatUser"></a>
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_createChat"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="messages_deleteHistory"></a>
@ -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)<a name="messages_discardEncryption"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_forwardMessage"></a>
@ -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)<a name="messages_getDialogs"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$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)<a name="messages_getHistory"></a>

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -172,13 +172,13 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
<br><br>$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)<a name="messages_acceptEncryption"></a>
$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)<a name="messages_addChatUser"></a>
$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)<a name="messages_addChatUser"></a>
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)<a name="messages_checkChatInvite"></a>
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_createChat"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="messages_deleteHistory"></a>
@ -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)<a name="messages_discardEncryption"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a>
$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a>
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_forwardMessage"></a>
@ -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)<a name="messages_getDialogs"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$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)<a name="messages_getHistory"></a>
@ -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)<a name="messages_setTyping"></a>
$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)<a name="messages_startBot"></a>
$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)<a name="messages_startBot"></a>
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)<a name="messages_uninstallStickerSet"></a>

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -198,13 +198,13 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
<br><br>$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)<a name="messages_acceptEncryption"></a>
$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)<a name="messages_addChatUser"></a>
$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)<a name="messages_addChatUser"></a>
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)<a name="messages_checkChatInvite"></a>
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_createChat"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="messages_deleteHistory"></a>
@ -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)<a name="messages_discardEncryption"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a>
$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a>
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_forwardMessage"></a>
@ -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)<a name="messages_getDialogs"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$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)<a name="messages_getHistory"></a>
@ -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)<a name="messages_setTyping"></a>
$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)<a name="messages_startBot"></a>
$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)<a name="messages_startBot"></a>
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)<a name="messages_uninstallStickerSet"></a>

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -147,7 +147,7 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
<br><br>$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)<a name="messages_acceptEncryption"></a>
$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)<a name="messages_addChatUser"></a>
$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)<a name="messages_addChatUser"></a>
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)<a name="messages_checkChatInvite"></a>
@ -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)<a name="messages_deleteChannelMessages"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputChat](../types/InputChat.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="messages_deleteHistory"></a>
@ -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)<a name="messages_discardEncryption"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputChat](../types/InputChat.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputChat](../types/InputChat.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputChat](../types/InputChat.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a>
$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a>
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_forwardMessage"></a>
@ -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)<a name="messages_getDialogs"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputChat](../types/InputChat.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$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)<a name="messages_getHistory"></a>
@ -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)<a name="messages_setTyping"></a>
$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)<a name="messages_startBot"></a>
$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)<a name="messages_startBot"></a>
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)<a name="messages_uninstallStickerSet"></a>

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -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, })
```

View File

@ -198,15 +198,15 @@ $MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputApp
***
<br><br>$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)<a name="messages_acceptEncryption"></a>
$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)<a name="messages_addChatUser"></a>
$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)<a name="messages_addChatUser"></a>
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)<a name="messages_checkChatInvite"></a>
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_createChat"></a>
$MadelineProto->[messages->deactivateChat](messages_deactivateChat.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="messages_deactivateChat"></a>
$MadelineProto->[messages->deactivateChat](messages_deactivateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="messages_deactivateChat"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)<a name="messages_deleteChatUser"></a>
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="messages_deleteHistory"></a>
@ -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)<a name="messages_discardEncryption"></a>
$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)<a name="messages_editChatAdmin"></a>
$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)<a name="messages_editChatAdmin"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatTitle"></a>
$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a>
$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a>
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_forwardMessage"></a>
@ -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)<a name="messages_getDialogs"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
$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)<a name="messages_getHistory"></a>
@ -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)<a name="messages_installStickerSet"></a>
$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_migrateChat"></a>
$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)<a name="messages_migrateChat"></a>
$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)<a name="messages_readEncryptedHistory"></a>
@ -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)<a name="messages_startBot"></a>
$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="messages_toggleChatAdmins"></a>
$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="messages_toggleChatAdmins"></a>
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)<a name="messages_uninstallStickerSet"></a>

Some files were not shown because too many files have changed in this diff Show More