1
0
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:
Daniil Gentili 2023-08-29 15:45:41 +02:00
parent 892855f399
commit 16c43d2678
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 4 additions and 1 deletions

2
docs

@ -1 +1 @@
Subproject commit 9d0080f3478c816d52dae55ee2c7dc6ab13d63f7
Subproject commit fb60db620b52ed14588fb0cc6942727b2ff06588

View File

@ -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;
}
}