client: include event handling error in returns

This commit is contained in:
Tulir Asokan
2025-07-31 13:46:24 +03:00
parent e1c0e6dd9a
commit a31787f894
4 changed files with 67 additions and 92 deletions
+2 -2
View File
@@ -283,8 +283,8 @@ func (t *TelegramClient) handleDialogs(ctx context.Context, dialogs tg.ModifiedM
},
})
if !res.Success {
return ErrFailToQueueEvent
if err = resultToError(res); err != nil {
return err
}
}
return nil