src/Api.php
public function answerInlineQuery(array $params = [])
    {
        if (is_array($params['results'])) {
            $params['results'] = json_encode($params['results']);
        }

        $this->post('answerInlineQuery', $params);

        return true;
    }
public function answerInlineQuery(array $params = [])
    {
        if (is_array($params['results'])) {
            $params['results'] = json_encode($params['results']);
        }

        $this->post('answerInlineQuery', $params);

        return true;
    }
public function answerInlineQuery ( array $ params = [ ] ) { if ( is_array ( $ params [ 'results' ] ) ) { $ params [ 'results' ] = json_encode ( $ params [ 'results' ] ) ; } $ this -> post ( 'answerInlineQuery' , $ params ) ; return true ; }
Use this method to send answers to an inline query.

<code>
$params = [
'inline_query_id'      => '',
'results'              => [],
'cache_time'           => 0,
'is_personal'          => false,
'next_offset'          => '',
'switch_pm_text'       => '',
'switch_pm_parameter'  => '',
];
</code>

@link https://core.telegram.org/bots/api#answerinlinequery

@param array     $params

@var string      $params ['inline_query_id']
@var array       $params ['results']
@var int|null    $params ['cache_time']
@var bool|null   $params ['is_personal']
@var string|null $params ['next_offset']
@var string|null $params ['switch_pm_text']
@var string|null $params ['switch_pm_parameter']

@throws TelegramSDKException

@return bool
Use this method to send answers to an inline query .