teloxide_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, InlineKeyboardMarkup, MessageEntity, ParseMode, True};
6
7impl_payload! {
8 /// 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.
9 ///
10 /// See also: [`EditMessageCaption`](crate::payloads::EditMessageCaption)
11 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12 pub EditMessageCaptionInline (EditMessageCaptionInlineSetters) => True {
13 required {
14 /// Identifier of the inline message
15 pub inline_message_id: String [into],
16 }
17 optional {
18 /// Unique identifier of the business connection on behalf of which the message to be edited was sent
19 pub business_connection_id: BusinessConnectionId,
20 /// New caption of the message, 0-1024 characters after entities parsing
21 pub caption: String [into],
22 /// Mode for parsing entities in the message text. See [formatting options] for more details.
23 ///
24 /// [formatting options]: https://core.telegram.org/bots/api#formatting-options
25 pub parse_mode: ParseMode,
26 /// List of special entities that appear in the caption, which can be specified instead of _parse\_mode_
27 pub caption_entities: Vec<MessageEntity> [collect],
28 /// A JSON-serialized object for an [inline keyboard].
29 ///
30 /// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
31 pub reply_markup: InlineKeyboardMarkup,
32 }
33 }
34}