Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam-Nawara committed Nov 12, 2023
1 parent bbda35e commit 0333a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ func (bot Bot) Start() {
case "stop":
bot.removeChan <- update.FromChat().ID
default:
msg := tgbotapi.NewMessage(update.FromChat().ID, "Invald Command")
msg := tgbotapi.NewMessage(update.FromChat().ID, "Invalid Command")
if _, err := bot.botAPI.Send(msg); err != nil {
log.Print(err)
}
}
} else if update.Message.Text != "" {
} else if update.Message.Text != "" && !update.FromChat().IsGroup() {
msg := tgbotapi.NewMessage(update.FromChat().ID, "Please send a valid command")
if _, err := bot.botAPI.Send(msg); err != nil {
log.Print(err)
Expand Down

0 comments on commit 0333a25

Please sign in to comment.