Page MenuHomePhabricator (Chris)

InlinequeryCommand.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

InlinequeryCommand.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\Commands\SystemCommands;
use Longman\TelegramBot\Commands\SystemCommand;
use Longman\TelegramBot\Entities\ServerResponse;
/**
* Inline query command
*/
class InlinequeryCommand extends SystemCommand
{
/**
* @var string
*/
protected $name = 'inlinequery';
/**
* @var string
*/
protected $description = 'Reply to inline query';
/**
* @var string
*/
protected $version = '1.0.1';
/**
* Command execute method
*
* @return mixed
*/
public function execute(): ServerResponse
{
//$inline_query = $this->getInlineQuery();
//$user_id = $inline_query->getFrom()->getId();
//$query = $inline_query->getQuery();
return $this->getInlineQuery()->answer([]);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 15, 12:39 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
148875
Default Alt Text
InlinequeryCommand.php (1 KB)

Event Timeline