| 50 | ) |
| 51 | |
| 52 | type 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 | |
| 73 | type telegramMediaGroup struct { |
| 74 | messages []*telego.Message |
nothing calls this directly
no outgoing calls
no test coverage detected