7#ifndef TELEGRAMSENDFILE_H
8#define TELEGRAMSENDFILE_H
15#define TELEGRAM_PHOTO "photo"
16#define TELEGRAM_DOCUMENT "document"
28 const QString &fileName,
29 const QString &fileType,
30 const QByteArray& data,
32 const QHash<QString, QSharedPointer<QJsonObject> > &extraObjects = {});
35 const QFileInfo &file,
37 const QHash<QString, QSharedPointer<QJsonObject> > &extraObjects = {});
46 virtual QString
type()
const;
The TelegramSendFile class Base clas for upload files to server.
RequestMethod method() const override
method returns method of the request.
virtual QString type() const
type return type file. By Default it is REQUEST_UPLOAD_FILE_KEY
The TelegramSingleRquest class Is base class for all single requests commands with arguments.
RequestMethod
RequestMethod Tgis islist of supported requests types of the requests.
const QMap< QString, QVariant > & args() const
args This method returns a current list of arguments
const QString & request() const
request return current requests commnad.
The TelegramArgs class is base structure for the all tellegram message arguments.