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文字以内のものにしてください。

init.go 529B

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. }