* Returns an HTTP URL with the chat statistics. Currently this method can be used only for channels. Can be used only if SupergroupFullInfo.can_view_statistics == true.
13
*/
14
class GetChatStatisticsUrl extends TdFunction
15
{
16
public const TYPE_NAME = 'getChatStatisticsUrl';
17
18
/**
19
* Chat identifier.
20
*/
21
protected int $chatId;
22
23
/**
24
* Parameters from "tg://statsrefresh?params=******" link.
25
*/
26
protected string $parameters;
27
28
/**
29
* Pass true if a URL with the dark theme must be returned.
30
*/
31
protected bool $isDark;
32
33
public function __construct(int $chatId, string $parameters, bool $isDark)
34
{
35
$this->chatId = $chatId;
36
$this->parameters = $parameters;
37
$this->isDark = $isDark;
38
}
39
40
public static function fromArray(array $array): GetChatStatisticsUrl