Added constructors to InlineQuery objects

This commit is contained in:
Netkas 2023-04-23 20:40:53 -04:00
parent 51cce667f7
commit c3ecb75d6c
6 changed files with 48 additions and 0 deletions

View file

@ -69,6 +69,14 @@
*/ */
private $thumbnail_height; private $thumbnail_height;
/**
* InlineQueryResultArticle constructor.
*/
public function __construct()
{
$this->type = 'article';
}
/** /**
* Type of the result, must be article * Type of the result, must be article
* *

View file

@ -70,6 +70,14 @@
*/ */
private $input_message_content; private $input_message_content;
/**
* InlineQueryResultAudio constructor.
*/
public function __construct()
{
$this->type = 'audio';
}
/** /**
* Type of the result, must be audio * Type of the result, must be audio
* *

View file

@ -88,6 +88,14 @@
*/ */
private $input_message_content; private $input_message_content;
/**
* InlineQueryResultGif constructor.
*/
public function __construct()
{
$this->type = 'gif';
}
/** /**
* Type of the result, must be gif * Type of the result, must be gif
* *

View file

@ -85,6 +85,14 @@
*/ */
private $input_message_content; private $input_message_content;
/**
* InlineQueryResultMpeg4Gif constructor.
*/
public function __construct()
{
$this->type = 'mpeg4_gif';
}
/** /**
* Type of the result, must be mpeg4_gif * Type of the result, must be mpeg4_gif
* *

View file

@ -80,6 +80,14 @@
*/ */
private $input_message_content; private $input_message_content;
/**
* InlineQueryResultPhoto constructor.
*/
public function __construct()
{
$this->type = 'photo';
}
/** /**
* Type of the result, must be photo * Type of the result, must be photo
* *

View file

@ -91,6 +91,14 @@
*/ */
private $input_message_content; private $input_message_content;
/**
* InlineQueryResultVideo constructor.
*/
public function __construct()
{
$this->type = 'video';
}
/** /**
* Type of the result, must be video * Type of the result, must be video
* *