* Returns a private HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels. The link will work only for members of the chat.
13
*/
14
class GetMessageLink extends TdFunction
15
{
16
public const TYPE_NAME = 'getMessageLink';
17
18
/**
19
* Identifier of the chat to which the message belongs.
20
*/
21
protected int $chatId;
22
23
/**
24
* Identifier of the message.
25
*/
26
protected int $messageId;
27
28
public function __construct(int $chatId, int $messageId)
29
{
30
$this->chatId = $chatId;
31
$this->messageId = $messageId;
32
}
33
34
public static function fromArray(array $array): GetMessageLink