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.

init.go 389B

12345678910111213141516
  1. package events
  2. import "github.com/9seconds/mtg/v2/mtglib"
  3. type Observer interface {
  4. EventStart(mtglib.EventStart)
  5. EventFinish(mtglib.EventFinish)
  6. EventConnectedToDC(mtglib.EventConnectedToDC)
  7. EventTraffic(mtglib.EventTraffic)
  8. EventConcurrencyLimited(mtglib.EventConcurrencyLimited)
  9. EventIPBlocklisted(mtglib.EventIPBlocklisted)
  10. Shutdown()
  11. }
  12. type ObserverFactory func() Observer