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
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

init.go 495B

123456789101112
  1. // Package logger has implementation of loggers for [mtglib.Logger] interface.
  2. //
  3. // Please see a description of that interface to get some agreements which are
  4. // used by mtglib.
  5. package logger
  6. // StdLikeLogger is an interface which is close to [log.Logger]. This is
  7. // commonly used by many 3pp tools. While mtglib itself does not need it, it is
  8. // always a good idea to support it and have a transient end to end logging.
  9. type StdLikeLogger interface {
  10. Printf(format string, args ...any)
  11. }