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.

init.go 328B

1234567891011121314151617
  1. package clienthello
  2. import "errors"
  3. const (
  4. RandomLen = 32
  5. RandomOffset = 6
  6. SessionIDOffset = RandomOffset + RandomLen
  7. MinLen = SessionIDOffset + 1
  8. HandshakeTypeClient = 0x01
  9. )
  10. var (
  11. ErrBadDigest = errors.New("bad digest")
  12. ErrAntiReplayAttack = errors.New("antireplay attack was detected")
  13. )