Package org.drinkless.tdlib
Class TdApi.InternalLinkTypeRequestManagedBot
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InternalLinkType
org.drinkless.tdlib.TdApi.InternalLinkTypeRequestManagedBot
- Enclosing class:
TdApi
The link is a link to a dialog for creating of a managed bot. Call searchPublicChat with the given manager bot username. If the chat is found, the chat is a chat with a bot and the bot has canManageBots == true, then show bot creation confirmation dialog with the given suggestedBotUsername and suggestedBotName. If user agrees, call createBot with viaLink == true to create the bot.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.InternalLinkType
TdApi.InternalLinkType.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.Username of the bot which will manage the new bot.Suggested name for the bot; may be empty if not specified.Suggested username for the bot; always ends with "bot" case-insensitive. -
Constructor Summary
ConstructorsConstructorDescriptionThe link is a link to a dialog for creating of a managed bot.InternalLinkTypeRequestManagedBot(String managerBotUsername, String suggestedBotUsername, String suggestedBotName) The link is a link to a dialog for creating of a managed bot. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
managerBotUsername
Username of the bot which will manage the new bot. -
suggestedBotUsername
Suggested username for the bot; always ends with "bot" case-insensitive. -
suggestedBotName
Suggested name for the bot; may be empty if not specified. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InternalLinkTypeRequestManagedBot
public InternalLinkTypeRequestManagedBot()The link is a link to a dialog for creating of a managed bot. Call searchPublicChat with the given manager bot username. If the chat is found, the chat is a chat with a bot and the bot has canManageBots == true, then show bot creation confirmation dialog with the given suggestedBotUsername and suggestedBotName. If user agrees, call createBot with viaLink == true to create the bot. -
InternalLinkTypeRequestManagedBot
public InternalLinkTypeRequestManagedBot(String managerBotUsername, String suggestedBotUsername, String suggestedBotName) The link is a link to a dialog for creating of a managed bot. Call searchPublicChat with the given manager bot username. If the chat is found, the chat is a chat with a bot and the bot has canManageBots == true, then show bot creation confirmation dialog with the given suggestedBotUsername and suggestedBotName. If user agrees, call createBot with viaLink == true to create the bot.- Parameters:
managerBotUsername- Username of the bot which will manage the new bot.suggestedBotUsername- Suggested username for the bot; always ends with "bot" case-insensitive.suggestedBotName- Suggested name for the bot; may be empty if not specified.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.InternalLinkType- Returns:
- this.CONSTRUCTOR
-