1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use crate::types::*;
#[derive(Debug, Serialize, TelegramApi, Setters, New)]
#[return_type = "Message"]
#[new(vis = "pub")]
#[set(vis = "pub")]
pub struct SendLocation {
pub(crate) chat_id: ChatIdOrUsername,
pub(crate) latitude: Float,
pub(crate) longitude: Float,
#[serde(skip_serializing_if = "Option::is_none")]
pub(crate) live_period: Option<Integer>,
#[serde(skip_serializing_if = "Option::is_none")]
pub(crate) disable_notification: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub(crate) reply_to_message_id: Option<Integer>,
#[serde(skip_serializing_if = "Option::is_none")]
pub(crate) reply_markup: Option<ReplyMarkup>,
}