Highly-opinionated (ex-bullshit-free) MTPROTO proxy for Telegram. If you use v1.0 or upgrade broke you proxy, please read the chapter Version 2
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021
  1. package files
  2. import (
  3. "context"
  4. "errors"
  5. "io"
  6. )
  7. // ErrBadHTTPClient is returned if given HTTP client is initialized
  8. // incorrectly.
  9. var ErrBadHTTPClient = errors.New("incorrect http client")
  10. // File is an abstraction for a entity that can be opened in some context.
  11. type File interface {
  12. // Open returns an readable entity for a file. It is important to not forget
  13. // to close it after the usage.
  14. Open(context.Context) (io.ReadCloser, error)
  15. // String returns a short text description for the file
  16. String() string
  17. }