Class InputLocationMessageContent
Represents the content of a location message to be sent as the result of an inline query.
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 InputLocationMessageContent : InputMessageContent
Properties
| Improve this Doc View SourceLatitude
Latitude of the location in degrees
Declaration
[JsonProperty(PropertyName = "latitude", Required = Required.Always)]
public float Latitude { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
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 |
Longitude
Longitude of the location in degrees
Declaration
[JsonProperty(PropertyName = "longitude", Required = Required.Always)]
public float Longitude { get; set; }
Property Value
Type | Description |
---|---|
System.Single |