qTbot
0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
Toggle main menu visibility
telegramupdateanswer.h
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
10
#ifndef TELEGRAMUPDATEANSVER_H
11
#define TELEGRAMUPDATEANSVER_H
12
13
#include <
qTbot/ijsonbasedupdate.h
>
14
15
namespace
qTbot
{
16
20
class
QTBOT_EXPORT
TelegramUpdateAnswer
:
public
IJsonBasedUpdate
21
{
22
public
:
26
TelegramUpdateAnswer
();
27
28
// iMessage interface
29
bool
isValid
()
const override
;
30
35
QJsonValue
result
()
const
;
36
41
int
errorCode
()
const
;
42
47
QString
errorDescription
()
const
;
48
49
QString
from
()
const override
;
50
QVariant
chatId
()
const override
;
51
52
unsigned
long
long
updateId
()
const override
;
53
54
};
55
56
}
57
#endif
// TELEGRAMUPDATEANSVER_H
qTbot::IJsonBasedUpdate::IJsonBasedUpdate
IJsonBasedUpdate()
IJsonBasedUpdate default constructor.
Definition
ijsonbasedupdate.cpp:14
qTbot::TelegramUpdateAnswer::chatId
QVariant chatId() const override
chatId This virtual function should return the id of the chat that sent this update to the bot.
Definition
telegramupdateanswer.cpp:33
qTbot::TelegramUpdateAnswer::TelegramUpdateAnswer
TelegramUpdateAnswer()
TelegramUpdateAnswer default constructor.
Definition
telegramupdateanswer.cpp:12
qTbot::TelegramUpdateAnswer::updateId
unsigned long long updateId() const override
updateId This method returns the numeric id of the update.
Definition
telegramupdateanswer.cpp:37
qTbot::TelegramUpdateAnswer::errorDescription
QString errorDescription() const
errorDescription This is the text description of what happened.
Definition
telegramupdateanswer.cpp:25
qTbot::TelegramUpdateAnswer::errorCode
int errorCode() const
errorCode This is the error code (if it exists).
Definition
telegramupdateanswer.cpp:21
qTbot::TelegramUpdateAnswer::result
QJsonValue result() const
result This is the result field of the telegram response.
Definition
telegramupdateanswer.cpp:17
qTbot::TelegramUpdateAnswer::isValid
bool isValid() const override
isValid returns true if the update is valid else false.
Definition
telegramupdateanswer.cpp:41
qTbot::TelegramUpdateAnswer::from
QString from() const override
from This virtual function should return the id of the user that sent this update to the bot.
Definition
telegramupdateanswer.cpp:29
ijsonbasedupdate.h
qTbot
Definition
telegramdeletemessage.cpp:8
src
qTbot
src
public
qTbot
messages
telegramupdateanswer.h
Generated by
1.18.0