Commit Graph

5 Commits

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