Skip to main content

ronami_core/payloads/
edit_message_caption_inline.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::BusinessConnectionId;
6use crate::types::InlineKeyboardMarkup;
7use crate::types::MessageEntity;
8use crate::types::ParseMode;
9use crate::types::True;
10
11impl_payload! {
12    /// Use this method to edit captions of messages. On success, _True_ is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent.
13    ///
14    /// See also: [`EditMessageCaption`](crate::payloads::EditMessageCaption)
15    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
16    pub EditMessageCaptionInline (EditMessageCaptionInlineSetters) => True {
17        required {
18            /// Identifier of the inline message
19            pub inline_message_id: String [into],
20        }
21        optional {
22            /// Unique identifier of the business connection on behalf of which the message to be edited was sent
23            pub business_connection_id: BusinessConnectionId,
24            /// New caption of the message, 0-1024 characters after entities parsing
25            pub caption: String [into],
26            /// Mode for parsing entities in the message text. See [formatting options] for more details.
27            ///
28            /// [formatting options]: https://core.telegram.org/bots/api#formatting-options
29            pub parse_mode: ParseMode,
30            /// List of special entities that appear in the caption, which can be specified instead of _parse\_mode_
31            pub caption_entities: Vec<MessageEntity> [collect],
32            /// A JSON-serialized object for an [inline keyboard].
33            ///
34            /// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
35            pub reply_markup: InlineKeyboardMarkup,
36        }
37    }
38}