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ů.

base_protocol.go 488B

123456789101112131415161718192021
  1. package protocol
  2. import "github.com/9seconds/mtg/conntypes"
  3. type BaseProtocol struct {
  4. ConnectionType conntypes.ConnectionType
  5. ConnectionProtocol conntypes.ConnectionProtocol
  6. DC conntypes.DC
  7. }
  8. func (b *BaseProtocol) GetConnectionType() conntypes.ConnectionType {
  9. return b.ConnectionType
  10. }
  11. func (b *BaseProtocol) GetConnectionProtocol() conntypes.ConnectionProtocol {
  12. return b.ConnectionProtocol
  13. }
  14. func (b *BaseProtocol) GetDC() conntypes.DC {
  15. return b.DC
  16. }