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
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

request.go 345B

123456789101112131415161718
  1. package protocol
  2. import (
  3. "context"
  4. "go.uber.org/zap"
  5. "github.com/9seconds/mtg/conntypes"
  6. )
  7. type TelegramRequest struct {
  8. Logger *zap.SugaredLogger
  9. ClientConn conntypes.StreamReadWriteCloser
  10. ConnID conntypes.ConnID
  11. Ctx context.Context
  12. Cancel context.CancelFunc
  13. ClientProtocol ClientProtocol
  14. }