for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace unreal4u\TelegramAPI\Telegram\Types;
use unreal4u\TelegramAPI\Abstracts\TelegramTypes;
/**
* This object represents a video message (available in Telegram apps as of v.4.0).
*
* Objects defined as-is May 2017
* @see https://core.telegram.org/bots/api#videonote
*/
class VideoNote extends TelegramTypes
{
* Unique identifier for this file
* @var string
public $file_id = '';
* Video width and height as defined by sender
* @var int
public $length = 0;
* Duration of the video in seconds as defined by sender
public $duration = 0;
* Optional. Video thumbnail
* @var PhotoSize
public $thumb;
* Optional. File size
public $file_size = 0;
protected function mapSubObjects(string $key, array $data): TelegramTypes
switch ($key) {
case 'thumb':
return new PhotoSize($data, $this->logger);
}
return parent::mapSubObjects($key, $data);