v0.4.1; bot api v9.4

This commit is contained in:
2026-02-10 14:14:17 +03:00
parent 60f09e940a
commit 9d18bef97e
9 changed files with 92 additions and 54 deletions

View File

@@ -78,7 +78,6 @@ func Encode[T any](w *multipart.Writer, req T) error {
if err == nil {
_, err = fw.Write([]byte(strconv.FormatBool(field.Bool())))
}
case reflect.Slice:
if field.Type().Elem().Kind() == reflect.Uint8 && !field.IsNil() {
filename := fieldType.Tag.Get("filename")