Commit Graph

22 Commits

Author SHA1 Message Date
V V
6547c0b21b Merge github.com:vysheng/tg 2016-03-23 14:42:53 +03:00
V V
e7d7bc5776 fixed reply_id in json and lua 2016-01-05 23:27:19 +03:00
V V
c61c8ba9fa support for layer 42 2015-11-25 18:12:47 +03:00
Marcelo Fuentes
681b8e7900 use str_format_time function on user_info command 2015-11-02 21:05:23 -03:00
V V
dd748e1be5 small changes in python 2015-10-10 19:36:23 +03:00
V V
cd85857a1f small fixes 2015-10-01 20:39:29 +03:00
V V
3bbd8e5255 fixed json 2015-10-01 18:28:30 +03:00
Juan Potato
f3eabae061 Update json-tg.c 2015-07-20 10:31:19 -04:00
vvaltman
0faf9f80b7 some fixes. updated tgl 2015-06-17 12:05:57 +03:00
vvaltman
44286cd15e Merge branch 'fix_json_more_chat_info' of https://github.com/luckydonald/tg into luckydonald-fix_json_more_chat_info 2015-06-12 11:59:30 +03:00
luckydonald
82cf03158c Added to group chats: "admin": peer, members.<user>.inviter 2015-06-09 15:51:04 +02:00
Floens
c33e8da795 Use pack_peer instead of pack_user in user_status
Gets more info e.g. the id and flags
2015-06-07 23:21:13 +02:00
Floens
fbff266dca Eliminate code duplication, remove the second argument of json_pack_peer
All callees were using it the same way
2015-06-07 23:21:05 +02:00
vvaltman
27d219486f Merge branch 'luckydonald-master' 2015-05-27 17:33:25 +03:00
vvaltman
9268a89d45 fixed pull request 2015-05-27 17:32:14 +03: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
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
1823005ff5 fixed compilation error with old libjansson 2015-05-15 12:58:10 +03:00
luckydonald
5174d1399a fixed: flags were named "id" too. 2015-05-13 18:50:49 +02:00
vvaltman
402375ec43 added json support 2015-05-11 14:20:34 +03:00