forked from moritzsternemann/QtTelegramBot
Initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include "contact.h"
|
||||
|
||||
using namespace Telegram;
|
||||
|
||||
Contact::Contact(QJsonObject contact)
|
||||
{
|
||||
phoneNumber = contact.value("phone_number").toString();
|
||||
firstname = contact.value("first_name").toString();
|
||||
lastname = contact.value("last_name").toString();
|
||||
userId = contact.value("user_id").toInt();
|
||||
}
|
||||
Reference in New Issue
Block a user