qTbot 0.87.9547b0c
qTbot is base back end library for your c++ Qt projects.
telegramsendcontact.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
12
14 const QString &firstName,
15 const QString &phone,
16 const QString &lastName):
17 TelegramSingleRquest("sendContact", args.toMap(true)) {
18
19 addArg("first_name", firstName);
20 addArg("last_name", lastName);
21 addArg("phone_number", phone);
22
23}
24
25}
TelegramSendContact(const TelegramArgs &args, const QString &firstName, const QString &phone, const QString &lastName)
The TelegramSingleRquest class Is base class for all single requests commands with arguments.
void addArg(const QString &key, const QVariant &val)
addArg This method push new arg, to arguments list
Definition irequest.cpp:34
The TelegramArgs class is base structure for the all tellegram message arguments.