18 const QMap<QString, QVariant>& args) {
28 return "https://api.telegram.org";
RequestMethod method() const override
method returns method of the request.
QString baseAddress() const override
baseAddress This method return base domain of remote server.
TelegramSingleRquest(const QString &request, const QMap< QString, QVariant > &args)
TelegramSingleRquest This main constructor of the single requests.
RequestMethod
RequestMethod Tgis islist of supported requests types of the requests.
@ Get
general ger request, all request data sent as a url line
void setRequest(const QString &newRequest)
setRequest sets custom requests commnad
const QMap< QString, QVariant > & args() const
args This method returns a current list of arguments
const QString & request() const
request return current requests commnad.
void setArgs(const QMap< QString, QVariant > &newArgs)
setArgs For the some requests list of arguments posible to build only after constructor.