13 unsigned long long replyToMessageId,
14 const QString &parseMode,
15 bool disableWebPagePreview,
16 const QString &callBackQueryId,
const std::function<
void (
int)> &msgIdCB)
29 QMap<QString, QVariant> args {{
"chat_id",
chatId}};
33 args[
"caption"] =
text;
QString callBackQueryId
Callback query ID. Default: "".
bool disableWebPagePreview
Disable web page preview when sending links. Default: false.
QMap< QString, QVariant > toMap(bool textAsCaption=false) const
toMap convert all arguments to the map.
QString parseMode
Parse mode of the message. Default: "html".
unsigned long long replyToMessageId
ID of the message to which a reply will be given. Default: 0.
std::function< void(int msgId)> msgIdCB
msgIdCB This is id message call bak function. Will be inwoked when request finished successful.
QVariant chatId
Chat ID where the message will be sent. Default: {}.
TelegramArgs(const QVariant &id, const QString &text="", unsigned long long replyToMessageId=0, const QString &parseMode="html", bool disableWebPagePreview=false, const QString &callBackQueryId="", const std::function< void(int msgId)> &msgIdCB={})
QString text
Text of the message. Default: "".