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
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

consts.go 806B

12345678910111213141516171819202122232425262728
  1. package rpc
  2. // SeqNo* is the number of the sequence which have special meaning for
  3. // the Telegram.
  4. const (
  5. SeqNoNonce = -2
  6. SeqNoHandshake = -1
  7. )
  8. // Different constants for RPC protocol
  9. var (
  10. TagCloseExt = []byte{0xa2, 0x34, 0xb6, 0x5e}
  11. TagProxyAns = []byte{0x0d, 0xda, 0x03, 0x44}
  12. TagSimpleAck = []byte{0x9b, 0x40, 0xac, 0x3b}
  13. TagHandshake = []byte{0xf5, 0xee, 0x82, 0x76}
  14. TagNonce = []byte{0xaa, 0x87, 0xcb, 0x7a}
  15. TagProxyRequest = []byte{0xee, 0xf1, 0xce, 0x36}
  16. NonceCryptoAES = []byte{0x01, 0x00, 0x00, 0x00}
  17. HandshakeFlags = []byte{0x00, 0x00, 0x00, 0x00}
  18. ProxyRequestExtraSize = []byte{0x18, 0x00, 0x00, 0x00}
  19. ProxyRequestProxyTag = []byte{0xae, 0x26, 0x1e, 0xdb}
  20. HandshakeSenderPID = []byte("IPIPPRPDTIME")
  21. HandshakePeerPID = []byte("IPIPPRPDTIME")
  22. )