• Modify a topic in a forum

    Only admins with manageTopics permission can do this.

    Parameters

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

        Chat ID or username

      • Optionalicon?: null | Long

        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