Commit a30333b4 authored by Vincent Castellano's avatar Vincent Castellano

Added username to the user dict

parent 319bd1d6
...@@ -128,7 +128,9 @@ PyObject* get_user (tgl_peer_t *P) { ...@@ -128,7 +128,9 @@ PyObject* get_user (tgl_peer_t *P) {
if (P->user.access_hash) { if (P->user.access_hash) {
py_add_num_field (user, "access_hash", 1); py_add_num_field (user, "access_hash", 1);
} }
if (P->user.username) {
py_add_string_field ( user, "username", P->user.username);
}
return user; return user;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment