class
Hamilton::Types::InputProfilePhotoAnimated
- Hamilton::Types::InputProfilePhotoAnimated
- Reference
- Object
Overview
An animated profile photo in the MPEG4 format.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/input_profile_photo.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#animation : String
The animated profile photo.
-
#animation=(animation : String)
The animated profile photo.
-
#main_frame_timestamp : Float32 | Nil
Timestamp in seconds of the frame that will be used as the static profile photo.
-
#main_frame_timestamp=(main_frame_timestamp : Float32 | Nil)
Timestamp in seconds of the frame that will be used as the static profile photo.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#type : String
Type of the profile photo, must be "animated".
-
#type=(type : String)
Type of the profile photo, must be "animated".
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
The animated profile photo. Profile photos can't be reused and can only be uploaded as a new file, so you can pass attach://<file_attach_name> if the photo was uploaded using multipart/form-data under <file_attach_name>.
The animated profile photo. Profile photos can't be reused and can only be uploaded as a new file, so you can pass attach://<file_attach_name> if the photo was uploaded using multipart/form-data under <file_attach_name>.
Timestamp in seconds of the frame that will be used as the static profile photo. Defaults to 0.0.
Timestamp in seconds of the frame that will be used as the static profile photo. Defaults to 0.0.