teloxide_core/payloads/
edit_message_text_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 text and [games] 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: [`EditMessageText`](crate::payloads::EditMessageText)
11    ///
12    /// [games]: https://core.telegram.org/bots/api#games
13    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
14    pub EditMessageTextInline (EditMessageTextInlineSetters) => True {
15        required {
16            /// Identifier of the inline message
17            pub inline_message_id: String [into],
18            /// New text of the message, 1-4096 characters after entities parsing
19            pub text: 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            /// Mode for parsing entities in the message text. See [formatting options] for more details.
25            ///
26            /// [formatting options]: https://core.telegram.org/bots/api#formatting-options
27            pub parse_mode: ParseMode,
28            /// List of special entities that appear in message text, which can be specified instead of _parse\_mode_
29            pub entities: Vec<MessageEntity> [collect],
30            /// Disables link previews for links in this message
31            pub disable_web_page_preview: bool,
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}