tgbot-cpp
Loading...
Searching...
No Matches
TgBot::VideoNote Struct Reference

This object represents a video message (available in Telegram apps as of v.4.0). More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<VideoNote>

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 length { }
 Video width and height (diameter of the video message) as defined by the sender.
std::int32_t duration { }
 Duration of the video in seconds as defined by the sender.
std::shared_ptr< PhotoSizethumbnail { }
 Optional. Video thumbnail.
std::optional< std::int32_t > fileSize { }
 Optional. File size in bytes.

Detailed Description

This object represents a video message (available in Telegram apps as of v.4.0).

Definition at line 15193 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::VideoNote::Ptr = std::shared_ptr<VideoNote>

Definition at line 15194 of file Types.h.

Member Data Documentation

◆ duration

std::int32_t TgBot::VideoNote::duration { }

Duration of the video in seconds as defined by the sender.

Definition at line 15215 of file Types.h.

◆ fileId

std::string TgBot::VideoNote::fileId { }

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

Definition at line 15199 of file Types.h.

◆ fileSize

std::optional<std::int32_t> TgBot::VideoNote::fileSize { }

Optional. File size in bytes.

Definition at line 15225 of file Types.h.

◆ fileUniqueId

std::string TgBot::VideoNote::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 15205 of file Types.h.

◆ length

std::int32_t TgBot::VideoNote::length { }

Video width and height (diameter of the video message) as defined by the sender.

Definition at line 15210 of file Types.h.

◆ thumbnail

std::shared_ptr<PhotoSize> TgBot::VideoNote::thumbnail { }

Optional. Video thumbnail.

Definition at line 15220 of file Types.h.


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