From 5a1b0de9fefe02ec25f6e7f7164bf8d4f65ac1c0 Mon Sep 17 00:00:00 2001 From: Arsham Arya Date: Thu, 9 Nov 2023 00:44:32 +0330 Subject: [PATCH] fix: responding to list callback handlers. --- telegram/handlers/containers.go | 1 + telegram/handlers/images.go | 1 + 2 files changed, 2 insertions(+) diff --git a/telegram/handlers/containers.go b/telegram/handlers/containers.go index dba8940..c13f92d 100644 --- a/telegram/handlers/containers.go +++ b/telegram/handlers/containers.go @@ -62,6 +62,7 @@ func (h *handler) ContainersBackBtn(ctx telebot.Context) error { } func (h *handler) ContainersList(ctx telebot.Context) error { + ctx.Respond() userID := ctx.Chat().ID containers := h.docker.ContainersList() h.session.SetContainers(userID, containers) diff --git a/telegram/handlers/images.go b/telegram/handlers/images.go index f036ecd..6470864 100644 --- a/telegram/handlers/images.go +++ b/telegram/handlers/images.go @@ -11,6 +11,7 @@ import ( ) func (h *handler) ImagesList(ctx telebot.Context) error { + ctx.Respond() userID := ctx.Chat().ID images := h.docker.ImagesList() h.session.SetImages(userID, images)