Documentation - v0.27.0
    Preparing search index...
    • Modify a topic in a forum

      Only admins with manageTopics permission can do this.

      Parameters

      • client: ITelegramClient
      • params: {
            chatId: InputPeerLike;
            closed?: boolean;
            hidden?: boolean;
            icon?: Long | null;
            shouldDispatch?: true;
            title?: string;
            topicId: number | ForumTopic;
        }
        • chatId: InputPeerLike

          Chat ID or username

        • Optionalclosed?: boolean

          Whether to (un)close the topic

        • Optionalhidden?: boolean

          Whether to (un)hide the topic

        • Optionalicon?: Long | null

          New icon of the topic.

          Can be a custom emoji ID, or null to remove the icon and use static color instead

        • OptionalshouldDispatch?: true

          Whether to dispatch the returned service message (if any) to the client's update handler.

        • Optionaltitle?: string

          New topic title

        • topicId: number | ForumTopic

          ID of the topic (i.e. its top message ID)

      Returns Promise<Message>

      Service message about the modification