ronami_core/payloads/stop_message_live_location.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::BusinessConnectionId;
6use crate::types::Message;
7use crate::types::MessageId;
8use crate::types::Recipient;
9use crate::types::ReplyMarkup;
10
11impl_payload! {
12 /// Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to [`StopMessageLiveLocation`]. On success, the edited Message is returned.
13 ///
14 /// See also: [`StopMessageLiveLocationInline`](crate::payloads::StopMessageLiveLocationInline)
15 ///
16 /// [`Message`]: crate::types::Message
17 /// [`StopMessageLiveLocation`]: crate::payloads::StopMessageLiveLocation
18 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
19 pub StopMessageLiveLocation (StopMessageLiveLocationSetters) => Message {
20 required {
21 /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
22 pub chat_id: Recipient [into],
23 /// Identifier of the message to edit
24 #[serde(flatten)]
25 pub message_id: MessageId,
26 }
27 optional {
28 /// Unique identifier of the business connection on behalf of which the message to be edited was sent
29 pub business_connection_id: BusinessConnectionId,
30 /// Additional interface options. A JSON-serialized object for an [inline keyboard], [custom reply keyboard], instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account.
31 ///
32 /// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
33 /// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
34 pub reply_markup: ReplyMarkup [into],
35 }
36 }
37}