pub async fn edit_forum_topic(
chat_id: i64,
message_thread_id: i64,
name: String,
edit_icon_custom_emoji: bool,
icon_custom_emoji_id: i64,
client_id: i32,
) -> Result<(), Error>
Expand description
Edits title and icon of a topic in a forum supergroup chat; requires can_manage_topics right in the supergroup unless the user is creator of the topic
§Arguments
chat_id
- Identifier of the chatmessage_thread_id
- Message thread identifier of the forum topicname
- New name of the topic; 0-128 characters. If empty, the previous topic name is keptedit_icon_custom_emoji
- Pass true to edit the icon of the topic. Icon of the General topic can’t be editedicon_custom_emoji_id
- Identifier of the new custom emoji for topic icon; pass 0 to remove the custom emoji. Ignored if edit_icon_custom_emoji is false. Telegram Premium users can use any custom emoji, other users can use only a custom emoji returned by getForumTopicDefaultIconsclient_id
- The client id to send the request to