InlineQuery

data class InlineQuery(id: String, from: User, location: Location?, query: String, offset: String)

This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.

Parameters

id

Unique identifier for this query

from

Sender

location

Optional. Sender location, only for bots that request user location

query

Text of the query (up to 256 characters)

offset

Offset of the results to be returned, can be controlled by the bot

Constructors

InlineQuery
Link copied to clipboard
common
fun InlineQuery(id: String, from: User, location: Location? = null, query: String, offset: String)
Unique identifier for this query

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): User
component3
Link copied to clipboard
common
operator fun component3(): Location?
component4
Link copied to clipboard
common
operator fun component4(): String
component5
Link copied to clipboard
common
operator fun component5(): String
copy
Link copied to clipboard
common
fun copy(id: String, from: User, location: Location? = null, query: String, offset: String): InlineQuery
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

from
Link copied to clipboard
common
val from: User
Sender
id
Link copied to clipboard
common
val id: String
Unique identifier for this query
location
Link copied to clipboard
common
val location: Location? = null
Optional.
offset
Link copied to clipboard
common
val offset: String
Offset of the results to be returned, can be controlled by the bot
query
Link copied to clipboard
common
val query: String
Text of the query (up to 256 characters)