Method: messages.getPersonalChannelHistory
Parameters:
| Name | Type | Required |
|---|---|---|
| user_id | Username, chat ID, Update, Message or InputUser | Optional |
| limit | int | Optional |
| max_id | int | Optional |
| min_id | int | Optional |
| hash | Array of long|string | Optional |
Return type: messages.Messages
Can users use this method: YES
Can bots use this method: YES
Can bots use this method over a business connection with the businessConnectionId flag: NO
MadelineProto Example (now async for huge speed and parallelism!):
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_Messages = $MadelineProto->messages->getPersonalChannelHistory(user_id: $InputUser, limit: $int, max_id: $int, min_id: $int, hash: [$long\|string, $long\|string], );