фиксы
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user