qTbot 0.89.ee6949a
qTbot is base back end library for your c++ Qt projects.
qTbot::TelegramImage Class Reference

The TelegramImage class This is implementation of the photos of telegram. More...

#include <telegramimage.h>

Public Member Functions

 TelegramImage ()
 
 TelegramImage (const QJsonObject &jsonObject)
 Constructs a Photo object from a JSON object.
 
int width () const
 Returns the width of the photo.
 
int height () const
 Returns the height of the photo.
 
- Public Member Functions inherited from qTbot::TelegramFile
 TelegramFile ()
 
 TelegramFile (const QJsonObject &jsonObject)
 Constructs a Photo object from a JSON object.
 
QString fileId () const
 Returns the file ID of the photo.
 
QString fileUniqueId () const
 Returns the unique ID of the photo.
 
int fileSize () const
 Returns the file size of the photo.
 
QString takePath ()
 Returns the file path to get from web.
 
- Public Member Functions inherited from qTbot::IJsonBasedObject
 IJsonBasedObject ()
 
 IJsonBasedObject (const QJsonObject &newRawJson)
 
const QJsonObject & rawJson () const
 rawJson Telegram use rest api with json objects. So all received messages will be parsed in to jsobject.
 
virtual void setRawJson (const QJsonObject &newRawJson)
 setRawJson this method convert jsobject into telegram message.
 

Detailed Description

The TelegramImage class This is implementation of the photos of telegram.

Definition at line 19 of file telegramimage.h.

Inheritance diagram for qTbot::TelegramImage:
Inheritance graph
Collaboration diagram for qTbot::TelegramImage:
Collaboration graph

Constructor & Destructor Documentation

◆ TelegramImage() [1/2]

qTbot::TelegramImage::TelegramImage ( )

Definition at line 12 of file telegramimage.cpp.

◆ TelegramImage() [2/2]

qTbot::TelegramImage::TelegramImage ( const QJsonObject &  jsonObject)

Constructs a Photo object from a JSON object.

Parameters
jsonObjectThe JSON object containing photo data.

Definition at line 17 of file telegramimage.cpp.

Member Function Documentation

◆ height()

int qTbot::TelegramImage::height ( ) const

Returns the height of the photo.

Returns
The height of the photo.

Definition at line 26 of file telegramimage.cpp.

Here is the call graph for this function:

◆ width()

int qTbot::TelegramImage::width ( ) const

Returns the width of the photo.

Returns
The width of the photo.

Definition at line 21 of file telegramimage.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: