ronami_core/payloads/close_forum_topic.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::Recipient;
6use crate::types::ThreadId;
7use crate::types::True;
8
9impl_payload! {
10 /// Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the _can\_manage\_topics_ administrator rights, unless it is the creator of the topic. Returns True on success.
11 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12 pub CloseForumTopic (CloseForumTopicSetters) => True {
13 required {
14 /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
15 pub chat_id: Recipient [into],
16 /// Unique identifier for the target message thread of the forum topic
17 pub message_thread_id: ThreadId,
18 }
19 }
20}