ronami_core/payloads/decline_suggested_post.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{ChatId, MessageId, True};
6
7impl_payload! {
8 /// Use this method to decline a suggested post in a direct messages chat. The bot must have the 'can_manage_direct_messages' administrator right in the corresponding channel chat. Returns `true` on success.
9 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10 pub DeclineSuggestedPost (DeclineSuggestedPostSetters) => True {
11 required {
12 /// Unique identifier for the target direct messages chat
13 pub chat_id: ChatId [into],
14 /// Identifier of a suggested post message to decline
15 #[serde(flatten)]
16 pub message_id: MessageId,
17 }
18 optional {
19 /// Comment for the creator of the suggested post; 0-128 characters
20 pub comment: String [into],
21 }
22 }
23}