Skip to main content

ronami_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;
6use crate::types::InlineKeyboardMarkup;
7use crate::types::InputRichMessage;
8use crate::types::MessageEntity;
9use crate::types::ParseMode;
10use crate::types::True;
11
12impl_payload! {
13    /// 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.
14    ///
15    /// See also: [`EditMessageText`](crate::payloads::EditMessageText)
16    ///
17    /// [games]: https://core.telegram.org/bots/api#games
18    #[derive(Debug, PartialEq, Clone, Serialize)]
19    pub EditMessageTextInline (EditMessageTextInlineSetters) => True {
20        required {
21            /// Identifier of the inline message
22            pub inline_message_id: String [into],
23            /// New text of the message, 1-4096 characters after entities parsing
24            pub text: String [into],
25        }
26        optional {
27            /// Unique identifier of the business connection on behalf of which the message to be edited was sent
28            pub business_connection_id: BusinessConnectionId,
29            /// Mode for parsing entities in the message text. See [formatting options] for more details.
30            ///
31            /// [formatting options]: https://core.telegram.org/bots/api#formatting-options
32            pub parse_mode: ParseMode,
33            /// List of special entities that appear in message text, which can be specified instead of _parse\_mode_
34            pub entities: Vec<MessageEntity> [collect],
35            /// Disables link previews for links in this message
36            pub disable_web_page_preview: bool,
37            /// New rich content of the message; required if _text_ isn't specified
38            pub rich_message: InputRichMessage,
39            /// A JSON-serialized object for an [inline keyboard].
40            ///
41            /// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
42            pub reply_markup: InlineKeyboardMarkup,
43        }
44    }
45}