Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChannelPeer ¶
type ChannelPeer interface {
Peer
InputChannel() tg.InputChannelClass
}
ChannelPeer is a peer that supports channel-specific operations.
type Deps ¶
type Deps struct {
Resolver PeerResolver
API *tg.Client
ACL *acl.Checker
Limits config.LimitsConfig
Media config.MediaConfig
}
Deps holds all dependencies for tool handlers.
type Peer ¶
type Peer interface {
InputPeer() tg.InputPeerClass
}
Peer represents a resolved Telegram peer used by tool handlers.
type PeerResolver ¶
type PeerResolver interface {
ResolvePeerForTool(ctx context.Context, ref string) (Peer, acl.PeerIdentity, error)
}
PeerResolver resolves chat reference strings to Telegram peers.
Click to show internal directories.
Click to hide internal directories.