Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
radiantspace committed May 4, 2024
1 parent 230ea9a commit 3c43dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/telegram/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func handleMessage(bot *telego.Bot, message telego.Message) {
log.Errorf("Error getting chat member: %v", err)
return
}
if err == nil && chatMember.MemberStatus() != telego.MemberStatusCreator && chatMember.MemberStatus() != telego.MemberStatusAdministrator {
if err == nil && (chatMember.MemberStatus() != telego.MemberStatusCreator || chatMember.MemberStatus() != telego.MemberStatusAdministrator) {
log.Infof("Ignoring public command from non-admin in channel: %s", chatIDString)
return
}
Expand Down

0 comments on commit 3c43dc0

Please sign in to comment.