forked from moritzsternemann/QtTelegramBot
Initial commit
This commit is contained in:
commit
3663fd38ce
41 files changed
+2095
No files matched your search
@@ -0,0 +1,12 @@
|
||||
#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();
|
||||
}
|
||||
Reference in new issue
Block a user