ronami_core/payloads/edit_ephemeral_message_text.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::InlineKeyboardMarkup;
6use crate::types::InputRichMessage;
7use crate::types::LinkPreviewOptions;
8use crate::types::MessageEntity;
9use crate::types::MessageId;
10use crate::types::ParseMode;
11use crate::types::Recipient;
12use crate::types::True;
13use crate::types::UserId;
14
15impl_payload! {
16 /// Use this method to edit an ephemeral text or rich 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.
17 #[derive(Debug, PartialEq, Clone, Serialize)]
18 pub EditEphemeralMessageText (EditEphemeralMessageTextSetters) => True {
19 required {
20 /// Unique identifier for the target chat or username of the target supergroup in the format `@username`
21 pub chat_id: Recipient [into],
22 /// Identifier of the user who received the message
23 pub receiver_user_id: UserId,
24 /// Identifier of the ephemeral message to edit
25 #[serde(flatten)]
26 pub ephemeral_message_id: MessageId,
27 }
28 optional {
29 /// New text of the message, 1-4096 characters after entity parsing; required if rich_message isn't specified
30 pub text: String [into],
31 /// Mode for parsing entities in the message text. See [formatting options] for more details.
32 ///
33 /// [formatting options]: https://core.telegram.org/bots/api#formatting-options
34 pub parse_mode: ParseMode,
35 /// A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode
36 pub entities: Vec<MessageEntity> [collect],
37 /// New rich content of the message; required if text isn't specified
38 pub rich_message: InputRichMessage,
39 /// Link preview generation options for the message
40 pub link_preview_options: LinkPreviewOptions,
41 /// A JSON-serialized object for an inline keyboard
42 pub reply_markup: InlineKeyboardMarkup,
43 }
44 }
45}