mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-11 17:48:15 +01:00
24 lines
456 B
PHP
24 lines
456 B
PHP
|
<?php declare(strict_types=1);
|
||
|
|
||
|
namespace danog\MadelineProto\EventHandler;
|
||
|
|
||
|
use danog\MadelineProto\MTProto;
|
||
|
|
||
|
/**
|
||
|
* Represents an incoming or outgoing message.
|
||
|
*/
|
||
|
final class ChannelMessage extends Message
|
||
|
{
|
||
|
public readonly int $views;
|
||
|
|
||
|
/** @internal */
|
||
|
public function __construct(
|
||
|
MTProto $API,
|
||
|
array $rawMessage
|
||
|
) {
|
||
|
parent::__construct($API, $rawMessage);
|
||
|
|
||
|
$this->views = $rawMessage['views'];
|
||
|
}
|
||
|
}
|