Fixed unread messages. Added output to dialoglist query
Merge github.com:vysheng/tg
Added GPL-headers to source files