tgbot-cpp
Loading...
Searching...
No Matches
TgBot::Video Class Reference

This object represents a video file. More...

#include <Video.h>

Public Types

typedef std::shared_ptr< VideoPtr
 

Public Attributes

std::string fileId
 Identifier for this file, which can be used to download or reuse the file.
 
std::string fileUniqueId
 Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
 
std::int32_t width
 Video width as defined by sender.
 
std::int32_t height
 Video height as defined by sender.
 
std::int32_t duration
 Duration of the video in seconds as defined by sender.
 
PhotoSize::Ptr thumb
 Optional. Video thumbnail.
 
std::string fileName
 Optional. Original filename as defined by sender.
 
std::string mimeType
 Optional. Mime type of a file as defined by sender.
 
std::int64_t fileSize
 Optional. File size in bytes.
 

Detailed Description

This object represents a video file.

Definition at line 17 of file Video.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<Video> TgBot::Video::Ptr

Definition at line 20 of file Video.h.

Member Data Documentation

◆ duration

std::int32_t TgBot::Video::duration

Duration of the video in seconds as defined by sender.

Definition at line 46 of file Video.h.

◆ fileId

std::string TgBot::Video::fileId

Identifier for this file, which can be used to download or reuse the file.

Definition at line 25 of file Video.h.

◆ fileName

std::string TgBot::Video::fileName

Optional. Original filename as defined by sender.

Definition at line 56 of file Video.h.

◆ fileSize

std::int64_t TgBot::Video::fileSize

Optional. File size in bytes.

It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.

Definition at line 69 of file Video.h.

◆ fileUniqueId

std::string TgBot::Video::fileUniqueId

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

Definition at line 31 of file Video.h.

◆ height

std::int32_t TgBot::Video::height

Video height as defined by sender.

Definition at line 41 of file Video.h.

◆ mimeType

std::string TgBot::Video::mimeType

Optional. Mime type of a file as defined by sender.

Definition at line 61 of file Video.h.

◆ thumb

PhotoSize::Ptr TgBot::Video::thumb

Optional. Video thumbnail.

Definition at line 51 of file Video.h.

◆ width

std::int32_t TgBot::Video::width

Video width as defined by sender.

Definition at line 36 of file Video.h.


The documentation for this class was generated from the following file: