java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.BusinessConnectedBot
- Enclosing class:
- TdApi
Describes a bot connected to a business account.
-
Field Summary
Modifier and TypeFieldDescriptionlong
User identifier of the bot.boolean
True, if the bot can send messages to the private chats; false otherwise.static final int
Identifier uniquely determining type of the object.Private chats that will be accessible to the bot. -
Constructor Summary
ConstructorDescriptionDescribes a bot connected to a business account.BusinessConnectedBot
(long botUserId, TdApi.BusinessRecipients recipients, boolean canReply) Describes a bot connected to a business account.BusinessConnectedBot
(DataInput input) Describes a bot connected to a business account. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
botUserId
public long botUserIdUser identifier of the bot. -
recipients
Private chats that will be accessible to the bot. -
canReply
public boolean canReplyTrue, if the bot can send messages to the private chats; false otherwise. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
BusinessConnectedBot
public BusinessConnectedBot()Describes a bot connected to a business account. -
BusinessConnectedBot
Describes a bot connected to a business account.- Parameters:
botUserId
- User identifier of the bot.recipients
- Private chats that will be accessible to the bot.canReply
- True, if the bot can send messages to the private chats; false otherwise.
-
BusinessConnectedBot
Describes a bot connected to a business account.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
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
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-