ubot

package
v1.5.1-0...-06e15ba Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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 NewContext

func NewContext(app *tg.Client, u ...*tg.UserObj) *Context

func (*Context) Calls

func (ctx *Context) Calls() map[int64]*ntgcalls.CallInfo

func (*Context) Close

func (ctx *Context) Close()

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) Mute

func (ctx *Context) Mute(chatId any) (bool, error)

func (*Context) OnFrame

func (ctx *Context) OnFrame(callback ntgcalls.FrameCallback)

func (*Context) OnIncomingCall

func (ctx *Context) OnIncomingCall(callback func(client *Context, chatId int64))

func (*Context) OnStreamEnd

func (ctx *Context) OnStreamEnd(callback ntgcalls.StreamEndCallback)

func (*Context) Pause

func (ctx *Context) Pause(chatId any) (bool, error)

func (*Context) Play

func (ctx *Context) Play(chatId any, mediaDescription ntgcalls.MediaDescription) error

func (*Context) Record

func (ctx *Context) Record(chatId any, mediaDescription ntgcalls.MediaDescription) error

func (*Context) Resume

func (ctx *Context) Resume(chatId any) (bool, error)

func (*Context) Stop

func (ctx *Context) Stop(chatId any) error

func (*Context) UnMute

func (ctx *Context) UnMute(chatId any) (bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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