Sign in error handler

Allows handling sms code re-input on error
Send encrypted message error handler
Function to find secret chat id by user id
Updated to layer 19. Fixed bug in code generator
Common error 420 (FLOOD_WAIT) handler
Fixed bug in status. Updated FLAG_CREATED use
Merge pull request #3 from nKey/find-secret-chat

Function to find secret chat id by user id
Merge pull request #2 from nKey/error-callbacks

Additional query error callbacks
Fixed bug with update on msg_id
Merge branch 'master' of github.com:vysheng/tgl
Fixed user status update
Changed app id
Use custom app_id
Merge remote-tracking branch 'upstream/master'

* upstream/master:
  Use custom app_id
  Changed app id
  Fixed user status update
  Fixed bug with update on msg_id
  Fixed bug in status. Updated FLAG_CREATED use
  Common error 420 (FLOOD_WAIT) handler
  Updated to layer 19. Fixed bug in code generator
  Function to find secret chat id by user id
  Send encrypted message error handler
  Sign in error handler