forked from moritzsternemann/QtTelegramBot
12 lines
280 B
C++
12 lines
280 B
C++
|
|
#include "voice.h"
|
||
|
|
|
||
|
|
using namespace Telegram;
|
||
|
|
|
||
|
|
Voice::Voice(QJsonObject voice)
|
||
|
|
{
|
||
|
|
fileId = voice.value("file_id").toString();
|
||
|
|
duration = voice.value("duration").toInt();
|
||
|
|
mimeType = voice.value("mime_type").toString();
|
||
|
|
fileSize = voice.value("file_size").toInt();
|
||
|
|
}
|