tg_session

package
v0.0.0-...-4f702ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalBinary

func MarshalBinary(e *tg.Session) ([]byte, error)

func TgSessionProto2TgSession

func TgSessionProto2TgSession(tgSessionProto *TgSession) (tgSession *tg.Session)

func UnmarshalBinary

func UnmarshalBinary(data []byte) (*tg.Session, error)

Types

type TgSession

type TgSession struct {
	IsAuthorized         bool     `protobuf:"varint,1,opt,name=IsAuthorized,proto3" json:"IsAuthorized,omitempty"`
	Session              []byte   `protobuf:"bytes,2,opt,name=Session,proto3" json:"Session,omitempty"`
	ID                   string   `protobuf:"bytes,3,opt,name=ID,proto3" json:"ID,omitempty"`
	Phone                string   `protobuf:"bytes,4,opt,name=Phone,proto3" json:"Phone,omitempty"`
	PhoneCodeHash        string   `protobuf:"bytes,5,opt,name=PhoneCodeHash,proto3" json:"PhoneCodeHash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func TgSession2TgSessionProto

func TgSession2TgSessionProto(tgSession *tg.Session) (tgSessionProto *TgSession)

func (*TgSession) Descriptor

func (*TgSession) Descriptor() ([]byte, []int)

func (*TgSession) GetID

func (m *TgSession) GetID() string

func (*TgSession) GetIsAuthorized

func (m *TgSession) GetIsAuthorized() bool

func (*TgSession) GetPhone

func (m *TgSession) GetPhone() string

func (*TgSession) GetPhoneCodeHash

func (m *TgSession) GetPhoneCodeHash() string

func (*TgSession) GetSession

func (m *TgSession) GetSession() []byte

func (*TgSession) MarshalBinary

func (e *TgSession) MarshalBinary() (data []byte, err error)

func (*TgSession) ProtoMessage

func (*TgSession) ProtoMessage()

func (*TgSession) Reset

func (m *TgSession) Reset()

func (*TgSession) String

func (m *TgSession) String() string

func (*TgSession) UnmarshalBinary

func (e *TgSession) UnmarshalBinary(data []byte) (err error)

func (*TgSession) XXX_DiscardUnknown

func (m *TgSession) XXX_DiscardUnknown()

func (*TgSession) XXX_Marshal

func (m *TgSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TgSession) XXX_Merge

func (m *TgSession) XXX_Merge(src proto.Message)

func (*TgSession) XXX_Size

func (m *TgSession) XXX_Size() int

func (*TgSession) XXX_Unmarshal

func (m *TgSession) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL