Skip to content

Commit

Permalink
changed back to id
Browse files Browse the repository at this point in the history
  • Loading branch information
Szer committed Sep 26, 2023
1 parent 72184e3 commit 45383f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/VahterBanBot/Bot.fs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ let isBanOnReplyMessage (message: Message) =
message.ReplyToMessage <> null

let isMessageFromAllowedChats (botConfig: BotConfiguration) (message: Message) =
botConfig.ChatsToMonitor.ContainsKey message.Chat.Username
botConfig.ChatsToMonitor.ContainsValue message.Chat.Id

let isMessageFromAdmin (botConfig: BotConfiguration) (message: Message) =
botConfig.AllowedUsers.ContainsKey message.From.Username
botConfig.AllowedUsers.ContainsValue message.From.Id

let isBannedPersonAdmin (botConfig: BotConfiguration) (message: Message) =
botConfig.AllowedUsers.ContainsKey message.ReplyToMessage.From.Username
botConfig.AllowedUsers.ContainsValue message.ReplyToMessage.From.Id

let isBanAuthorized (botConfig: BotConfiguration) (message: Message) (logger: ILogger) =
let fromUserId = message.From.Id
Expand Down

0 comments on commit 45383f4

Please sign in to comment.