Files
QtTelegramBot/types/document.cpp

13 lines
367 B
C++
Raw Permalink Normal View History

2015-12-29 16:44:16 +01:00
#include "document.h"
using namespace Telegram;
Document::Document(QJsonObject document)
{
fileId = document.value("file_id").toString();
thumb = PhotoSize(document.value("thumb").toObject());
fileName = document.value("file_name").toString();
mimeType = document.value("mime_type").toString();
fileSize = document.value("file_size").toInt();
}