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 PHPTdGram\Schema;
* Removes the pinned message from a chat; requires can_pin_messages rights in the group or channel.
class UnpinChatMessage extends TdFunction
{
public const TYPE_NAME = 'unpinChatMessage';
* Identifier of the chat.
protected int $chatId;
public function __construct(int $chatId)
$this->chatId = $chatId;
}
public static function fromArray(array $array): UnpinChatMessage
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;