AttachmentMenuBot class
Represents a bot, which can be added to attachment or side menu.
- Inheritance
- Available Extensions
Constructors
- AttachmentMenuBot({required int bot_user_id, required bool supports_self_chat, required bool supports_user_chats, required bool supports_bot_chats, required bool supports_group_chats, required bool supports_channel_chats, required bool supports_settings, required bool request_write_access, required bool is_added, required String name, AttachmentMenuBotColor? name_color, File? default_icon, File? ios_static_icon, File? ios_animated_icon, File? android_icon, File? macos_icon, AttachmentMenuBotColor? icon_color, File? web_app_placeholder, int? extra, int? clientId})
- Represents a bot, which can be added to attachment or side menu
Properties
- android_icon ↔ File?
-
Icon for the bot in TGS format for the official Android app; may be null.
read / write
-
Icon for the bot in SVG format for the official Android app side menu; may be null.
read / write
- bot_user_id ↔ int
-
User identifier of the bot.
read / write
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- default_icon ↔ File?
-
Default icon for the bot in SVG format; may be null.
read / write
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- icon_color ↔ AttachmentMenuBotColor?
-
Color to highlight selected icon of the bot if appropriate; may be null.
read / write
- ios_animated_icon ↔ File?
-
Icon for the bot in TGS format for the official iOS app; may be null.
read / write
-
Icon for the bot in PNG format for the official iOS app side menu; may be null.
read / write
- ios_static_icon ↔ File?
-
Icon for the bot in SVG format for the official iOS app; may be null.
read / write
- is_added ↔ bool
-
True, if the bot was explicitly added by the user. If the bot isn't added, then on the first bot launch toggleBotIsAddedToAttachmentMenu must be called and the bot must be added or removed.
read / write
- macos_icon ↔ File?
-
Icon for the bot in TGS format for the official native macOS app; may be null.
read / write
-
Icon for the bot in PNG format for the official macOS app side menu; may be null.
read / write
- name ↔ String
-
Name for the bot in attachment menu.
read / write
- name_color ↔ AttachmentMenuBotColor?
-
Color to highlight selected name of the bot if appropriate; may be null.
read / write
- request_write_access ↔ bool
-
True, if the user must be asked for the permission to send messages to the bot.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
-
True, if a disclaimer, why the bot is shown in the side menu, is needed.
read / write
-
True, if the bot must be shown in the attachment menu.
read / write
-
True, if the bot must be shown in the side menu.
read / write
- supports_bot_chats ↔ bool
-
True, if the bot supports opening from attachment menu in private chats with other bots.
read / write
- supports_channel_chats ↔ bool
-
True, if the bot supports opening from attachment menu in channel chats.
read / write
- supports_group_chats ↔ bool
-
True, if the bot supports opening from attachment menu in basic group and supergroup chats.
read / write
- supports_self_chat ↔ bool
-
True, if the bot supports opening from attachment menu in the chat with the bot.
read / write
- supports_settings ↔ bool
-
True, if the bot supports "settings_button_pressed" event.
read / write
- supports_user_chats ↔ bool
-
True, if the bot supports opening from attachment menu in private chats with ordinary users.
read / write
- web_app_placeholder ↔ File?
-
Default placeholder for opened Web Apps in SVG format; may be null.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Object to Map serializer
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? _map) → AttachmentMenuBot? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"attachmentMenuBot"