Skip to content

Commit 4669e5a

Browse files
amirmamaghaniclaude
andcommitted
fix(telegram): use parseTelegramChatID in DeleteMessage and BeginStream
These two functions called undefined parseChatID. Use parseTelegramChatID with _ for the unused threadID instead of adding a wrapper function. Fixes all three CI checks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c85e977 commit 4669e5a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/channels/telegram/telegram.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ func (c *TelegramChannel) EditMessage(ctx context.Context, chatID string, messag
298298

299299
// DeleteMessage implements channels.MessageDeleter.
300300
func (c *TelegramChannel) DeleteMessage(ctx context.Context, chatID string, messageID string) error {
301-
cid, err := parseChatID(chatID)
301+
cid, _, err := parseTelegramChatID(chatID)
302302
if err != nil {
303303
return err
304304
}
@@ -861,7 +861,7 @@ func (c *TelegramChannel) BeginStream(ctx context.Context, chatID string) (chann
861861
return nil, fmt.Errorf("streaming disabled in config")
862862
}
863863

864-
cid, err := parseChatID(chatID)
864+
cid, _, err := parseTelegramChatID(chatID)
865865
if err != nil {
866866
return nil, err
867867
}

0 commit comments

Comments
 (0)