InternalLinkTypeRequestManagedBot class final
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 can_manage_bots == true, then show bot creation confirmation dialog with the given suggested_bot_username and suggested_bot_name. If user agrees, call createBot with via_link == true to create the bot
- Inheritance
-
- Object
- TdObject
- InternalLinkType
- InternalLinkTypeRequestManagedBot
Constructors
- InternalLinkTypeRequestManagedBot({required String managerBotUsername, required String suggestedBotUsername, required String suggestedBotName, dynamic extra, int? clientId})
-
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 can_manage_bots == true, then show bot creation confirmation dialog with the given suggested_bot_username and suggested_bot_name. If user agrees, call createBot with via_link == true to create the bot
const
-
InternalLinkTypeRequestManagedBot.fromJson(Map<
String, dynamic> json) -
Parses a InternalLinkTypeRequestManagedBot from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- managerBotUsername → String
-
Username of the bot which will manage the new bot
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suggestedBotName → String
-
Suggested name for the bot; may be empty if not specified
final
- suggestedBotUsername → String
-
Suggested username for the bot; always ends with "bot" or a string from updateAllowedBotUsernamePremiumSuffixes case-insensitive
final
Methods
-
copyWith(
{String? managerBotUsername, String? suggestedBotUsername, String? suggestedBotName, dynamic extra, int? clientId}) → InternalLinkTypeRequestManagedBot -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it.override -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.