diff --git a/src/EventHandler/Channel/ChannelParticipant.php b/src/EventHandler/Channel/ChannelParticipant.php index ed18c18fa..9de86cade 100644 --- a/src/EventHandler/Channel/ChannelParticipant.php +++ b/src/EventHandler/Channel/ChannelParticipant.php @@ -19,7 +19,6 @@ namespace danog\MadelineProto\EventHandler\Channel; use danog\MadelineProto\EventHandler\ChatInvite; use danog\MadelineProto\EventHandler\Participant; use danog\MadelineProto\EventHandler\Participant\Left; -use danog\MadelineProto\EventHandler\Participant\Member; use danog\MadelineProto\EventHandler\Update; use danog\MadelineProto\MTProto; @@ -70,6 +69,6 @@ final class ChannelParticipant extends Update // if null, user joind $this->newParticipant = isset($rawChannelParticipant['new_participant']) ? Participant::fromRawParticipant($rawChannelParticipant['new_participant']) - : new Member(['user_id' => $this->userId, 'date' => $this->date]); + : new Left(['peer' => $this->userId]); } }