ronami_core/payloads/read_business_message.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::BusinessConnectionId;
6use crate::types::ChatId;
7use crate::types::MessageId;
8use crate::types::True;
9
10impl_payload! {
11 /// Marks incoming message as read on behalf of a business account. Requires the _can_read_messages_ business bot right. Returns _true_ on success.
12 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
13 pub ReadBusinessMessage (ReadBusinessMessageSetters) => True {
14 required {
15 /// Unique identifier of the business connection on behalf of which to read the message
16 pub business_connection_id: BusinessConnectionId,
17 /// Unique identifier of the chat in which the message was received. The chat must have been active in the last 24 hours
18 pub chat_id: ChatId [into],
19 /// Unique identifier of the message to mark as read
20 #[serde(flatten)]
21 pub message_id: MessageId,
22 }
23 }
24}