Global code ovehaul - remove CAS and other, add 15 minute greet check

- Remove CAS, as it no longer works for us
- Remove other checks
- Implement 15 minute greet timeout check
- Fix chat logos
- Ditch thirdparty logger, use stdlib log facility wrapper for logging
This commit is contained in:
eleksir
2026-10-20 12:20:16 +03:00
parent 2f467af6cf
commit 0c34b6e781
1597 changed files with 6440 additions and 648118 deletions

View File

@@ -7,8 +7,8 @@ import (
// PassportData contains information about Telegram Passport data shared with the bot by the user.
type PassportData struct {
Credentials EncryptedCredentials `json:"encrypted_credentials"`
Data []EncryptedPassportElement `json:"encrypted_passport_element"`
Credentials EncryptedCredentials `json:"credentials"`
Data []EncryptedPassportElement `json:"data"`
}
// PassportFile represents a file uploaded to Telegram Passport.
@@ -224,5 +224,5 @@ func (a API) SetPassportDataErrors(userID int64, errors []PassportElementError)
vals.Set("user_id", itoa(userID))
vals.Set("errors", string(errorsArr))
return res, client.get(a.base, "setPassportDataErrors", vals, &res)
return res, a.lclient.get(a.base, "setPassportDataErrors", vals, &res)
}