Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a9e546c2a |
@@ -3,9 +3,10 @@ package telegram
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/LightningTipBot/LightningTipBot/internal/telegram/intercept"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/LightningTipBot/LightningTipBot/internal/telegram/intercept"
|
||||||
|
|
||||||
"github.com/LightningTipBot/LightningTipBot/internal"
|
"github.com/LightningTipBot/LightningTipBot/internal"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
@@ -52,7 +53,7 @@ func (bot *TipBot) lndhubHandler(ctx intercept.Context) (intercept.Context, erro
|
|||||||
go func() {
|
go func() {
|
||||||
time.Sleep(time.Second * 60)
|
time.Sleep(time.Second * 60)
|
||||||
bot.tryDeleteMessage(linkmsg)
|
bot.tryDeleteMessage(linkmsg)
|
||||||
bot.trySendMessage(m.Sender, Translate(ctx, "linkHiddenMessage"))
|
bot.trySendMessage(m.Sender, Translate(ctx, "linkHiddenMessage"), tb.Silent)
|
||||||
}()
|
}()
|
||||||
// auto delete the message
|
// auto delete the message
|
||||||
// NewMessage(linkmsg, WithDuration(time.Second*time.Duration(internal.Configuration.Telegram.MessageDisposeDuration), bot))
|
// NewMessage(linkmsg, WithDuration(time.Second*time.Duration(internal.Configuration.Telegram.MessageDisposeDuration), bot))
|
||||||
|
|||||||
Reference in New Issue
Block a user