Module tdlight.api

Class TdApi.ToggleSupergroupIsForum

Enclosing class:
TdApi

public static final class TdApi.ToggleSupergroupIsForum extends TdApi.Function<TdApi.Ok>
Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Returns Ok
  • Field Details

    • supergroupId

      public long supergroupId
      Identifier of the supergroup.
    • isForum

      public boolean isForum
      New value of isForum. A supergroup can be converted to a forum, only if it has at least GetOption("forum_member_count_min") members.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • ToggleSupergroupIsForum

      public ToggleSupergroupIsForum()
      Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Returns Ok
    • ToggleSupergroupIsForum

      public ToggleSupergroupIsForum(long supergroupId, boolean isForum)
      Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Returns Ok
      Parameters:
      supergroupId - long Identifier of the supergroup.
      isForum - boolean New value of isForum. A supergroup can be converted to a forum, only if it has at least GetOption("forum_member_count_min") members.
    • ToggleSupergroupIsForum

      public ToggleSupergroupIsForum(DataInput input) throws IOException
      Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Returns Ok
      Throws:
      IOException
  • Method Details