Page MenuHomePhabricator (Chris)

InlineQueryResultGame.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

InlineQueryResultGame.php

<?php
/**
* This file is part of the TelegramBot package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Longman\TelegramBot\Entities\InlineQuery;
use Longman\TelegramBot\Entities\InlineKeyboard;
/**
* Class InlineQueryResultGame
*
* @link https://core.telegram.org/bots/api#inlinequeryresultgame
*
* <code>
* $data = [
* 'id' => '',
* 'game_short_name' => '',
* 'reply_markup' => <InlineKeyboard>,
* ];
* </code>
*
* @method string getType() Type of the result, must be game
* @method string getId() Unique identifier for this result, 1-64 bytes
* @method string getGameShortName() Short name of the game
* @method InlineKeyboard getReplyMarkup() Optional. Inline keyboard attached to the message
*
* @method $this setId(string $id) Unique identifier for this result, 1-64 bytes
* @method $this setGameShortName(string $game_short_name) Short name of the game
* @method $this setReplyMarkup(InlineKeyboard $reply_markup) Optional. Inline keyboard attached to the message
*/
class InlineQueryResultGame extends InlineEntity implements InlineQueryResult
{
/**
* InlineQueryResultGame constructor
*
* @param array $data
*/
public function __construct(array $data = [])
{
$data['type'] = 'game';
parent::__construct($data);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 15, 9:10 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
113573
Default Alt Text
InlineQueryResultGame.php (1 KB)

Event Timeline