Commit Graph

11 Commits

Author SHA1 Message Date
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