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. Discussion supergroups can't be converted to forums. Returns Ok
  • Field Details

    • supergroupId

      public long supergroupId
      Identifier of the supergroup.
    • isForum

      public boolean isForum
      New value of isForum.
    • 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. Discussion supergroups can't be converted to forums. Returns Ok
    • ToggleSupergroupIsForum

      public ToggleSupergroupIsForum(long supergroupId, boolean isForum)
      Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Discussion supergroups can't be converted to forums. Returns Ok
      Parameters:
      supergroupId - long Identifier of the supergroup.
      isForum - boolean New value of isForum.
    • ToggleSupergroupIsForum

      public ToggleSupergroupIsForum(DataInput input) throws IOException
      Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Discussion supergroups can't be converted to forums. Returns Ok
      Throws:
      IOException
  • Method Details