qTbot 0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
telegramaudio.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
9
10#ifndef TELEGRAMAUDIO_H
11#define TELEGRAMAUDIO_H
12
13#include "telegramfile.h"
14
15namespace qTbot {
16
20class QTBOT_EXPORT TelegramAudio: public TelegramFile
21{
22public:
27
32 TelegramAudio(const QJsonObject &jsonObject);
33
38 int duration() const;
39
44 QString fileName() const;
45
50 QString mimeType() const;
51
52};
53}
54#endif // TELEGRAMAUDIO_H
QString fileName() const
Returns the file name of the audio.
int duration() const
Returns the duration of the audio in seconds.
QString mimeType() const
Returns the MIME type of the audio.
TelegramAudio()
TelegramAudio default constructor.
TelegramFile()
TelegramFile default constructor.