mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 11:18:59 +01:00
Add forward counter
This commit is contained in:
parent
892855f399
commit
16c43d2678
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 9d0080f3478c816d52dae55ee2c7dc6ab13d63f7
|
||||
Subproject commit fb60db620b52ed14588fb0cc6942727b2ff06588
|
@ -26,6 +26,8 @@ final class ChannelMessage extends Message
|
||||
{
|
||||
/** View counter */
|
||||
public readonly ?int $views;
|
||||
/** Forward counter */
|
||||
public readonly ?int $forwards;
|
||||
/** Author of the post, if signatures are enabled */
|
||||
public readonly ?string $signature;
|
||||
|
||||
@ -38,6 +40,7 @@ final class ChannelMessage extends Message
|
||||
parent::__construct($API, $rawMessage, $info);
|
||||
|
||||
$this->views = $rawMessage['views'] ?? null;
|
||||
$this->forwards = $rawMessage['forwards'] ?? null;
|
||||
$this->signature = $rawMessage['post_author'] ?? null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user