InlineQuery

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

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

Constructors

InlineQuery
Link copied to clipboard
fun InlineQuery(id: String, from: User, query: String, offset: String, chat_type: String? = null, location: Location? = null)
Creates a InlineQuery.

Properties

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