tgbot-cpp
Loading...
Searching...
No Matches
Animation.h
Go to the documentation of this file.
1#ifndef TGBOT_ANIMATION_H
2#define TGBOT_ANIMATION_H
3
5
6#include <cstdint>
7#include <memory>
8#include <string>
9
10namespace TgBot {
11
17class Animation {
18public:
19 typedef std::shared_ptr<Animation> Ptr;
20
24 std::string fileId;
25
30 std::string fileUniqueId;
31
35 std::int32_t width;
36
40 std::int32_t height;
41
45 std::int32_t duration;
46
51
55 std::string fileName;
56
60 std::string mimeType;
61
68 std::int64_t fileSize;
69};
70}
71
72#endif //TGBOT_ANIMATION_H
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
Definition Animation.h:17
std::string fileName
Optional. Original animation filename as defined by sender.
Definition Animation.h:55
std::int64_t fileSize
Optional. File size in bytes.
Definition Animation.h:68
std::int32_t duration
Duration of the video in seconds as defined by sender.
Definition Animation.h:45
std::string mimeType
Optional. MIME type of the file as defined by sender.
Definition Animation.h:60
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Animation.h:30
std::int32_t height
Video height as defined by sender.
Definition Animation.h:40
std::int32_t width
Video width as defined by sender.
Definition Animation.h:35
PhotoSize::Ptr thumb
Optional. Animation thumbnail as defined by sender.
Definition Animation.h:50
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Animation.h:24
std::shared_ptr< Animation > Ptr
Definition Animation.h:19
std::shared_ptr< PhotoSize > Ptr
Definition PhotoSize.h:18
Definition Api.h:39