Compare commits

...
Author SHA1 Message Date
callebtc 7a9e546c2a link: silent message 2022-06-06 22:09:51 +02:00
+3 -2
View File
@@ -3,9 +3,10 @@ package telegram
import (
"bytes"
"fmt"
"github.com/LightningTipBot/LightningTipBot/internal/telegram/intercept"
"time"
"github.com/LightningTipBot/LightningTipBot/internal/telegram/intercept"
"github.com/LightningTipBot/LightningTipBot/internal"
log "github.com/sirupsen/logrus"
@@ -52,7 +53,7 @@ func (bot *TipBot) lndhubHandler(ctx intercept.Context) (intercept.Context, erro
go func() {
time.Sleep(time.Second * 60)
bot.tryDeleteMessage(linkmsg)
bot.trySendMessage(m.Sender, Translate(ctx, "linkHiddenMessage"))
bot.trySendMessage(m.Sender, Translate(ctx, "linkHiddenMessage"), tb.Silent)
}()
// auto delete the message
// NewMessage(linkmsg, WithDuration(time.Second*time.Duration(internal.Configuration.Telegram.MessageDisposeDuration), bot))