forked from moritzsternemann/QtTelegramBot
13 lines
340 B
C++
13 lines
340 B
C++
|
|
#include "sticker.h"
|
||
|
|
|
||
|
|
using namespace Telegram;
|
||
|
|
|
||
|
|
Sticker::Sticker(QJsonObject sticker)
|
||
|
|
{
|
||
|
|
fileId = sticker.value("file_id").toString();
|
||
|
|
width = sticker.value("width").toInt();
|
||
|
|
height = sticker.value("height").toInt();
|
||
|
|
thumb = PhotoSize(sticker.value("thumb").toObject());
|
||
|
|
fileSize = sticker.value("file_size").toInt();
|
||
|
|
}
|