Fail if Telegram API ID or API Hash empty
This commit is contained in:
parent
4576c6d439
commit
4d3eb3ea7f
@ -14,6 +14,14 @@ import (
|
||||
// At first launch we need to login manually - there is no way to automate
|
||||
// Telegram login
|
||||
func Authenticate() {
|
||||
if c.Config.TDLib.APIHash == "" {
|
||||
log.Error().Msg("APIHash is empty")
|
||||
return
|
||||
}
|
||||
if c.Config.TDLib.APIID == "" {
|
||||
log.Error().Msg("APIID is empty")
|
||||
return
|
||||
}
|
||||
tdlib.SetLogVerbosityLevel(1)
|
||||
tdlib.SetFilePath(c.Config.TDLib.ErrorsFile)
|
||||
|
||||
|
Reference in New Issue
Block a user