Skip to content

Commit

Permalink
chore: disallow for non private message
Browse files Browse the repository at this point in the history
  • Loading branch information
aldy505 committed Jan 2, 2024
1 parent 37663a9 commit bb138f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setir/setir.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ func (d *Dependency) Handler(ctx context.Context, c tb.Context) (err error) {
return nil
}

if !c.Message().Private() {
return nil
}

if c.Message().IsReply() {
var replyToID int

Expand Down

0 comments on commit bb138f5

Please sign in to comment.