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
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

type.go 590B

123456789101112131415161718192021222324252627
  1. package conntypes
  2. type ConnectionType uint8
  3. const (
  4. ConnectionTypeUnknown ConnectionType = iota
  5. ConnectionTypeAbridged
  6. ConnectionTypeIntermediate
  7. ConnectionTypeSecure
  8. )
  9. var (
  10. ConnectionTagAbridged = []byte{0xef, 0xef, 0xef, 0xef}
  11. ConnectionTagIntermediate = []byte{0xee, 0xee, 0xee, 0xee}
  12. ConnectionTagSecure = []byte{0xdd, 0xdd, 0xdd, 0xdd}
  13. )
  14. func (t ConnectionType) Tag() []byte {
  15. switch t {
  16. case ConnectionTypeAbridged:
  17. return ConnectionTagAbridged
  18. case ConnectionTypeIntermediate:
  19. return ConnectionTagIntermediate
  20. default:
  21. return ConnectionTagSecure
  22. }
  23. }