Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
1ff2a5f9
Commit
1ff2a5f9
authored
Oct 07, 2015
by
nullifye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add reply fn to LUA
parent
ea428996
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lua-tg.c
lua-tg.c
+6
-0
No files found.
lua-tg.c
View file @
1ff2a5f9
...
@@ -667,6 +667,7 @@ enum lua_query_type {
...
@@ -667,6 +667,7 @@ enum lua_query_type {
lq_set_profile_name
,
lq_set_profile_name
,
lq_send_video
,
lq_send_video
,
lq_send_text
,
lq_send_text
,
lq_reply
,
lq_fwd
,
lq_fwd
,
lq_fwd_media
,
lq_fwd_media
,
lq_load_photo
,
lq_load_photo
,
...
@@ -1183,6 +1184,10 @@ void lua_do_all (void) {
...
@@ -1183,6 +1184,10 @@ void lua_do_all (void) {
}
}
p
+=
2
;
p
+=
2
;
break
;
break
;
case
lq_reply
:
tgl_do_reply_message
(
TLS
,
&
lua_ptr
[
p
+
1
].
msg_id
,
LUA_STR_ARG
(
p
+
2
),
0
,
lua_msg_cb
,
lua_ptr
[
p
].
ptr
);
p
+=
3
;
break
;
case
lq_fwd
:
case
lq_fwd
:
tmp_msg_id
=
&
lua_ptr
[
p
+
2
].
msg_id
;
tmp_msg_id
=
&
lua_ptr
[
p
+
2
].
msg_id
;
tgl_do_forward_messages
(
TLS
,
lua_ptr
[
p
+
1
].
peer_id
,
1
,
(
void
*
)
&
tmp_msg_id
,
0
,
lua_one_msg_cb
,
lua_ptr
[
p
].
ptr
);
tgl_do_forward_messages
(
TLS
,
lua_ptr
[
p
+
1
].
peer_id
,
1
,
(
void
*
)
&
tmp_msg_id
,
0
,
lua_one_msg_cb
,
lua_ptr
[
p
].
ptr
);
...
@@ -1356,6 +1361,7 @@ struct lua_function functions[] = {
...
@@ -1356,6 +1361,7 @@ struct lua_function functions[] = {
{
"load_audio"
,
lq_load_audio
,
{
lfp_msg
,
lfp_none
}},
{
"load_audio"
,
lq_load_audio
,
{
lfp_msg
,
lfp_none
}},
{
"load_document"
,
lq_load_document
,
{
lfp_msg
,
lfp_none
}},
{
"load_document"
,
lq_load_document
,
{
lfp_msg
,
lfp_none
}},
{
"load_document_thumb"
,
lq_load_document_thumb
,
{
lfp_msg
,
lfp_none
}},
{
"load_document_thumb"
,
lq_load_document_thumb
,
{
lfp_msg
,
lfp_none
}},
{
"reply_msg"
,
lq_reply
,
{
lfp_msg
,
lfp_string
,
lfp_none
}},
{
"fwd_msg"
,
lq_fwd
,
{
lfp_peer
,
lfp_msg
,
lfp_none
}},
{
"fwd_msg"
,
lq_fwd
,
{
lfp_peer
,
lfp_msg
,
lfp_none
}},
{
"fwd_media"
,
lq_fwd_media
,
{
lfp_peer
,
lfp_msg
,
lfp_none
}},
{
"fwd_media"
,
lq_fwd_media
,
{
lfp_peer
,
lfp_msg
,
lfp_none
}},
{
"chat_info"
,
lq_chat_info
,
{
lfp_chat
,
lfp_none
}},
{
"chat_info"
,
lq_chat_info
,
{
lfp_chat
,
lfp_none
}},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment