qTbot
0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
Toggle main menu visibility
telegramsendphoto.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
//#
7
8
9
#include "
telegramsendphoto.h
"
10
11
namespace
qTbot
{
12
13
14
TelegramSendPhoto::TelegramSendPhoto
(
const
TelegramArgs
&
args
,
15
const
QString &fileName,
16
const
QByteArray &data,
17
const
ExtraJsonObjects
&extraObjects):
18
TelegramSendFile
(
"sendPhoto"
, fileName,
TELEGRAM_PHOTO
, data,
args
, extraObjects) {}
19
20
TelegramSendPhoto::TelegramSendPhoto
(
const
TelegramArgs
&
args
,
21
const
QFileInfo &file,
22
const
ExtraJsonObjects
&extraObjects):
23
TelegramSendFile
(
"sendPhoto"
, file,
args
, extraObjects){}
24
25
}
qTbot::TelegramSendFile::TelegramSendFile
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.
Definition
telegramsendfile.cpp:14
qTbot::TelegramSendPhoto::TelegramSendPhoto
TelegramSendPhoto(const TelegramArgs &args, const QString &fileName, const QByteArray &data, const ExtraJsonObjects &extraObjects={})
TelegramSendPhoto prepares the send photo request from a byte array.
Definition
telegramsendphoto.cpp:14
qTbot::iRequest::args
const QMap< QString, QVariant > & args() const
args This method returns the the current list of arguments
Definition
irequest.cpp:30
qTbot
Definition
telegramdeletemessage.cpp:8
qTbot::ExtraJsonObjects
QHash< QString, QSharedPointer< QJsonObject > > ExtraJsonObjects
ExtraJsonObjects hash map of the extra objects of the message.
Definition
irequest.h:26
qTbot::TelegramArgs
The TelegramArgs class is the base structure for all telegram message arguments.
Definition
telegramargs.h:21
TELEGRAM_PHOTO
#define TELEGRAM_PHOTO
Definition
telegramsendfile.h:15
telegramsendphoto.h
src
qTbot
src
private
requests
telegramsendphoto.cpp
Generated by
1.18.0