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