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

Cache user locales when they interact with the bot #25

Open
alvarogzp opened this issue Nov 4, 2017 · 0 comments
Open

Cache user locales when they interact with the bot #25

alvarogzp opened this issue Nov 4, 2017 · 0 comments

Comments

@alvarogzp
Copy link
Owner

alvarogzp commented Nov 4, 2017

Now we only cache user locales when they perform inline queries, but there are more ways for a user to interact with the bot that we can use to perform preventive caching. These ways include:

  • commands, an update added preventive caching on /start command, but it can also be added to every command or even every message received from a user

Update: it seems that telegram does not always send language_code when users send a command to the bot. It always does for inline queries, which is good for us, but this behavior can prevent caching on all user interactions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant