qTbot
0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
Toggle main menu visibility
telegramimage.cpp
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
#include "
telegramimage.h
"
9
10
namespace
qTbot
{
11
12
TelegramImage::TelegramImage
()
13
{
14
15
}
16
17
TelegramImage::TelegramImage
(
const
QJsonObject &jsonObject) :
TelegramFile
(jsonObject) {}
18
19
20
21
int
TelegramImage::width
()
const
{
22
return
rawJson
()[
"width"
].toInt();
23
}
24
25
26
int
TelegramImage::height
()
const
{
27
return
rawJson
()[
"height"
].toInt();
28
}
29
30
}
qTbot::IJsonBasedObject::rawJson
const QJsonObject & rawJson() const
rawJson Telegram uses a rest api with json objects. So all received messages are parsed into a json o...
Definition
ijsonbasedobject.cpp:21
qTbot::TelegramFile::TelegramFile
TelegramFile()
TelegramFile default constructor.
Definition
telegramfile.cpp:13
qTbot::TelegramImage::height
int height() const
Returns the height of the photo.
Definition
telegramimage.cpp:26
qTbot::TelegramImage::TelegramImage
TelegramImage()
TelegramImage default constructor.
Definition
telegramimage.cpp:12
qTbot::TelegramImage::width
int width() const
Returns the width of the photo.
Definition
telegramimage.cpp:21
qTbot
Definition
telegramdeletemessage.cpp:8
telegramimage.h
src
qTbot
src
public
qTbot
messages
telegramimage.cpp
Generated by
1.18.0