menu-voucherlist #101

Merged
lash merged 63 commits from menu-voucherlist into master 2024-10-25 15:59:47 +02:00
Showing only changes of commit 221db4e998 - Show all commits

View File

@ -281,7 +281,12 @@ func (h *Handlers) GetVoucherList(ctx context.Context,sym string,input []byte) (
"VSGAQ", "VSGAQ",
"QPWIQQ", "QPWIQQ",
} }
res.Content = strings.Join(vouchers,"\n")
var numberedVouchers []string
for i, voucher := range vouchers {
numberedVouchers = append(numberedVouchers, fmt.Sprintf("%d:%s", i+1, voucher))
}
res.Content = strings.Join(numberedVouchers,"\n")
return res,nil return res,nil
} }