Show / Hide Table of Contents

Class InlineQuery

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

Inheritance
System.Object
InlineQuery
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types.Inline
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class InlineQuery

Properties

| Improve this Doc View Source

From

Sender

Declaration
[JsonProperty(PropertyName = "from", Required = Required.Always)]
public User From { get; set; }
Property Value
Type Description
User
| Improve this Doc View Source

Id

Unique identifier for this query

Declaration
[JsonProperty(PropertyName = "id", Required = Required.Always)]
public string Id { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Location

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

Declaration
[JsonProperty(PropertyName = "location")]
public Location Location { get; set; }
Property Value
Type Description
Location
| Improve this Doc View Source

Offset

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

Declaration
[JsonProperty(PropertyName = "offset", Required = Required.Always)]
public string Offset { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Query

Text of the query (up to 512 characters)

Declaration
[JsonProperty(PropertyName = "query", Required = Required.Always)]
public string Query { get; set; }
Property Value
Type Description
System.String
  • Improve this Doc
  • View Source
Back to top Generated by DocFX