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.

client.go 410B

123456789101112131415
  1. package client
  2. import (
  3. "context"
  4. "net"
  5. "github.com/9seconds/mtg/antireplay"
  6. "github.com/9seconds/mtg/config"
  7. "github.com/9seconds/mtg/mtproto"
  8. "github.com/9seconds/mtg/wrappers"
  9. )
  10. // Init defines common method for initializing client connections.
  11. type Init func(context.Context, context.CancelFunc, net.Conn, string,
  12. antireplay.Cache, *config.Config) (wrappers.Wrap, *mtproto.ConnectionOpts, error)