qTbot 0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
telegramgetupdate.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
9#include "telegramgetupdate.h"
10
11namespace qTbot {
12
13TelegramGetUpdate::TelegramGetUpdate(unsigned long long offset): TelegramSingleRquest("getUpdates"){
14 addArg("offset", offset);
15 addArg("timeout", 30);
17
18}
19}
TelegramGetUpdate(unsigned long long offset=0)
TelegramGetUpdate sends a request for updates. You will get the response immediately or after 60 seco...
TelegramSingleRquest(const QString &request, const QMap< QString, QVariant > &args)
TelegramSingleRquest This is the main constructor of the single requests.
void addArg(const QString &key, const QVariant &val)
addArg This method pushes a new argument to the arguments list
Definition irequest.cpp:34
void setPriority(RequestPriority newPriority)
setPriority This method sets a new priority for the request.
Definition irequest.cpp:98
@ UngeredPriority
UngeredPriority the request has an urgent priority. It will be executed first.
Definition irequest.h:81