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