Raw.channels.EditForumTopic

Raw.channels.EditForumTopic

Edit forum topic; requires manageTopics rights.

channels.editForumTopic#f4dfa185 flags:# channel:InputChannel topic_id:int title:flags.0?string icon_emoji_id:flags.1?long closed:flags.2?Bool hidden:flags.3?Bool = Updates;
export namespace Raw {
  export namespace channels {
    export class EditForumTopic {
      constructor(params: {
        channel: Raw.TypeInputChannel;
        topicId: number;
        title?: string;
        iconEmojiId?: bigint;
        closed?: boolean;
        hidden?: boolean;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0xf4dfa185

Property

  • channel : Raw.TypeInputChannel

    Supergroup

  • topicId : number

    Topic id

  • title : string or undefined

    If present, will update the topic title (maximum utf-8 length: 128).

  • iconEmojiId : bigint or undefined

    If present, updates the custom emoji used as topic icon. telegram premium users can use any custom emoji, other users can only use the custom emojis contained in the inputstickersetemojidefaulttopicicons emoji pack. pass 0 to switch to the fallback topic icon.

  • closed : boolean or undefined

    If present, will update the open/closed status of the topic.

  • hidden : boolean or undefined

    If present, will hide/unhide the topic (only valid for the “general” topic, id=1).

Results

Raw.TypeUpdates

Bots can use