Package org.drinkless.tdlib
Class TdApi.ToggleSessionCanAcceptSecretChats
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.ToggleSessionCanAcceptSecretChats
-
- Enclosing class:
- TdApi
public static class TdApi.ToggleSessionCanAcceptSecretChats extends TdApi.Function
Toggles whether a session can accept incoming secret chats.Returns
Ok
-
-
Field Summary
Fields Modifier and Type Field Description booleancanAcceptSecretChatsTrue, if incoming secret chats can be accepted by the session.static intCONSTRUCTORIdentifier uniquely determining type of the object.longsessionIdSession identifier.
-
Constructor Summary
Constructors Constructor Description ToggleSessionCanAcceptSecretChats()Default constructor for a function, which toggles whether a session can accept incoming secret chats.ToggleSessionCanAcceptSecretChats(long sessionId, boolean canAcceptSecretChats)Creates a function, which toggles whether a session can accept incoming secret chats.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
sessionId
public long sessionId
Session identifier.
-
canAcceptSecretChats
public boolean canAcceptSecretChats
True, if incoming secret chats can be accepted by the session.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ToggleSessionCanAcceptSecretChats
public ToggleSessionCanAcceptSecretChats()
Default constructor for a function, which toggles whether a session can accept incoming secret chats.Returns
Ok
-
ToggleSessionCanAcceptSecretChats
public ToggleSessionCanAcceptSecretChats(long sessionId, boolean canAcceptSecretChats)Creates a function, which toggles whether a session can accept incoming secret chats.Returns
Ok- Parameters:
sessionId- Session identifier.canAcceptSecretChats- True, if incoming secret chats can be accepted by the session.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-