Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCancelledAllRequests = errors.New("session config changed, need to retry all requests")
Functions ¶
Types ¶
type ErrCode ¶
type ErrCode uint32
See more: https://core.telegram.org/mtproto/mtproto-transports#transport-errors
type ErrNotMultiple ¶
type ErrNotMultiple struct {
Len int
}
func (*ErrNotMultiple) Error ¶
func (e *ErrNotMultiple) Error() string
type Transport ¶
type Transport interface { Close() error WriteMsg(ctx context.Context, body []byte, initiator payload.Initiator) (payload.MsgID, error) Ack(ctx context.Context, ids []payload.MsgID) error ReadMsg(context.Context) (id payload.MsgID, body []byte, ack bool, err error) }
func NewUnencrypted ¶
Click to show internal directories.
Click to hide internal directories.