InputMessageWidget class

A message with an HTML widget; for bots only

Inheritance
Available extensions
Annotations
  • @immutable

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, required bool isShared})
const

Properties

allowQueries → bool
allowQueries Pass true to allow the widget to send queries to the bot
final
caption → FormattedText?
caption Widget caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters
final
chatData → String
chatData Data of the widget that is specific to the chat
final
hashCode → int
The hash code for this object.
no setteroverride
height → int
height Height of the widget; 0 if the height of the widget isn't fixed
final
html → String
html HTML code of the widget; 1-32768 bytes; must not exceed 4096 bytes when compressed by zlib with the maximal compression level
final
isShared → bool
isShared Pass true to create a shared widget, which can be sent again by its identifier
final
publicData → String
publicData 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
showCaptionAboveMedia True, if the caption must be shown above the widget; otherwise, the caption must be shown below the widget
final
width → int
width 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, bool? isShared}) → InputMessageWidget

Available on InputMessageWidget, provided by the InputMessageWidgetExtensions extension

getConstructor() → String
override
map<TResult extends Object?>({required TResult inputMessageText(InputMessageText value), required TResult inputMessageRichMessage(InputMessageRichMessage value), required TResult inputMessageAnimation(InputMessageAnimation value), required TResult inputMessageAudio(InputMessageAudio value), required TResult inputMessageDocument(InputMessageDocument value), required TResult inputMessagePaidMedia(InputMessagePaidMedia value), required TResult inputMessagePhoto(InputMessagePhoto value), required TResult inputMessageSticker(InputMessageSticker value), required TResult inputMessageVideo(InputMessageVideo value), required TResult inputMessageVideoNote(InputMessageVideoNote value), required TResult inputMessageVoiceNote(InputMessageVoiceNote value), required TResult inputMessageLiveLocation(InputMessageLiveLocation value), required TResult inputMessageLocation(InputMessageLocation value), required TResult inputMessageVenue(InputMessageVenue value), required TResult inputMessageContact(InputMessageContact value), required TResult inputMessageDice(InputMessageDice value), required TResult inputMessageGame(InputMessageGame value), required TResult inputMessageInvoice(InputMessageInvoice value), required TResult inputMessagePoll(InputMessagePoll value), required TResult inputMessageStakeDice(InputMessageStakeDice value), required TResult inputMessageStory(InputMessageStory value), required TResult inputMessageChecklist(InputMessageChecklist value), required TResult inputMessageWidget(InputMessageWidget value), required TResult inputMessageSharedWidget(InputMessageSharedWidget value), required TResult inputMessageForwarded(InputMessageForwarded value)}) → TResult

Available on InputMessageContent, provided by the InputMessageContentExtensions extension

maybeMap<TResult extends Object?>({TResult inputMessageText(InputMessageText value)?, TResult inputMessageRichMessage(InputMessageRichMessage value)?, TResult inputMessageAnimation(InputMessageAnimation value)?, TResult inputMessageAudio(InputMessageAudio value)?, TResult inputMessageDocument(InputMessageDocument value)?, TResult inputMessagePaidMedia(InputMessagePaidMedia value)?, TResult inputMessagePhoto(InputMessagePhoto value)?, TResult inputMessageSticker(InputMessageSticker value)?, TResult inputMessageVideo(InputMessageVideo value)?, TResult inputMessageVideoNote(InputMessageVideoNote value)?, TResult inputMessageVoiceNote(InputMessageVoiceNote value)?, TResult inputMessageLiveLocation(InputMessageLiveLocation value)?, TResult inputMessageLocation(InputMessageLocation value)?, TResult inputMessageVenue(InputMessageVenue value)?, TResult inputMessageContact(InputMessageContact value)?, TResult inputMessageDice(InputMessageDice value)?, TResult inputMessageGame(InputMessageGame value)?, TResult inputMessageInvoice(InputMessageInvoice value)?, TResult inputMessagePoll(InputMessagePoll value)?, TResult inputMessageStakeDice(InputMessageStakeDice value)?, TResult inputMessageStory(InputMessageStory value)?, TResult inputMessageChecklist(InputMessageChecklist value)?, TResult inputMessageWidget(InputMessageWidget value)?, TResult inputMessageSharedWidget(InputMessageSharedWidget value)?, TResult inputMessageForwarded(InputMessageForwarded value)?, required TResult orElse()}) → TResult

Available on InputMessageContent, provided by the InputMessageContentExtensions extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

constructor → const String