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

@@ -39,8 +39,12 @@ func toString(v reflect.Value) string {
case reflect.Bool:
return strconv.FormatBool(v.Bool())
case reflect.Struct, reflect.Interface, reflect.Slice, reflect.Array:
b, _ := json.Marshal(v.Interface())
case reflect.Struct, reflect.Interface, reflect.Slice, reflect.Array, reflect.Pointer:
var i any = v.Interface()
if m, ok := i.(InputMedia); ok {
i, _ = inlineMedia(m) // SendPoll reports the error before the query is built.
}
b, _ := json.Marshal(i)
return string(b)
default: