Documentation ¶
Index ¶
- Constants
- func CheckPeerInvalid() bool
- func ToPeerByTypeAndID(peerType int8, peerId int32) (peer *mtproto.Peer)
- type PeerUtil
- func FromInputNotifyPeer(peer *mtproto.InputNotifyPeer) (p *PeerUtil)
- func FromInputPeer(peer *mtproto.InputPeer) (p *PeerUtil)
- func FromInputPeer2(selfId int32, peer *mtproto.InputPeer) (p *PeerUtil)
- func FromNotifyPeer(peer *mtproto.NotifyPeer) (p *PeerUtil)
- func FromPeer(peer *mtproto.Peer) (p *PeerUtil)
Constants ¶
View Source
const ( PEER_EMPTY = 0 PEER_SELF = 1 PEER_USER = 2 PEER_CHAT = 3 PEER_CHANNEL = 4 PEER_USERS = 5 PEER_CHATS = 6 PEER_ALL = 7 PEER_UNKNOWN = -1 )
Variables ¶
This section is empty.
Functions ¶
func CheckPeerInvalid ¶
func CheckPeerInvalid() bool
Types ¶
type PeerUtil ¶
type PeerUtil struct { PeerType int32 PeerId int32 AccessHash int64 // contains filtered or unexported fields }
func FromInputNotifyPeer ¶
func FromInputNotifyPeer(peer *mtproto.InputNotifyPeer) (p *PeerUtil)
func FromInputPeer ¶
func FromNotifyPeer ¶
func FromNotifyPeer(peer *mtproto.NotifyPeer) (p *PeerUtil)
func (*PeerUtil) ToInputNotifyPeer ¶
func (p *PeerUtil) ToInputNotifyPeer(peer *mtproto.InputNotifyPeer)
func (*PeerUtil) ToInputPeer ¶
func (*PeerUtil) ToNotifyPeer ¶
func (p *PeerUtil) ToNotifyPeer() (peer *mtproto.NotifyPeer)
Click to show internal directories.
Click to hide internal directories.