qTbot 0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
telegramsenddocument.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//#
8
9namespace qTbot {
10
12 const QString& fileName,
13 const QByteArray &data,
14 const ExtraJsonObjects &extraObjects):
15 TelegramSendFile("sendDocument", fileName, TELEGRAM_DOCUMENT, data, args, extraObjects) {}
16
18 const QFileInfo &file,
19 const ExtraJsonObjects &extraObjects):
20 TelegramSendFile("sendDocument", file, args, extraObjects) {}
21
22}
TelegramSendDocument(const TelegramArgs &args, const QString &fileName, const QByteArray &data, const ExtraJsonObjects &extraObjects={})
TelegramSendDocument prepares the send document request from a byte array.
TelegramSendFile(const QString &request, const QString &fileName, const QString &fileType, const QByteArray &data, const TelegramArgs &args, const QHash< QString, QSharedPointer< QJsonObject > > &extraObjects={})
TelegramSendFile prepares the send file request from a byte array.
const QMap< QString, QVariant > & args() const
args This method returns the the current list of arguments
Definition irequest.cpp:30
QHash< QString, QSharedPointer< QJsonObject > > ExtraJsonObjects
ExtraJsonObjects hash map of the extra objects of the message.
Definition irequest.h:26
The TelegramArgs class is the base structure for all telegram message arguments.
#define TELEGRAM_DOCUMENT