Use Request not Send

This commit is contained in:
Astra 2026-02-03 10:22:42 +00:00
parent 6ebfb59599
commit 4a76b9c212

View file

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