Package org.drinkless.tdlib
Class TdApi.GetManagedBotToken
- Enclosing class:
- TdApi
Returns token of a managed bot; for bots only.
Returns Text
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongIdentifier of the managed bot.static final intIdentifier uniquely determining type of the object.booleanPass true to revoke the current token and create a new one. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which returns token of a managed bot; for bots only.GetManagedBotToken(long botUserId, boolean revoke) Creates a function, which returns token of a managed bot; for bots only. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
botUserId
public long botUserIdIdentifier of the managed bot. -
revoke
public boolean revokePass true to revoke the current token and create a new one. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetManagedBotToken
public GetManagedBotToken()Default constructor for a function, which returns token of a managed bot; for bots only.Returns
Text -
GetManagedBotToken
public GetManagedBotToken(long botUserId, boolean revoke) Creates a function, which returns token of a managed bot; for bots only.Returns
Text- Parameters:
botUserId- Identifier of the managed bot.revoke- Pass true to revoke the current token and create a new one.
-
-
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
-