tgbot-cpp
Loading...
Searching...
No Matches
Video.h
Go to the documentation of this file.
1#ifndef TGBOT_VIDEO_H
2#define TGBOT_VIDEO_H
3
5
6#include <cstdint>
7#include <memory>
8#include <string>
9
10namespace TgBot {
11
17class Video {
18
19public:
20 typedef std::shared_ptr<Video> Ptr;
21
25 std::string fileId;
26
31 std::string fileUniqueId;
32
36 std::int32_t width;
37
41 std::int32_t height;
42
46 std::int32_t duration;
47
52
56 std::string fileName;
57
61 std::string mimeType;
62
69 std::int64_t fileSize;
70};
71}
72
73#endif //TGBOT_VIDEO_H
std::shared_ptr< PhotoSize > Ptr
Definition PhotoSize.h:18
This object represents a video file.
Definition Video.h:17
std::shared_ptr< Video > Ptr
Definition Video.h:20
std::string fileName
Optional. Original filename as defined by sender.
Definition Video.h:56
std::string mimeType
Optional. Mime type of a file as defined by sender.
Definition Video.h:61
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Video.h:25
std::int32_t width
Video width as defined by sender.
Definition Video.h:36
std::int32_t duration
Duration of the video in seconds as defined by sender.
Definition Video.h:46
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Video.h:31
PhotoSize::Ptr thumbnail
Optional. Video thumbnail.
Definition Video.h:51
std::int32_t height
Video height as defined by sender.
Definition Video.h:41
std::int64_t fileSize
Optional. File size in bytes.
Definition Video.h:69
Definition Api.h:40