qTbot 0.87.9547b0c
qTbot is base back end library for your c++ Qt projects.
telegramsendphoto.cpp
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#include "telegramsendphoto.h"
10
11namespace qTbot {
12
13
15 const QString &fileName,
16 const QByteArray &data,
17 const ExtraJsonObjects &extraObjects):
18 TelegramSendFile("sendPhoto", fileName, TELEGRAM_PHOTO, data, args, extraObjects) {}
19
21 const QFileInfo &file,
22 const ExtraJsonObjects &extraObjects):
23 TelegramSendFile("sendPhoto", file, args, extraObjects){}
24
25}
The TelegramSendFile class Base clas for upload files to server.
TelegramSendPhoto(const TelegramArgs &args, const QString &fileName, const QByteArray &data, const ExtraJsonObjects &extraObjects={})
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.
#define TELEGRAM_PHOTO