teloxide_core/payloads/delete_forum_topic.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{Recipient, ThreadId, True};
6
7impl_payload! {
8 /// Use this method to delete a forum topic along with all its messages in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the _can\_delete\_messages_ administrator rights. Returns True on success.
9 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10 pub DeleteForumTopic (DeleteForumTopicSetters) => True {
11 required {
12 /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
13 pub chat_id: Recipient [into],
14 /// Unique identifier for the target message thread of the forum topic
15 pub message_thread_id: ThreadId,
16 }
17 }
18}