Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: catch errors in dispatch_iter_messages #42

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

pekasen
Copy link
Member

@pekasen pekasen commented Apr 12, 2023

Fixes uncaught errors in dispatch_iter_messages that caused tegracli to terminate.

  • ChannelPrivateError is now handled in a way that the given entity is skipped.
  • UserDeactivedError causes tegracli to log the error and shutdown gracefully as the current credentials are deactivated and/or banned by Telegram.

@pekasen pekasen self-assigned this Apr 12, 2023
@pekasen pekasen linked an issue Apr 12, 2023 that may be closed by this pull request
@pekasen pekasen merged commit abc8403 into trunk Apr 12, 2023
@pekasen pekasen deleted the 40-fix-catch-async-errors branch April 12, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: catch async errors
1 participant