qTbot
0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
Toggle main menu visibility
telegramfile.h
Go to the documentation of this file.
1
//#
2
//# Copyright (C) 2023-2026 QuasarApp.
3
//# Distributed under the GPLv3 software license, see the accompanying
4
//# Everyone is permitted to copy and distribute verbatim copies
5
//# of this license document, but changing it is not allowed.
6
//#
7
8
#ifndef TELEGRAMFILE_H
9
#define TELEGRAMFILE_H
10
11
#include "
qTbot/ijsonbasedobject.h
"
12
namespace
qTbot
{
13
17
class
QTBOT_EXPORT
TelegramFile
:
public
IJsonBasedObject
18
{
19
public
:
23
TelegramFile
();
24
29
TelegramFile
(
const
QJsonObject &jsonObject);
30
35
QString
fileId
()
const
;
36
41
QString
fileUniqueId
()
const
;
42
47
int
fileSize
()
const
;
48
54
[[nodiscard(
"This method return path only one time, please don't discard it."
)]]
55
QString
takePath
();
56
57
private
:
58
bool
_used =
false
;
59
};
60
}
61
#endif
// TELEGRAMFILE_H
qTbot::IJsonBasedObject::IJsonBasedObject
IJsonBasedObject()
IJsonBasedObject default constructor.
Definition
ijsonbasedobject.cpp:12
qTbot::TelegramFile::fileId
QString fileId() const
Returns the file ID of the file.
Definition
telegramfile.cpp:34
qTbot::TelegramFile::fileUniqueId
QString fileUniqueId() const
Returns the unique ID of the file.
Definition
telegramfile.cpp:39
qTbot::TelegramFile::fileSize
int fileSize() const
Returns the file size of the file.
Definition
telegramfile.cpp:21
qTbot::TelegramFile::TelegramFile
TelegramFile()
TelegramFile default constructor.
Definition
telegramfile.cpp:13
qTbot::TelegramFile::takePath
QString takePath()
Returns the file path to get from the web.
Definition
telegramfile.cpp:25
ijsonbasedobject.h
qTbot
Definition
telegramdeletemessage.cpp:8
src
qTbot
src
public
qTbot
messages
telegramfile.h
Generated by
1.18.0