Module tdlight.api

Class TdApi.ToggleSupergroupJoinToSendMessages

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function<TdApi.Ok>
it.tdlight.jni.TdApi.ToggleSupergroupJoinToSendMessages
Enclosing class:
TdApi

public static final class TdApi.ToggleSupergroupJoinToSendMessages extends TdApi.Function<TdApi.Ok>
Toggles whether joining is mandatory to send messages to a discussion supergroup; requires canRestrictMembers administrator right. Returns Ok
  • Field Details

    • supergroupId

      public long supergroupId
      Identifier of the supergroup.
    • joinToSendMessages

      public boolean joinToSendMessages
      New value of joinToSendMessages.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • ToggleSupergroupJoinToSendMessages

      public ToggleSupergroupJoinToSendMessages()
      Toggles whether joining is mandatory to send messages to a discussion supergroup; requires canRestrictMembers administrator right. Returns Ok
    • ToggleSupergroupJoinToSendMessages

      public ToggleSupergroupJoinToSendMessages(long supergroupId, boolean joinToSendMessages)
      Toggles whether joining is mandatory to send messages to a discussion supergroup; requires canRestrictMembers administrator right. Returns Ok
      Parameters:
      supergroupId - long Identifier of the supergroup.
      joinToSendMessages - boolean New value of joinToSendMessages.
    • ToggleSupergroupJoinToSendMessages

      public ToggleSupergroupJoinToSendMessages(DataInput input) throws IOException
      Toggles whether joining is mandatory to send messages to a discussion supergroup; requires canRestrictMembers administrator right. Returns Ok
      Throws:
      IOException
  • Method Details