Class TdApi.BusinessConnection
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.BusinessConnection
- Enclosing class:
- TdApi
Describes a connection of the bot with a business account.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
True, if the bot can send messages to the connected user; false otherwise.static final int
Identifier uniquely determining type of the object.int
Point in time (Unix timestamp) when the connection was established.Unique identifier of the connection.boolean
True, if the connection is enabled; false otherwise.long
Chat identifier of the private chat with the user.long
Identifier of the business user that created the connection. -
Constructor Summary
ConstructorDescriptionDescribes a connection of the bot with a business account.BusinessConnection
(String id, long userId, long userChatId, int date, boolean canReply, boolean isEnabled) Describes a connection of the bot with a business account. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.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. -
canReply
public boolean canReplyTrue, if the bot can send messages to the connected user; false otherwise. -
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, boolean canReply, 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.canReply
- True, if the bot can send messages to the connected user; false otherwise.isEnabled
- True, if the connection is enabled; 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
-