ronami_core/payloads/edit_ephemeral_message_caption.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::InlineKeyboardMarkup;
6use crate::types::MessageEntity;
7use crate::types::MessageId;
8use crate::types::ParseMode;
9use crate::types::Recipient;
10use crate::types::True;
11use crate::types::UserId;
12
13impl_payload! {
14 /// Use this method to edit the caption of an ephemeral message. Note that it is not guaranteed that the user will receive the message edit event, especially if they are offline. On success, True is returned.
15 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
16 pub EditEphemeralMessageCaption (EditEphemeralMessageCaptionSetters) => True {
17 required {
18 /// Unique identifier for the target chat or username of the target supergroup in the format `@username`
19 pub chat_id: Recipient [into],
20 /// Identifier of the user who received the message
21 pub receiver_user_id: UserId,
22 /// Identifier of the ephemeral message to edit
23 #[serde(flatten)]
24 pub ephemeral_message_id: MessageId,
25 }
26 optional {
27 /// New caption of the message, 0-1024 characters after entities parsing
28 pub caption: String [into],
29 /// Mode for parsing entities in the message caption. See [formatting options] for more details.
30 ///
31 /// [formatting options]: https://core.telegram.org/bots/api#formatting-options
32 pub parse_mode: ParseMode,
33 /// A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
34 pub caption_entities: Vec<MessageEntity> [collect],
35 /// Pass True if the caption must be shown above the message media. Supported only for animation, photo and video messages.
36 pub show_caption_above_media: bool,
37 /// A JSON-serialized object for an inline keyboard
38 pub reply_markup: InlineKeyboardMarkup,
39 }
40 }
41}