AttachmentMenuBot class
Constructors
- AttachmentMenuBot({required int botUserId, required bool supportsSelfChat, required bool supportsUserChats, required bool supportsBotChats, required bool supportsGroupChats, required bool supportsChannelChats, required bool supportsSettings, required bool requestWriteAccess, required String name, AttachmentMenuBotColor? nameColor, File? defaultIcon, File? iosStaticIcon, File? iosAnimatedIcon, File? androidIcon, File? macosIcon, AttachmentMenuBotColor? iconColor, File? webAppPlaceholder, dynamic extra, int? clientId})
-
Represents a bot, which can be added to attachment menu
const
-
AttachmentMenuBot.fromJson(Map<
String, dynamic> json) -
Parse from a json
factory
Properties
- androidIcon → File?
-
androidIcon Attachment menu icon for the bot in TGS format for the official Android app; may be null
final
- botUserId → int
-
botUserId User identifier of the bot added to attachment menu
final
- clientId → int?
-
clientId client identifier
final
- defaultIcon → File?
-
defaultIcon Default attachment menu icon for the bot in SVG format; may be null
final
- extra → dynamic
-
extra callback sign
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconColor → AttachmentMenuBotColor?
-
iconColor Color to highlight selected icon of the bot if appropriate; may be null
final
- iosAnimatedIcon → File?
-
iosAnimatedIcon Attachment menu icon for the bot in TGS format for the official iOS app; may be null
final
- iosStaticIcon → File?
-
iosStaticIcon Attachment menu icon for the bot in SVG format for the official iOS app; may be null
final
- macosIcon → File?
-
macosIcon Attachment menu icon for the bot in TGS format for the official native macOS app; may be null
final
- name → String
-
name Name for the bot in attachment menu
final
- nameColor → AttachmentMenuBotColor?
-
nameColor Color to highlight selected name of the bot if appropriate; may be null
final
- requestWriteAccess → bool
-
requestWriteAccess True, if the user must be asked for the permission to the bot to send them messages
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsBotChats → bool
-
supportsBotChats True, if the bot supports opening from attachment menu in private chats with other bots
final
- supportsChannelChats → bool
-
supportsChannelChats True, if the bot supports opening from attachment menu in channel chats
final
- supportsGroupChats → bool
-
supportsGroupChats True, if the bot supports opening from attachment menu in basic group and supergroup chats
final
- supportsSelfChat → bool
-
supportsSelfChat True, if the bot supports opening from attachment menu in the chat with the bot
final
- supportsSettings → bool
-
supportsSettings True, if the bot supports "settings_button_pressed" event
final
- supportsUserChats → bool
-
supportsUserChats True, if the bot supports opening from attachment menu in private chats with ordinary users
final
- webAppPlaceholder → File?
-
webAppPlaceholder Default placeholder for opened Web Apps in SVG format; may be null
final
Methods
-
copyWith(
{int? botUserId, bool? supportsSelfChat, bool? supportsUserChats, bool? supportsBotChats, bool? supportsGroupChats, bool? supportsChannelChats, bool? supportsSettings, bool? requestWriteAccess, String? name, AttachmentMenuBotColor? nameColor, File? defaultIcon, File? iosStaticIcon, File? iosAnimatedIcon, File? androidIcon, File? macosIcon, AttachmentMenuBotColor? iconColor, File? webAppPlaceholder, dynamic extra, int? clientId}) → AttachmentMenuBot -
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String