mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-13 14:27:21 +01:00
1.2 KiB
1.2 KiB
title | description |
---|---|
animation | Describes animation file. Animation should be encoded in gif or mp4 format |
Constructor: animation
Describes animation file. Animation should be encoded in gif or mp4 format
Attributes:
Name | Type | Required | Description |
---|---|---|---|
width | int | Yes | Width of the animation |
height | int | Yes | Height of the animation |
file_name | string | Yes | Original name of a file as defined by sender |
mime_type | string | Yes | MIME type of a file, usually "image/gif" or "video/mp4" |
thumb | photoSize | Yes | Animation thumb, nullable |
animation | file | Yes | File with the animation |
Type: Animation
Example:
$animation = ['_' => 'animation', 'width' => int, 'height' => int, 'file_name' => string, 'mime_type' => string, 'thumb' => photoSize, 'animation' => file, ];
Or, if you're into Lua:
animation={_='animation', width=int, height=int, file_name=string, mime_type=string, thumb=photoSize, animation=file, }