AttachmentMenuBot class
Represents a bot, which can be added to attachment menu
Constructors
- AttachmentMenuBot({String? extra, int? client_id, int53? bot_user_id, Bool? supports_self_chat, Bool? supports_user_chats, Bool? supports_bot_chats, Bool? supports_group_chats, Bool? supports_channel_chats, Bool? supports_settings, Bool? request_write_access, 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})
-
AttachmentMenuBot.fromMap(Map<
String, dynamic> map)
Properties
- android_icon ↔ File?
-
Attachment menu icon for the bot in TGS format for the official Android app; may be null
getter/setter pair
- bot_user_id ↔ int53?
-
User identifier of the bot added to attachment menu
getter/setter pair
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- default_icon ↔ File?
-
Default attachment menu icon for the bot in SVG format; may be null
getter/setter pair
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon_color ↔ AttachmentMenuBotColor?
-
Color to highlight selected icon of the bot if appropriate; may be null
getter/setter pair
- ios_animated_icon ↔ File?
-
Attachment menu icon for the bot in TGS format for the official iOS app; may be null
getter/setter pair
- ios_static_icon ↔ File?
-
Attachment menu icon for the bot in SVG format for the official iOS app; may be null
getter/setter pair
- macos_icon ↔ File?
-
Attachment menu icon for the bot in TGS format for the official native macOS app; may be null
getter/setter pair
- name ↔ string?
-
Name for the bot in attachment menu
getter/setter pair
- name_color ↔ AttachmentMenuBotColor?
-
Color to highlight selected name of the bot if appropriate; may be null
getter/setter pair
- request_write_access ↔ Bool?
-
True, if the user needs to be requested to give the permission to the bot to send them messages
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supports_bot_chats ↔ Bool?
-
True, if the bot supports opening from attachment menu in private chats with other bots
getter/setter pair
- supports_channel_chats ↔ Bool?
-
True, if the bot supports opening from attachment menu in channel chats
getter/setter pair
- supports_group_chats ↔ Bool?
-
True, if the bot supports opening from attachment menu in basic group and supergroup chats
getter/setter pair
- supports_self_chat ↔ Bool?
-
True, if the bot supports opening from attachment menu in the chat with the bot
getter/setter pair
- supports_settings ↔ Bool?
-
True, if the bot supports "settings_button_pressed" event
getter/setter pair
- supports_user_chats ↔ Bool?
-
True, if the bot supports opening from attachment menu in private chats with ordinary users
getter/setter pair
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
- web_app_placeholder ↔ File?
-
Default placeholder for opened Web Apps in SVG format; may be null
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