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

[Feat] Global Delay in Global Config #464

Closed
Phoenix-Pl opened this issue Jan 20, 2024 · 2 comments · Fixed by #551
Closed

[Feat] Global Delay in Global Config #464

Phoenix-Pl opened this issue Jan 20, 2024 · 2 comments · Fixed by #551
Assignees
Labels
accepted The proposal has been accepted and will be implemented in the near future. enhancement New feature or request

Comments

@Phoenix-Pl
Copy link

Phoenix-Pl commented Jan 20, 2024

Description:
I would like to propose the addition of a global delay feature in the global configuration of the program. This feature would allow users to set a global delay that applies to the execution of tasks throughout the entire program.

Use Case:

  • Users may wish to control the frequency of task execution to alleviate server load.
  • The global delay provides users with a convenient way to adjust the pace of task execution.
  • In certain scenarios, setting a longer global delay might potentially reduce the risk of account suspension by Telegram. This is because it can simulate more natural user behavior.

Implementation:

  • Introduce a new command-line option, for example, --d or --delay, to specify the global delay in seconds.
  • Allow users to set the global delay in the global configuration or through the command line.

Example Usage:

  • tdl --d 10 or tdl --delay 10
  • This would set a global delay of 10 seconds for the entire program.

Thank you for considering this feature request.

@Phoenix-Pl Phoenix-Pl added the enhancement New feature or request label Jan 20, 2024
@iyear
Copy link
Owner

iyear commented Feb 9, 2024

Accepted

@iyear iyear added the accepted The proposal has been accepted and will be implemented in the near future. label Feb 9, 2024
@XMLHexagram
Copy link
Contributor

Hello, @iyear. Currently, I am working on this issue and open a PR #551. Would you have spare time to review that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted The proposal has been accepted and will be implemented in the near future. enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants