for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This phpFile is auto-generated.
*/
declare(strict_types=1);
namespace AurimasNiekis\TdLibSchema;
* Returns all scheduled messages in a chat. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id).
class GetChatScheduledMessages extends TdFunction
{
public const TYPE_NAME = 'getChatScheduledMessages';
* Chat identifier.
*
* @var int
protected int $chatId;
public function __construct(int $chatId)
$this->chatId = $chatId;
}
public static function fromArray(array $array): GetChatScheduledMessages
return new static(
$array['chat_id'],
);
public function typeSerialize(): array
return [
'@type' => static::TYPE_NAME,
'chat_id' => $this->chatId,
];
public function getChatId(): int
return $this->chatId;