InputMessagePaidMedia class final
InputMessagePaidMedia (inputMessagePaidMedia) - child of InputMessageContent
A message with paid media; can be used only in channel chats with supergroupFullInfo.has_paid_media_allowed.
- starCount: The number of Telegram Stars that must be paid to see the media; 1-getOption("paid_media_message_star_count_max").
- paidMedia: The content of the paid media.
- caption: Message caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters (optional).
- showCaptionAboveMedia: True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported in secret chats.
- payload: Bot-provided data for the paid media; bots only.
- Inheritance
-
- Object
- TdObject
- InputMessageContent
- InputMessagePaidMedia
Constructors
-
InputMessagePaidMedia({required int starCount, required List<
InputPaidMedia> paidMedia, required bool showCaptionAboveMedia, required String payload}) -
InputMessagePaidMedia (inputMessagePaidMedia) - child of InputMessageContent
const
-
InputMessagePaidMedia.fromJson(Map<
String, dynamic> json) -
Parse from a json
factory
Properties
-
Message caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters
final
- clientId → int?
-
Client ID, from which this object was received
no setterinherited
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- extra → dynamic
-
A sign from TDLib update
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 video; otherwise, the caption must be shown below the video; 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, bool? showCaptionAboveMedia, String? payload}) → InputMessagePaidMedia -
Copy model with modified properties.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type