We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Calling getChatAdministrators() every time privilege check is done is too expensive w.r.t. latency.
getChatAdministrators()
N
if (message_count % N == 0) { updateAdminCache(); } /* * Privilege check function */ bool checkPrivileged(uint64_t user_id, int64_t group_id) { if (checkPrivilegeFromCache(user_id, group_id)) return true; updateAdminCache(); return checkPrivilegeFromCache(user_id, group_id); }
The text was updated successfully, but these errors were encountered:
ammarfaizi2
No branches or pull requests
Calling
getChatAdministrators()
every time privilege check is done is too expensive w.r.t. latency.Workaround
N
.Pseudo Code
The text was updated successfully, but these errors were encountered: