/**
  * @param array $data
  */
 public function __construct($id = null, string $title, string $documentUrl, string $mimeType)
 {
     parent::__construct($id);
     $this->title = $title;
     $this->documentUrl = $documentUrl;
     $this->mimeType = $mimeType;
 }
 /**
  * @param array $data
  */
 public function __construct($id = null, float $latitude, float $longitude, string $title)
 {
     parent::__construct($id);
     $this->latitude = $latitude;
     $this->longitude = $longitude;
     $this->title = $title;
 }
Exemplo n.º 3
0
 /**
  * InlineQueryResultMpeg4Gif constructor.
  *
  * @param string $id
  * @param string $mpeg4Url
  * @param string $thumbUrl
  * @param int|null $mpeg4Width
  * @param int|null $mpeg4Height
  * @param string|null $caption
  * @param string|null $title
  * @param string|null $messageText
  * @param string|null $parseMode
  * @param bool|null $disableWebPagePreview
  */
 public function __construct($id, $mpeg4Url, $thumbUrl, $mpeg4Width = null, $mpeg4Height = null, $caption = null, $title = null, $messageText = null, $parseMode = null, $disableWebPagePreview = null)
 {
     parent::__construct($id, $title, $messageText, $parseMode, $disableWebPagePreview);
     $this->mpeg4Url = $mpeg4Url;
     $this->thumbUrl = $thumbUrl;
     $this->mpeg4Width = $mpeg4Width;
     $this->mpeg4Height = $mpeg4Height;
     $this->caption = $caption;
 }
Exemplo n.º 4
0
 /**
  * InlineQueryResultArticle constructor.
  *
  * @param string $id
  * @param string $title
  * @param string $messageText
  * @param string|null $parseMode
  * @param bool|null $disableWebPagePreview
  * @param string|null $url
  * @param bool|null $hideUrl
  * @param string|null $description
  * @param string|null $thumbUrl
  * @param int|null $thumbWidth
  * @param int|null $thumbHeight
  */
 public function __construct($id, $title, $messageText, $parseMode = null, $disableWebPagePreview = null, $url = null, $hideUrl = null, $description = null, $thumbUrl = null, $thumbWidth = null, $thumbHeight = null)
 {
     parent::__construct($id, $title, $messageText, $parseMode, $disableWebPagePreview);
     $this->url = $url;
     $this->hideUrl = $hideUrl;
     $this->description = $description;
     $this->thumbUrl = $thumbUrl;
     $this->thumbWidth = $thumbWidth;
     $this->thumbHeight = $thumbHeight;
 }
 /**
  * @param array $data
  */
 public function __construct($id, string $videoFileId)
 {
     parent::__construct($id);
     $this->videoFileId = $videoFileId;
 }
 /**
  * @param array $data
  */
 public function __construct($id, string $documentFileId)
 {
     parent::__construct($id);
     $this->documentFileId = $documentFileId;
 }
 /**
  * @param array $data
  */
 public function __construct($id, string $photoFileId)
 {
     parent::__construct($id);
     $this->photoFileId = $photoFileId;
 }
 public function __construct($id, string $mpeg4FileId)
 {
     parent::__construct($id);
     $this->mpeg4FileId = $mpeg4FileId;
 }
 public function __construct($id, string $audioFileId)
 {
     parent::__construct($id);
     $this->audioFileId = $audioFileId;
 }
Exemplo n.º 10
0
 /**
  * InlineQueryResultVideo constructor.
  *
  * @param string $id
  * @param string $videoUrl
  * @param string $thumbUrl
  * @param string $mimeType
  * @param string|null $messageText
  * @param string|null $parseMode
  * @param bool|null $disableWebPagePreview
  * @param int|null $videoWidth
  * @param int|null $videoHeight
  * @param int|null $videoDuration
  * @param string|null $title
  * @param string|null $description
  */
 public function __construct($id, $videoUrl, $thumbUrl, $mimeType, $messageText = null, $parseMode = null, $disableWebPagePreview = null, $videoWidth = null, $videoHeight = null, $videoDuration = null, $title = null, $description = null)
 {
     parent::__construct($id, $title, $messageText, $parseMode, $disableWebPagePreview);
     $this->videoUrl = $videoUrl;
     $this->thumbUrl = $thumbUrl;
     $this->mimeType = $mimeType;
     $this->videoWidth = $videoWidth;
     $this->videoHeight = $videoHeight;
     $this->videoDuration = $videoDuration;
     $this->description = $description;
 }
 public function __construct($id, string $gifFileId)
 {
     parent::__construct($id);
     $this->gifFileId = $gifFileId;
 }
 /**
  * @param array $data
  */
 public function __construct($id, string $photoUrl, string $thumbUrl)
 {
     parent::__construct($id);
     $this->photoUrl = $photoUrl;
     $this->thumbUrl = $thumbUrl;
 }