ronami_core/payloads/approve_suggested_post.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use chrono::{DateTime, Utc};
4use serde::Serialize;
5
6use crate::types::{ChatId, MessageId, True};
7
8impl_payload! {
9 /// Use this method to approve a suggested post in a direct messages chat. The bot must have the 'can_post_messages' administrator right in the corresponding channel chat. Returns `true` on success.
10 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
11 pub ApproveSuggestedPost (ApproveSuggestedPostSetters) => True {
12 required {
13 /// Unique identifier for the target direct messages chat
14 pub chat_id: ChatId [into],
15 /// Identifier of a suggested post message to approve
16 #[serde(flatten)]
17 pub message_id: MessageId,
18 }
19 optional {
20 /// Point in time (Unix timestamp) when the post is expected to be published; omit if the date has already been specified when the suggested post was created. If specified, then the date must be not more than 2678400 seconds (30 days) in the future
21 #[serde(with = "crate::types::serde_opt_date_from_unix_timestamp")]
22 pub send_date: DateTime<Utc> [into],
23 }
24 }
25}