Package org.drinkless.tdlib
Class TdApi.BusinessConnection
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.BusinessConnection
- Enclosing class:
- TdApi
Describes a connection of the bot with a business account.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.intPoint in time (Unix timestamp) when the connection was established.Unique identifier of the connection.booleanTrue, if the connection is enabled; false otherwise.Rights of the bot; may be null if the connection was disabled.longChat identifier of the private chat with the user.longIdentifier of the business user that created the connection. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes a connection of the bot with a business account.BusinessConnection(String id, long userId, long userChatId, int date, TdApi.BusinessBotRights rights, boolean isEnabled) Describes a connection of the bot with a business account. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
id
Unique identifier of the connection. -
userId
public long userIdIdentifier of the business user that created the connection. -
userChatId
public long userChatIdChat identifier of the private chat with the user. -
date
public int datePoint in time (Unix timestamp) when the connection was established. -
rights
Rights of the bot; may be null if the connection was disabled. -
isEnabled
public boolean isEnabledTrue, if the connection is enabled; false otherwise. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
BusinessConnection
public BusinessConnection()Describes a connection of the bot with a business account. -
BusinessConnection
public BusinessConnection(String id, long userId, long userChatId, int date, TdApi.BusinessBotRights rights, boolean isEnabled) Describes a connection of the bot with a business account.- Parameters:
id- Unique identifier of the connection.userId- Identifier of the business user that created the connection.userChatId- Chat identifier of the private chat with the user.date- Point in time (Unix timestamp) when the connection was established.rights- Rights of the bot; may be null if the connection was disabled.isEnabled- True, if the connection is enabled; false otherwise.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-