MCPcopy
hub / github.com/sipeed/picoclaw / TelegramChannel

Struct TelegramChannel

pkg/channels/telegram/telegram.go:52–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50)
51
52type TelegramChannel struct {
53 *channels.BaseChannel
54 bot *telego.Bot
55 bh *th.BotHandler
56 bc *config.Channel
57 chatIDsMu sync.Mutex
58 chatIDs map[string]int64
59 ctx context.Context
60 cancel context.CancelFunc
61 tgCfg *config.TelegramSettings
62 progress *channels.ToolFeedbackAnimator
63
64 registerFunc func(context.Context, []commands.Definition) error
65 commandRegDelayFn func(int) time.Duration
66 commandRegCancel context.CancelFunc
67
68 mediaGroupMu sync.Mutex
69 mediaGroups map[string]*telegramMediaGroup
70 mediaGroupDelay time.Duration
71}
72
73type telegramMediaGroup struct {
74 messages []*telego.Message

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected