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;
6use crate::types::MessageId;
7use crate::types::True;
8
9impl_payload! {
10 /// 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.
11 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12 pub DeclineSuggestedPost (DeclineSuggestedPostSetters) => True {
13 required {
14 /// Unique identifier for the target direct messages chat
15 pub chat_id: ChatId [into],
16 /// Identifier of a suggested post message to decline
17 #[serde(flatten)]
18 pub message_id: MessageId,
19 }
20 optional {
21 /// Comment for the creator of the suggested post; 0-128 characters
22 pub comment: String [into],
23 }
24 }
25}