Use Request not Send
This commit is contained in:
parent
6ebfb59599
commit
4a76b9c212
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue