qTbot 0.87.9547b0c
qTbot is base back end library for your c++ Qt projects.
telegramfile.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2023-2024 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
12namespace qTbot {
13
18{
19public:
21
26 TelegramFile(const QJsonObject &jsonObject);
27
32 QString fileId() const;
33
38 QString fileUniqueId() const;
39
44 int fileSize() const;
45
51 [[nodiscard("This method return path only one time, plese no discard this.")]]
52 QString takePath();
53
54private:
55 bool _used = false;
56};
57}
58#endif // TELEGRAMFILE_H
The IJsonBasedObject class This is base interface for all json base objects.
The TelegramFile class is base class for all files.
#define QTBOT_EXPORT
Definition global.h:18