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
5e9e5ce4
Commit
5e9e5ce4
authored
Oct 19, 2015
by
V V
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: added export_chat_link
parent
c980f714
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
lua-tg.c
lua-tg.c
+7
-1
No files found.
lua-tg.c
View file @
5e9e5ce4
...
...
@@ -701,7 +701,8 @@ enum lua_query_type {
lq_status_offline
,
lq_send_location
,
lq_extf
,
lq_import_chat_link
lq_import_chat_link
,
lq_export_chat_link
};
struct
lua_query_extra
{
...
...
@@ -1286,6 +1287,10 @@ void lua_do_all (void) {
tgl_do_import_chat_link
(
TLS
,
LUA_STR_ARG
(
p
+
1
),
lua_empty_cb
,
lua_ptr
[
p
].
ptr
);
p
+=
2
;
break
;
case
lq_export_chat_link
:
tgl_do_export_chat_link
(
TLS
,
lua_ptr
[
p
+
1
].
peer_id
,
lua_str_cb
,
lua_ptr
[
p
].
ptr
);
p
+=
2
;
break
;
case
lq_send_location
:
tgl_do_send_location
(
TLS
,
lua_ptr
[
p
+
1
].
peer_id
,
lua_ptr
[
p
+
2
].
dnum
,
lua_ptr
[
p
+
3
].
dnum
,
0
,
lua_msg_cb
,
lua_ptr
[
p
].
ptr
);
p
+=
4
;
...
...
@@ -1389,6 +1394,7 @@ struct lua_function functions[] = {
{
"send_location"
,
lq_send_location
,
{
lfp_peer
,
lfp_double
,
lfp_double
,
lfp_none
}},
{
"ext_function"
,
lq_extf
,
{
lfp_string
,
lfp_none
}},
{
"import_chat_link"
,
lq_import_chat_link
,
{
lfp_string
,
lfp_none
}},
{
"export_chat_link"
,
lq_export_chat_link
,
{
lfp_chat
,
lfp_none
}},
{
0
,
0
,
{
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