Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
boogiedk committed Oct 15, 2023
1 parent bdfd2af commit f90be41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SerfBot/TelegramBot.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ open SerfBot.Types
open SerfBot.TelegramApi

let extractCommand (str: string) =
let command = (str.Split(" ")[0]).Trim().ToLower()
let userMessage = (str.Split(" ")[1]).Trim().ToLower()
let message = str.Split(" ");
let command = message[0].Trim().ToLower()
let userMessage = str.Split(" ")[1]
(command, userMessage)

let isValidUser (userId: int64) =
Expand Down

0 comments on commit f90be41

Please sign in to comment.