diff --git a/bot.go b/bot.go
index 918c4ec..7759b1c 100644
--- a/bot.go
+++ b/bot.go
@@ -17,8 +17,6 @@ import (
"github.com/gotd/td/session"
"github.com/gotd/td/telegram"
"github.com/gotd/td/telegram/auth"
- "github.com/gotd/td/telegram/message"
- "github.com/gotd/td/telegram/message/html"
"github.com/gotd/td/telegram/updates"
"github.com/gotd/td/tg"
"golang.org/x/term"
@@ -611,8 +609,8 @@ func handleNewMessage(ctx context.Context, api *tg.Client, alertPeer *tg.InputPe
chatName := channel.Title
chatDisplay := chatName + formatUsername(channel.Username)
- matchMessageHTML := fmt.Sprintf("🚨 Matched\nScore: %.2f\nChat: %s (ID: %d)\nUser: %s (ID: %d)\n",
- result.score, chatDisplay, chatID, userDisplay, senderID)
+ // matchMessageHTML := fmt.Sprintf("🚨 Matched\nScore: %.2f\nChat: %s (ID: %d)\nUser: %s (ID: %d)\n",
+ // result.score, chatDisplay, chatID, userDisplay, senderID)
if state.cfg.NtfyToken != "" || state.cfg.NtfyTopic != "" {
plainMessage := fmt.Sprintf("🚨 Matched\nScore: %.2f\nChat: %s (ID: %d)\nUser: %s (ID: %d)\n\n%s",
@@ -620,14 +618,14 @@ func handleNewMessage(ctx context.Context, api *tg.Client, alertPeer *tg.InputPe
notify(plainMessage, state.cfg, fmt.Sprintf("Scam Alert: %s", chatName))
}
- userResolver := func(id int64) (tg.InputUserClass, error) {
- return &tg.InputUserFromMessage{Peer: alertPeer, MsgID: 0, UserID: id}, nil
- }
- sender := message.NewSender(api)
- _, err = sender.To(alertPeer).StyledText(ctx, html.String(userResolver, matchMessageHTML))
- if err != nil {
- log.Printf("Failed to send alert message: %v", err)
- }
+ // userResolver := func(id int64) (tg.InputUserClass, error) {
+ // return &tg.InputUserFromMessage{Peer: alertPeer, MsgID: 0, UserID: id}, nil
+ // }
+ // sender := message.NewSender(api)
+ // _, err = sender.To(alertPeer).StyledText(ctx, html.String(userResolver, matchMessageHTML))
+ // if err != nil {
+ // log.Printf("Failed to send alert message: %v", err)
+ // }
return nil
}