InputMessagePhoto class
A photo message
- Inheritance
-
- Object
- Td
- TdObject
- InputMessageContent
- InputMessagePhoto
Constructors
-
InputMessagePhoto({String? extra, int? client_id, InputFile? photo, InputThumbnail? thumbnail, vector<
int32> ? added_sticker_file_ids, int32? width, int32? height, FormattedText? caption, int32? self_destruct_time, Bool? has_spoiler}) -
InputMessagePhoto.fromMap(Map<
String, dynamic> map)
Properties
-
added_sticker_file_ids
↔ vector<
int32> ? -
File identifiers of the stickers added to the photo, if applicable
getter/setter pair
- caption ↔ FormattedText?
-
Photo caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters
getter/setter pair
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- has_spoiler ↔ Bool?
-
True, if the photo preview must be covered by a spoiler animation; not supported in secret chats
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ int32?
-
Photo height
getter/setter pair
- photo ↔ InputFile?
-
Photo to send. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- self_destruct_time ↔ int32?
-
Photo self-destruct time, in seconds (0-60). A non-zero self-destruct time can be specified only in private chats
getter/setter pair
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
- thumbnail ↔ InputThumbnail?
-
Photo thumbnail to be sent; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats
getter/setter pair
- width ↔ int32?
-
Photo width
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited