MadelineProtoDocs/docs/TD_docs/constructors/animation.md
Daniil Gentili e5a1324684 docufix
2018-04-04 23:19:57 +00:00

30 lines
1.1 KiB
Markdown

---
title: animation
description: Describes animation file. Animation should be encoded in gif or mp4 format
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: animation
[Back to constructors index](index.md)
Describes animation file. Animation should be encoded in gif or mp4 format
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|duration|[int](../types/int.md) | Yes|Duration of the animation in seconds as defined by sender|
|width|[int](../types/int.md) | Yes|Width of the animation|
|height|[int](../types/int.md) | Yes|Height of the animation|
|file\_name|[string](../types/string.md) | Yes|Original name of a file as defined by sender|
|mime\_type|[string](../types/string.md) | Yes|MIME type of a file, usually "image/gif" or "video/mp4"|
|thumb|[photoSize](../constructors/photoSize.md) | Yes|Animation thumb, nullable|
|animation|[file](../constructors/file.md) | Yes|File with the animation|
### Type: [Animation](../types/Animation.md)