Skip to content

Commit 20ce2ae

Browse files
committed
Update lua-tg.c
Added username field to message table passed to Lua
1 parent 393b514 commit 20ce2ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎lua-tg.c

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ void push_user (tgl_peer_t *P) {
102102
lua_add_string_field ("real_first_name", P->user.real_first_name);
103103
lua_add_string_field ("real_last_name", P->user.real_last_name);
104104
lua_add_string_field ("phone", P->user.phone);
105+
lua_add_string_field ("username", P->user.username);
105106
if (P->user.access_hash) {
106107
lua_add_num_field ("access_hash", 1);
107108
}

0 commit comments

Comments
 (0)