diff --git a/main.go b/main.go index ed5530f..bb03174 100644 --- a/main.go +++ b/main.go @@ -184,7 +184,7 @@ func (bot *Bot) handleCallbackQuery(query *api.CallbackQuery) { }, UserID: user.ChatJoinRequest.From.ID, } - _, e := bot.API.Send(r) + _, e := bot.API.Request(r) if e != nil { log.Println(e.Error()) edit := api.NewEditMessageText(bot.Config.AdminChatId, user.JoinRequestMessageID, @@ -225,7 +225,7 @@ func (bot *Bot) handleCallbackQuery(query *api.CallbackQuery) { }, UserID: user.ChatJoinRequest.From.ID, } - _, e := bot.API.Send(r) + _, e := bot.API.Request(r) if e != nil { log.Println(e.Error()) edit := api.NewEditMessageText(bot.Config.AdminChatId, user.JoinRequestMessageID,