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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Generated by `codegen_payloads`, do not edit by hand.
use serde::Serialize;
use crate::types::{
InlineKeyboardMarkup, InputRichMessage, LinkPreviewOptions, MessageEntity, MessageId,
ParseMode, Recipient, True,
};
impl_payload! {
@[multipart = rich_message]
/// Use this method to edit text of an ephemeral message. Returns True on success.
#[derive(Debug, Clone, Serialize)]
pub EditEphemeralMessageText (EditEphemeralMessageTextSetters) => True {
required {
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`).
pub chat_id: Recipient [into],
/// Identifier of the user who received the message
pub receiver_user_id: i64,
/// Unique identifier of the ephemeral message to edit
#[serde(with = "crate::types::msg_id_as_int")]
pub ephemeral_message_id: MessageId,
}
optional {
/// New text of the message, 1-4096 characters after entities parsing; required if `rich_message` isn't specified
pub text: String [into],
/// Mode for parsing entities in the message text. See [formatting options] for more details.
///
/// [formatting options]: https://core.telegram.org/bots/api#formatting-options
pub parse_mode: ParseMode,
/// List of special entities that appear in message text, which can be specified instead of _parse\_mode_
pub entities: Vec<MessageEntity> [collect],
/// New rich content of the message; required if `text` isn't specified
pub rich_message: InputRichMessage,
/// Link preview generation options for the message
pub link_preview_options: LinkPreviewOptions,
/// A JSON-serialized object for an [inline keyboard].
///
/// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
pub reply_markup: InlineKeyboardMarkup,
}
}
}