teloxide_core/payloads/edit_message_reply_markup.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{BusinessConnectionId, InlineKeyboardMarkup, Message, MessageId, Recipient};
6
7impl_payload! {
8 /// Use this method to edit only the reply markup of messages. On success, the edited Message 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: [`EditMessageMediaInline`](crate::payloads::EditMessageMediaInline)
11 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12 pub EditMessageReplyMarkup (EditMessageReplyMarkupSetters) => Message {
13 required {
14 /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`).
15 pub chat_id: Recipient [into],
16 /// Identifier of the message to edit
17 #[serde(flatten)]
18 pub message_id: MessageId,
19 }
20 optional {
21 /// Unique identifier of the business connection on behalf of which the message to be edited was sent
22 pub business_connection_id: BusinessConnectionId,
23 /// A JSON-serialized object for an [inline keyboard].
24 ///
25 /// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
26 pub reply_markup: InlineKeyboardMarkup,
27 }
28 }
29}