Vincent Castellano
db463be5f6
Missing changes to python-tg.c
2015-05-15 09:14:04 -07:00
Vincent Castellano
b290af88d3
Added preliminary autotools support for pyton, TODO improve.
2015-05-15 09:14:03 -07:00
Vincent Castellano
81b2a5accf
Adding preliminary python files based on lua bindings.
2015-05-15 09:14:03 -07:00
Vincent Castellano
1b3cdff3fd
Merge branch 'python-bindings' of github.com:datamachine/tg into python-bindings
...
Conflicts:
python-tg.c
2015-05-15 09:08:59 -07:00
vvaltman
3ced7bbb27
fixes for last json update
2015-05-15 17:50:07 +03:00
luckydonald
8b8a69ec83
Fixes for #516 :
...
Added output when message are marked read (if ```--json```), which fixes Issue [#516 ] (https://github.com/vysheng/tg/issues/516#issuecomment-101710890 )
Also added event field to json which will be send to terminal/main_session:
"event" = "message", "read" (message got read), "service", (events only in secret chats?) "updates" (peer name change etc), "download" (file downloaded)
2015-05-15 16:06:30 +02:00
vvaltman
5935c97ed0
updated readme
2015-05-15 14:31:41 +03:00
vvaltman
a825b63209
added error codes
2015-05-15 13:31:38 +03:00
vvaltman
1823005ff5
fixed compilation error with old libjansson
2015-05-15 12:58:10 +03:00
vvaltman
611211cc09
prerelease
2015-05-14 15:48:20 +03:00
Vincent Castellano
89e0a1e275
Make tgl callbacks optional
2015-05-13 21:10:15 -07:00
vvaltman
081c65ce8f
Merge branch 'luckydonald-tdev_id_fix'
2015-05-13 20:45:36 +03:00
vvaltman
26dba968c5
Merge branch 'tdev_id_fix' of https://github.com/luckydonald/tg into luckydonald-tdev_id_fix
2015-05-13 20:45:00 +03:00
vvaltman
df628264d5
fixed bug in load_photo ()
2015-05-13 20:43:04 +03:00
luckydonald
5174d1399a
fixed: flags were named "id" too.
2015-05-13 18:50:49 +02:00
vvaltman
4afd5d5ced
updated CHANGELOG
2015-05-13 14:29:45 +03:00
Vincent Castellano
4daf7781be
Fix import error, still have const warnings.
...
Implement mark_read
2015-05-13 00:55:08 -07:00
Vincent Castellano
aad54b4c83
Implement mark_read
2015-05-12 02:05:30 -07:00
Vincent Castellano
2ab3feb392
Added get_history and get_history_ex to python bindings
2015-05-12 01:51:59 -07:00
Vincent Castellano
871fc440b7
Add Callback support for async calls.
2015-05-12 01:04:47 -07:00
Vincent Castellano
c263a93a8b
More const correctness issues.
2015-05-11 22:02:18 -07:00
vvaltman
000f767fa8
small fix
2015-05-11 17:14:58 +03:00
vvaltman
554d78274e
increased version
2015-05-11 17:10:27 +03:00
vvaltman
402375ec43
added json support
2015-05-11 14:20:34 +03:00
vvaltman
76aec0bf15
fixed CE
2015-05-11 12:37:58 +03:00
Vincent Castellano
38d0b97179
Implement fixes for string handling in py2/3
2015-05-10 04:09:39 -07:00
Vincent Castellano
fe0ae2a87f
Remove debug function and replace with macro
2015-05-09 02:16:29 -07:00
Vincent Castellano
89d5b7f262
Implement Python >=3.3 support
2015-05-09 02:10:24 -07:00
vvaltman
4b5c2556d0
updated tgl
2015-05-07 12:05:36 +03:00
Vincent Castellano
caacc3c584
support a path to the python script. TODO: get rid of gcc warn
2015-05-07 01:54:17 -07:00
Vincent Castellano
e2edb7cc26
Added username to the user dict
2015-05-07 00:53:39 -07:00
Vincent Castellano
87f014d3c2
Added commented out reply support, missing from tgl library.
2015-05-07 00:51:29 -07:00
Vincent Castellano
8995e45862
Protect against Py_DECREFing nulls. Add datetime support
2015-05-07 00:44:39 -07:00
Vincent Castellano
2ea0da50f0
Fix test script
2015-05-07 00:34:47 -07:00
Vincent Castellano
434ccdd5f8
Py_DECREF the results from python calls in callbacks
2015-05-07 00:24:45 -07:00
Vincent Castellano
8679ab2e0d
Support loading the script from any path, truncate .py if needed.
2015-05-07 00:20:13 -07:00
Vincent Castellano
b3fbcaeb0a
Fix broken -W wait command. Thanks @phoudoin
2015-05-07 00:04:15 -07:00
Vincent Castellano
f1c8af606f
Complete basic API implementation. Callbacks and various functions TODO
2015-05-06 23:54:31 -07:00
vvaltman
4f9cde9af7
fixed double free
2015-05-06 15:15:09 +03:00
vvaltman
9c13a7a491
updated readme
2015-05-06 14:43:36 +03:00
vvaltman
8eaa6119b6
added register function from lua
2015-05-06 14:39:45 +03:00
vvaltman
4734c8ba9d
some fixes in LUA. some fixes in readline completion
2015-05-05 21:08:37 +03:00
vvaltman
3f22df2a0c
updated tgl. support for captions
2015-05-05 12:48:58 +03:00
Vincent Castellano
96325e2ecd
send_msg implemented
2015-05-03 22:42:11 -07:00
Vincent Castellano
c7a66e649f
Implement calling from python into C. Need to implement command queue to execute during netloop.
2015-05-03 09:53:29 -07:00
Vincent Castellano
3f2c13b93f
Got on_msg_receive working
2015-05-02 23:29:50 -07:00
Vincent Castellano
a240097bbb
progress commit on python support
2015-05-02 21:32:30 -07:00
Vincent Castellano
2a99ce59d1
Initialize module
2015-05-02 05:03:13 -07:00
Vincent Castellano
0bf9979697
Remove -Werror for dev
2015-05-02 04:58:48 -07:00
Vincent Castellano
7d2cac9ea4
Merging to remove bad branch
2015-05-02 04:49:21 -07:00