Skip to content

Исправление: ReadOnlyError в I18nMiddleware при обработке chat_member #412

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

Merged
merged 3 commits into from
May 25, 2025

Conversation

DevONE-HoPe
Copy link
Contributor

Ранее I18nMiddleware пытался записывать данные в Redis (через get_language_code) при получении обновлений chat_member, что приводило к ошибке ReadOnlyError на репликах. Теперь добавлена проверка на события chat_member: в таких случаях вызов Redis пропускается, и возвращается None, предотвращая операции записи на репликах только для чтения.

image
image

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi there! 👋 Congratulations on your first pull request! Your efforts make a difference! 🚀

This reverts commit 28497c7.
@donBarbos
Copy link
Owner

Thanks for PR, glad you are interested in fixing bugs in this project.

for the future: please use english as a language of communication, you can simply use copy paste from any online translator

@donBarbos donBarbos merged commit 7594265 into donBarbos:main May 25, 2025
10 checks passed
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.

2 participants