From 73afcc18615dfeb54461467706a82b70459f427b Mon Sep 17 00:00:00 2001 From: potassium5703 Date: Fri, 27 Dec 2024 17:51:59 +0300 Subject: [PATCH] now it really does something --- market.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/market.go b/market.go index 54111d5..97ba51d 100644 --- a/market.go +++ b/market.go @@ -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