qTbot 0.89.ee6949a
qTbot is base back end library for your c++ Qt projects.
telegramsinglerquest.cpp
Go to the documentation of this file.
1//#
2//# Copyright (C) 2023-2024 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
10#include "qvariant.h"
11
12#include <QString>
13
14
15namespace qTbot {
16
18 const QMap<QString, QVariant>& args) {
21}
22
26\
28 return "https://api.telegram.org";
29}
30
34
35}
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.
Definition irequest.h:40
@ Get
general ger request, all request data sent as a url line
Definition irequest.h:42
void setRequest(const QString &newRequest)
setRequest sets custom requests commnad
Definition irequest.cpp:98
const QMap< QString, QVariant > & args() const
args This method returns a current list of arguments
Definition irequest.cpp:30
const QString & request() const
request return current requests commnad.
Definition irequest.cpp:94
void setArgs(const QMap< QString, QVariant > &newArgs)
setArgs For the some requests list of arguments posible to build only after constructor.
Definition irequest.cpp:38