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.

interfaces.go 293B

12345678910111213141516
  1. package telegram
  2. import (
  3. "context"
  4. "github.com/9seconds/mtg/conntypes"
  5. "github.com/9seconds/mtg/wrappers"
  6. )
  7. type Telegram interface {
  8. Dial(context.Context,
  9. context.CancelFunc,
  10. conntypes.DC,
  11. conntypes.ConnectionProtocol) (wrappers.StreamReadWriteCloser, error)
  12. Secret() []byte
  13. }