qTbot 0.89.ee6949a
qTbot is base back end library for your c++ Qt projects.
iupdate.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2021-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
9
10#ifndef IUPDATE_H
11#define IUPDATE_H
12
13#include "qTbot/global.h"
14#include <QByteArray>
15
16
17namespace qTbot {
18
29{
30public:
31 iUpdate();
32
38 const QByteArray &rawData() const;
39
44 virtual void setRawData(const QByteArray &newRawData);
45
50 virtual bool isValid() const;
51
56 virtual QString from() const = 0;
57
62 virtual QVariant chatId() const = 0;
63
68 virtual unsigned long long updateId() const = 0;
69
70private:
71
72 QByteArray _rawData;
73};
74}
75#endif // IUPDATE_H
The iMessage class - is main interface for all messages objects.
Definition iupdate.h:29
virtual QVariant chatId() const =0
from This virtual function should return name of the chat when sent this message to bot.
virtual unsigned long long updateId() const =0
updateId This method returns numeric id of the update.
virtual QString from() const =0
from This virtual function should return name of the user that sent this message to bot.
#define QTBOT_EXPORT
Definition global.h:18