qTbot 0.89.ee6949a
qTbot is base back end library for your c++ Qt projects.
telegramargs.h
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#ifndef TELEGRAMARGS_H
9#define TELEGRAMARGS_H
10
11#include <QVariant>
12#include "global.h"
13
14namespace qTbot {
15
20{
21 TelegramArgs(const QVariant& id,
22 const QString& text = "",
23 unsigned long long replyToMessageId = 0,
24 const QString& parseMode = "html",
25 bool disableWebPagePreview = false,
26 const QString& callBackQueryId = "",
27 const std::function<void(int msgId)>& msgIdCB = {}
28 );
29
34 QString text = "";
35
40 QVariant chatId = {};
41
46 QString callBackQueryId = {};
47
52 unsigned long long replyToMessageId = 0;
53
58 QString parseMode = "html";
59
64 bool disableWebPagePreview = false;
65
71 QMap<QString, QVariant> toMap(bool textAsCaption = false) const;
72
76 std::function<void(int msgId)> msgIdCB = {};
77};
78
79}
80#endif // TELEGRAMARGS_H
#define QTBOT_EXPORT
Definition global.h:18
The TelegramArgs class is base structure for the all tellegram message arguments.