ferrisgram/types/
input_location_message_content.rs

1// WARNING: THIS CODE IS AUTOGENERATED.
2// DO NOT EDIT!!!
3
4use serde::{Deserialize, Serialize};
5
6/// Represents the content of a location message to be sent as the result of an inline query.
7/// <https://core.telegram.org/bots/api#inputlocationmessagecontent>
8#[derive(Serialize, Deserialize, Debug, Clone)]
9pub struct InputLocationMessageContent {
10    /// Latitude of the location in degrees
11    pub latitude: f64,
12    /// Longitude of the location in degrees
13    pub longitude: f64,
14    /// Optional. The radius of uncertainty for the location, measured in meters; 0-1500
15    #[serde(skip_serializing_if = "Option::is_none")]
16    pub horizontal_accuracy: Option<f64>,
17    /// Optional. Period in seconds during which the location can be updated, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.
18    #[serde(skip_serializing_if = "Option::is_none")]
19    pub live_period: Option<i64>,
20    /// Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
21    #[serde(skip_serializing_if = "Option::is_none")]
22    pub heading: Option<i64>,
23    /// Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
24    #[serde(skip_serializing_if = "Option::is_none")]
25    pub proximity_alert_radius: Option<i64>,
26}