8000 tqdm.contrib.telegram: add minimum interval for Telegram updates by obeone · Pull Request #1633 · tqdm/tqdm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tqdm.contrib.telegram: add minimum interval for Telegram updates #1633

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

obeone
Copy link
@obeone obeone commented Nov 24, 2024

Introduced a new parameter telegram_mininterval to control the minimum interval between updates sent to a Telegram bot. This enhancement ensures that updates are not sent more frequently than the specified interval, reducing potential ratelimit hitting. The default interval is set to 1.0 seconds, and a final update is always sent at 100% completion.

This allows the local tqdm display to update in real-time without using mininterval, while ensuring that the Telegram updates respect Telegram’s limitations.

Introduced a new parameter `telegram_mininterval` to control the minimum interval between updates sent to a Telegram bot. This enhancement ensures that updates are not sent more frequently than the specified interval, reducing potential ratelimit hitting. The default interval is set to 1.0 seconds, and a final update is always sent at 100% completion.
@obeone obeone requested a review from casperdcl as a code owner November 24, 2024 16:26
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.

1 participant
0