qTbot 0.89.ee6949a
qTbot is base back end library for your c++ Qt projects.
telegramsendphoto.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
9#ifndef TELEGRAMSENDPHOTO_H
10#define TELEGRAMSENDPHOTO_H
11
12#include "telegramsendfile.h"
13
14namespace qTbot {
15
20{
21public:
23 const QString &fileName,
24 const QByteArray& data,
25 const ExtraJsonObjects& extraObjects = {}
26 );
27
29 const QFileInfo &file,
30 const ExtraJsonObjects& extraObjects = {}
31 );
32
33};
34}
35#endif // TELEGRAMSENDPHOTO_H
The TelegramSendFile class Base clas for upload files to server.
The TelegramSendPhoto class using to sending photos on chat.
const QMap< QString, QVariant > & args() const
args This method returns a 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 base structure for the all tellegram message arguments.