teloxide_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, ChatId, MessageId, True};
6
7impl_payload! {
8 /// Marks incoming message as read on behalf of a business account. Requires the _can_read_messages_ business bot right. Returns _true_ on success.
9 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10 pub ReadBusinessMessage (ReadBusinessMessageSetters) => True {
11 required {
12 /// Unique identifier of the business connection on behalf of which to read the message
13 pub business_connection_id: BusinessConnectionId,
14 /// Unique identifier of the chat in which the message was received. The chat must have been active in the last 24 hours
15 pub chat_id: ChatId [into],
16 /// Unique identifier of the message to mark as read
17 #[serde(flatten)]
18 pub message_id: MessageId,
19 }
20 }
21}