feat(bump): add auto thread bumping

This commit is contained in:
2026-08-07 04:00:20 +05:00
parent 03c463b87c
commit b557ff0403
4 changed files with 88 additions and 5 deletions
+11 -4
View File
@@ -88,6 +88,10 @@ class Config:
os.getenv(key="SKIP_COMMENTED", default="true")
).lower() == "true"
bump_check_interval = max(
float(os.getenv(key="BUMP_CHECK_INTERVAL", default=3600)), 3600
) # 1 поднятие/3600с (1ч) = минимум
return {
# Pyrogram
"api_id": api_id,
@@ -101,14 +105,17 @@ class Config:
"lolz_thread_id": lolz_thread_id,
# Stars
"stars_count": stars_count,
# Misc
"default_choice": default_choice,
# Posts
"start_page": start_page,
"enable_reply": enable_reply,
"check_interval": check_interval,
"skip_commented": skip_commented,
# Misc
"api_delay": api_delay,
"max_retries": max_retries,
"enable_reply": enable_reply,
"skip_commented": skip_commented,
"default_choice": default_choice,
# Bump
"bump_check_interval": bump_check_interval,
}
except: