feat: implement structured Telegram command handling with a dedicated command service and telegohandler integration. (#164)

This commit is contained in:
Avisek Ray
2026-02-16 11:50:16 +05:30
committed by GitHub
parent 32cb8fdc12
commit 9d5728ec5b
3 changed files with 212 additions and 41 deletions

View File

@@ -48,7 +48,7 @@ func (m *Manager) initChannels() error {
if m.config.Channels.Telegram.Enabled && m.config.Channels.Telegram.Token != "" {
logger.DebugC("channels", "Attempting to initialize Telegram channel")
telegram, err := NewTelegramChannel(m.config.Channels.Telegram, m.bus)
telegram, err := NewTelegramChannel(m.config, m.bus)
if err != nil {
logger.ErrorCF("channels", "Failed to initialize Telegram channel", map[string]interface{}{
"error": err.Error(),