Sometimes new binlog works
Merge github.com:vysheng/tg
Fixed bugs. Probably now something works
Fixed binlog. Added state file to binlog