12 рядки
302 B
Go
12 рядки
302 B
Go
package list
|
|
|
|
import "context"
|
|
|
|
func (h *Handler) showLists(ctx context.Context, userID, chatID int64, messageID int) error {
|
|
lists, err := h.lists.List(ctx, userID)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return h.sender.EditOrSend(ctx, chatID, messageID, listsText(lists, userID), listsKeyboard(lists))
|
|
}
|