| 1 |  |  | <?php | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3 |  |  | namespace TelegramBot\Entities\InlineQuery; | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5 |  |  | use TelegramBot\Entities\InlineKeyboard; | 
            
                                                                                                            
                            
            
                                    
            
            
                | 6 |  |  | use TelegramBot\Entities\InputMessageContent\InputMessageContent; | 
            
                                                                                                            
                            
            
                                    
            
            
                | 7 |  |  | use TelegramBot\Entities\MessageEntity; | 
            
                                                                                                            
                            
            
                                    
            
            
                | 8 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 9 |  |  | /** | 
            
                                                                                                            
                            
            
                                    
            
            
                | 10 |  |  |  * Class InlineQueryResultMpeg4Gif | 
            
                                                                                                            
                            
            
                                    
            
            
                | 11 |  |  |  * | 
            
                                                                                                            
                            
            
                                    
            
            
                | 12 |  |  |  * @link https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif | 
            
                                                                                                            
                            
            
                                    
            
            
                | 13 |  |  |  * | 
            
                                                                                                            
                            
            
                                    
            
            
                | 14 |  |  |  * <code> | 
            
                                                                                                            
                            
            
                                    
            
            
                | 15 |  |  |  * $data = [ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 16 |  |  |  *   'id'                    => '', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 17 |  |  |  *   'mpeg4_url'             => '', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 18 |  |  |  *   'mpeg4_width'           => 30, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 19 |  |  |  *   'mpeg4_height'          => 30, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 20 |  |  |  *   'thumb_url'             => '', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 21 |  |  |  *   'title'                 => '', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 22 |  |  |  *   'caption'               => '', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 23 |  |  |  *   'reply_markup'          => <InlineKeyboard>, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 24 |  |  |  *   'input_message_content' => <InputMessageContent>, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 25 |  |  |  * ]; | 
            
                                                                                                            
                            
            
                                    
            
            
                | 26 |  |  |  * </code> | 
            
                                                                                                            
                            
            
                                    
            
            
                | 27 |  |  |  * | 
            
                                                                                                            
                            
            
                                    
            
            
                | 28 |  |  |  * @method string              getType()                    Type of the result, must be mpeg4_gif | 
            
                                                                                                            
                            
            
                                    
            
            
                | 29 |  |  |  * @method string              getId()                      Unique identifier for this result, 1-64 bytes | 
            
                                                                                                            
                            
            
                                    
            
            
                | 30 |  |  |  * @method string              getMpeg4Url()                A valid URL for the MP4 file. File size must not exceed 1MB | 
            
                                                                                                            
                            
            
                                    
            
            
                | 31 |  |  |  * @method int                 getMpeg4Width()              Optional. Video width | 
            
                                                                                                            
                            
            
                                    
            
            
                | 32 |  |  |  * @method int                 getMpeg4Height()             Optional. Video height | 
            
                                                                                                            
                            
            
                                    
            
            
                | 33 |  |  |  * @method int                 getMpeg4Duration()           Optional. Video duration | 
            
                                                                                                            
                            
            
                                    
            
            
                | 34 |  |  |  * @method string              getThumbUrl()                URL of the static thumbnail (jpeg or gif) for the result | 
            
                                                                                                            
                            
            
                                    
            
            
                | 35 |  |  |  * @method string              getThumbMimeType()           Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg” | 
            
                                                                                                            
                            
            
                                    
            
            
                | 36 |  |  |  * @method string              getTitle()                   Optional. Title for the result | 
            
                                                                                                            
                            
            
                                    
            
            
                | 37 |  |  |  * @method string              getCaption()                 Optional. Caption of the MPEG-4 file to be sent, 0-200 characters | 
            
                                                                                                            
                            
            
                                    
            
            
                | 38 |  |  |  * @method string              getParseMode()               Optional. Mode for parsing entities in the caption | 
            
                                                                                                            
                            
            
                                    
            
            
                | 39 |  |  |  * @method MessageEntity[]     getCaptionEntities()         Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode | 
            
                                                                                                            
                            
            
                                    
            
            
                | 40 |  |  |  * @method InlineKeyboard      getReplyMarkup()             Optional. Inline keyboard attached to the message | 
            
                                                                                                            
                            
            
                                    
            
            
                | 41 |  |  |  * @method InputMessageContent getInputMessageContent()     Optional. Content of the message to be sent instead of the video animation | 
            
                                                                                                            
                            
            
                                    
            
            
                | 42 |  |  |  * | 
            
                                                                                                            
                            
            
                                    
            
            
                | 43 |  |  |  * @method $this setId(string $id)                                                      Unique identifier for this result, 1-64 bytes | 
            
                                                                                                            
                            
            
                                    
            
            
                | 44 |  |  |  * @method $this setMpeg4Url(string $mpeg4_url)                                         A valid URL for the MP4 file. File size must not exceed 1MB | 
            
                                                                                                            
                            
            
                                    
            
            
                | 45 |  |  |  * @method $this setMpeg4Width(int $mpeg4_width)                                        Optional. Video width | 
            
                                                                                                            
                            
            
                                    
            
            
                | 46 |  |  |  * @method $this setMpeg4Height(int $mpeg4_height)                                      Optional. Video height | 
            
                                                                                                            
                            
            
                                    
            
            
                | 47 |  |  |  * @method $this setMpeg4Duration(int $mpeg4_duration)                                  Optional. Video duration | 
            
                                                                                                            
                            
            
                                    
            
            
                | 48 |  |  |  * @method $this setThumbUrl(string $thumb_url)                                         URL of the static thumbnail (jpeg or gif) for the result | 
            
                                                                                                            
                            
            
                                    
            
            
                | 49 |  |  |  * @method $this setThumbMimeType(string $thumb_mime_type)                              Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg” | 
            
                                                                                                            
                            
            
                                    
            
            
                | 50 |  |  |  * @method $this setTitle(string $title)                                                Optional. Title for the result | 
            
                                                                                                            
                            
            
                                    
            
            
                | 51 |  |  |  * @method $this setCaption(string $caption)                                            Optional. Caption of the MPEG-4 file to be sent, 0-200 characters | 
            
                                                                                                            
                            
            
                                    
            
            
                | 52 |  |  |  * @method $this setParseMode(string $parse_mode)                                       Optional. Mode for parsing entities in the caption | 
            
                                                                                                            
                            
            
                                    
            
            
                | 53 |  |  |  * @method $this setCaptionEntities(array $caption_entities)                            Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode | 
            
                                                                                                            
                            
            
                                    
            
            
                | 54 |  |  |  * @method $this setReplyMarkup(InlineKeyboard $reply_markup)                           Optional. Inline keyboard attached to the message | 
            
                                                                                                            
                            
            
                                    
            
            
                | 55 |  |  |  * @method $this setInputMessageContent(InputMessageContent $input_message_content)     Optional. Content of the message to be sent instead of the video animation | 
            
                                                                                                            
                            
            
                                    
            
            
                | 56 |  |  |  */ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 57 |  |  | class InlineQueryResultMpeg4Gif extends InlineEntity implements InlineQueryResult | 
            
                                                                                                            
                            
            
                                    
            
            
                | 58 |  |  | { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 59 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 60 |  |  |     /** | 
            
                                                                                                            
                            
            
                                    
            
            
                | 61 |  |  |      * InlineQueryResultMpeg4Gif constructor | 
            
                                                                                                            
                            
            
                                    
            
            
                | 62 |  |  |      * | 
            
                                                                                                            
                            
            
                                    
            
            
                | 63 |  |  |      * @param array $data | 
            
                                                                                                            
                                                                
            
                                    
            
            
                | 64 |  |  |      */ | 
            
                                                                        
                            
            
                                    
            
            
                | 65 |  |  |     public function __construct(array $data = []) | 
            
                                                                        
                            
            
                                    
            
            
                | 66 |  |  |     { | 
            
                                                                        
                            
            
                                    
            
            
                | 67 |  |  |         $data['type'] = 'mpeg4_gif'; | 
            
                                                                        
                            
            
                                    
            
            
                | 68 |  |  |         parent::__construct($data); | 
            
                                                                                                            
                            
            
                                    
            
            
                | 69 |  |  |     } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 70 |  |  |  | 
            
                                                                                                            
                                                                
            
                                    
            
            
                | 71 |  |  | } | 
            
                                                        
            
                                    
            
            
                | 72 |  |  |  |