Skip to content

Commit

Permalink
fix:pyrogram.dispatcher : [#130] - ERROR - 'int' object is not callable
Browse files Browse the repository at this point in the history
  • Loading branch information
kalanakt committed Jan 27, 2024
1 parent c5ad5c2 commit 5b2d37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Uploader/echo.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ async def echo(bot, update):
previous_time = Config.ADL_BOT_RQ[str(update.from_user.id)]
process_max_timeout = round(Config.PROCESS_MAX_TIMEOUT / 60)
present_time = round(
Config.PROCESS_MAX_TIMEOUT(current_time - previous_time)
Config.PROCESS_MAX_TIMEOUT - (current_time - previous_time)
)
Config.ADL_BOT_RQ[str(update.from_user.id)] = time.time()
if round(current_time - previous_time) < Config.PROCESS_MAX_TIMEOUT:
Expand Down

0 comments on commit 5b2d37f

Please sign in to comment.