Commit Graph

1110 Commits

Author SHA1 Message Date
Vincent Castellano
8c3adff675 Missed a _GNU_SOURCE define 2015-05-23 18:28:38 -07:00
Vincent Castellano
6aa4dabf5f fix include orders because python defines _GNU_SOURCE unconditionally and it can collide with other libs 2015-05-23 18:26:58 -07:00
Vincent Castellano
0cf690a8aa Still trying to appease the travis gods. 2015-05-23 17:57:35 -07:00
Vincent Castellano
622303ce91 Change to libpython-dev and python for travis 2015-05-23 17:53:24 -07:00
Vincent Castellano
8b5a1f98d7 Gentoo ebuild, untested changes 2015-05-23 17:43:33 -07:00
Vincent Castellano
964b210f50 typo 2015-05-23 17:38:15 -07:00
Vincent Castellano
9d9f89a1f9 Adding python to README.md 2015-05-23 17:37:29 -07:00
Vincent Castellano
16a12a7398 Adding python to travis 2015-05-23 17:29:17 -07:00
Vincent Castellano
dbdf81cfbe Add documentation. 2015-05-23 17:25:36 -07:00
Vincent Castellano
ce34da49f4 Comeplete tgl.Peer methods. 2015-05-23 17:09:08 -07:00
Vincent Castellano
ce4d9aff00 Add additional peer functions 2015-05-21 23:27:28 -07:00
Vincent Castellano
99bf18283d Add Python version to the tg startup banner. 2015-05-21 11:17:01 -07:00
luckydonald
91c4fcaf8f More typos found in command help.
That's what you get when using regexes...
2015-05-21 18:30:51 +02:00
luckydonald
0e340af2a8 Fix for ``send_video`` failing without a caption string given.
(see https://github.com/vysheng/tg/issues/538)
2015-05-21 16:42:51 +02:00
Vincent Castellano
03bd7fbc50 Added error handling to failed calls to get peer. 2015-05-20 15:16:16 -07:00
Vincent Castellano
faec9c9251 Fix autoconf script for python detection. 2015-05-20 12:41:55 -07:00
luckydonald
b0c092e7b8 Fixed typos in help documentation. 2015-05-20 20:24:19 +02:00
luckydonald
95094949ce Added out-of-range error status. (@vysheng: Not sure if I did that correctly.) 2015-05-20 20:21:12 +02:00
Vincent Castellano
5576d7a094 Python build fixes 2015-05-20 10:55:06 -07:00
luckydonald
d30885e9dc added optional status to send_typing command. 2015-05-20 19:39:33 +02:00
Vincent Castellano
f1eda8acff Start test suite, WIP 2015-05-20 01:28:23 -07:00
Vincent Castellano
354aa64ae1 Implement reprs and fix dates 2015-05-20 01:15:26 -07:00
Vincent Castellano
b547ca7158 Add custom exceptions 2015-05-20 01:15:26 -07:00
Vincent Castellano
7f2fc476eb Migrate API to completely use new python objects. 2015-05-20 01:15:26 -07:00
Vincent Castellano
fe030a69e2 Initial python class implementation complete. 2015-05-20 01:15:26 -07:00
Vincent Castellano
7c9129b0b4 Add tgl_Msg class 2015-05-20 01:15:26 -07:00
Vincent Castellano
25ed20429c Split Python Types into their own c module like they should be. 2015-05-20 01:15:00 -07:00
Vincent Castellano
fa26c2b696 Completed initial tgl_Peer type implementation 2015-05-20 01:13:07 -07:00
Vincent Castellano
d6dec6f881 Adding __pycache__ 2015-05-20 01:13:07 -07:00
Vincent Castellano
d6407a028e More WIP work 2015-05-20 01:13:07 -07:00
Vincent Castellano
0a74621916 Adding new framework for more advanced python classes that wrap tgl structures. 2015-05-20 01:13:07 -07:00
luckydonald
3963eca8ca added missing "user" attribute to "online-status" event.
E.g. ```{"event": "online-status", "online": true, "when": "2015-05-20 00:16:40", "state": 1, "user": {"username": ... }}```
2015-05-20 00:33:10 +02:00
luckydonald
548c2b18e0 added "online-status" event.
E.g. ```{"event": "online-status", "online": true, "when": "2015-05-20 00:16:40", "state": 1}```
2015-05-20 00:13:39 +02:00
luckydonald
8ff3b78577 added status string to 'typing' service.
E.g. ``` {  ... ,   "type":"typing", "status":"recording audio",  ... }```
2015-05-19 21:25:20 +02:00
Vincent Castellano
50a654706b Fix reply ID 2015-05-18 17:13:51 -07:00
Vincent Castellano
da885d595a Clean up msgs and newlines 2015-05-18 14:31:59 -07:00
Vincent Castellano
36d5465d81 Fixed string mangling from dirname 2015-05-18 13:32:58 -07:00
Vincent Castellano
1ca2fe6941 Implement the rest of the methods. Remaining commented out methods require more advanced python c-api objects 2015-05-17 16:48:17 -07:00
Vincent Castellano
77081999c4 Fixes to autotools for python detection 2015-05-17 15:58:32 -07:00
Vincent Castellano
d001bcd2ca Const fixes again, hoping this won't break anything 2015-05-17 15:03:56 -07:00
Vincent Castellano
3af44a3bf8 Better name for test bindings for py 2015-05-17 14:55:41 -07:00
Vincent Castellano
a7f42ed42d Add missing offset to tgl_do_get_history 2015-05-15 10:50:27 -07:00
Vincent Castellano
d89499bff2 Fix tg-2.0.1 related issues in python bindings 2015-05-15 10:41:58 -07:00
Vincent Castellano
e1d65dad8f Fix merge of configure 2015-05-15 09:26:45 -07:00
Vincent Castellano
2e62498539 Merge branch 'python-bindings' of github.com:datamachine/tg into python-bindings
Conflicts:
	Makefile.in
	config.h.in
	configure
	main.c
2015-05-15 09:24:25 -07:00
Vincent Castellano
287011c116 Make tgl callbacks optional 2015-05-15 09:21:50 -07:00
Vincent Castellano
c9f38274f5 Fix import error, still have const warnings.
Implement mark_read
2015-05-15 09:21:50 -07:00
Vincent Castellano
5131593da4 Implement mark_read 2015-05-15 09:21:50 -07:00
Vincent Castellano
3c32cba05e Added get_history and get_history_ex to python bindings 2015-05-15 09:21:49 -07:00
Vincent Castellano
2460901ba5 Add Callback support for async calls. 2015-05-15 09:21:49 -07:00