Show / Hide Table of Contents

Class InlineQueryResultLocation

Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.

Inheritance
System.Object
InlineQueryResult
InlineQueryResultLocation
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 InlineQueryResultLocation : InlineQueryResult

Properties

| Improve this Doc View Source

Id

Unique identifier for this result, 1-64 Bytes

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

InputMessageContent

Content of the message to be sent instead of the location

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

Latitude

Location latitude in degrees

Declaration
[JsonProperty(PropertyName = "latitude", Required = Required.Always)]
public float Latitude { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

LivePeriod

Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.

Declaration
[JsonProperty(PropertyName = "live_period")]
public int LivePeriod { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Longitude

Location longitude in degrees

Declaration
[JsonProperty(PropertyName = "longitude", Required = Required.Always)]
public float Longitude { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

ReplyMarkup

Optional. Inline keyboard attached to the message

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

ThumbHeight

Optional. Thumbnail height

Declaration
[JsonProperty(PropertyName = "thumb_height")]
public int ThumbHeight { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

ThumbUrl

Optional. Url of the thumbnail for the result

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

ThumbWidth

Optional. Thumbnail width

Declaration
[JsonProperty(PropertyName = "thumb_width")]
public int ThumbWidth { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Title

Location title

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

Type

Type of the result, must be location

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