ronami_core/payloads/edit_forum_topic.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::CustomEmojiId;
6use crate::types::Recipient;
7use crate::types::ThreadId;
8use crate::types::True;
9
10impl_payload! {
11 /// Use this method to edit name and icon of a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have _can\_manage\_topics_ administrator rights, unless it is the creator of the topic. Returns True on success.
12 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
13 pub EditForumTopic (EditForumTopicSetters) => True {
14 required {
15 /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
16 pub chat_id: Recipient [into],
17 /// Unique identifier for the target message thread of the forum topic
18 pub message_thread_id: ThreadId,
19 }
20 optional {
21 /// Topic name, 0-128 characters. If not specified or empty, the current name of the topic will be kept
22 pub name: String [into],
23 /// Unique identifier of the custom emoji shown as the topic icon. Use `getForumTopicIconStickers` to get all allowed custom emoji identifiers. Pass an empty string to remove the icon. If not specified, the current icon will be kept
24 pub icon_custom_emoji_id: CustomEmojiId,
25 }
26 }
27}