aboutsummaryrefslogtreecommitdiff
path: root/tg/tg.c
diff options
context:
space:
mode:
Diffstat (limited to 'tg/tg.c')
-rw-r--r--tg/tg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tg/tg.c b/tg/tg.c
index 6ee74a3..1701c34 100644
--- a/tg/tg.c
+++ b/tg/tg.c
@@ -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))