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

This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<PassportFile>

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 fileSize { }
 File size in bytes.
std::int32_t fileDate { }
 Unix time when the file was uploaded.

Detailed Description

This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.

Definition at line 10711 of file Types.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 10712 of file Types.h.

Member Data Documentation

◆ fileDate

std::int32_t TgBot::PassportFile::fileDate { }

Unix time when the file was uploaded.

Definition at line 10733 of file Types.h.

◆ fileId

std::string TgBot::PassportFile::fileId { }

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

Definition at line 10717 of file Types.h.

◆ fileSize

std::int32_t TgBot::PassportFile::fileSize { }

File size in bytes.

Definition at line 10728 of file Types.h.

◆ fileUniqueId

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


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