fix SetGP

This commit is contained in:
Watn3y 2023-03-20 15:20:07 +01:00
parent bde1d93369
commit eb10fde8f7

View file

@ -70,7 +70,6 @@ func SetGP(update tgbotapi.Update, bot *tgbotapi.BotAPI) {
} }
if !commonlogic.ContainsInt64(config.BotConfig.GayPoints.ModifyUsers, update.Message.From.ID) { if !commonlogic.ContainsInt64(config.BotConfig.GayPoints.ModifyUsers, update.Message.From.ID) {
if update.Message.ReplyToMessage == nil {
message := tgbotapi.MessageConfig{ message := tgbotapi.MessageConfig{
BaseChat: tgbotapi.BaseChat{ChatID: update.Message.Chat.ID, ReplyToMessageID: update.Message.MessageID}, BaseChat: tgbotapi.BaseChat{ChatID: update.Message.Chat.ID, ReplyToMessageID: update.Message.MessageID},
ParseMode: "html", ParseMode: "html",
@ -80,7 +79,6 @@ func SetGP(update tgbotapi.Update, bot *tgbotapi.BotAPI) {
botIO.SendMessage(message, bot) botIO.SendMessage(message, bot)
return return
} }
}
cmd := strings.ToLower(update.Message.Command()) cmd := strings.ToLower(update.Message.Command())
commandArgs := strings.Fields(update.Message.CommandArguments()) commandArgs := strings.Fields(update.Message.CommandArguments())