Added constructors to InlineQuery objects
This commit is contained in:
parent
51cce667f7
commit
c3ecb75d6c
6 changed files with 48 additions and 0 deletions
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue