diff --git a/lua-tg.c b/lua-tg.c index e61c9f5..2edd691 100644 --- a/lua-tg.c +++ b/lua-tg.c @@ -445,7 +445,9 @@ void push_message (struct tgl_message *M) { } if (M->flags & TGLMF_MENTION) { - lua_add_num_field ("mention", 1); + lua_pushstring (luaState, "mention"); + lua_pushboolean (luaState, 1); + lua_settable (luaState, -3); } lua_pushstring (luaState, "from"); diff --git a/tgl b/tgl index a458877..16830c9 160000 --- a/tgl +++ b/tgl @@ -1 +1 @@ -Subproject commit a4588778f998d0f27fb7e342a84b2b4ab56274dc +Subproject commit 16830c9872745a73b77767db477ecf1f5463bf8f