Fixed error handling
Updated queries error handling
Added set typing method
Merge /home/vvaltman/telegram-cli/tgl
Fixed dependences
Merge branch 'master' into type-warnings

* master:
  Fixed dependences
  Added set typing method
  Updated queries error handling
  Fixed error handling

Conflicts:
	queries.c
Safe ssize_t for file read