InputMessageWidget class final
A message with an HTML widget; for bots only
- Inheritance
-
- Object
- TdObject
- InputMessageContent
- InputMessageWidget
Constructors
- InputMessageWidget({required int width, required int height, required String html, required String publicData, required String chatData, FormattedText? caption, required bool showCaptionAboveMedia, required bool allowQueries, })
-
A message with an HTML widget; for bots only
const
-
InputMessageWidget.fromJson(Map<
String, dynamic> json) -
Parses a InputMessageWidget from TDLib JSON.
factory
Properties
- allowQueries → bool
-
Pass true to allow the widget to send queries to the bot
final
- caption → FormattedText?
-
Widget caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters
final
- chatData → String
-
Data of the widget, which is specific to the chat
final
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
Height of the widget; 0 if the height of the widget isn't fixed
final
- html → String
-
HTML code of the widget; 1-32768 bytes; must not exceed 4096 bytes when compressed by zlib with the maximal compression level
final
-
Pass true to create a shared widget, which can be sent again by its identifier
final
- publicData → String
-
Public data of the widget, which will be available in copies and forwards of the message
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCaptionAboveMedia → bool
-
True, if the caption must be shown above the widget; otherwise, the caption must be shown below the widget
final
- width → int
-
Width of the widget; 0 if the widget must occupy the whole width of the message bubble
final
Methods
-
copyWith(
{int? width, int? height, String? html, String? publicData, String? chatData, FormattedText? caption()?, bool? showCaptionAboveMedia, bool? allowQueries, }) → InputMessageWidget -
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.