Skip to content

Commit

Permalink
fix: fixed unsubscribing on Telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Aug 1, 2023
1 parent fda0c0a commit c24bcd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reporters/telegram/unsubscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (reporter *Reporter) HandleUnsubscribe(c tele.Context) error {
))
}

removed := reporter.Manager.RemoveNotifier(address, reporter.Name(), c.Sender().Username)
removed := reporter.Manager.RemoveNotifier(address, reporter.Name(), c.Sender().ID)

Check failure on line 38 in pkg/reporters/telegram/unsubscribe.go

View workflow job for this annotation

GitHub Actions / go-build

cannot use c.Sender().ID (variable of type int64) as type string in argument to reporter.Manager.RemoveNotifier

Check failure on line 38 in pkg/reporters/telegram/unsubscribe.go

View workflow job for this annotation

GitHub Actions / go-vet

cannot use c.Sender().ID (variable of type int64) as type string in argument to reporter.Manager.RemoveNotifier

if !removed {
return reporter.BotReply(c, "You are not subscribed to this validator's notifications")
Expand Down

0 comments on commit c24bcd7

Please sign in to comment.