InternalLinkTypeAttachmentMenuBot class
The link is a link to an attachment menu bot to be opened in the specified or a chosen chat. Process given target_chat to open the chat. Then, call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot. If the bot isn't added to attachment menu, then user needs to confirm adding the bot to attachment menu. If user confirms adding, then use toggleBotIsAddedToAttachmentMenu to add it. If the attachment menu bot can't be used in the opened chat, show an error to the user. If the bot is added to attachment menu and can be used in the chat, then use openWebApp with the given URL
- Inheritance
-
- Object
- Td
- TdObject
- InternalLinkType
- InternalLinkTypeAttachmentMenuBot
Constructors
- InternalLinkTypeAttachmentMenuBot({String? extra, int? client_id, TargetChat? target_chat, string? bot_username, string? url})
-
InternalLinkTypeAttachmentMenuBot.fromMap(Map<
String, dynamic> map)
Properties
- bot_username ↔ string?
-
Username of the bot
getter/setter pair
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- target_chat ↔ TargetChat?
-
Target chat to be opened
getter/setter pair
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
- url ↔ string?
-
URL to be passed to openWebApp
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited