qTbot 0.87.9547b0c
qTbot is base back end library for your c++ Qt projects.
qTbot::TelegramInlineKeyBoardCallBack Class Reference

The TelegramInlineKeyBoardCallBack class. More...

#include <telegraminlinekeyboardcallback.h>

Public Member Functions

 TelegramInlineKeyBoardCallBack ()
 
 TelegramInlineKeyBoardCallBack (const QJsonObject &jsonObject)
 
unsigned long long fromId () const
 fromId returns the sender's ID.
 
bool isBot () const
 isBot checks if the sender is a bot.
 
QString firstName () const
 firstName returns the sender's first name.
 
QString lastName () const
 lastName returns the sender's last name.
 
QString username () const
 username returns the sender's username.
 
QString languageCode () const
 languageCode returns the sender's language code.
 
QString callBackData () const
 callBackData line of the call back that was be clicked.
 
QVariant messageId () const
 messageId id of the message when was be presed button.
 
- 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

Inheritance diagram for qTbot::TelegramInlineKeyBoardCallBack:
Inheritance graph
Collaboration diagram for qTbot::TelegramInlineKeyBoardCallBack:
Collaboration graph

Constructor & Destructor Documentation

◆ TelegramInlineKeyBoardCallBack() [1/2]

qTbot::TelegramInlineKeyBoardCallBack::TelegramInlineKeyBoardCallBack ( )

Definition at line 5 of file telegraminlinekeyboardcallback.cpp.

◆ TelegramInlineKeyBoardCallBack() [2/2]

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

Definition at line 10 of file telegraminlinekeyboardcallback.cpp.

Member Function Documentation

◆ callBackData()

QString qTbot::TelegramInlineKeyBoardCallBack::callBackData ( ) const

callBackData line of the call back that was be clicked.

Returns
line of the call back that was be clicked.

Definition at line 39 of file telegraminlinekeyboardcallback.cpp.

Here is the call graph for this function:

◆ firstName()

QString qTbot::TelegramInlineKeyBoardCallBack::firstName ( ) const

firstName returns the sender's first name.

Returns
The sender's first name.

Definition at line 23 of file telegraminlinekeyboardcallback.cpp.

Here is the call graph for this function:

◆ fromId()

unsigned long long qTbot::TelegramInlineKeyBoardCallBack::fromId ( ) const

fromId returns the sender's ID.

Returns
The sender's ID.

Definition at line 15 of file telegraminlinekeyboardcallback.cpp.

Here is the call graph for this function:

◆ isBot()

bool qTbot::TelegramInlineKeyBoardCallBack::isBot ( ) const

isBot checks if the sender is a bot.

Returns
true if the sender is a bot, false otherwise.

Definition at line 19 of file telegraminlinekeyboardcallback.cpp.

Here is the call graph for this function:

◆ languageCode()

QString qTbot::TelegramInlineKeyBoardCallBack::languageCode ( ) const

languageCode returns the sender's language code.

Returns
The sender's language code.

Definition at line 35 of file telegraminlinekeyboardcallback.cpp.

Here is the call graph for this function:

◆ lastName()

QString qTbot::TelegramInlineKeyBoardCallBack::lastName ( ) const

lastName returns the sender's last name.

Returns
The sender's last name.

Definition at line 27 of file telegraminlinekeyboardcallback.cpp.

Here is the call graph for this function:

◆ messageId()

QVariant qTbot::TelegramInlineKeyBoardCallBack::messageId ( ) const

messageId id of the message when was be presed button.

Returns
id of the message when was be presed button.

Definition at line 43 of file telegraminlinekeyboardcallback.cpp.

Here is the call graph for this function:

◆ username()

QString qTbot::TelegramInlineKeyBoardCallBack::username ( ) const

username returns the sender's username.

Returns
The sender's username.

Definition at line 31 of file telegraminlinekeyboardcallback.cpp.

Here is the call graph for this function:

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