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
d7f9fcc6
Commit
d7f9fcc6
authored
Sep 07, 2014
by
vvaltman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed lua media types
parent
7d7a40a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lua-tg.c
lua-tg.c
+8
-4
No files found.
lua-tg.c
View file @
d7f9fcc6
...
...
@@ -237,19 +237,23 @@ void push_media (struct tgl_message_media *M) {
switch
(
M
->
type
)
{
case
tgl_message_media_photo
:
case
tgl_message_media_photo_encr
:
lua_pushstring
(
luaState
,
"photo"
);
lua_newtable
(
luaState
);
lua_add_string_field
(
"type"
,
"photo"
);
break
;
case
tgl_message_media_video
:
case
tgl_message_media_video_encr
:
lua_pushstring
(
luaState
,
"video"
);
lua_newtable
(
luaState
);
lua_add_string_field
(
"type"
,
"video"
);
break
;
case
tgl_message_media_audio
:
case
tgl_message_media_audio_encr
:
lua_pushstring
(
luaState
,
"audio"
);
lua_newtable
(
luaState
);
lua_add_string_field
(
"type"
,
"audio"
);
break
;
case
tgl_message_media_document
:
case
tgl_message_media_document_encr
:
lua_pushstring
(
luaState
,
"document"
);
lua_newtable
(
luaState
);
lua_add_string_field
(
"type"
,
"document"
);
break
;
case
tgl_message_media_unsupported
:
lua_pushstring
(
luaState
,
"unsupported"
);
...
...
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