Class TdApi.ToggleSessionCanAcceptSecretChats
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.ToggleSessionCanAcceptSecretChats
- Enclosing class:
- TdApi
Toggles whether a session can accept incoming secret chats.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Pass true to allow accepting secret chats by the session; pass false otherwise.static final int
Identifier uniquely determining type of the object.long
Session identifier. -
Constructor Summary
ConstructorDescriptionDefault 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
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
sessionId
public long sessionIdSession identifier. -
canAcceptSecretChats
public boolean canAcceptSecretChatsPass true to allow accepting secret chats by the session; pass false otherwise. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
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
- Pass true to allow accepting secret chats by the session; pass false otherwise.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-