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.

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 ...interface{})
  11. }