. * * @author Daniil Gentili * @copyright 2016-2023 Daniil Gentili * @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 * @link https://docs.madelineproto.xyz MadelineProto documentation */ namespace danog\MadelineProto\EventHandler\Participant; use danog\MadelineProto\EventHandler\Participant; use danog\MadelineProto\Ipc\Client; use danog\MadelineProto\MTProto; /** * A participant that left the channel/supergroup. */ final class Left extends Participant { /** The peer that left */ public readonly int $peer; /** @internal */ public function __construct( MTProto|Client $API, array $rawParticipant ) { $this->peer = $API->getIdInternal($rawParticipant['peer']); } }