public static class TdApi.BusinessConnection extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
canReply
True, if the bot can send messages to the connected user; false otherwise.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
date
Point in time (Unix timestamp) when the connection was established.
|
java.lang.String |
id
Unique identifier of the connection.
|
boolean |
isEnabled
True, if the connection is enabled; false otherwise.
|
long |
userChatId
Chat identifier of the private chat with the user.
|
long |
userId
Identifier of the business user that created the connection.
|
| Constructor and Description |
|---|
BusinessConnection()
Describes a connection of the bot with a business account.
|
BusinessConnection(java.lang.String id,
long userId,
long userChatId,
int date,
boolean canReply,
boolean isEnabled)
Describes a connection of the bot with a business account.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String id
public long userId
public long userChatId
public int date
public boolean canReply
public boolean isEnabled
public static final int CONSTRUCTOR
public BusinessConnection()
public BusinessConnection(java.lang.String id,
long userId,
long userChatId,
int date,
boolean canReply,
boolean isEnabled)
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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object