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
ea428996
Commit
ea428996
authored
Oct 06, 2015
by
nullifye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(LUA) post to channel
parent
e7de7b9d
Changes
1
Show 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 @
ea428996
...
...
@@ -657,6 +657,7 @@ enum lua_query_type {
lq_contact_list
,
lq_dialog_list
,
lq_msg
,
lq_msg_channel
,
lq_send_typing
,
lq_send_typing_abort
,
lq_rename_chat
,
...
...
@@ -1108,6 +1109,10 @@ void lua_do_all (void) {
tgl_do_send_message
(
TLS
,
lua_ptr
[
p
+
1
].
peer_id
,
LUA_STR_ARG
(
p
+
2
),
0
,
NULL
,
lua_msg_cb
,
lua_ptr
[
p
].
ptr
);
p
+=
3
;
break
;
case
lq_msg_channel
:
tgl_do_send_message
(
TLS
,
lua_ptr
[
p
+
1
].
peer_id
,
LUA_STR_ARG
(
p
+
2
),
256
,
NULL
,
lua_msg_cb
,
lua_ptr
[
p
].
ptr
);
p
+=
3
;
break
;
case
lq_send_typing
:
tgl_do_send_typing
(
TLS
,
lua_ptr
[
p
+
1
].
peer_id
,
tgl_typing_typing
,
lua_empty_cb
,
lua_ptr
[
p
].
ptr
);
p
+=
2
;
...
...
@@ -1335,6 +1340,7 @@ struct lua_function functions[] = {
{
"get_dialog_list"
,
lq_dialog_list
,
{
lfp_none
}},
{
"rename_chat"
,
lq_rename_chat
,
{
lfp_chat
,
lfp_string
,
lfp_none
}},
{
"send_msg"
,
lq_msg
,
{
lfp_peer
,
lfp_string
,
lfp_none
}},
{
"post_msg"
,
lq_msg_channel
,
{
lfp_channel
,
lfp_string
,
lfp_none
}},
{
"send_typing"
,
lq_send_typing
,
{
lfp_peer
,
lfp_none
}},
{
"send_typing_abort"
,
lq_send_typing_abort
,
{
lfp_peer
,
lfp_none
}},
{
"send_photo"
,
lq_send_photo
,
{
lfp_peer
,
lfp_string
,
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