Method: updates.getChannelDifference
You cannot use this method directly, please use the event handler, instead.
Parameters:
Name | Type | Description | Required |
---|---|---|---|
force | Bool | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional |
channel | Username, chat ID, Update, Message or InputChannel | The channel | Optional |
filter | ChannelMessagesFilter | Messsage filter | Optional |
pts | int | Persistent timestamp (see updates) | Optional |
limit | int | How many updates to fetch, max 100000 Ordinary (non-bot) users are supposed to pass 10-100 | Optional |
Return type: updates.ChannelDifference
Can bots use this method: YES
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();
$updates_ChannelDifference = $MadelineProto->updates->getChannelDifference(force: Bool, channel: InputChannel, filter: ChannelMessagesFilter, pts: int, limit: int, );