фиксы

This commit is contained in:
Artem Tsyrulnikov
2026-02-28 13:51:02 +03:00
parent b12f34a856
commit 4e4621a09c
2 changed files with 21 additions and 6 deletions

View File

@@ -31,6 +31,12 @@ type CreativeDetails struct {
}
func (s *CreativeDetails) Enter(b *bot.Bot, mode bot.RenderMode) {
// Удаляем сообщение предыдущего экрана
if b.LastMessageID != 0 {
b.DeleteMessage(b.ChatID, b.LastMessageID)
b.LastMessageID = 0
}
creative, err := b.Backend.GetCreative(context.Background(), b.Session.JWT, b.Session.WorkspaceID, s.CreativeID)
if err != nil {
log.Error().Err(err).Str("creative_id", s.CreativeID).Msg("Failed to get creative")