Documentation
¶
Index ¶
- Variables
- func NewPeerConnection(login string, iceServer string) (peerConnection *webrtc.PeerConnection, offer webrtc.SessionDescription, ...)
- func SendCallLeave(c *WsSession, userName string, callJid *tdproto.JID)
- func SendCallOffer(c *WsSession, userName string, callJid *tdproto.JID, sdp string) (res webrtc.SessionDescription, err error)
- type Session
- func (s Session) AddContact(teamUid string, phone string) (tdproto.Contact, error)
- func (s Session) AddGroupMember(teamUid string, group, contact tdproto.JID) (tdproto.GroupMembership, error)
- func (s Session) AuthByPasswordGetToken(username, password string) (tdapi.Auth, error)
- func (s Session) AuthBySmsGetToken(phone, code string) (tdapi.Auth, error)
- func (s Session) AuthBySmsSendCode(phone string) (tdapi.SmsCode, error)
- func (s Session) Contacts(teamUid string) ([]tdproto.Contact, error)
- func (s Session) CreateGroup(teamUid string, req tdapi.Group) (tdproto.Chat, error)
- func (s Session) CreateTask(teamUid string, req tdapi.Task) (tdproto.Chat, error)
- func (s Session) DeleteMessage(teamUid string, chat tdproto.JID, msgId string) (tdproto.ChatMessages, error)
- func (s Session) DropGroup(teamUid string, group tdproto.JID) error
- func (s Session) DropGroupMember(teamUid string, group, contact tdproto.JID) error
- func (s *Session) Features() (*tdproto.Features, error)
- func (s Session) GetChats(teamUid string, f *tdapi.ChatFilter) ([]tdproto.Chat, error)
- func (s Session) GetGroups(teamUid string) ([]tdproto.Chat, error)
- func (s Session) GetMessages(teamUid string, chat tdproto.JID, f *tdapi.MessageFilter) ([]tdproto.Message, error)
- func (s Session) GroupMembers(teamUid string, group tdproto.JID) ([]tdproto.GroupMembership, error)
- func (s Session) Me(teamUid string) (tdproto.Contact, error)
- func (s Session) Ping() error
- func (s Session) SendPlaintextMessage(teamUid string, chat tdproto.JID, text string) (tdproto.Message, error)
- func (s *Session) SetCookie(v string)
- func (s *Session) SetToken(v string)
- func (s *Session) SetVerbose(v bool)
- func (s *Session) Ws(team string, onfail func(error)) (*WsSession, error)
- type WsSession
- func (w *WsSession) Close() error
- func (w *WsSession) DeleteMessage(uid string) string
- func (w *WsSession) ListenFor(v tdproto.Event) chan []byte
- func (w *WsSession) Ping() string
- func (w *WsSession) Send(event tdproto.Event) string
- func (w *WsSession) SendPlainMessage(to tdproto.JID, text string) string
- func (w *WsSession) SendRaw(b []byte)
- func (w *WsSession) WaitFor(v tdproto.Event) error
- func (w *WsSession) WaitForConfirm() (string, error)
- func (w *WsSession) WaitForMessage() (tdproto.Message, bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidTeamUid = errors.New("invalid team uid")
View Source
var (
Timeout = errors.New("Timeout")
)
Functions ¶
func NewPeerConnection ¶ added in v0.5.1
func NewPeerConnection(login string, iceServer string) (peerConnection *webrtc.PeerConnection, offer webrtc.SessionDescription, outputTrack *webrtc.Track, err error)
func SendCallLeave ¶ added in v0.5.1
func SendCallOffer ¶ added in v0.5.1
Types ¶
type Session ¶
func NewSession ¶
func (Session) AddContact ¶ added in v0.2.2
func (Session) AddGroupMember ¶ added in v0.2.6
func (Session) AuthByPasswordGetToken ¶ added in v0.2.0
func (Session) AuthBySmsGetToken ¶ added in v0.2.0
func (Session) AuthBySmsSendCode ¶ added in v0.2.0
func (Session) CreateGroup ¶ added in v0.3.1
func (Session) CreateTask ¶ added in v0.2.6
func (Session) DeleteMessage ¶ added in v0.5.0
func (Session) DropGroupMember ¶ added in v0.3.0
func (Session) GetMessages ¶ added in v0.5.0
func (Session) GroupMembers ¶ added in v0.3.0
func (Session) SendPlaintextMessage ¶ added in v0.2.4
func (*Session) SetVerbose ¶ added in v0.1.8
type WsSession ¶ added in v0.1.4
type WsSession struct {
// contains filtered or unexported fields
}
func (*WsSession) DeleteMessage ¶ added in v0.1.4
func (*WsSession) SendPlainMessage ¶ added in v0.1.4
func (*WsSession) WaitForConfirm ¶ added in v0.1.4
Directories
¶
| Path | Synopsis |
|---|---|
|
contacts
command
|
|
|
create-task
command
|
|
|
delete-messages
command
|
|
|
echobot
command
|
|
|
groups
command
|
|
|
passwordauth
command
|
|
|
send-message
command
|
|
|
send-message-ws
command
|
|
|
serverinfo
command
|
|
|
smsauth
command
|
Click to show internal directories.
Click to hide internal directories.