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
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

interfaces.go 322B

123456789101112
  1. package protocol
  2. import "mtg/conntypes"
  3. type ClientProtocol interface {
  4. Handshake(conntypes.StreamReadWriteCloser) (conntypes.StreamReadWriteCloser, error)
  5. ConnectionType() conntypes.ConnectionType
  6. ConnectionProtocol() conntypes.ConnectionProtocol
  7. DC() conntypes.DC
  8. }
  9. type ClientProtocolMaker func() ClientProtocol