Package org.drinkless.tdlib
Class TdApi.CreateBot
- Enclosing class:
TdApi
Creates a bot which will be managed by another bot. Returns the created bot. May return an error with a message "BOT_CREATE_LIMIT_EXCEEDED" if the user already owns the maximum allowed number of bots as per premiumLimitTypeOwnedBotCount. An internal link "https://t.me/BotFather?start=deletebot" can be processed to handle the error.
Returns User
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.longIdentifier of the bot that will manage the created bot.Name of the bot; 1-64 characters.Username of the bot.booleanPass true if the bot is created from an internalLinkTypeRequestManagedBot link. -
Constructor Summary
Constructors -
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
-
managerBotUserId
public long managerBotUserIdIdentifier of the bot that will manage the created bot. -
name
Name of the bot; 1-64 characters. -
username
Username of the bot. The username must end with "bot". Use checkBotUsername to find whether the name is suitable. -
viaLink
public boolean viaLinkPass true if the bot is created from an internalLinkTypeRequestManagedBot link. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
CreateBot
public CreateBot()Default constructor for a function, which creates a bot which will be managed by another bot. Returns the created bot. May return an error with a message "BOT_CREATE_LIMIT_EXCEEDED" if the user already owns the maximum allowed number of bots as per premiumLimitTypeOwnedBotCount. An internal link "https://t.me/BotFather?start=deletebot" can be processed to handle the error.Returns
User -
CreateBot
Creates a function, which creates a bot which will be managed by another bot. Returns the created bot. May return an error with a message "BOT_CREATE_LIMIT_EXCEEDED" if the user already owns the maximum allowed number of bots as per premiumLimitTypeOwnedBotCount. An internal link "https://t.me/BotFather?start=deletebot" can be processed to handle the error.Returns
User- Parameters:
managerBotUserId- Identifier of the bot that will manage the created bot.name- Name of the bot; 1-64 characters.username- Username of the bot. The username must end with "bot". Use checkBotUsername to find whether the name is suitable.viaLink- Pass true if the bot is created from an internalLinkTypeRequestManagedBot link.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.User>- Returns:
- this.CONSTRUCTOR
-