Documentation
¶
Index ¶
- type Context
- func (ctx *Context) Calls() map[int64]*ntgcalls.CallInfo
- func (ctx *Context) Close()
- func (ctx *Context) GetInputGroupCall(chatId int64) (tg.InputGroupCall, error)
- func (ctx *Context) GetParticipants(chatId int64) ([]*tg.GroupCallParticipant, error)
- func (ctx *Context) Mute(chatId any) (bool, error)
- func (ctx *Context) OnFrame(callback ntgcalls.FrameCallback)
- func (ctx *Context) OnIncomingCall(callback func(client *Context, chatId int64))
- func (ctx *Context) OnStreamEnd(callback ntgcalls.StreamEndCallback)
- func (ctx *Context) Pause(chatId any) (bool, error)
- func (ctx *Context) Play(chatId any, mediaDescription ntgcalls.MediaDescription) error
- func (ctx *Context) Record(chatId any, mediaDescription ntgcalls.MediaDescription) error
- func (ctx *Context) Resume(chatId any) (bool, error)
- func (ctx *Context) Stop(chatId any) error
- func (ctx *Context) UnMute(chatId any) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) GetInputGroupCall ¶
func (ctx *Context) GetInputGroupCall(chatId int64) (tg.InputGroupCall, error)
func (*Context) GetParticipants ¶
func (ctx *Context) GetParticipants(chatId int64) ([]*tg.GroupCallParticipant, error)
func (*Context) OnFrame ¶
func (ctx *Context) OnFrame(callback ntgcalls.FrameCallback)
func (*Context) OnIncomingCall ¶
func (*Context) OnStreamEnd ¶
func (ctx *Context) OnStreamEnd(callback ntgcalls.StreamEndCallback)
func (*Context) Play ¶
func (ctx *Context) Play(chatId any, mediaDescription ntgcalls.MediaDescription) error
Source Files
¶
- calls.go
- connect_call.go
- context.go
- convert_call_id.go
- convert_group_call_id.go
- get_input_group_call.go
- get_p2p_configs.go
- get_participant_id.go
- get_participants.go
- handle_updates.go
- join_presentation.go
- mute.go
- parse_chat_id.go
- parse_rtc_servers.go
- parse_video_sources.go
- pause.go
- play.go
- record.go
- resume.go
- set_call_status.go
- std_remove.go
- stop.go
- unmute.go
- update_sources.go
Click to show internal directories.
Click to hide internal directories.