InputMessagePaidMedia class final
A message with paid media; can be used only in channel chats with supergroupFullInfo.has_paid_media_allowed
- Inheritance
-
- Object
- TdObject
- InputMessageContent
- InputMessagePaidMedia
Constructors
-
InputMessagePaidMedia({required int starCount, required List<
InputPaidMedia> paidMedia, FormattedText? caption, required bool showCaptionAboveMedia, required String payload}) -
A message with paid media; can be used only in channel chats with supergroupFullInfo.has_paid_media_allowed
const
-
InputMessagePaidMedia.fromJson(Map<
String, dynamic> json) -
Parses a InputMessagePaidMedia from TDLib JSON.
factory
Properties
- caption → FormattedText?
-
Message caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters
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
-
paidMedia
→ List<
InputPaidMedia> -
The content of the paid media
final
- payload → String
-
Bot-provided data for the paid media; bots only
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 media; otherwise, the caption must be shown below the media; not supported in secret chats
final
- starCount → int
-
The number of Telegram Stars that must be paid to see the media; 1-getOption("paid_media_message_star_count_max")
final
Methods
-
copyWith(
{int? starCount, List< InputPaidMedia> ? paidMedia, FormattedText? caption()?, bool? showCaptionAboveMedia, String? payload}) → InputMessagePaidMedia -
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.