now it really does something
This commit is contained in:
parent
0912afa68a
commit
73afcc1861
@ -33,7 +33,8 @@ func shuffle[S ~[]E, E any](a S) {
|
||||
|
||||
func takeOne[S ~[]T, T any](s S) T {
|
||||
v := s[0]
|
||||
s = s[1:]
|
||||
s = s[2:]
|
||||
fmt.Println(s)
|
||||
return v
|
||||
}
|
||||
|
||||
@ -131,13 +132,14 @@ func HandleCommand(update tg.Update, bot *tg.BotAPI) {
|
||||
}
|
||||
return
|
||||
}()
|
||||
buttons = append(buttons, Button{Text: text})
|
||||
buttons = append(buttons, Button{Text: text, Data: "somethin"})
|
||||
}
|
||||
|
||||
msg := tg.NewPhoto(
|
||||
update.Message.Chat.ID,
|
||||
tg.FileBytes{Name: "cards", Bytes: buf.Bytes()},
|
||||
)
|
||||
fmt.Println(Buttons(buttons))
|
||||
msg.ReplyMarkup = Buttons(buttons)
|
||||
|
||||
responseMsg, err := bot.Send(msg) // get response message
|
||||
|
Loading…
Reference in New Issue
Block a user