16 return rawJson()[
"from"][
"id"].toInteger();
20 return rawJson()[
"from"][
"is_bot"].toBool();
24 return rawJson()[
"from"][
"first_name"].toString();
28 return rawJson()[
"from"][
"last_name"].toString();
32 return rawJson()[
"from"][
"username"].toString();
36 return rawJson()[
"from"][
"language_code"].toString();
40 return rawJson()[
"data"].toString();
44 return rawJson()[
"message"][
"message_id"].toVariant();
The IJsonBasedObject class This is base interface for all json base objects.
const QJsonObject & rawJson() const
rawJson Telegram use rest api with json objects. So all received messages will be parsed in to jsobje...
unsigned long long fromId() const
fromId returns the sender's ID.
TelegramInlineKeyBoardCallBack()
QString callBackData() const
callBackData line of the call back that was be clicked.
QString lastName() const
lastName returns the sender's last name.
bool isBot() const
isBot checks if the sender is a bot.
QString languageCode() const
languageCode returns the sender's language code.
QVariant messageId() const
messageId id of the message when was be presed button.
QString username() const
username returns the sender's username.
QString firstName() const
firstName returns the sender's first name.