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 chat information #1

Open
iuriguilherme opened this issue Mar 3, 2022 · 0 comments
Open

Cache chat information #1

iuriguilherme opened this issue Mar 3, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@iuriguilherme
Copy link
Owner

Chat information in the updates/ route is requested everytime the page GET or POST, which is not a blocking call (uses aiohttp) but it slows down because it's a telegram api request subject to rate limit, also the routine is an unecessary bloat of list comprehensions with tests.

Proposed solution is having a file in the form of instance/zodb/123botid.456chatid.meta.fs with versioned information which can be manually updated via a route.

Also this is required because there are private groups where some of the bots have been already kicked and therefore none of them can request information. It would be desirable that such a route bruteforces on all available bots from information on chats for this particular reason.

All routines which request information about chats should use latest valid information stored on zodb filesystem/database.

@iuriguilherme iuriguilherme added the enhancement New feature or request label Mar 3, 2022
@iuriguilherme iuriguilherme self-assigned this Mar 3, 2022
@iuriguilherme iuriguilherme added this to the v1 milestone Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant