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
a240097b
Commit
a240097b
authored
May 02, 2015
by
Vincent Castellano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
progress commit on python support
parent
2a99ce59
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
398 additions
and
326 deletions
+398
-326
main.c
main.c
+3
-0
python-tg.c
python-tg.c
+372
-326
test.py
test.py
+23
-0
No files found.
main.c
View file @
a240097b
...
@@ -471,6 +471,9 @@ void usage (void) {
...
@@ -471,6 +471,9 @@ void usage (void) {
#ifdef USE_LUA
#ifdef USE_LUA
printf
(
" -s lua script file
\n
"
);
printf
(
" -s lua script file
\n
"
);
#endif
#endif
#ifdef USE_PYTHON
printf
(
" -Z python script file
\n
"
);
#endif
printf
(
" -W send dialog_list query and wait for answer before reading input
\n
"
);
printf
(
" -W send dialog_list query and wait for answer before reading input
\n
"
);
printf
(
" -C disable color output
\n
"
);
printf
(
" -C disable color output
\n
"
);
printf
(
" -R disable readline
\n
"
);
printf
(
" -R disable readline
\n
"
);
...
...
python-tg.c
View file @
a240097b
This diff is collapsed.
Click to expand it.
test.py
0 → 100644
View file @
a240097b
def
on_binlog_replay_end
():
pass
def
on_get_difference_end
():
pass
def
on_our_id
():
pass
def
on_msg_receive
(
msg
):
return
"Got msg!"
def
on_secret_chat_update
(
peer
,
types
):
return
"on_secret_chat_update"
def
on_user_update
():
pass
def
on_chat_update
():
pass
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