Вход Регистрация
Файл: upload/core/vendor/longman/telegram-bot/src/Commands/SystemCommands/InlinequeryCommand.php
Строк: 56
<?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 LongmanTelegramBotCommandsSystemCommands;

use 
LongmanTelegramBotCommandsSystemCommand;
use 
LongmanTelegramBotEntitiesServerResponse;

/**
 * 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([]);
    }
}
Онлайн: 0
Реклама