qTbot 0.89.ee6949a
qTbot is base back end library for your c++ Qt projects.
qTbot::TelegramContact Class Reference

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.
 

Detailed Description

The telegramcontact class contains information about user contact.

Definition at line 19 of file telegramcontact.h.

Inheritance diagram for qTbot::TelegramContact:
Inheritance graph
Collaboration diagram for qTbot::TelegramContact:
Collaboration graph

Constructor & Destructor Documentation

◆ TelegramContact() [1/2]

qTbot::TelegramContact::TelegramContact ( )

Definition at line 11 of file telegramcontact.cpp.

◆ TelegramContact() [2/2]

qTbot::TelegramContact::TelegramContact ( const QJsonObject &  jsonObject)

Definition at line 16 of file telegramcontact.cpp.

Member Function Documentation

◆ firstName()

QString qTbot::TelegramContact::firstName ( ) const

chatFirstName returns the first participant's first name in the chat.

Returns
The first participant's first name in the chat.

Definition at line 29 of file telegramcontact.cpp.

Here is the call graph for this function:

◆ languageCode()

QString qTbot::TelegramContact::languageCode ( ) const

languageCode returns the sender's language code.

Returns
The sender's language code.

Definition at line 45 of file telegramcontact.cpp.

Here is the call graph for this function:

◆ lastName()

QString qTbot::TelegramContact::lastName ( ) const

chatLastName returns the first participant's last name in the chat.

Returns
The first participant's last name in the chat.

Definition at line 33 of file telegramcontact.cpp.

Here is the call graph for this function:

◆ phone()

QString qTbot::TelegramContact::phone ( ) const

chatUsername returns the first participant's username in the chat.

Returns
The first participant's username in the chat.

Definition at line 41 of file telegramcontact.cpp.

Here is the call graph for this function:

◆ userId()

QVariant qTbot::TelegramContact::userId ( ) const

userId This is id of usercontact

Returns
id of user

Definition at line 25 of file telegramcontact.cpp.

Here is the call graph for this function:

◆ userIdInt()

unsigned long long qTbot::TelegramContact::userIdInt ( ) const

userId This is id of usercontact

Returns
id of user

Definition at line 21 of file telegramcontact.cpp.

Here is the call graph for this function:

◆ username()

QString qTbot::TelegramContact::username ( ) const

chatUsername returns the first participant's username in the chat.

Returns
The first participant's username in the chat.

Definition at line 37 of file telegramcontact.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: