diff options
-rw-r--r-- | tg/tg.c | 2 | ||||
-rw-r--r-- | tg/tg.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -73,7 +73,7 @@ TGUser *_tg_user_parse(json_object *json) json_object *obj; if(json_object_object_get_ex(json, "id", &obj)) - user->id = json_object_get_int(obj); + user->id = json_object_get_int64(obj); if(json_object_object_get_ex(json, "first_name", &obj)) user->first_name = json_object_get_string(obj); if(json_object_object_get_ex(json, "last_name", &obj)) @@ -23,7 +23,7 @@ typedef struct tg_resp { } TGResp; typedef struct tg_user { - int32_t id; + int64_t id; const char *first_name; // Ownership: json const char *last_name; // Ownership: json const char *username; // Ownership: json |