ronami_core/payloads/edit_ephemeral_message_media.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{InlineKeyboardMarkup, InputMedia, MessageId, Recipient, True, UserId};
6
7impl_payload! {
8 /// Use this method to edit the media 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.
9 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10 pub EditEphemeralMessageMedia (EditEphemeralMessageMediaSetters) => True {
11 required {
12 /// Unique identifier for the target chat or username of the target supergroup in the format `@username`
13 pub chat_id: Recipient [into],
14 /// Identifier of the user who received the message
15 pub receiver_user_id: UserId,
16 /// Identifier of the ephemeral message to edit
17 #[serde(flatten)]
18 pub ephemeral_message_id: MessageId,
19 /// A JSON-serialized object for the new media content of the message
20 pub media: InputMedia,
21 }
22 optional {
23 /// A JSON-serialized object for an inline keyboard
24 pub reply_markup: InlineKeyboardMarkup,
25 }
26 }
27}