PHP Class TelegramBot\Api\Types\Inline\InlineQuery

When the user sends an empty query, your bot could return some default or trending results.
Inheritance: extends TelegramBot\Api\BaseType
Mostra file Open project: TelegramBot/Api

Protected Properties

Property Type Description
$from TelegramBot\Api\Types\User Sender
$id string Unique identifier for this query
$location TelegramBot\Api\Types\Location Optional. Sender location, only for bots that request user location
$map array
$offset string Offset of the results to be returned, can be controlled by the bot
$query string Text of the query
$requiredParams array

Public Methods

Method Description
getFrom ( ) : User
getId ( ) : string
getLocation ( ) : TelegramBot\Api\Types\Location
getOffset ( ) : string
getQuery ( ) : string
setFrom ( User $from )
setId ( string $id )
setLocation ( TelegramBot\Api\Types\Location $location )
setOffset ( string $offset )
setQuery ( string $query )

Method Details

getFrom() public method

public getFrom ( ) : User
return TelegramBot\Api\Types\User

getId() public method

public getId ( ) : string
return string

getLocation() public method

public getLocation ( ) : TelegramBot\Api\Types\Location
return TelegramBot\Api\Types\Location

getOffset() public method

public getOffset ( ) : string
return string

getQuery() public method

public getQuery ( ) : string
return string

setFrom() public method

public setFrom ( User $from )
$from TelegramBot\Api\Types\User

setId() public method

public setId ( string $id )
$id string

setLocation() public method

public setLocation ( TelegramBot\Api\Types\Location $location )
$location TelegramBot\Api\Types\Location

setOffset() public method

public setOffset ( string $offset )
$offset string

setQuery() public method

public setQuery ( string $query )
$query string

Property Details

$from protected_oe property

Sender
protected User,TelegramBot\Api\Types $from
return TelegramBot\Api\Types\User

$id protected_oe property

Unique identifier for this query
protected string $id
return string

$location protected_oe property

Optional. Sender location, only for bots that request user location
protected Location,TelegramBot\Api\Types $location
return TelegramBot\Api\Types\Location

$map protected_oe static_oe property

protected static array $map
return array

$offset protected_oe property

Offset of the results to be returned, can be controlled by the bot
protected string $offset
return string

$query protected_oe property

Text of the query
protected string $query
return string

$requiredParams protected_oe static_oe property

protected static array $requiredParams
return array