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 SourceFrom
Sender
Declaration
[JsonProperty(PropertyName = "from", Required = Required.Always)]
public User From { get; set; }
Property Value
Type | Description |
---|---|
User |
Id
Unique identifier for this query
Declaration
[JsonProperty(PropertyName = "id", Required = Required.Always)]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 |
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 |
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 |