qTbot 0.89.ee6949a
qTbot is base back end library for your c++ Qt projects.
|
The telegramcontact class contains information about user contact. More...
#include <telegramcontact.h>
Public Member Functions | |
TelegramContact () | |
TelegramContact (const QJsonObject &jsonObject) | |
unsigned long long | userIdInt () const |
userId This is id of usercontact | |
QVariant | userId () const |
userId This is id of usercontact | |
QString | firstName () const |
chatFirstName returns the first participant's first name in the chat. | |
QString | lastName () const |
chatLastName returns the first participant's last name in the chat. | |
QString | username () const |
chatUsername returns the first participant's username in the chat. | |
QString | phone () const |
chatUsername returns the first participant's username in the chat. | |
QString | languageCode () const |
languageCode returns the sender's language code. | |
Public Member Functions inherited from qTbot::IJsonBasedObject | |
IJsonBasedObject () | |
IJsonBasedObject (const QJsonObject &newRawJson) | |
const QJsonObject & | rawJson () const |
rawJson Telegram use rest api with json objects. So all received messages will be parsed in to jsobject. | |
virtual void | setRawJson (const QJsonObject &newRawJson) |
setRawJson this method convert jsobject into telegram message. | |
The telegramcontact class contains information about user contact.
Definition at line 19 of file telegramcontact.h.
qTbot::TelegramContact::TelegramContact | ( | ) |
Definition at line 11 of file telegramcontact.cpp.
qTbot::TelegramContact::TelegramContact | ( | const QJsonObject & | jsonObject | ) |
Definition at line 16 of file telegramcontact.cpp.
QString qTbot::TelegramContact::firstName | ( | ) | const |
chatFirstName returns the first participant's first name in the chat.
Definition at line 29 of file telegramcontact.cpp.
QString qTbot::TelegramContact::languageCode | ( | ) | const |
languageCode returns the sender's language code.
Definition at line 45 of file telegramcontact.cpp.
QString qTbot::TelegramContact::lastName | ( | ) | const |
chatLastName returns the first participant's last name in the chat.
Definition at line 33 of file telegramcontact.cpp.
QString qTbot::TelegramContact::phone | ( | ) | const |
chatUsername returns the first participant's username in the chat.
Definition at line 41 of file telegramcontact.cpp.
QVariant qTbot::TelegramContact::userId | ( | ) | const |
userId This is id of usercontact
Definition at line 25 of file telegramcontact.cpp.
unsigned long long qTbot::TelegramContact::userIdInt | ( | ) | const |
userId This is id of usercontact
Definition at line 21 of file telegramcontact.cpp.
QString qTbot::TelegramContact::username | ( | ) | const |
chatUsername returns the first participant's username in the chat.
Definition at line 37 of file telegramcontact.cpp.