Custom API server

This commit is contained in:
2023-01-20 16:32:13 +03:00
parent 3a06ae5f0e
commit 677f28182a
3 changed files with 8 additions and 6 deletions

View File

@ -188,7 +188,7 @@ func (u *Update) LogError(text string, e error, send bool) {
} else {
text = "Произошла внутренняя ошибка"
}
log.Printf("[%s] %s: %v", u.UpdateID.String(), text, e)
log.Printf("ERROR :: [%s] :: %s: %v", u.UpdateID.String(), text, e)
if send {
u.AnswerMarkdown(fmt.Sprintf("%s\nКод запроса: `%s`", text, u.UpdateID.String()))
}