for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the TelegramBot package.
*
* (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
* 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';
protected $description = 'Reply to inline query';
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([]);
}