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.

client.go 354B

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