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.

events.go 268B

12345678910111213141516171819202122232425
  1. package mtglib
  2. import (
  3. "net"
  4. "time"
  5. )
  6. type eventBase struct {
  7. CreatedAt time.Time
  8. ConnID string
  9. }
  10. func (e eventBase) ConnectionID() string {
  11. return e.ConnID
  12. }
  13. type EventStart struct {
  14. eventBase
  15. RemoteIP net.IP
  16. }
  17. type EventFinish struct {
  18. eventBase
  19. }