Skip to content

Commit

Permalink
举报小BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
IJNKAWAKAZE committed Sep 23, 2024
1 parent 1c76ec3 commit a4c0a57
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/plugins/system/report_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
func ReportHandle(update tgbotapi.Update) error {
message := update.Message
chatId := message.Chat.ID
messageId := message.MessageID

message.Delete()

Expand All @@ -24,7 +23,6 @@ func ReportHandle(update tgbotapi.Update) error {

if bot.Arknights.IsAdmin(chatId, target) {
sendMessage := tgbotapi.NewMessage(chatId, "无法举报管理员!")
sendMessage.ReplyToMessageID = messageId
msg, err := bot.Arknights.Send(sendMessage)
if err != nil {
return err
Expand Down

0 comments on commit a4c0a57

Please sign in to comment.