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
b658b617
Commit
b658b617
authored
May 02, 2015
by
Vincent Castellano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
progress commit on python support
parent
1b2fb1e1
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
412 additions
and
326 deletions
+412
-326
main.c
main.c
+17
-0
python-tg.c
python-tg.c
+372
-326
test.py
test.py
+23
-0
No files found.
main.c
View file @
b658b617
...
@@ -493,6 +493,23 @@ void usage (void) {
...
@@ -493,6 +493,23 @@ void usage (void) {
#ifdef USE_JSON
#ifdef USE_JSON
printf
(
" --json prints answers and values in json format
\n
"
);
printf
(
" --json prints answers and values in json format
\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
(
" -C disable color output
\n
"
);
printf
(
" -R disable readline
\n
"
);
printf
(
" -d daemon mode
\n
"
);
printf
(
" -L <log-name> log file name
\n
"
);
printf
(
" -U <user-name> change uid after start
\n
"
);
printf
(
" -G <group-name> change gid after start
\n
"
);
printf
(
" -D disable output
\n
"
);
printf
(
" -P <port> port to listen for input commands
\n
"
);
printf
(
" -S <socket-name> unix socket to create
\n
"
);
printf
(
" -e <commands> make commands end exit
\n
"
);
printf
(
" -I use user and chat IDs in updates instead of names
\n
"
);
printf
(
" -6 use ipv6 (may be unstable)
\n
"
);
exit
(
1
);
exit
(
1
);
}
}
...
...
python-tg.c
View file @
b658b617
This diff is collapsed.
Click to expand it.
test.py
0 → 100644
View file @
b658b617
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