InputMessagePhoto class
A photo message.
- Inheritance
-
- Object
- TlObject
- InputMessageContent
- InputMessagePhoto
- Available Extensions
Constructors
-
InputMessagePhoto({required InputFile photo, InputThumbnail? thumbnail, required List<
int> added_sticker_file_ids, required int width, required int height, MessageSelfDestructType? self_destruct_type, required bool has_spoiler, int? extra, int? clientId}) - A photo message
Properties
-
added_sticker_file_ids
↔ List<
int> -
File identifiers of the stickers added to the photo, if applicable.
read / write
-
Photo caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
read / write
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- has_spoiler ↔ bool
-
True, if the photo preview must be covered by a spoiler animation; not supported in secret chats.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- height ↔ int
-
Photo height.
read / write
- 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.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- self_destruct_type ↔ MessageSelfDestructType?
-
Photo self-destruct type; pass null if none; private chats only.
read / write
- 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.
read / write
- width ↔ int
-
Photo width.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Object to Map serializer
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? _map) → InputMessagePhoto? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"inputMessagePhoto"