qTbot 0.87.9547b0c
qTbot is base back end library for your c++ Qt projects.
telegrameditmessage.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
9
10namespace qTbot {
11
12TelegramEditMessage::TelegramEditMessage(const QVariant &idEditedMessage,
13 const TelegramArgs &args,
14 const ExtraJsonObjects &extraObjects):
15 TelegramSendMsg(args, extraObjects){
16
17 setRequest("editMessageText");
18 addArg("message_id", idEditedMessage);
19}
20
21}
TelegramEditMessage(const QVariant &idEditedMessage, const TelegramArgs &args, const ExtraJsonObjects &extraObjects={})
The TelegramSendMsg class This method send a message to the server.
void setRequest(const QString &newRequest)
setRequest sets custom requests commnad
Definition irequest.cpp:98
void addArg(const QString &key, const QVariant &val)
addArg This method push new arg, to arguments list
Definition irequest.cpp:34
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.